一键导入
docs-audit-scan
Parallelized documentation audit that scans for completeness, accuracy, consistency, and staleness, then creates implementation-ready fix issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Parallelized documentation audit that scans for completeness, accuracy, consistency, and staleness, then creates implementation-ready fix issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verifies features and decisions align with project constitution. Use when evaluating new features, resolving design conflicts, or ensuring constitutional compliance.
For use when a new issue/task has been identified and needs to be formally captured using the Wingman MCP issue management system. Use this skill to create new issues via the issues_create MCP tool with appropriate metadata and structured content.
Develops project constitutional principles through Socratic questioning. Use when establishing design values, creating project governance, or resolving ambiguous design decisions.
Fixes documentation issues on isolated worktrees with PRs. Processes issues from docs-audit-scan in parallel where possible.
Reviews documentation fix PRs for completeness and accuracy against their source issues. Acts as a quality gate before merge.
Perform comprehensive project housekeeping - update roadmap, reconcile issues with implementation reality, organize completed work, and identify drift. This is a workflow skill that coordinates multiple parallel subagents for efficiency. Use when user says something like "run housekeeping", "do your housekeeping" or "clean up project state".
| name | docs-audit-scan |
| description | Parallelized documentation audit that scans for completeness, accuracy, consistency, and staleness, then creates implementation-ready fix issues. |
<required_context>
.wingman/ workspacegh CLI installed and authenticatedissues_create, issues_listpackages/, docs/, root config files)</required_context>
<available_agent_types>
This is a workflow skill -- it coordinates multiple subagents in parallel for maximum efficiency.
</available_agent_types>
Why sequential: Need a complete manifest before dispatching parallel auditors.
Task: Gather a comprehensive inventory of all documentation files and establish audit expectations.
Approach:
1.1 Scan for Documentation Files
Build a manifest of all documentation by scanning:
docs/ directory (recursive)README.md files in all directories (root, packages, skills)AGENTS.md and CLAUDE.md files.wingman/config/CONSTITUTION.md.wingman/rules/ directory.wingman/memory/ directory (for reference docs)packages/*/AGENTS.md and packages/*/CLAUDE.mdFor each file, record:
git log -1 --format="%ai" -- <path>)1.2 Establish Audit Expectations
Read the project's documentation expectations from:
CONSTITUTION.md -- what documentation is requiredAGENTS.md -- documentation map and conventions1.3 Build Package Manifest
List all packages under packages/ and note which have:
README.mdAGENTS.mddocs/ or documentation referenceOutput: Documentation manifest (list of files with metadata) and package coverage map.
Why parallel: Four independent audit dimensions with no dependencies -- run simultaneously.
Launch four parallel subagents using the Task tool:
Task: Check if all packages, modules, and features have documentation.
Approach:
packages/*/ directories against docs/ entriesdocs/06-reference/mcp-tools.mdpackages/agent-core/builtins/skills/SKILL.md with meaningful content (not just a stub).wingman/playbooks/workflows/AGENTS.md for completenessOutput format:
COMPLETENESS_FINDINGS:
- [MISSING] <path> -- <what is missing>
- [STUB] <path> -- <file exists but lacks meaningful content>
- [GAP] <topic> -- <feature/module with no documentation>
Task: Verify documentation claims against code reality.
Approach:
Output format:
ACCURACY_FINDINGS:
- [BROKEN_PATH] <doc_path>:<line> -- references <missing_path>
- [STALE_API] <doc_path>:<line> -- documents <old_signature>, actual is <new_signature>
- [WRONG_DEFAULT] <doc_path>:<line> -- says default is <X>, actual is <Y>
- [INVALID_EXAMPLE] <doc_path>:<line> -- code block has syntax issues
Task: Check formatting conventions, cross-references, and naming consistency.
Approach:
[text](path.md))Output format:
CONSISTENCY_FINDINGS:
- [BROKEN_LINK] <doc_path>:<line> -- link to <target> is broken
- [FORMAT] <doc_path>:<line> -- <formatting issue description>
- [NAMING] <doc_path>:<line> -- inconsistent name: <variant_a> vs <variant_b>
- [STRUCTURE] <doc_path> -- missing expected section: <section_name>
Task: Cross-reference docs against recent git history to identify stale documentation.
Approach:
git log --oneline --since="90 days ago" --name-only
Output format:
STALENESS_FINDINGS:
- [STALE] <doc_path> -- last updated <date>, but <code_path> changed <N> times since
- [OUTDATED] <doc_path> -- references code pattern from before <commit_hash>
- [NEW_UNDOCUMENTED] <code_path> -- added in <commit_hash> with no corresponding docs
Why sequential: Needs results from all four audit agents to deduplicate and group.
Task: Collect results from all audit agents, deduplicate, group into fix units, and create GitHub issues.
Approach:
3.1 Collect and Deduplicate
3.2 Group into Fix Units
Group findings into coherent fix units:
3.3 Prioritize
Assign priority based on severity:
3.4 Create Issues
For each fix unit, create a GitHub issue via issues_create MCP tool with:
docs: fix [description] in [file]issue["documentation", "docs-audit"]3.5 Generate Summary Report
Produce a summary of the audit:
DOCS_AUDIT_SCAN_COMPLETE
Issues created: [count]
High priority: [count]
Medium priority: [count]
Low priority: [count]
Findings by category:
Completeness: [count]
Accuracy: [count]
Consistency: [count]
Staleness: [count]
Issue IDs: [comma-separated list]
Output: The scan result object containing:
issueIds: array of created issue IDssummary: the summary report textfindingCounts: breakdown by category and priority<success_criteria>
<error_handling>
Audit agent fails to complete:
Too many findings (100+):
docs: remaining audit findings from [date]MCP tool unavailable:
Git history unavailable:
</error_handling>