From firefox-wiki
Look up prior knowledge in the Firefox Knowledge Wiki before starting an investigation or triage. Returns synthesized context with citations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/firefox-wiki:lookupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Invoke at the start of every investigation or triage session, and any time a new component is encountered mid-investigation.
Invoke at the start of every investigation or triage session, and any time a new component is encountered mid-investigation.
Determine WIKI_PATH: use $WIKI_PATH if set, otherwise ~/firefox-wiki/.
Check whether $WIKI_PATH/INDEX.md exists. If it does not, stop and say:
Wiki not initialized — run /firefox-wiki:init
Parse $ARGUMENTS:
Prefer the derived compact index $WIKI_PATH/index.json — it carries page
names, one-line summaries, and aliases in a few KB, so you avoid loading the
full 33 KB+ INDEX.md every session.
Check whether index.json exists and is fresh: its source_index_mtime
must equal the current mtime of INDEX.md:
test -f "$WIKI_PATH/index.json" && \
[ "$(jq -r '.source_index_mtime // empty' "$WIKI_PATH/index.json")" = \
"$(stat -f %m "$WIKI_PATH/INDEX.md" 2>/dev/null || stat -c %Y "$WIKI_PATH/INDEX.md")" ] \
&& echo FRESH
schema is 1): scan the pages[] records — match the query
against each record's name, aliases, and summary. Carry the path
values of relevant records into Step 5. Do not read INDEX.md.schema: fall back to reading
$WIKI_PATH/INDEX.md in full and scan its component, relation, and pattern
tables exactly as before. Note that index.json should be regenerated by the
next /firefox-wiki:lint --full.Either way, note which page files are referenced for Step 5.
First, check whether the current conversation context contains a hook pre-lookup
result — a message starting with [WIKI HIT]. It is followed by indented
<relative/path.md>: <snippet> lines. If found, extract those file paths and
skip the grep below; they are already the matched files and can be used directly
in step 5.
If no hook output is present, extract key terms from the query:
1234567)For each extracted term, run:
rg "<term>" ~/firefox-wiki/ --include="*.md" -l
Collect the union of files identified by the INDEX.md scan and by grep results.
Read at most 4 files to keep context bounded. Priority order:
If a component page references another page via a [[PageName]] link that has not already been read, follow that link one level and read the target file as well (counts toward the 4-file limit).
If the query contains an error code or abbreviation, also read $WIKI_PATH/glossary.md (counts toward the limit).
Write the answer in this format:
## Wiki Context: <query summary>
**<Key finding 1>** — from [[PageName]]
<1-2 sentences of the relevant fact>
**<Key finding 2>** — from [[PageName]]
<1-2 sentences>
**Known failure modes** (if any):
- <mode> — [[bug-page]]
**Invariants to keep in mind**:
- <invariant>
If nothing relevant was found, say so explicitly:
No prior wiki content for this query.
Then suggest: "After the investigation, add findings with /firefox-wiki:add."
Append one JSON line to $WIKI_PATH/usage-log.jsonl for each file actually read:
Resolve the user field first:
WIKI_USER=$(git -C $WIKI_PATH config user.email 2>/dev/null || echo "unknown")
{"date":"<ISO 8601 datetime>","event_type":"wiki_read","user":"<WIKI_USER>","trigger":"agent","file":"<path relative to WIKI_PATH>","query":"<query text>","bug_id":<number or null>}
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.
npx claudepluginhub alastor0325/firefox-wiki-plugin --plugin firefox-wiki