code-context-graph: Skill for Claude Code

.claude/skills/ccg-docs/SKILL.md

ccg-docs is a skill for Claude Code from tae2089/code-context-graph. It costs 23 tokens per session (819 once invoked), scanned A, original, MIT.

A documentation tool for generating Markdown from code graphs, building search indexes for AI, and checking documentation quality.

In plain words
What is it for?
Use it to generate docs, build and search a RAG index, inspect document content, run lint checks, and install pre-commit hooks.
Why use it?
It reduces manual documentation work and can detect documentation problems before commits.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is tae2089/code-context-graph's own configuration. It tells Claude Code how to work on code-context-graph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything code-context-graph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tae2089/code-context-graph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tae2089/code-context-graph/main/.claude/skills/ccg-docs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tae2089/code-context-graph

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ccg-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/tae2089/code-context-graph/ccg-docs/github.svg)](https://agentmods.dev/skills/tae2089/code-context-graph/ccg-docs)
Your own site
<a href="https://agentmods.dev/skills/tae2089/code-context-graph/ccg-docs"><img src="https://agentmods.dev/badge/skills/tae2089/code-context-graph/ccg-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ccg-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/tae2089/code-context-graph/ccg-docs"><img src="https://agentmods.dev/badge/skills/tae2089/code-context-graph/ccg-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00819
Opus 5.5 $0.00009 $0.00328
Sonnet 5.5 $0.00005 $0.00164
Haiku 4.5 $0.00002 $0.00082

Measured 1mo ago against content hash 2b6c420f411d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccg-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ccg-docs/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

code-context-graph — Documentation & RAG Indexing

Generate Markdown documentation from code graphs, build RAG indexes for AI consumption, and lint documentation quality.

Subcommands

Command Description Example
docs [--out dir] Generate Markdown documentation ccg docs --out docs
lint [--out dir] 8-category docs lint ccg lint
lint --strict Exit 1 on issues (for CI/pre-commit) ccg lint --strict
hooks install Install pre-commit git hook ccg hooks install
hooks install --lint-strict Install hook that blocks commit on issues ccg hooks install --lint-strict

MCP Tools (4)

Tool Description
build_rag_index Build RAG index from docs and communities. Use namespace for namespace-specific docs; workspace remains a deprecated alias.
get_rag_tree Navigate RAG document tree. Use namespace for namespace-specific doc-index.json; workspace remains a deprecated alias.
get_doc_content Get documentation file content. Use namespace for namespace-scoped docs; workspace remains a deprecated alias.
search_docs Search RAG document tree by keyword. Use namespace for namespace-specific searches; workspace remains a deprecated alias.

Lint Categories (8)

Category Description
orphan Doc files with no matching source code
missing Source files with no documentation
stale Docs outdated vs source (hash/timestamp mismatch)
unannotated Functions lacking @intent/@domainRule annotations
contradiction Doc content contradicting code signatures
dead-ref @see tags pointing to non-existent functions
incomplete Partial documentation (missing @param, @return)
drift Doc structure diverged from code structure

Usage Examples

Generate documentation

User: "문서 생성해줘"
→ ccg docs --out docs
→ Generates Markdown files for all modules

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 97 lines · 23 tokens per session scan A 2b6c420f411d

Subscribe to this mod's changes

ccg-docs is a skill published in the GitHub repository tae2089/code-context-graph (17 stars, last pushed 2mo ago), licensed MIT. It adds 23 tokens to every session and 819 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens

iterative-retrieval

Pattern for progressively refining context retrieval to solve the subagent context problem.

hashgraph-online/awesome-codex-plugins · 19 tokens

agentsop-dify

SOP for building LLM applications on Dify — visual workflow + chatflow + agent + RAG knowledge base + plugin marketplace + observability, self-hostable. Use when shipping LLM apps fast with a "no-code to pro-code" gradient, especially when non-engineers need to co-author the flow.

agentsope/SkillAlchemy · 69 tokens

agentsop-hybrid-retrieval

Enhancement-overlay SOP for adding sparse (BM25 / keyword) retrieval alongside dense (embedding) retrieval. Activate when a calling agent is building, reviewing, or debugging a retrieval pipeline whose corpus contains exact-match tokens — identifiers, error codes, SKUs, API/function names, proper nouns, citations…

agentsope/SkillAlchemy · 173 tokens

agentsop-idempotent-ingestion

Re-ingest-correctness SOP for production RAG. Activate when a calling agent builds, reviews, or debugs an ingestion pipeline that runs more than once over a changing corpus — scheduled re-index, incremental updates, CI re-ingest, or a "retrieval has duplicates / shows deleted docs" bug. Encodes the rule — ingestion…

agentsope/SkillAlchemy · 205 tokens