一键导入
validate-docs
Validates code comment quality and TODO/FIXME formatting
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validates code comment quality and TODO/FIXME formatting
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Plan-then-execute sprint orchestrator. Works like a real delivery team: split work into sprints (~1 human-week each), plan them all up front WITH the user, then autonomously run each sprint through a full cycle (research→plan→design→do→QA→fix→deploy) to completion. Multiple sprints can run at once (concurrent dispatch). The leader (main session) dynamically scaffolds project-local agents for whatever domain — not dev-only (marketing, research, ops, data all fit). bkit-aware: borrows bkit agents/skills internally when present, runs fully standalone otherwise. Not for single-file edits, one-shot bug fixes, or work under ~a few hours.
Invoke for "/cowork-insights" command or when the user asks to summarize, review, or report on past Claude Code sessions. Analyzes sessions to show key prompts (verbatim), structured assessments (goal/outcome/friction), tool usage patterns, and actionable insights. Produces HTML report + shareable Markdown for Jira/Notion/Slack. Three report formats — full (deep narrative), standard (core insights), minimal (quick team share). Supports --from/--to with absolute (2026-03-01) or relative (7d, 2w, 1m) dates. Trigger on phrases like weekly status update, sprint recap, what did I do with Claude, AI usage patterns, session history, minimal recap, what I worked on today, share with team, cowork-insights. DO NOT invoke for active tasks (debugging, refactoring, code review, project setup) or for commit-time recaps (use cowork-commit instead).
Trigger whenever the user asks to commit AND wants the commit message enriched with AI collaboration history. Creates a lightweight commit message (key decision highlights + link) and a full directive-log file with conversation transcript + recap. The key signal is the combination of (1) making a commit with (2) capturing how AI contributed. Trigger on phrases like commit with AI recap, attach collaboration history to commit, record AI work in commit, cowork-commit. DO NOT trigger for plain commits without AI documentation, standalone time-period recaps (use cowork-insights instead), PR reviews, or general git operations.
One-time bootstrap of an existing project's docs/ and source into the cowork-doc-sync taxonomy structure. After a detailed gap analysis, relocate docs to match the standard. Phase 1 = relocation only (no new creation, includes moving content between docs), Phase 2 = analyze source to create new docs (only after user approval). For ongoing maintenance use /cowork-doc-sync. Triggers: cowork-doc-init, /cowork-doc-init, init doc structure, relocate docs, organize existing docs, doc init, doc bootstrap
Ongoing doc-sync skill that aligns a project's docs/ with the current code/decision state. Call once at the very end, after implementation/refactoring is complete. Enforces a numbered taxonomy (00-reference~99-misc) + status model (LIVING/ACTIVE/FROZEN) + migration rules. To fit an existing project into this structure for the first time, use /cowork-doc-init. Triggers: cowork-doc-sync, /cowork-doc-sync, sync docs, align docs, organize docs, doc sync, doc alignment
Compare DevMD files against actual source code. Measures coverage, accuracy, and consistency with deterministic counting and evidence-backed findings.
| name | validate-docs |
| description | Validates code comment quality and TODO/FIXME formatting |
| triggers | ["validate docs","check docs"] |
| user-invocable | true |
| allowed-tools | ["Read","Write","Glob","Grep","Bash"] |
Corresponding rule: docs/specs/documentation.md
Resolve the target directory in the following order:
**/*.{ts,tsx,js,jsx,py,java,go,rs}) -- use the top-level directory containing matchesDefault exclusions: node_modules/, .git/, dist/, build/, coverage/
Skill-specific exclusions: *.generated.*, *.g.dart, *.freezed.dart (auto-generated code)
Output the following before proceeding to validation. Do not proceed until resolved.
| Step | Result |
|---|---|
| CLAUDE.md check | found/not found |
| Resolved directories | {list or "none"} |
| Source files found | {count} |
| Resolution method | CLAUDE.md / Glob fallback / SHALLOW |
Validate TODO/FIXME formatting
TODO or FIXME keywordsTODO(@assignee, YYYY-MM): description or FIXME(@assignee, YYYY-MM): description(@ + , + 4-digit year pattern is absentValidate HACK removal conditions
HACK keywordYYYY, vN, #issue-number) is presentPrefix usage report
WHY, CONSTRAINT, DEPENDS, SECURITY, PERF, MIGRATIONDetect self-evident comments (low confidence)
// declare variable, // increment i, // call function, // return, // loop, // declareOutput the following matrix before generating the final report. Do not proceed until every category has been checked.
| Category | Status | Items Checked | Pass | Warn | Fail | Evidence |
|---|---|---|---|---|---|---|
| TODO/FIXME format | ? | ? | ? | ? | ? | {tools, files, patterns} |
| HACK conditions | ? | ? | ? | ? | ? | {tools, files, patterns} |
| Prefix usage | ? | ? | - | - | - | {tools, files, patterns} |
| Self-evident comments | ? | ? | - | - | - | {tools, files, patterns} |
Status values: PASS (verified clean), NOT_APPLICABLE (no source files found), SKIPPED (plugin issue), SHALLOW (target resolution failed)
Verify every item before drafting the report. If any item is unchecked, go back and complete it.
Verify the JSON output before writing to .ww-w-ai/standards/validate-docs/:
Produce the validation report in the user's conversation language.
Output the validation results in the following format:
Documentation Quality Report
==================================================
### TODO/FIXME format
| File:line | Type | Description |
|-----------|:----:|-------------|
| src/auth.ts:42 | WARN | TODO without assignee/deadline: `// TODO: fix later` |
| src/order.ts:15 | PASS | `// TODO(@kim, 2026-06): implement pagination` |
| src/payment.ts:88 | WARN | FIXME without assignee: `// FIXME: intermittent timeout` |
### HACK removal conditions
| File:line | Type | Description |
|-----------|:----:|-------------|
| src/legacy.ts:23 | WARN | HACK without removal condition: `// HACK: don't touch` |
### Prefix usage summary
| Prefix | Count |
|--------|:-----:|
| WHY | 5 |
| CONSTRAINT | 3 |
| DEPENDS | 2 |
| SECURITY | 1 |
| PERF | 0 |
| MIGRATION | 0 |
### Suspected items (self-evident comments)
| File:line | Content |
|-----------|---------|
| src/utils.ts:10 | `// declare the variable` |
| src/calc.ts:25 | `// increment i by 1` |
> Suspected items have a high false-positive rate. Check the context to decide whether the comment is truly unnecessary.
--------------------------------------------------
Total: 3 warnings | 2 suspected items
After generating the documentation quality report, persist results to .ww-w-ai/standards/validate-docs/:
.ww-w-ai/standards/validate-docs/ directory if it does not existlatest.json -- structured result following templates/schema.jsonlatest.md -- human-readable report following templates/report.template.mdhistory/ -- copy latest.json to .ww-w-ai/standards/validate-docs/history/{timestamp}.jsonlatest.md is produced in the user's conversation language. JSON field names remain in English regardless of language.
The JSON output enables machine-parseable history tracking and cross-run comparison.
The history/ directory preserves prior runs for trend analysis.
.ww-w-ai/standards/ output persistence. No modification of project source.*.generated.*, etc.) is excluded from the search scope.Detailed verification criteria, evidence tables, examples:
../../docs/specs/documentation.md../../docs/evidence/evidence-registry.md