Find UI inconsistencies in your code — off-grid spacing, wrong depth strategy, out-of-palette colors, and component drift from established patterns. Reports violations with file and line numbers. Add --fix to auto-correct safe issues.
From claude-frontforgenpx claudepluginhub thiagoedson/claude-frontforge --plugin claude-frontforgecommands//auditLogs agent interactions (prompts, responses, tool calls) to append-only .beads/interactions.jsonl. Also supports labeling prior entries via record|label args.
/auditAudits UI code against design system for spacing, depth, color, and pattern violations. Reports file-specific issues and suggestions. Supports path argument or defaults to common UI paths.
/auditPerforms security audit of codebase covering dependencies, secrets, OWASP Top 10, inputs, and auth. Produces severity-prioritized report with findings, fixes, and references.
/auditRuns Rust security audits (default) with cargo audit and geiger, or safety/concurrency/full modes using miri, rudra, lockbud. Outputs prioritized vulnerability reports and fix recommendations.
/auditAudits iOS/Swift projects for issues like memory leaks, concurrency, accessibility, and security. Analyzes codebase to suggest relevant audits or runs specified area.
/auditPerforms security audit on codebase or specified target, checking dependency vulnerabilities, auth, input validation, data exposure, configs, and secrets. Outputs prioritized findings with remediation steps.
Check existing code against your design system.
/audit <path> # Audit specific file/directory
/audit # Audit common UI paths
/audit <path> --fix # Auto-fix violations where safe
If .frontforge/system.md exists:
Spacing violations
Depth violations
Color violations
Pattern drift
Report format:
Audit Results: src/components/
Violations:
Button.tsx:12 - Height 38px (pattern: 36px)
Card.tsx:8 - Shadow used (system: borders-only)
Input.tsx:20 - Spacing 14px (grid: 4px, nearest: 12px or 16px)
Suggestions:
- Update Button height to match pattern
- Replace shadow with border
- Adjust spacing to grid
If no system.md:
No design system to audit against.
Create a system first:
1. Build UI → establish system automatically
2. Run /extract → create system from existing code
When --fix is passed, automatically correct safe violations:
Safe to auto-fix:
Requires confirmation:
Always show a diff preview and ask for confirmation before applying fixes:
Ready to fix 3 violations:
Button.tsx:12 — 38px → 36px (pattern)
Card.tsx:8 — shadow → border (depth)
Input.tsx:20 — 14px → 16px (grid)
Apply these changes? (y/n/review each)
--fix: collect safe fixes, preview diff, apply on confirmation