afc-qa
Project quality audit — test confidence, error handling gaps, code health
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Project quality audit — test confidence, error handling gaps, code health
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Code and component analysis — analyze code, trace flows, audit consistency, inspect components
Architecture analysis and design review
Full auto pipeline — run spec-to-clean cycle automatically for new features
Save session state for later resumption
Resolve spec ambiguities with clarifying questions
Pipeline artifact cleanup and codebase hygiene
| name | afc:qa |
| description | Project quality audit — test confidence, error handling gaps, code health |
| argument-hint | [scope: all, tests, errors, coverage, or specific concern] |
| user-invocable | true |
| context | fork |
| allowed-tools | ["Read","Grep","Glob","Bash"] |
| model | sonnet |
Detects quality gaps between structural correctness and actual runtime behavior. Read-only — does not modify any files. Reports findings to console only.
$ARGUMENTS — (optional) scope of audit. Defaults to all.
all — run all 5 categoriestests — category A only (Test Confidence)errors — category B only (Error Resilience)coverage — categories A + D (Test Confidence + API & Contract Safety)!cat .claude/afc.config.md 2>/dev/null || echo "[CONFIG NOT FOUND] Proceeding without config — read CLAUDE.md for project info."
Evaluate whether the test suite actually catches regressions.
Checks:
{config.architecture}){config.test} and analyze output (pass/fail counts, skipped tests, timing)Evaluate whether errors are handled consistently and helpfully.
Checks:
{config.code_style} error handling rules if availableEvaluate whether CI pipeline is healthy and reproducible.
Checks:
{config.ci} and {config.gate} commands, verify they passEvaluate whether interfaces between modules are sound.
Checks:
{config.architecture})Evaluate general code quality indicators.
Checks:
{config.code_style} rules if availableInterpret $ARGUMENTS to determine which categories to run:
| Argument | Categories |
|---|---|
all or empty | A, B, C, D, E |
tests | A |
errors | B |
coverage | A, D |
| free-form text | best-matching subset |
Run commands that produce real output:
{config.test} — capture pass/fail/skip counts and timing{config.gate} or {config.ci} — capture exit code and outputOnly run commands that exist in config. Skip gracefully if not configured.
For each active category:
{config.architecture} layer structureAlways read ${CLAUDE_SKILL_DIR}/../../docs/critic-loop-rules.md first and follow it. Safety cap: 5 passes.
Focus the critic on:
Output the final report in this format:
## QA Audit: {project name or directory}
### Category A: Test Confidence
{findings with file:line references}
Verdict: PASS | WARN | FAIL
### Category B: Error Resilience
{findings with file:line references}
Verdict: PASS | WARN | FAIL
### Category C: Build & CI Integrity
{findings with file:line references}
Verdict: PASS | WARN | FAIL
### Category D: API & Contract Safety
{findings with file:line references}
Verdict: PASS | WARN | FAIL
### Category E: Code Health Signals
{findings with file:line references}
Verdict: PASS | WARN | FAIL
### Summary
├─ A: Test Confidence — {PASS|WARN|FAIL} {(N issues) if any}
├─ B: Error Resilience — {PASS|WARN|FAIL} {(N issues) if any}
├─ C: Build & CI — {PASS|WARN|FAIL} {(N issues) if any}
├─ D: API & Contract — {PASS|WARN|FAIL} {(N issues) if any}
└─ E: Code Health — {PASS|WARN|FAIL} {(N issues) if any}
Total: {N} PASS, {N} WARN, {N} FAIL
Priority fixes: {top 3 most impactful issues}
file:line reference or command output.