Skip to content

Commit 14f56e6

Browse files
tae2089claude
andcommitted
docs: update README and skill with lint --strict, unannotated, hooks --lint-strict
- lint: add --strict flag and unannotated symbols detection - hooks install: add --lint-strict option - search: add --path to CLI Commands table - Skill section: expand with all new commands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 71af242 commit 14f56e6

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,15 @@ Claude Code automatically connects and gets access to 18 MCP tools + pgvector se
179179
The `/ccg` skill provides:
180180
181181
```
182-
/ccg build . — Build code graph
183-
/ccg status — Graph statistics
184-
/ccg search "query" — Full-text search
185-
/ccg annotate internal/ — AI-generate annotations
182+
/ccg build . — Build code graph
183+
/ccg status — Graph statistics
184+
/ccg search "query" — Full-text search
185+
/ccg docs — Generate documentation
186+
/ccg lint — Check docs health + annotation coverage
187+
/ccg languages — List supported languages
188+
/ccg example go — Annotation writing example
189+
/ccg tags — Annotation tag reference
190+
/ccg annotate internal/ — AI-generate annotations
186191
```
187192
188193
### AI-Driven Annotation
@@ -221,13 +226,16 @@ Source Code → Tree-sitter Parser → Nodes + Edges + Annotations
221226
| `ccg update [dir]` | Incremental sync |
222227
| `ccg status` | Graph statistics |
223228
| `ccg search <query>` | Full-text search |
229+
| `ccg search --path <prefix> <query>` | Scoped search by path prefix |
224230
| `ccg docs [--out dir]` | Generate Markdown documentation |
225231
| `ccg index [--out dir]` | Regenerate index.md only |
226232
| `ccg languages` | List supported languages and extensions |
227233
| `ccg example [language]` | Show annotation writing example |
228234
| `ccg tags` | Show all annotation tag reference |
229235
| `ccg hooks install` | Install pre-commit git hook |
230-
| `ccg lint [--out dir]` | Detect orphan, missing, stale docs |
236+
| `ccg hooks install --lint-strict` | Install hook that blocks commit on issues |
237+
| `ccg lint [--out dir]` | Detect orphan, missing, stale, unannotated |
238+
| `ccg lint --strict` | Exit 1 on issues (for CI/pre-commit) |
231239
| `ccg serve` | Start MCP server (stdio) |
232240
233241
### Config file (`.ccg.yaml`)

skills/ccg.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ A local code analysis tool that parses codebases via Tree-sitter into a knowledg
2727
| `example [language]` | Show annotation example for a language | `ccg example go` |
2828
| `tags` | Show all @tag reference with descriptions | `ccg tags` |
2929
| `hooks install` | Install pre-commit git hook | `ccg hooks install` |
30-
| `lint [--out dir]` | Detect orphan, missing, stale docs | `ccg lint --out docs/` |
30+
| `hooks install --lint-strict` | Install hook that blocks commit on lint issues | `ccg hooks install --lint-strict` |
31+
| `lint [--out dir]` | Detect orphan, missing, stale, unannotated | `ccg lint --out docs/` |
32+
| `lint --strict` | Same as lint but exit 1 on issues (for CI) | `ccg lint --strict` |
3133
| `annotate [file\|dir]` | AI-generate annotations for code | `ccg annotate internal/analysis/` |
3234

3335
## Execution
@@ -60,6 +62,8 @@ Available ccg commands:
6062
ccg example [language] — Annotation writing example
6163
ccg tags — Annotation tag reference
6264
ccg hooks install — Install pre-commit git hook
65+
ccg lint [--out dir] — Detect orphan, missing, stale, unannotated
66+
ccg lint --strict — Same as lint, exit 1 on issues (CI/hooks)
6367
ccg annotate [file|dir] — AI-generate @annotations for code
6468
```
6569

0 commit comments

Comments
 (0)