.claude/skills/feature-audit/SKILL.md
Multi-source audit of a shipped feature against its original plans, product vision, UI/UX best practices, and live browser inspection. Produces consolidated findings with prioritized recommendations.
npx skillsauth add benjaminshoemaker/ai_coding_project_base feature-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive post-implementation audit of a shipped feature. Gathers evidence from 5 independent sources, then synthesizes into a consolidated analysis with prioritized findings.
Not for: Code-level diff reviews (use /codex-review), pre-ship verification (use /verify-task), or security scanning (use /security-scan).
| Argument | Example | Default | Description |
|----------|---------|---------|-------------|
| --spec FILE | --spec features/recs/FEATURE_SPEC.md | — | Path to the feature specification |
| --plan FILE | --plan ~/.claude/plans/my-plan.md | — | Path to the execution/implementation plan |
| --vision DIR | --vision docs/vision/ | — | Directory containing product vision docs (VISION.md, PRODUCT_PRINCIPLES.md, PRODUCT_MAP.md) |
| --url URL | --url http://localhost:4321 | — | Base URL of the running application |
| --login-url URL | --login-url /api/dev/login | — | Path to auto-login endpoint (appended to base URL) |
| --pages PATHS | --pages "/overview,/communities/CRTET" | — | Comma-separated pages to inspect |
| --skip-browser | | false | Skip browser inspection (when app isn't running) |
| --skip-codex | | false | Skip Codex consultation (when Codex CLI unavailable) |
| --skip-research | | false | Skip UI/UX web research |
Copy this checklist and track progress:
Feature Audit Progress:
- [ ] Step 1: Gather inputs (interactive Q&A for missing args)
- [ ] Step 2: Read feature plans and product context
- [ ] Step 3: Launch parallel research streams
- [ ] 3a: Code exploration (what was actually built)
- [ ] 3b: UI/UX pattern research (web search)
- [ ] 3c: Codex consultation (cross-model analysis)
- [ ] 3d: Browser inspection (live UI audit)
- [ ] Step 4: Wait for all streams to complete
- [ ] Step 5: Synthesize consolidated analysis
- [ ] Step 6: Present findings to user
For each required input not provided as an argument, ask the user interactively.
See references/input-gathering-options.md for the full AskUserQuestion option blocks for each input: feature spec location, execution plan location, product vision docs, application URL, pages to inspect, and login URL.
Read all located documents into context:
Extract key context for downstream agents:
Launch up to 4 independent research streams using the Task tool. All streams run in parallel.
Task(subagent_type="Explore", run_in_background=true)
Prompt the agent to:
Skip if --skip-research is set.
Task(subagent_type="general-purpose", run_in_background=true)
Prompt the agent to research (via WebSearch):
Skip if --skip-codex is set.
Pre-flight checks:
codex --version 2>/dev/null || echo "CODEX_NOT_AVAILABLE"
echo "${CODEX_SANDBOX:-NOT_IN_CODEX}"
If Codex is available and we're not inside Codex:
run_in_background for the Bash command):cat {prompt_file} | codex exec \
--sandbox danger-full-access \
-c 'approval_policy="never"' \
-c 'features.search=true' \
--model $CODEX_MODEL \
-o $OUTPUT_FILE \
-
Timeout: Use Bash tool timeout parameter of TIMEOUT_MINS * 60 * 1000 ms.
Skip if --skip-browser is set.
Task(subagent_type="general-purpose", run_in_background=true)
Prompt the agent to:
Use Playwright MCP tools as primary, Chrome DevTools MCP as fallback.
Check on background agents periodically. When all have completed, collect their outputs.
If any stream fails:
Merge findings from all completed streams into a single structured report. The report has these sections:
See REPORT_TEMPLATE.md for the full output template.
Section 1: Spec Alignment Assessment
Section 2: Critical Issues (P0)
Section 3: UX/UI Assessment
Section 4: Strategic Assessment
Section 5: Prioritized Recommendations
Section 6: Summary of Next Steps
Present the consolidated report directly to the user in the conversation. Include:
| Situation | Action | |-----------|--------| | Feature spec not found | Ask user for path; if none exists, skip spec alignment section | | No vision docs found | Skip strategic alignment section; note in report | | App not running | Skip browser inspection; note in report | | Codex CLI not installed | Skip Codex consultation; note in report | | Codex times out | Report partial output if available; note timeout | | Browser agent crashes | Report what was captured before crash; continue with other streams | | All streams fail | Report failure; suggest running individual checks manually | | Git history unavailable | Use file modification times instead of git log for change detection |
Read from .claude/settings.local.json if present:
{
"featureAudit": {
"codexModel": "gpt-5.2",
"codexTimeoutMinutes": 20,
"browserTimeout": 60000,
"maxPagesToInspect": 10,
"skipCodex": false,
"skipBrowser": false,
"skipResearch": false
}
}
Falls back to codexConsult or codexReview config for model/timeout if featureAudit section is absent.
Full audit with all streams:
/feature-audit --spec features/recommendations_overhaul/FEATURE_SPEC.md \
--plan ~/.claude/plans/floating-whistling-fairy.md \
--vision docs/vision/ \
--url http://localhost:4321 \
--login-url /api/dev/login \
--pages "/overview,/communities/CRTET,/communities/CRTET/what-if/123"
Quick audit without browser (app not running):
/feature-audit --spec features/auth/FEATURE_SPEC.md --skip-browser
Minimal audit (just spec alignment + code exploration):
/feature-audit --spec features/search/FEATURE_SPEC.md --skip-browser --skip-codex --skip-research
testing
Audit project alignment with VISION.md, identify SDLC gaps, and generate feature proposals. Use when reviewing strategic direction or planning new features.
development
Run code-verification on a specific task. Use to verify a single task's acceptance criteria after implementation.
testing
Resolve Vercel preview deployment URL for the current git branch. Invoked by browser-verification when deployment.enabled is true, or directly to check deployment status. Use to check deployment status or when browser verification needs a URL.
tools
Discover and sync all toolkit-using projects with the latest skills. Use when skills are modified, after the post-commit hook reminds you, or to batch-sync multiple projects.