/kb-access:kb-searchfrom kb-access
Search the OCHA CHD Data Science team knowledge base (the local ds-knowledge-base clone) before answering questions about the TEAM'S OWN work — our AA frameworks and triggers, pipelines, apps, infrastructure, blob/DB layout, methods, libraries, past decisions. NOT for general programming/geospatial/statistics questions or projects outside the OCHA-DAP portfolio; generic words like "pipeline" or "trigger" in an unrelated repo are not a reason to search. Also covers how to update the KB after real work and how to report gaps. If a .kb-sync-stuck file exists at the clone root, tell the user their KB auto-sync is failing (this skill has the fix steps). If no clone exists yet, help the user choose where it goes (this skill has the steps) — it is never cloned to an unchosen location.
Ships in kb-access. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The team KB (hub) is a local clone of OCHA-DAP/ds-knowledge-base, organized as
frameworks/, pipelines/, apps/, analysis/, methods/, infrastructure/,
assets/. This plugin's SessionStart hook keeps it (and the internal companion
ds-knowledge-base-internal, for users with access) cloned and on current main.
Where it is — first match wins: $KB_REPOS_DIR → the path in
~/.claude/.kb-repos-dir. The location must be explicitly set — there is no
default and no auto-detection; nothing is cloned to (or read from) a path the user
didn't choose. If neither is set, ask the user: do they already have a
ds-knowledge-base clone (→ write its PARENT dir to the state file), or where
should team repos live (any dir works), then:
echo "<dir>" > ~/.claude/.kb-repos-dir — the next session start clones/updates it
there, or clone immediately yourself:
git clone --single-branch -b main https://github.com/OCHA-DAP/ds-knowledge-base.git <dir>/ds-knowledge-base.
<what>
because <why>". That line is their interception point, and articulating the
retrieval goal keeps the search targeted.cat,
grep -r, sed): only those reach the activity log and rollup, so a Bash search
looks to the user like you announced a search and then read nothing. Start from
the repo's CLAUDE.md map.frameworks/ (index: catalog.md). external-frameworks/ holds other organisations'
frameworks (IFRC, WFP, FAO, START, governments…) for cross-org comparison — don't answer
from those unless the user explicitly asks about other orgs, and if you mention one, say
whose it is ("IFRC's Nigeria EAP", not "the Nigeria framework"). Every external page
carries a "Not an OCHA/CERF framework" banner under its H1; catalog-global.md is the
cross-org index.<pages>" or "KB: nothing directly relevant — answering without
it." A page that only shares words with the question must not steer the
answer; finding nothing IS a valid outcome (and, for an in-scope question,
worth a gap report — see below).code_ref/source_repo into the actual repo for depth the
summary doesn't have. Internal material (Drive extracts, style-reference mirror)
lives in the sibling internal clone.OCHA-DAP/ds-knowledge-base — the steward
drafts it as a PR. If a lookup finds nothing or something stale, leave a
<!-- TODO: ... --> stub in the page. (Only for in-scope questions — a search
that shouldn't have happened is not a KB gap.)main.
The clone is shared infrastructure (concurrent sessions + this plugin's auto-sync
read it), and uncommitted changes or a switched branch block the ff-only pull —
the KB then silently stops updating for the whole machine. ALL local KB work goes
in a worktree:
git worktree add ../ds-knowledge-base.worktrees/<branch> -b <branch> origin/main,
edit + commit there with explicit pathspecs, push, PR (merge commit, not squash),
remove the worktree after merge..kb-sync-stuck exists at the clone root, auto-sync is failing on this machine —
read it (it says why) and tell the user. If the cause is changes stranded in the
clone, rescue them without losing anything — stashes are shared across worktrees:
git stash push in the clone → pull succeeds → git stash pop inside a fresh
worktree branch → commit/PR from there. Details: the kb-doctor skill.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ocha-dap/ds-knowledge-base --plugin kb-access