This skill should be used when the user asks to "audit project standards", "check standards compliance", "devkit audit", "find standards violations", "are we following devkit standards", "what's not following standards", "compliance report", "規約チェック", "スタンダード監査", or "規約違反を探して". It actively scans code and reports violations. Do NOT use for project scaffolding (use init-project), single-CLI-tool checks (use cli-compliance), or looking up what the standards are (use standards).
From devkitnpx claudepluginhub masseater/claude-code-plugin --plugin devkitThis skill uses the workspace's default tool permissions.
scripts/audit.test.tsscripts/audit.tsscripts/checks/ci/index.test.tsscripts/checks/ci/index.tsscripts/checks/code-patterns/index.test.tsscripts/checks/code-patterns/index.tsscripts/checks/config-files/index.test.tsscripts/checks/config-files/index.tsscripts/checks/documentation/index.test.tsscripts/checks/documentation/index.tsscripts/checks/monorepo/index.test.tsscripts/checks/monorepo/index.tsscripts/checks/quality-libs/index.test.tsscripts/checks/quality-libs/index.tsscripts/checks/scripts/index.test.tsscripts/checks/scripts/index.tsscripts/checks/test-structure/index.test.tsscripts/checks/test-structure/index.tsscripts/checks/versions/index.test.tsscripts/checks/versions/index.tsSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Orchestrates large features via RFC decomposition into verifiable work units in a multi-agent DAG, with quality gates, merge queues, complexity tiers, and recovery. Use for complex, multi-pass tasks.
Audit a project against devkit standards and report violations with improvement recommendations.
$ARGUMENTS
/devkit:standards using the Skill tool. This loads the SKILL.md content (Philosophy section + Bundled Resources list) into context.pnpm-workspace.yaml or package.json workspaces field exists → add monorepo type.Types are not mutually exclusive — a project can be multiple types simultaneously.
Monorepo handling:
pnpm-workspace.yaml (or package.json workspaces)package.json — log a warning for each)Dispatch model: For each audit scope (single project, or each monorepo workspace + root), launch one subagent per applicable reference in parallel.
Use the standards-auditor agent (subagent_type: "devkit:standards-auditor"). Each invocation receives this prompt:
Audit scope: {scope_label}
Scope path: {absolute_path_to_scope}
Scope type: {detected_types}
## Standards to check
### Philosophy
{Philosophy section text from Step 1}
### Reference: {reference_filename}
{full content of the reference file}
Subagent failure handling: If a subagent times out, returns non-JSON output, or returns JSON that is not an array of the specified shape, add a warning to the report: [{reference_name}] Subagent failed: {reason}.
Collect all subagent JSON results.
Deduplication: If multiple findings share the same file + line, keep only the one from the alphabetically-first rule value. Findings with different line values (or different file values) are always distinct.
Rendering rules:
file + line present → render as `file:line`file present, line is null → render as `file`(project-level)Ordering: Sort findings by file path (alphabetical), then line number (ascending, nulls last).
Format for single projects:
## Standards Audit Report
Project: {path}
Type: {detected types}
### Violations
- [{rule}] `file:line` — message
### Recommendations
- [{rule}] `file` — message
### Warnings
- [{reference}] Subagent failed: {reason}
Summary: N violations, M recommendations
Format for monorepos (root first, then workspaces alphabetically):
## Standards Audit Report
Project: {monorepo root}
Type: monorepo
### (root)
#### Violations
- [{rule}] `file:line` — message
### apps/web (web)
#### Recommendations
- [{rule}] `file` — message
Summary: N violations, M recommendations across K scopes
Omit empty sections (including Warnings if none). If no findings across all scopes, report: "All checks passed."
For mechanical checks that run without AI, use the automated audit script:
bun skills/standards-audit/scripts/audit.ts [project-path]
Checks config-files, scripts, quality-libs, versions, monorepo, ci, test-structure, code-patterns, documentation and more. Categories expand automatically as new check modules are added.
The script auto-discovers check modules from scripts/checks/*/index.ts. To add new checks, create a new directory with an index.ts exporting meta: CheckMeta and run(ctx: ProjectContext): Promise<Finding[]>.
Set DEVKIT_AUDIT_ON_STOP=1 to run the audit automatically when Claude stops. Violations block the stop and force the AI to address them.