From agent-knowledge
Syncs agent-knowledge stores from .agent-knowledge/stores.config.json after fresh repo clone. Recreates team-defined stores, detects orphans, supports dry-run, prune, and reindex options.
npx claudepluginhub chris-xperimntl/agent-knowledgeThis skill is limited to using the following tools:
Sync stores from the git-committable definitions config. This is useful when:
Lists all configured knowledge stores (repo, file, web) in the project via mcp__agent-knowledge__execute tool, displaying name, type, ID, and source in a markdown table. Handles empty case with add instructions.
Manages knowledge bases: ingest, sync, organize, deduplicate, and retrieve across local files, MCP memory, vector stores, Git repos, Supabase, PostgreSQL. For knowledge management tasks like saving/searching info.
Audits and syncs agent instruction files across coding agents like Claude Code, Cursor, Copilot, Gemini ensuring AGENTS.md matches targets (CLAUDE.md, .cursorrules). First-run scaffolding check; syncs after edits.
Share bugs, ideas, or general feedback.
Sync stores from the git-committable definitions config. This is useful when:
.agent-knowledge/stores.config.jsonUse the mcp__agent-knowledge__execute tool with command "stores:sync" to sync stores from definitions
Optional arguments:
dryRun: true - Show what would happen without making changesprune: true - Remove stores not in definitionsreindex: true - Re-index existing stores after syncPresent results in a structured format:
## Sync Results
**Created**: 3 stores
- my-docs (file)
- react-source (repo)
- api-docs (web)
**Skipped** (already exist): 2 stores
- lodash
- typescript-docs
**Orphans** (not in definitions): 1 store
- old-unused-store
No errors occurred.
When using dry run, show what WOULD happen:
## Sync Preview (Dry Run)
**Would create**: 3 stores
- my-docs (file)
- react-source (repo)
- api-docs (web)
**Would skip** (already exist): 2 stores
- lodash
- typescript-docs
**Orphans** (not in definitions): 1 store
- old-unused-store
To apply these changes, run without --dry-run
If no store definitions config exists:
## No Store Definitions Found
The config file `.agent-knowledge/stores.config.json` doesn't exist yet.
Store definitions are automatically created when you:
- Add a repo: `/agent-knowledge:add-repo <url>`
- Add a folder: `/agent-knowledge:add-folder <path>`
- Crawl a website: `/agent-knowledge:crawl <url>`
The config file will be created automatically and can be committed to git for team sharing.
If some stores fail to sync, report them individually:
## Sync Results
**Created**: 2 stores
- my-docs
- api-docs
**Failed**: 1 store
- react-source: Directory does not exist: /path/to/repo
Continue to resolve the errors manually.