ワンクリックで
audit
Comprehensive project audit — runs all available validation skills, identifies gaps, and provides specific improvement recommendations
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Comprehensive project audit — runs all available validation skills, identifies gaps, and provides specific improvement recommendations
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 | audit |
| description | Comprehensive project audit — runs all available validation skills, identifies gaps, and provides specific improvement recommendations |
| triggers | ["audit","gap analysis"] |
| 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, docs/specs/claude-md-design.md, docs/specs/readme-design.md, docs/specs/documentation.md, docs/specs/git.md
Cross-plugin rules (when dari-devtools is installed): dari-devtools:rules/security.md, dari-devtools:rules/architecture.md, dari-devtools:rules/testing.md
A comprehensive project audit that dynamically discovers and sequentially runs every available validation skill (standards + devtools plugins). Identifies categories with failures or warnings, then references the design guide rules to propose specific improvement steps.
Where the individual validate-/scan- skills show "what is missing", /audit orchestrates all of them and guides "how to improve".
Dynamically discover and sequentially run every available validation skill. Each skill must execute at full depth -- not just a simple pattern grep.
For each discovered skill, run the following steps in order. Do not skip any step. Do not proceed to the next skill until all steps complete.
Scan for validation skills by naming convention:
validate* patternvalidate* or scan-* patternDiscovery is automatic -- future skills that follow these naming patterns are included without changes to SKILL.md.
For each discovered skill:
Skills from uninstalled plugins are skipped gracefully:
[SKIPPED] scan-security -- dari-devtools plugin not installed
[SKIPPED] validate-architecture -- dari-devtools plugin not installed
[SKIPPED] validate-tests -- dari-devtools plugin not installed
Skipped skills do not affect the overall grade calculation.
Output the following matrix before proceeding to Step 2. Every cell must be filled, including Status, Evidence, and Depth Proof columns. Do not proceed if any cell is empty. "PASS" status with 0 items checked is invalid -- use NOT_APPLICABLE or SHALLOW instead.
Skill Execution Matrix:
| Skill | Status | Items Checked | Pass | Warn | Fail | Evidence | Depth Proof |
|---|---|---|---|---|---|---|---|
| validate-cc | ? | ? | ? | ? | ? | {tools, files} | SKILL.md read: Y/N, all criteria: Y/N |
| validate-docs | ? | ? | ? | ? | ? | {tools, files} | SKILL.md read: Y/N, all criteria: Y/N |
| validate-git | ? | ? | ? | ? | ? | {tools, files} | SKILL.md read: Y/N, all criteria: Y/N |
| scan-security | ? | ? | ? | ? | ? | {tools, files} | SKILL.md read: Y/N, all criteria: Y/N |
| validate-architecture | ? | ? | ? | ? | ? | {tools, files} | SKILL.md read: Y/N, all criteria: Y/N |
| validate-tests | ? | ? | ? | ? | ? | {tools, files} | SKILL.md read: Y/N, all criteria: Y/N |
Status values: PASS (verified clean), NOT_APPLICABLE (no target), SKIPPED (plugin not installed), SHALLOW (target resolution failed)
Per-category audit matrix (by relevant category):
Rules verification matrix (per rule file):
| File | WHY | CONSTRAINT | Scope | Good/Bad | DEPENDS | Exceptions |
|---|---|---|---|---|---|---|
| {file} | ✓/✗ | ✓/✗ | ✓/✗ | ✓/✗ | ✓/✗ | ✓/✗ |
Settings verification matrix:
| Item | Check | Result |
|---|---|---|
| deny: .env | present? | ✓/✗ |
| deny: rm -rf | present? | ✓/✗ |
| deny: push --force | present? | ✓/✗ |
| deny: reset --hard | present? | ✓/✗ |
| allow: no Bash(*) | confirmed? | ✓/✗ |
| hook: PreToolUse | present? | ✓/✗ |
| hook: PostToolUse | present? | ✓/✗ |
Commands verification matrix (per command file):
| File | Self-descriptive name | Single action | $ARGUMENTS guidance |
|---|---|---|---|
| {file} | ✓/✗ | ✓/✗ | ✓/✗/N/A |
Sort all results by priority:
After all validation skills complete and before referencing the design rules, perform the following category-specific audit directly. This is an additional check beyond what the individual validate-* skills cover.
Do not skip this step. Every criteria table must have Status and Evidence fully populated.
Read each .claude/rules/*.md file and verify:
| Item | Verification pattern | Reference rule | Evidence type |
|---|---|---|---|
| WHY present | > WHY: or ## Why | rule-writing.md section 1 | EMPIRICAL |
| CONSTRAINT present | CONSTRAINT or ## Constraint | rule-writing.md section 2 | EMPIRICAL |
| paths scoping | paths: or scope or applicable scope | rule-writing.md section 3 | EMPIRICAL |
| Good/Bad examples | ### Good and ### Bad | rule-writing.md section 6 | EMPIRICAL |
| DEPENDS | DEPENDS or ## Dependencies | rule-writing.md section 4 | EMPIRICAL |
| Exceptions | ## Exceptions | rule-writing.md section 5 | EMPIRICAL |
| Item | Verification pattern | Reference rule | Evidence type |
|---|---|---|---|
| frontmatter 4 fields | name, description, triggers, allowed-tools | skill-design.md section 2 | CC_OFFICIAL |
| Corresponding Rule reference | rules/ path reference in body | skill-design.md section 1 | EMPIRICAL |
| Input/Output spec | Input/Output section | skill-design.md section 3 | EMPIRICAL |
| Reference implementation | includes execution result example | skill-design.md section 3 | EMPIRICAL |
| Item | Verification pattern | Reference rule | Evidence type |
|---|---|---|---|
| Single concern | concern clarity in description | agent-design.md section 1 | EMPIRICAL |
| allowed_tools restriction | warn if Bash, Write, Edit included | agent-design.md section 2 | CC_OFFICIAL |
| Output format | structured format defined (table/JSON) | agent-design.md section 3 | EMPIRICAL |
| Model selection | model field present (haiku/sonnet/opus) | agent-design.md section 4 | CC_OFFICIAL |
| Item | Verification pattern | Reference rule | Evidence type |
|---|---|---|---|
| deny adequacy | .env, rm -rf, push --force, reset --hard | settings-design.md section 2 | CC_OFFICIAL |
| allow granularity | no Bash(*) or allow: ["*"] | settings-design.md section 1 | CC_OFFICIAL |
| Hook design | PreToolUse/PostToolUse present | settings-design.md sections 3-4 | CC_OFFICIAL |
| Item | Verification pattern | Reference rule | Evidence type |
|---|---|---|---|
| Self-descriptive name | abbreviated (<= 2 chars), contains "and" | commands-design.md sections 5, 2 | EMPIRICAL |
| Single action | if/else, for each, conditional branching patterns | commands-design.md section 1 | EMPIRICAL |
| $ARGUMENTS guidance | usage stated when $ARGUMENTS is used | commands-design.md section 3 | EMPIRICAL |
For each weak item, Read the corresponding design rule and extract specific improvement steps:
| Source skill | Category | Reference rule | Evidence type |
|---|---|---|---|
| validate-cc | CLAUDE.md | docs/specs/claude-md-design.md | CC_OFFICIAL |
| validate-cc | Rules | docs/specs/rule-writing.md | EMPIRICAL |
| validate-cc | Skills | docs/specs/skill-design.md | CC_OFFICIAL |
| validate-cc | Agents | docs/specs/agent-design.md | CC_OFFICIAL |
| validate-cc | Settings | docs/specs/settings-design.md | CC_OFFICIAL |
| validate-cc | README.md | docs/specs/readme-design.md | INDUSTRY_STD |
| validate-docs | Documentation | docs/specs/documentation.md | INDUSTRY_STD |
| validate-git | Git | docs/specs/git.md | INDUSTRY_STD |
| scan-security | Security | dari-devtools:rules/security.md | INDUSTRY_STD |
| validate-architecture | Architecture | dari-devtools:rules/architecture.md | INDUSTRY_STD |
| validate-tests | Testing | dari-devtools:rules/testing.md | INDUSTRY_STD |
When a reference rule file is absent (plugin not installed), provide default guidance based on the finding type and general best practices.
Verify every item before drafting the report. If any item is unchecked, go back and complete it.
Output current status per category + specific improvement actions + expected result changes. Each recommendation includes the specific section of the reference design rule and the evidence type.
Produce the audit report in the user's conversation language.
Output the audit results in the following format:
Comprehensive Audit Report
==================================================
Total: 25/40 passed | 5 warnings | 10 failures
Skills executed: 6 | Skills skipped: 1
Grade: Needs Improvement
==================================================
--- Part 1: CC configuration (from /validate-cc) ---
Current status:
[v] Directory exists
[v] 2 files
[x] WHY/CONSTRAINT: only 1 of 2 included (50%)
[x] paths scoping absent
Improvement actions:
1. Add WHY (FAIL -> PASS)
Add a WHY paragraph at the top of each rule file.
Evidence: rule-writing.md section 1 [EMPIRICAL]
Example:
> WHY: By default Claude does X.
> Without this rule, Y occurs.
2. Add CONSTRAINT (FAIL -> PASS)
State the specific consequence of a violation.
Evidence: rule-writing.md section 2 [EMPIRICAL]
Example:
### CONSTRAINT
- On violation: [specific consequence, e.g., build failure, security vulnerability exposure]
3. Add paths scoping (FAIL -> PASS)
Specify applicable scope with a glob pattern.
Evidence: rule-writing.md section 3 [EMPIRICAL]
Example:
## Applicable Scope
- paths: src/**/*.ts
Expected change: 2 failures -> 0 failures
--- Part 2: Code documentation (from /validate-docs) ---
Findings:
[ERROR] src/auth/login.ts:42 -- function missing JSDoc comment
[WARN] src/utils/helper.ts:17 -- TODO without issue reference
Improvement actions:
1. Add JSDoc to undocumented functions (ERROR -> PASS)
Evidence: documentation.md section 2 [EMPIRICAL]
Expected change: 1 error -> 0 errors
--- Part 3: Git compliance (from /validate-git) ---
Findings:
[ERROR] branch "fix-login" -- does not follow naming convention
[WARN] commit "fixed stuff" -- missing Conventional Commits type
Improvement actions:
1. Rename branch per convention (ERROR -> PASS)
Evidence: git.md section 1 [EMPIRICAL]
Expected change: 1 error -> 0 errors
--- Part 4: Security (from /scan-security) ---
Findings:
[CRITICAL] src/api/user.ts:88 -- SQL injection pattern detected
[HIGH] src/config/db.ts:12 -- hardcoded credential
Improvement actions:
1. Replace raw SQL with parameterized queries (CRITICAL -> PASS)
Evidence: dari-devtools:rules/security.md [INDUSTRY_STD]
Expected change: 1 critical -> 0 critical
--- Part 5: Architecture (from /validate-architecture) ---
Findings:
[HIGH] src/ui/UserCard.tsx -- imports data layer directly
Improvement actions:
1. Access data through the service layer (HIGH -> PASS)
Evidence: dari-devtools:rules/architecture.md [INDUSTRY_STD]
Expected change: 1 high -> 0 high
--- Part 6: Tests (from /validate-tests) ---
Findings:
[WARN] src/__tests__/auth.test.ts -- tests implementation details instead of behavior
Improvement actions:
1. Rewrite tests to verify observable behavior (WARN -> PASS)
Evidence: dari-devtools:rules/testing.md [INDUSTRY_STD]
Expected change: 1 warning -> 0 warnings
--- Skipped skills ---
[SKIPPED] validate-tests -- dari-devtools plugin not installed
==================================================
Improvement priority (consolidated)
==================================================
Priority 1 [CRITICAL] Security -- SQL injection (scan-security)
Priority 2 [HIGH] Security -- hardcoded credential (scan-security)
Priority 3 [HIGH] Architecture -- cross-layer import (validate-architecture)
Priority 4 [ERROR] Rules -- missing WHY/CONSTRAINT (validate-cc)
Priority 5 [ERROR] Git -- branch naming violation (validate-git)
Priority 6 [WARN] Tests -- implementation detail testing (validate-tests)
==================================================
Expected grade after all improvements: Needs Improvement -> Excellent
==================================================
Calculate whether each improvement action can convert a FAIL into a PASS:
Expected change = current failures/warnings - improvable items
Meaning of the evidence type shown with each improvement recommendation:
| Evidence type | Meaning | Confidence |
|---|---|---|
| CC_OFFICIAL | Behavior confirmed in Claude Code official documentation | High |
| CC_SCHEMA | Confirmed in the Claude Code settings file schema | High |
| ANTHROPIC_DOCS | Anthropic official guidelines | High |
| INDUSTRY_STD | Industry standard (Clean Architecture, OWASP, etc.) | Medium |
| EMPIRICAL | Pattern validated through team experiments/experience | Medium |
Verify the JSON output before writing to .ww-w-ai/standards/audit/:
After generating the audit report, persist results to .ww-w-ai/standards/audit/:
.ww-w-ai/standards/audit/ 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/audit/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 audit runs for trend analysis.
.ww-w-ai/standards/ output persistence. No modification of project source.mkdir -p .ww-w-ai/standards/audit/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/documentation.md, ../../docs/specs/git.md, ../../docs/specs/commands-design.md../../docs/evidence/evidence-registry.md