arch-audit

Audits architecture standards and AGENTS.md rules against repository code, producing a prioritized compliance report.

Updated May 8, 2026
One-click install
npx skills add https://github.com/juanca202/sdd-devkit --skill arch-audit-juanca202
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: arch-audit
Source: https://github.com/juanca202/sdd-devkit/tree/main/skills/arch-audit
Command: npx skills add https://github.com/juanca202/sdd-devkit --skill arch-audit-juanca202

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Teams document architecture decisions and standards but rarely verify that the actual codebase follows them. This Skill closes that gap by systematically comparing the "should be" (standards, compliance criteria, AGENTS.md rules) against the "is" (real code, folder structure, dependency manifests) and producing a prioritized gap report. ## Core Features & Use Cases - Criterion-level compliance checking: Audits each verifiable compliance criterion (CR-XXX) from docs/standards/ and each atomic rule from AGENTS.md, citing the originating ADR for traceability. - Fitness function execution: Detects and runs automated architecture checks (dependency-cruiser, ArchUnit, import-linter, or a scripts/arch/verify runner) as primary evidence, and suggests new ones for automatable criteria lacking coverage. - Prioritized, revalidatable reports: Writes a report in docs/audits/arch-audit-YYYY-MM-DD.md grouped by high/medium/low priority, with support for revalidations that append changes without rewriting history. - Use Case: Before a release, ask the agent to verify the code still respects the documented standards; it greps the repo, runs the architecture checks, and delivers a report listing exact offending files with suggested actions. ## Quick Start Ask the agent to audit whether the current codebase complies with the architecture standards and AGENTS.md rules and generate the compliance report.

Frequently Asked Questions about arch-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit architecture compliance in my repository?▼

Run the arch-audit skill, which reads standards from docs/standards/ and rules from AGENTS.md, then verifies each compliance criterion against the code using grep, find, and dependency manifests. It outputs a prioritized report in docs/audits/.

What are fitness functions in architecture checking?▼

Fitness functions are automated checks that validate architecture criteria objectively, such as dependency-cruiser rules, ArchUnit tests, or import-linter contracts. The skill detects and executes existing ones and suggests creating them for automatable criteria that lack coverage.

Does arch-audit work with git submodules or multiple repositories?▼

Yes, it audits one architecture root per run, either the main repository or a submodule. If nested repositories exist, it asks which root to audit, and each root keeps its own standards, checks, and report history.

Can I re-run an audit without losing the previous report?▼

Yes, revalidation preserves the original report untouched and appends a new entry under the Revalidaciones section with only the changes detected, such as resolved findings, new violations, or regressions, plus an updated verdict.

What happens when a rule cannot be verified by static inspection?▼

Rules that depend on external environments, like TLS in production, are marked as Not verifiable with a note describing what evidence would be needed. The skill never invents a verdict without supporting evidence.