Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add harness/harness-skills --skill chaos-code-risk-scangit clone --depth 1 https://github.com/harness/harness-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/harness/harness-skills/chaos-code-risk-scan)<a href="https://agentmods.dev/skills/harness/harness-skills/chaos-code-risk-scan"><img src="https://agentmods.dev/badge/skills/harness/harness-skills/chaos-code-risk-scan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/harness/harness-skills/chaos-code-risk-scan"><img src="https://agentmods.dev/badge/skills/harness/harness-skills/chaos-code-risk-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00172 | $0.07239 |
| Opus 5.5 | $0.00069 | $0.02896 |
| Sonnet 5.5 | $0.00034 | $0.01448 |
| Haiku 4.5 | $0.00017 | $0.00724 |
Grade A, and why
chaos-code-risk-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- chaos-code-risk-scan — 100% identical, 50 lines differ
How it starts
The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chaos Code Risk Scan
Find resilience risks in a repository that a chaos experiment can turn into a
pass/fail result, and send them to Harness as a CodeRepository risk scan.
Harness then scores them, adds them to the scan report and, for modules linked
to a chaos service, recommends experiments.
The work is split so evidence cannot be invented: scripts extract facts and verify snippets; you only map verified facts to rules and write the explanation; the server re-validates everything.
One prompt runs the whole flow. Do not ask the user to choose an org, project, module,
service, rule, or to approve a create or a submit. The only stops are a missing
origin remote, or a tool error that a single retry does not clear. Report those
at the end; do not pause the scan to ask how to proceed.
Pass confirm: true on every harness_create and on the attach update below.
If a write is blocked because no confirmation prompt could be shown, retry that
same call once with confirm: true. Do not attach a runtime discovered service
during the scan. After the summary, offer that attachment in one sentence and
stop. Ask for the discovered service and probes only after the user asks to attach.
MANDATORY — Tool Result Verification:
- NEVER claim a tool call succeeded without an explicit success response from the tool.
- NEVER fabricate, assume, or pre-empt tool results. If a call did not return a confirmed result, say so and retry.
- NEVER submit a finding that
validate_evidence.pydropped, and never edit a snippet to make it pass. - A confirmation card is not a reason to stop. Retry with
confirm: true, then continue.
Instructions
SKILL_DIR below is the directory containing this file. Run scripts with
python3 "$SKILL_DIR/scripts/<script>.py" and keep their JSON output in a
temporary directory, not in the user's repository.
Phase 1: Scope and preflight
- Use the org and project already configured for Harness MCP. State them:
Working in org=..., project=.... Do not ask. - Repository root: the path the user named, otherwise the workspace root that is a git repo.
- Run
git status --porcelain. Evidence is validated againstHEAD. If the tree is dirty, continue and say in the summary that uncommitted files were ignored. - The repository needs an
originremote; risks are keyed to it. Stop if it has none.
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/evidence-contract.md 3.9 KB
- references/failure-modes.md 6.4 KB
- references/rule-authoring.md 5.5 KB
- scripts/_common.py 6.7 KB runs code
- scripts/build_payload.py 4.5 KB runs code
- scripts/coverage.py 6.9 KB runs code
- scripts/inventory.py 23 KB runs code
- scripts/validate_evidence.py 10 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed · +32 lines 4d0b6a8ca7a8
- 1mo ago First seen · 457 lines · 172 tokens per session scan A 21dbc8cd19d9
chaos-code-risk-scan is a skill published in the GitHub repository harness/harness-skills (138 stars, last pushed today), licensed Apache-2.0. It adds 172 tokens to every session and 7,239 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.
chaos-code-risk-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| chaos-code-risk-scanharness/harness-skills | Skill | 138 | today | Apache-2.0 | A | 172 | Claude Code |
| adk-debuggoogle/adk-python | Skill | 22k | 2d ago | Apache-2.0 | A | 191 | Claude Code, Codex |
| resolve-handoffomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 23 | Claude Code, Codex |
| verify-omnigentomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| iterate-implementationhumanlayer/humanlayer | Skill | 13k | 7d ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| typescript-testingComposioHQ/composio | Skill | 31k | today | MIT | A | 92 | Claude Code, Codex |
| cli-e2eComposioHQ/composio | Skill | 31k | today | MIT | A | 62 | Claude Code, Codex |