ca-docit
Generates a structured markdown context pack for a code file, including outline, API surface extract, and documentation drift scorecard to identify stale comments.
Instructions
Fast single-file context pack for structured companion markdown (outline + API extract + drift scorecard). Default skips heavy analyzers.
focus: optional free-form additional requests (markdown emphasis within
canonical H2s, scope, what to skip). Echoed (redacted) in the pack.
Trailing text after /ca-docit becomes focus.
Returns suggested_markdown_path (docs/ + CAPITAL basename), markdown_exists,
existing_markdown_excerpt, outline_contract (exact H2s), api_surface_extract
(public/exported only), doc_drift_scorecard (ranked staleness), invented_metrics
always false. Agent writes/reconciles companion .md or reports in sync and
skips churny rewrite; does not edit source comments. MCP does not write files
or call an LLM.
analyzer_mode: none (default, instant) | lint (quick) | all (full suite, slow).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| focus | No | ||
| analyzer_mode | No | ||
| workspace_root | No |