一键导入
audit-harness
Generic audit/fix loop. Pass a goal string. Planner subdivides work, auditor/fixer teams run in parallel, loop until 2 consecutive clean cycles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generic audit/fix loop. Pass a goal string. Planner subdivides work, auditor/fixer teams run in parallel, loop until 2 consecutive clean cycles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Open-source tax engine. Onboards users, installs the CLI, and routes to the right skill -- preparing a return or reviewing one.
Tax preparer agent that uses the opentax CLI to prepare, validate, and export federal tax returns. Handles W-2s, 1099s, all major schedules, credits, and more.
Tax return reviewer that audits a completed return against source documents using the opentax CLI. Finds discrepancies, missing income, incorrect deductions, and missed credits.
Downloads and installs the opentax CLI binary. Detects OS and architecture automatically.
Helps users permanently set up the OpenTax skill on their AI platform so they don't have to load it every time.
Autonomous bug-fix loop for any form:year. Reads failing benchmark cases, spawns parallel bug-fixer agents per root cause cluster, validates, commits net-positive fixes, and loops until all pass or stalled.
| name | audit-harness |
| description | Generic audit/fix loop. Pass a goal string. Planner subdivides work, auditor/fixer teams run in parallel, loop until 2 consecutive clean cycles. |
Goal: $ARGUMENTS
Generate a run_id: take the first 5 words of $ARGUMENTS, lowercase, replace spaces with hyphens, append today's date as -YYYYMMDD. Example: "ensure compute functions handle edge" → ensure-compute-functions-handle-edge-20260411.
Read .state/audit/state.json. If the file does not exist, create it:
{"version": 1, "runs": {}}
Check if runs[run_id] exists:
status === "done" → print "Run already completed." and stop.status === "stalled" → print "Run stalled previously. Reset status to 'running' in state.json to retry." and stop.status === "running" → resume from current global_cycle (skip to Step 2 if work_packages exist, otherwise Step 2 will re-plan).{
"goal": "$ARGUMENTS",
"status": "running",
"created_at": "<ISO timestamp>",
"global_cycle": 0,
"global_clean_count": 0,
"checkpoint_commit": null,
"work_packages": [],
"cycles": []
}
Write state.json.
git add -A && git status --porcelain
If there are uncommitted changes, commit them:
git commit -m "audit-harness: checkpoint before run {run_id}"
Record the current HEAD SHA as checkpoint_commit in the run entry. Write state.json.
Spawn one agent using the prompt from .claude/skills/audit-harness/agents/planner.md.
Pass as context in the agent prompt:
goal: The full $ARGUMENTS stringmode: "plan"state: The full run entry JSON (so planner can see prior cycles if resuming)Wait for the planner to complete. Find the line starting with PLANNER_RESULT: in its output. Parse the JSON after the prefix.
Expected shape:
{"action": "plan", "work_packages": [...]}
Write the work_packages array into the run entry (merge with existing if resuming — keep packages that are already "done"). Increment global_cycle. Write state.json.
Collect all work_packages where status !== "done" (i.e., clean_count < 2).
For each active package, spawn one agent using .claude/skills/audit-harness/agents/auditor.md.
Pass as context in each agent prompt:
goal: $ARGUMENTSwork_package: The full package object (id, area, description, scope_files)mode: "audit"prior_findings: The package's findings array (so auditor avoids re-reporting fixed issues)Spawn ALL auditor agents in a SINGLE message (parallel execution).
Wait for all to complete. For each, find the AUDITOR_RESULT: line and parse the JSON.
Collect all packages where the auditor returned clean === false (has findings).
For each package with findings, spawn one agent using .claude/skills/audit-harness/agents/fixer.md.
Pass as context:
goal: $ARGUMENTSwork_package: The package objectfindings: The findings array from the auditorSpawn ALL fixer agents in a SINGLE message (parallel execution).
Wait for all to complete. Parse each FIXER_RESULT: output.
For each package where the fixer applied at least one fix (applied === true), spawn one agent using .claude/skills/audit-harness/agents/auditor.md.
Pass as context:
goal: $ARGUMENTSwork_package: The package objectmode: "verify"fixes_applied: The fixes array from the fixer outputSpawn ALL verification agents in a SINGLE message (parallel execution).
Wait for all to complete. Parse each AUDITOR_RESULT: output.
For each work_package:
Determine final audit result for this cycle:
clean === true) → clean cycleclean === true → clean cycleUpdate the package:
clean_count by 1clean_count to 0Append new findings to the package's findings array with the current cycle number. Mark fix_applied and fix_verified based on fixer and verification results.
If clean_count >= 2: set package status to "done".
Record a cycle summary in the cycles array:
{
"cycle": <global_cycle>,
"total_findings": <sum of all findings across packages>,
"packages_active": <count of non-done packages at start>,
"packages_clean": <count that had clean cycles>,
"commit": null
}
Write state.json.
git diff --stat
If there are changes:
git add -A
git commit -m "audit-harness: {run_id} cycle {global_cycle} — {N} findings fixed"
Update the last cycle entry's commit field and checkpoint_commit in the run. Write state.json.
If there are no changes (all fixers skipped or no findings), skip the commit.
First, check short-circuit: If ALL work_packages have status === "done", skip the planner and go directly to Step 7.
Otherwise, spawn one agent using .claude/skills/audit-harness/agents/planner.md.
Pass as context:
goal: $ARGUMENTSmode: "review"state: The full run entry JSON (including updated cycles and work_packages)Wait for the planner. Parse PLANNER_RESULT: JSON.
Handle the result:
If action === "done":
If action === "continue":
adjustments from the planner:
{"type": "add", "package": {...}} → append to work_packages{"type": "remove", "package_id": "wp-03"} → remove the package{"type": "update", "package_id": "wp-02", ...} → merge updates into the packageSet the run's status to "done". Set updated_at to current timestamp. Write state.json.
Append a summary to .state/audit/progress.md:
## [{run_id}] Complete — {timestamp}
- Goal: {goal}
- Cycles: {global_cycle}
- Total findings fixed: {sum across all packages}
- Packages: {count} ({list of areas})
- Final commit: {checkpoint_commit}
Print the summary to the user.
global_cycle >= 10, set status to "stalled" and stop (the planner should catch this earlier, but this is a hard cap)scope_files, so fixers cannot conflict