一键导入
validate-cc
Validates CC configuration quality based on discovery (PASS/FAIL + statistics)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validates CC configuration quality based on discovery (PASS/FAIL + statistics)
用 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-cc |
| description | Validates CC configuration quality based on discovery (PASS/FAIL + statistics) |
| triggers | ["validate-cc","quality check"] |
| user-invocable | true |
| allowed-tools | ["Read","Write","Glob","Grep","Bash"] |
Corresponding rules: docs/specs/rule-writing.md, docs/specs/skill-design.md, docs/specs/agent-design.md, docs/specs/settings-design.md
Validates only the items that exist in the project. Categories that do not exist are automatically omitted from the report. For categories that do exist, provides PASS/FAIL results and statistics per category.
Categories whose target directory does not exist (e.g.,
.claude/agents/missing) are automatically omitted from the report.
| Item | Verification method | Evidence type |
|---|---|---|
| Existence (EXISTS) | CLAUDE.md file present | CC_OFFICIAL |
| Structure (STRUCTURE) | includes Tech Stack or Architecture patterns | EMPIRICAL |
| Technical depth (DEPTH) | 3 or more ## sections | EMPIRICAL |
| Item | Verification method | Evidence type |
|---|---|---|
| Directory (DIR) | .claude/rules/ present | CC_OFFICIAL |
| File count (FILES) | 2 or more .md files | EMPIRICAL |
| WHY/CONSTRAINT (META) | ratio of rules that contain WHY or CONSTRAINT | EMPIRICAL |
| Scoping (SCOPING) | paths: or scope: or applicable-scope specified | EMPIRICAL |
| Item | Verification method | Evidence type |
|---|---|---|
| Directory (DIR) | .claude/skills/ present | CC_OFFICIAL |
| Frontmatter (FRONTMATTER) | SKILL.md has YAML frontmatter (name, description) | CC_OFFICIAL |
| Rule-Skill ratio (RULE_SKILL_RATIO) | ratio of skill directories to rule files | EMPIRICAL |
| Gate (GATE) | SKILL.md contains "Do not proceed" or "Mandatory Output" or "Pre-Output Checklist" | EMPIRICAL |
| Item | Verification method | Evidence type |
|---|---|---|
| Directory (DIR) | .claude/agents/ present | CC_OFFICIAL |
| File count (FILES) | 1 or more .md files | EMPIRICAL |
| Allowed Tools (ALLOWED_TOOLS) | agent defines allowed_tools or allowed-tools | CC_OFFICIAL |
| Item | Verification method | Evidence type |
|---|---|---|
| Existence (EXISTS) | .claude/settings.json present | CC_OFFICIAL |
| Deny (DENY) | deny key + contains .env or rm -rf | CC_OFFICIAL |
| Hook (HOOK) | PreToolUse or PostToolUse present | CC_OFFICIAL |
| Item | Verification method | Evidence type |
|---|---|---|
| Existence (EXISTS) | README.md file present | INDUSTRY_STD |
| Content (CONTENT) | 3 or more ## sections | INDUSTRY_STD |
| Item | Verification method | Evidence type |
|---|---|---|
| Directory (DIR) | .claude/commands/ present | CC_OFFICIAL |
| Naming (NAMING) | self-descriptive name (warn on abbreviations, "and") | EMPIRICAL |
| Single action (SINGLE_ACTION) | no branching/looping logic (if/else, for each) | EMPIRICAL |
Output the following matrix before grade calculation. Every cell must be filled. If any cell is empty, do not proceed to grading.
| Category | Status | Items Checked | Pass | Warn | Fail | Evidence |
|---|---|---|---|---|---|---|
| CLAUDE.md | ? | ? | ? | ? | ? | {tools, files checked} |
| Rules | ? | ? | ? | ? | ? | {tools, files checked} |
| Skills | ? | ? | ? | ? | ? | {tools, files checked} |
| Agents | ? | ? | ? | ? | ? | {tools, files checked} |
| Settings | ? | ? | ? | ? | ? | {tools, files checked} |
| README.md | ? | ? | ? | ? | ? | {tools, files checked} |
| Commands | ? | ? | ? | ? | ? | {tools, files checked} |
Status values: PASS (verified clean), NOT_APPLICABLE (category directory not found -- omitted from report), SKIPPED (plugin issue), SHALLOW (partial check)
| Condition | Grade | Meaning |
|---|---|---|
| 0 failures, 0 warnings | Excellent | CC configuration is mature enough for consistent AI collaboration |
| 0 failures | Good | basic structure is in place but some areas need reinforcement |
| 1-2 failures | Needs Improvement | core configuration is lacking, AI behavior is inconsistent |
| 3+ failures | Poor | CC configuration is nearly absent, AI must guess everything |
Glob to confirm file/directory existenceRead to read file contentsGrep for pattern matching (WHY, CONSTRAINT, paths:, etc.)Produce the validation report in the user's conversation language.
Output the validation results in the following format:
CC Configuration Quality Report
==================================================
[PASS] CLAUDE.md (3/3)
[v] Existence
[v] Structure
[v] Technical depth
[WARN] Rules (3/4)
[v] Directory
[v] File count
[!] WHY/CONSTRAINT -- 50% coverage
[v] Scoping
[PASS] Skills (3/3)
[v] Directory
[v] Frontmatter
[v] Rule-Skill ratio
[PASS] Settings (3/3)
[v] Existence
[v] Deny
[v] Hook
[PASS] README.md (2/2)
[v] Existence
[v] Content
--------------------------------------------------
Total: 14/15 passed | 1 warning | 0 failures
Grade: Good
Improvement suggestions: 1
- Add WHY metadata to rules
In the example above, the Agents category is automatically omitted because the
.claude/agents/directory does not exist.
| Icon | Meaning | Condition |
|---|---|---|
[PASS] | overall pass | 0 failed items |
[WARN] | warnings present | 0 failures, 1+ warnings |
[FAIL] | failures present | 1+ failed items |
[v] | item pass | status == pass |
[!] | item warning | status == warn |
[x] | item failure | status == fail |
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-cc/:
After generating the validation report, persist results to .ww-w-ai/standards/validate-cc/:
.ww-w-ai/standards/validate-cc/ 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-cc/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.mkdir -p .ww-w-ai/standards/validate-cc/history) and Grep pattern matching.Detailed verification criteria, evidence tables, examples:
../../docs/specs/rule-writing.md, ../../docs/specs/skill-design.md, ../../docs/specs/agent-design.md, ../../docs/specs/settings-design.md, ../../docs/specs/claude-md-design.md, ../../docs/specs/readme-design.md, ../../docs/specs/commands-design.md../../docs/evidence/evidence-registry.md