From contextus
View and edit contextus project config (.claude/contextus.json) — sources, excludes, retrieval tuning, docs settings, capture mode. The single entry point for all config changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/contextus:configureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
View or modify the project-level config (`.claude/contextus.json`). This is the
View or modify the project-level config (.claude/contextus.json). This is the
team-shared, git-committed configuration — it wins over global defaults via the 3-tier
merge (plugin.json defaults < ~/.contextus/data/<project>/config.json < .claude/contextus.json).
/configure # show current effective config
/configure show # same
/configure set <key> <value> # set a config value
/configure exclude <glob> # add an exclude pattern to a source
/configure sources # list sources with file counts + excludes
.claude/contextus.json{
"docs": {
"requireFrontmatter": true
},
"sources": {
"projectDocs": {
"exclude": ["prompts/**", "archive/**"]
},
"projectContext": {
"exclude": []
}
},
"retrieval": {
"topK": 5,
"injectionFloor": 0.35,
"similarityThreshold": 0.7,
"maxTokens": 3000
},
"embedding": {
"provider": "ollama",
"ollamaModel": "nomic-embed-text"
},
"capture": {
"mode": "propose"
}
}
docs — Documentation handling| Key | Type | Default | Description |
|---|---|---|---|
requireFrontmatter | boolean | false | Whether audit/migrate check docs for frontmatter |
sources — Per-source overridesEach source (projectContext, projectDocs, userContext, userDocs) accepts:
| Key | Type | Default | Description |
|---|---|---|---|
path | string | (per source) | Override the source directory |
enabled | boolean | true | Enable/disable this source |
exclude | string[] | [] | Glob patterns to exclude (merged with defaults) |
Default excludes (always applied, you don't need to repeat these):
**/CONTEXT.md, **/DOCS.md, **/README.mdYour excludes are ADDITIVE — they merge with defaults, never replace them.
Example — exclude docs/prompts/ and docs/archive/ from embedding:
{
"sources": {
"projectDocs": {
"exclude": ["prompts/**", "archive/**"]
}
}
}
retrieval — Search and injection tuning| Key | Type | Default | Description |
|---|---|---|---|
topK | number | 5 | Max patterns to retrieve per prompt |
injectionFloor | number | 0.35 | Min similarity to inject (below = skip) |
similarityThreshold | number | 0.7 | Ideal similarity target (for calibration) |
maxTokens | number | 3000 | Token budget for injected context |
embedding — Model and provider| Key | Type | Default | Description |
|---|---|---|---|
provider | "ollama" | "transformers" | "ollama" | Embedding backend |
ollamaModel | string | "nomic-embed-text" | Ollama model name |
dimensions | number | 768 | Vector dimensions (must match model) |
capture — How new patterns are proposed| Key | Type | Default | Description |
|---|---|---|---|
mode | "propose" | "auto" | "silent" | "propose" | Capture mode (permanent tradeoff) |
calibration — Quality measurement| Key | Type | Default | Description |
|---|---|---|---|
evaluateUsage | boolean | false | Whether to run quality eval on retrievals |
targetSamples | number | 100 | Samples before auto-disabling evaluation |
/configure exclude docs/prompts
# → Adds "prompts/**" to sources.projectDocs.exclude
/configure set retrieval.topK 8
/configure set retrieval.injectionFloor 0.4
/configure set embedding.provider ollama
# Reminder: requires /rebuild-embeddings --full after switching
/configure set sources.userDocs.enabled false
plugin.json config) — ships with contextus~/.contextus/data/<project>/config.json) — /context-calibrate --apply writes here.claude/contextus.json) — git-committed, team-shared, WINSLater tiers override earlier ones. Source exclude arrays are merged (additive),
not replaced — your project excludes add to the defaults, they don't clobber them.
/contextus-setup asks initial config questions and writes this file. Re-run setup
or use /configure directly to change settings later.
/rebuild-embeddings (removed files stay in corpus until rebuild)/rebuild-embeddings --full (removes all rows from that source)/rebuild-embeddings --full (vectors incompatible across models)/contextus-setup — initial config + scaffold (asks questions interactively)/rebuild-embeddings — re-embed after source/exclude changes/context-status — verify config is taking effectCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub anthonypdawson/claude-contextus --plugin contextus