skills/aposd-verifying-correctness/SKILL.md
Verifies implementation completeness across functional correctness, error handling, concurrency, and security dimensions using APOSD's post-implementation checklist. Run after a coding task is nominally complete.
npx skillsauth add ryanthedev/code-foundations aposd-verifying-correctnessInstall 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.
Design quality ≠ correctness. Well-designed code can still have bugs, missing requirements, or safety issues.
Run ALL dimension checks before claiming done. "I think I covered everything" without explicit mapping is a red flag.
For each dimension: detect if it applies, then verify.
Detect: Were requirements stated? (explicit list, user request, spec)
If YES, verify:
Red flag: "I think I covered everything" without explicit mapping
Detect: Any of these present?
If YES, verify:
Red flag: "It's probably fine" or "Python GIL handles it"
Detect: Can any operation fail?
If YES, verify:
except: or except Exception: passRed flag: "Errors are rare" or "caller handles it" without checking caller
Detect: Does code acquire resources?
If YES, verify:
Red flag: "It cleans up eventually" or daemon threads without shutdown
Detect: Does code handle variable-size input?
If YES, verify:
[], "", None, 0?Red flag: "Nobody would pass that" or "that's an edge case"
Detect: Does code handle untrusted input?
If YES, verify:
../ exploitation)Red flag: "It's internal only" (internals get exposed)
Detailed per-dimension checklists: Read(${CLAUDE_SKILL_DIR}/checklists.md)
When verifying, output:
## Correctness Verification
### Requirements: [PASS/FAIL/N/A]
- Requirement 1 → implemented in X
- Requirement 2 → implemented in Y
### Concurrency: [PASS/FAIL/N/A]
- Shared state: [list]
- Protection: [how]
### Errors: [PASS/FAIL/N/A]
- Failure points: [list]
- Handling: [approach]
### Resources: [PASS/FAIL/N/A]
- Acquired: [list]
- Released: [how]
### Boundaries: [PASS/FAIL/N/A]
- Edge cases: [list]
- Handling: [approach]
### Security: [PASS/FAIL/N/A]
- Untrusted input: [list]
- Validation: [approach]
**Verdict:** [DONE / NOT DONE - list blockers]
| Skill | Focus | When | |-------|-------|------| | aposd-designing-deep-modules | Design quality | FIRST—during design | | aposd-verifying-correctness | Actual correctness | BEFORE "done" | | cc-quality-practices | Testing/debugging | Throughout |
Order: Design → Implement → Verify (this skill) → Done
| After | Next | |-------|------| | All dimensions pass | Done (pre-commit gate) |
devops
Implements the Standard/Full planning pipeline for Medium and Complex tasks: multi-step discovery, phase decomposition with skill matching, cross-cutting concerns, and plan emission with Gate fields.
development
Provides all 23 Gang of Four patterns as a decision guide: maps code symptoms to patterns, then loads the structural recipe for the selected pattern.
development
Applies Code Complete's scientific debugging method: STABILIZE → LOCATE → HYPOTHESIZE → EXPERIMENT → FIX → TEST → SEARCH. For active bug investigation, not QA process design or test coverage planning.
development
Generates or updates docs/code-standards.md by scanning the codebase for actual conventions. Produces an example-rich standards file optimized for LLM consumers, grounded in the project's real patterns.