From repo-knowledge
Pull knowledge base from remote and merge into local. Fetches remote state, Agent compares diffs and merges (alias LRU merge for _index.md, union dedup for _registry.md, newer-cached-date wins for docs). Does NOT push — local only. Use when user says 'pull knowledge', 'sync from remote', 'rk-pull', or on a new machine to get existing knowledge without re-indexing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/repo-knowledge:rk-pullThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```bash
python3 -c "import os; print(os.path.expanduser('~'))"
Store as {HOME}. Base path: {HOME}/.repo-knowledge.
Read {HOME}/.repo-knowledge/_remote.md.
If not found: tell user to run /repo-knowledge:rk-remote-init <git-url> first. Stop.
git -C {HOME}/.repo-knowledge fetch origin main
git -C {HOME}/.repo-knowledge rev-list HEAD..origin/main --count
If count = 0: tell user "Already up to date." Stop.
git -C {HOME}/.repo-knowledge diff HEAD origin/main --name-only
Process each file from the diff. Use git -C {HOME}/.repo-knowledge show origin/main:<relative-path> to read the remote version.
_registry.md{HOME}/.repo-knowledge/_registry.mdgit -C {HOME}/.repo-knowledge show origin/main:_registry.mdLast Update date for duplicates<project>/_index.mdgit -C {HOME}/.repo-knowledge show origin/main:<project>/_index.md_index.md<project>/docs/*.mdcached: field)git -C {HOME}/.repo-knowledge show origin/main:<path>cached: date<project>/_meta.mdlast_update = newer date, total_docs = higher number, git_url = either, last_commit = from side with newer last_updateIf remote has an entire project directory that does not exist locally:
_meta.md, _index.md, all docs/_repos/<project> will NOT exist — this is expected. rk-update will auto-clone source when needed._registry.mdgit -C {HOME}/.repo-knowledge add -A
git -C {HOME}/.repo-knowledge diff --cached --quiet || \
git -C {HOME}/.repo-knowledge commit -m "pull: merged from remote $(python3 -c \"import datetime; print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M'))\")"
Do NOT push — this is a local-only operation.
Tell user:
_repos/<project> for pulled projects will be auto-cloned next time rk-update runsFetches 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 sixz-ai/repo-knowledge --plugin repo-knowledge