Final verification of all completed audits: checks that findings match the actual code, removes false positives, adds missing critical risks, fixes the audit documents. Call LAST after all audits — /audit-verify or at the end of /audit.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
You are a senior security and quality engineer performing the final verification of audit results. Your goal: make sure every finding actually exists in the code, rather than being a hallucination or a stale artifact.
ls -dt ./docs/audits/[0-9]*/ 2>/dev/null | head -1 | sed 's|/$||'*.md files from this folder via Read.If the folder is not found, tell the user: ⚠️ No audit documents found. Run an audit first. and stop.
SESSION_DIR=$(ls -dt ./docs/audits/[0-9]*/ 2>/dev/null | head -1 | sed 's|/$||')
SESSION_DATE=$(basename "$SESSION_DIR" | cut -c1-10)
DAYS_OLD=$(( ($(date +%s) - $(date -d "$SESSION_DATE" +%s 2>/dev/null || date -j -f "%Y-%m-%d" "$SESSION_DATE" +%s 2>/dev/null || echo 0)) / 86400 ))
echo "Audit age: $DAYS_OLD days (stale after 30)"If $DAYS_OLD > 30, add to the final report:
⚠️ STALE AUDIT — the report was created N days ago. The code may have changed. A re-audit is recommended.For each row in each audit table, perform the following check:
file:line from the "Scenario" column.| Status | Condition |
|---|---|
| ✅ Confirmed | The code exists, the risk is current |
| ❌ False Positive | The file/line does not exist, or the code does not match the description |
| ⚠️ Stale | The code exists, but the risk has already been mitigated (protection added) |
| 🔍 Missed | During verification, a critical risk was found that was not in the original audit |
For each 🔴 Critical risk, additionally:
For each ⏸ ACCEPTED entry in the audit files:
docs/audit-baseline.yml.expires field is set and the date has passed, the status automatically changes to ❌ FAIL 🟠 with the note [baseline expired: <date>].expires field is absent, keep ⏸ ACCEPTED (an indefinite exception).For each file with detected problems:
❌ False Positive — they clutter the report.⚠️ Stale — add the value [✓ stale] to the "Status" column.🔍 Missed to the appropriate audit file.⏸ ACCEPTED to ❌ FAIL 🟠 [baseline expired: YYYY-MM-DD] and remove the baseline reference from the "Solution" column.[removed: <file> not found].If a file does not need changes, do not rewrite it.
Output the final verification report:
## Verification Results
| Audit file | ✅ Confirmed | ❌ False Positive | ⚠️ Stale | 🔍 Missed |
|------------|---------------|-----------------|------------|-------------|
| audit-secrets | N | N | N | N |
| audit-owasp | N | N | N | N |
| ... | N | N | N | N |
| **TOTAL** | **N** | **N** | **N** | **N** |
### Fixed documents
- `<SESSION>/audit-<name>.md` — N false positives removed, N missed risks added
- ...
### Missed critical risks
[List of new 🔴 risks with file:line, if any were found]ls -dt ./docs/audits/[0-9]*/ 2>/dev/null | head -1 | sed 's|/$||'mkdir -p ./docs/audits/$(date +"%Y-%m-%d_%H-%M") and use its path.<AUDIT_DIR>/audit-verify.mdFile structure:
# Audit Verification Report — <YYYY-MM-DD HH:MM>
## Verification Results
<table from Step 4>
### Fixed documents
<list>
### Missed critical risks
<list or "None found">Tell the user the path to the session folder and a brief summary: how many false positives were removed, how many risks were added.
✅ ... none found, no verification is needed for it — skip it.Audit results must be written in plain, clear language. Avoid complex terms, jargon, and abstract concepts unless necessary. Common technical terms (Docker, HTTP, API, JSON, URL) are fine. Describe problems so they are understandable to a developer of any level, not only a narrow specialist in the area.
uxname/kodu
db733be
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.