plugins/claudit/skills/knowledge/SKILL.md
Retrieve claudit knowledge cache domains (ecosystem, core-config, optimization). Checks freshness and auto-refreshes stale domains.
npx skillsauth add acostanzo/quickstop knowledgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the claudit knowledge provider. When invoked via /claudit:knowledge [domain ...], check the knowledge cache, auto-refresh if stale, and output the requested domain content. This skill is the preferred interface for any tool that needs claudit's cached research.
Parse $ARGUMENTS to determine which domains to retrieve:
ecosystem → ecosystem onlycore-config → core-config onlyoptimization → optimization onlyall, empty, or missing → all three domains (default)ecosystem core-config)Map each domain to its cache file:
| Domain | Cache File |
|--------|-----------|
| core-config | ~/.cache/claudit/core-config.md |
| ecosystem | ~/.cache/claudit/ecosystem.md |
| optimization | ~/.cache/claudit/optimization.md |
Store the list of requested domains as REQUESTED_DOMAINS.
Follow the cache-check protocol (see ${CLAUDE_PLUGIN_ROOT}/references/cache-check-protocol.md), scoped to REQUESTED_DOMAINS only.
claude --version 2>/dev/null → store as CURRENT_VERSIONcat ~/.cache/claudit/manifest.json 2>/dev/nullclaude_code_version to CURRENT_VERSION. If different → all domains STALE.
b. Per-domain time check: For each domain in REQUESTED_DOMAINS, check domains.<name>.cached_at. If age >= max_ttl_days (default 7 days) → that domain is STALE.
c. File check: For each domain in REQUESTED_DOMAINS, verify the cache .md file exists. If missing → that domain is STALE.Partition REQUESTED_DOMAINS into FRESH_DOMAINS and STALE_DOMAINS.
If STALE_DOMAINS is empty, skip to Step 4.
Tell the user:
Refreshing knowledge cache ({list of stale domains})...
Run via Bash: mkdir -p ~/.cache/claudit
Dispatch research agents for stale domains only, in parallel using the Task tool. All must be foreground (do NOT use run_in_background).
Research Core (if core-config is stale):
description: "Research core config docs"subagent_type: "claudit:research-core"prompt: "Build expert knowledge on Claude Code core configuration. Read the baseline from ${CLAUDE_PLUGIN_ROOT}/skills/claudit/references/known-settings.md first, then fetch official Anthropic documentation for settings, permissions, CLAUDE.md, and memory. Return structured expert knowledge."Research Ecosystem (if ecosystem is stale):
description: "Research ecosystem docs"subagent_type: "claudit:research-ecosystem"prompt: "Build expert knowledge on Claude Code ecosystem features. Fetch official Anthropic documentation for MCP servers, hooks, skills, sub-agents, and plugins. Return structured expert knowledge."Research Optimization (if optimization is stale):
description: "Research optimization docs"subagent_type: "claudit:research-optimization"prompt: "Build expert knowledge on Claude Code performance and over-engineering patterns. Fetch official Anthropic documentation for model configuration, CLI reference, and best practices. Search for context optimization and over-engineering anti-patterns. Return structured expert knowledge."For each refreshed domain, write the agent's results to the corresponding cache file using the Write tool.
Then update the manifest. Read the existing ~/.cache/claudit/manifest.json (if it exists) to preserve timestamps for domains that were NOT refreshed. Write the updated manifest:
{
"claude_code_version": "{CURRENT_VERSION if all 3 domains refreshed, otherwise preserve existing}",
"cached_at": "{current timestamp if all 3 domains refreshed, otherwise preserve existing}",
"max_ttl_days": 7,
"domains": {
"core-config": { "cached_at": "{current if refreshed, preserved if not}" },
"ecosystem": { "cached_at": "{current if refreshed, preserved if not}" },
"optimization": { "cached_at": "{current if refreshed, preserved if not}" }
}
}
Why: Only update top-level claude_code_version and cached_at when all domains are refreshed. Partial refreshes preserve these fields so non-refreshed domains aren't incorrectly marked fresh by a version match.
Read each domain's cache file and output it in this format:
=== CLAUDIT KNOWLEDGE: {domain} ===
{content of the cache file}
=== END CLAUDIT KNOWLEDGE ===
Repeat for each requested domain.
After all domains, output a metadata summary:
Knowledge source: {source} | Domains: {list}
Where {source} is one of:
cache (fresh, fetched {date}) — if all domains were already freshrefreshed ({list of refreshed domains} were stale) — if any domains needed refreshfreshly populated (no prior cache) — if cache was missing entirelydocumentation
Surface (and optionally fix) doc-tree drift — duplicates, dead links, stale docs, template non-compliance, missing `## Related` blocks. Read-only by default; `--apply` does mechanical fixes; `--apply-semantic` emits diffs for human review.
documentation
Full-text search over the repo's `docs/` tree (FTS5-backed). Returns ranked hits with file paths, tags, and matching snippets.
testing
Retrieval-augmented Q&A over the repo's `docs/` tree. Returns a one-paragraph synthesis plus citations (doc path + heading anchor) and per-citation corroboration verdicts. Field shape and ordering are locked at M3; M5 populates the verdicts.
documentation
Scaffold a new doc under `docs/` from a Diátaxis template, or update an existing one and bump its `updated:` date. Suggests `## Related` candidates and refreshes the FTS5 index on write.