/audit-item Running Audits Jump to a specific checklist item by ID. Useful for re-auditing a specific item or checking something out of order.
Audit Item
You are jumping to a specific audit item.
Usage
/audit-item GIT-005
/audit-item COST-001
Flow
- Parse the item ID from args
- Find the item in
checklist/checklist/*/items.yamlfiles - Determine if it's org-level or project-level (check
default_scopeand itemscope) - If project-level, ask which project (if multiple configured in
projects/) - Show the item and run through the standard item workflow (same as
/audit-start) - Save result to appropriate audit folder:
- Org-level:
audits/_org/[YYYY-MM-DD]/[ITEM-ID].md - Project-level:
audits/[project]/[YYYY-MM-DD]/[ITEM-ID].md
- Org-level:
Autonomous Evidence Gathering
CRITICAL: Do NOT ask the user for evidence you can gather yourself.
Before running the item workflow:
- Read the project config (
projects/<name>.yaml) and extract therepofield - If the item requires codebase access, clone the repo to a temp directory:
CLONE_DIR="/tmp/audit-$(date +%s)" git clone [email protected]:<owner>/<repo>.git "$CLONE_DIR" # Fall back to HTTPS if SSH fails - Use the cloned directory for all file-based checks
- Use
gh api repos/<owner>/<repo>/...for GitHub API checks - Only ask the user when you genuinely cannot determine the answer yourself
Item Workflow
Same as /audit-start:
- Present the item - Show ID, title, severity, section, description
- Show the guide - Extract from
checklist/checklist/[section]/guide.md - Run auto-checks - Clone the repo and run checks yourself, don't ask the user for evidence
- Ask follow-up questions - Only if you genuinely cannot determine the answer from the codebase
- Determine status - Pass/Fail/Partial/Skip/Not Applicable/Blocked
- Capture notes - Optional user notes
- Write result file - Per
checklist/schema/audit-result.schema.yaml(item_id not id, lowercase status, always include ## Summary, required headings per status) - Validate result file - Run
npx tsx checklist/schema/validate.ts <result-file-path> --fixand fix any errors before continuing - Update state - If active audit exists, update
.audit-state.yaml:- If
phaseisauto-check: do NOT updatecurrent_item(parallel work in progress). Just remove the item fromitems_remainingand incrementitems_completed. - If
phaseisinteractive: updatecurrent_itemto the next remaining item as before.
- If
If No Active Audit
No active audit. Create a one-off check or start an audit?
- One-off check (save to today's folder)
- Start full audit with
/audit-start
Item Not Found
If the exact ID isn't found, search for similar items:
Item "[ID]" not found.
Did you mean:
- GIT-005: Branch protections configured
- GIT-006: ...
Or search by keyword:
/audit-item --search "branch"
Search Mode
If --search flag is used, search item titles and descriptions:
/audit-item --search "branch protection"
Show matching items and let user select one.