cc-docs

cc-docs is a command for Claude Code from yeisonrestrepo/code-conductor. It costs 9 tokens per session (864 once invoked), scanned A, original, MIT.

A workflow for reviewing and improving a project’s documentation, including missing comments for public functions and classes.

In plain words
What is it for?
Use it to audit documentation, identify outdated markers such as TODO or FIXME, and add language-appropriate API comments or docstrings.
Why use it?
It helps find high-impact documentation gaps and explains important behavior that callers need to understand.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to audit documentation, identify outdated markers such as TODO or FIXME, and add language-appropriate API comments or docstrings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yeisonrestrepo/code-conductor/cc-docs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yeisonrestrepo/code-conductor

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 cc-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/yeisonrestrepo/code-conductor/cc-docs/github.svg)](https://agentmods.dev/commands/yeisonrestrepo/code-conductor/cc-docs)
Your own site
<a href="https://agentmods.dev/commands/yeisonrestrepo/code-conductor/cc-docs"><img src="https://agentmods.dev/badge/commands/yeisonrestrepo/code-conductor/cc-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 cc-docs

Your own site · 80×15
<a href="https://agentmods.dev/commands/yeisonrestrepo/code-conductor/cc-docs"><img src="https://agentmods.dev/badge/commands/yeisonrestrepo/code-conductor/cc-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 864 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.
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.00009 $0.00864
Opus 5.5 $0.00004 $0.00346
Sonnet 5.5 $0.00002 $0.00173
Haiku 4.5 $0.00001 $0.00086

Measured 12d ago against content hash aecf673a0da2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cc-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 12d 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.

project-template/.claude/commands/cc-docs.md · 70 lines

What it actually says

Release reconciliation - docs (FEAT-036)

Without --release <ref> in $ARGUMENTS, skip this section and audit inline docs as below. With it, do not run the inline-docs audit: the docs role agent reconciles the user-facing documentation with that shipped release, and this session writes no documentation file.

  1. Digest the release from the project root, with the work tree checked out clean at <ref>:

    S=.claude/scripts; [ -f "$S/orchestrate.mjs" ] || S=scripts
    node "$S/docs-sync.mjs" digest --release <ref> [--since <ref>]
    

    A non-zero exit is a refusal: print its stderr line as it is and stop. Nothing is dispatched.

  2. Install the envelope: node "$S/orchestrate.mjs" envelope docs --item <label>, where <label> is <ref> when it matches [a-zA-Z0-9._-]+, else adhoc. Only a first stdout line that starts with installed: allows the dispatch. On anything else, print docs not dispatched: <the verb's stderr line> and stop: never write the documentation in this session, which no envelope scopes.

  3. Dispatch Agent({ subagent_type: "docs", description: "reconcile docs", prompt }). The brief carries the digest's stdout verbatim and says that a phase command, not a run, dispatched the agent, and that the envelope is installed at .claude/memory/band-envelope.json.

  4. Run node "$S/orchestrate.mjs" envelope --clear, also when the agent was denied or ended without a hand-back. If it refuses, report the refusal.

  5. Write the agent's report verbatim to .conductor/handback/docs.txt, then judge it with the same --since as step 1: node "$S/docs-sync.mjs" check --release <ref> [--since <ref>] < .conductor/handback/docs.txt.

  6. Show the report's DOCS: line, the check output and git diff --stat. On docs-sync: ok, the diff is the proposal: the owner reviews and commits it. On a failure, list each failure line and say the diff is left in place; discard it with git checkout -- <files>. This command never commits, stages or reverts anything.


Audit existing docs first:

  • Run: grep -r "TODO\|FIXME\|@deprecated" src/ --include="*.{ts,js,py,java,go,rs}" -l
  • Check if public functions and classes already have doc comments
  • Identify the highest-impact gaps (public API, core modules)

Inline doc format by language:

TypeScript/JavaScript — JSDoc:

/**
 * Finds a user by their unique identifier.
 * Returns null when no matching user exists — callers must handle this case.
 */
function getUserById(id: string): User | null { ... }

Python — docstrings:

def get_user_by_id(user_id: str) -> User | None:
    """
    Find a user by their unique identifier.

    Returns None when no matching user exists — callers must handle this case.
    """

Java — JavaDoc:

/**
 * Finds a user by their unique identifier.
 * Returns {@code Optional.empty()} when no matching user exists.
 */
Optional<User> getUserById(String id);

Go — GoDoc:

// GetUserByID returns the user with the given ID.
// Returns ErrNotFound if no matching user exists.
func GetUserByID(ctx context.Context, id string) (User, error) { ... }

Rule: Document WHY (non-obvious behavior, side effects, callers' responsibilities), not WHAT (the function name already says that).

Preview all doc changes before writing to files. Show a diff of what will be added.

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. 12d ago Changed · +20 lines aecf673a0da2
  2. 3mo ago First seen · 50 lines · 9 tokens per session scan A 9240ff89e0eb

Subscribe to this mod's changes

cc-docs is a command published in the GitHub repository yeisonrestrepo/code-conductor (22 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 864 once invoked, about $0.0000 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-31.

Related

cc-docs compared with commands from other repositories

cc-docs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cc-docsyeisonrestrepo/code-conductorCommand22todayMITA9Claude Code
reportrohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A17Claude Code
generate-changelogrohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A19Claude Code
build-imagerohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A19Claude Code
env-setuprohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A0Claude Code
debug-podrohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A0Claude Code
code-migraterohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A19Claude Code