Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

audit-docs

БесплатноБез исполняемых скриптовНе проверен

Orchestrate sequential documentation audits with checkpointing and resumption.

leogodin217от leogodin217★ 65 звёзд на GitHub

Об этом скилле

Audit Docs

Orchestrate sequential documentation audits with file-based checkpointing. Enables resumption across sessions.

Context posture

Task-scoped — the audited subsystem's docs and the code they claim. Do NOT run /understand; do NOT load repo-wide architecture. An audit asks whether this subsystem's docs match its own code, and wider context lets the orchestrator paper over a gap from memory instead of flagging it. The doc-auditor agents load what each audit area needs, in their own contexts.

Output Location

An audit writes beside the docs it audited. <audit-root> below means an audits/ sibling of the architecture/ directory the discovery step globbed — so findings live with the subsystem they concern, in either repo layout. In this repo that resolves to packages/<pkg>/docs/audits/.

<audit-root>/
  YYYY-MM-DD_HHMMSS/
    manifest.yaml         # checkpoint state
    summary.md            # generated after all audits complete
    findings/
      config.md
      validation.md
      ...

Process

1. Check for Incomplete Session

Look for existing sessions:

Glob: <audit-root>/*/manifest.yaml

For each manifest found, read it. If any has status: auditing or status: summarizing:

Ask in chat — not via the question interface (CLAUDE.md § Asking Questions): name the session id and its status, and offer resuming it or starting fresh (which abandons it).

If "Resume" → skip to Phase 2 or 3 based on manifest status. If "Start fresh" → continue to initialization.

If no incomplete sessions found, proceed to initialization.

2. Initialize Session

Create session folder:

session_id = current timestamp as "YYYY-MM-DD_HHMMSS"
folder = <audit-root>/{session_id}/

Create the folder structure:

<audit-root>/{session_id}/
<audit-root>/{session_id}/findings/

Ask the repo where its subsystem docs live, rather than assuming a layout:

~/.claude/skills/understand/load.py . --field subsystem-docs

Glob *.md under what it prints — that is one directory per subsystem in a packaged repo, and a single flat directory in a repo that keeps them together. This one call is the whole reason this skill can run unmodified in either.

Exclude:

  • README.md (index/navigation)

Write initial manifest:

session_id: "{session_id}"
created_at: "{ISO timestamp}"
status: "auditing"
docs:
  - name: "config.md"
    path: "{discovered path}"        # repo-relative, as globbed above
    status: "pending"
    error: null
  # ... one entry per discovered doc

Report: "Created audit session {session_id} with {N} docs to audit."

3. Audit Phase (Sequential, Checkpointed)

Read manifest to find docs with status: pending.

For each pending doc, one at a time:

  1. Update manifest - set doc status: "auditing"

  2. Launch doc-auditor agent via the Agent tool (foreground — one doc at a time):

    Agent(
        subagent_type="doc-auditor",
        description="Audit {doc_name}",
        prompt="Audit this architecture doc against implementation.\n\ndoc_path: {doc_path}"
    )
    

    The call blocks until the agent finishes and returns its final message directly as the result.

  3. Write findings file - take agent response and write to findings/{doc_name}:

    # Audit: {doc_name}
    
    **Audited:** {ISO timestamp}
    **Doc path:** {doc_path}
    
    ## Findings
    
    {findings from agent, numbered list}
    
    ## Verified Accurate
    
    {verified items from agent, bullet list}
    
  4. Update manifest - set doc status: "complete"

  5. Report progress: "Completed {n}/{total}: {doc_name} - {X} findings"

  6. Continue to next pending doc

If agent returns error: Set doc status: "error", error: "{message}", continue to next doc.

Checkpoint guarantee: After each doc, manifest reflects current state. If context exhausts, next session resumes from manifest.

4. Summary Phase

Once all docs have status: complete or status: error:

  1. Update manifest - set status: "summarizing"

  2. Read all findings files from findings/ folder

  3. Generate summary.md:

    # Documentation Audit Summary
    
    **Session:** {session_id}
    **Completed:** {ISO timestamp}
    
    ## Overview
    
    - Docs audited: {total}
    - Docs with findings: {count with findings}
    - Docs verified accurate: {count with no findings}
    - Docs with errors: {count with errors}
    
    ## Findings
    
    ### {doc_name}
    
    {copy findings section from that doc's file}
    
    ### {doc_name}
    
    ...
    
    ## Verified Accurate
    
    - {doc_name}
    - {doc_name}
    - ...
    
    ## Errors
    
    - {doc_name}: {error message}
    - ...
    
  4. Update manifest - set status: "complete"

  5. Report: "Audit complete. Summary written to /{session_id}/summary.md"

5. Present and Ask for Approval

Display the summary to the user (read and output summary.md content).

Then ask in chat how to proceed — fix all find

Полный SKILL.md на GitHub

Установить audit-docs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл audit-docs?

Orchestrate sequential documentation audits with checkpointing and resumption.

Как установить скилл audit-docs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл audit-docs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить audit-docs с