chaos-code-risk-scan

chaos-code-risk-scan is a skill for Claude Code from harness/harness-skills. It costs 172 tokens per session (7,239 once invoked), scanned A, original, Apache-2.0.

A repository scanner that finds code patterns that can make services fail during outages, then maps each finding to a Harness chaos-testing risk rule. Chaos testing deliberately introduces failures to check whether a system handles them.

In plain words
What is it for?
Use it to inspect a code repository, document verified resilience risks, and send those risks to a Harness code scan. It covers outbound calls, shutdown handling, health checks, queues and pools, and local state.
Why use it?
It helps reveal resilience problems such as missing timeouts, unsafe retries, and queues with no limit before they cause incidents. Harness can use the findings to score risks and suggest experiments for linked services.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the harness-observability-governance plugin — 19 skills shipped together , and of harness-skills

Good fit Use it to inspect a code repository, document verified resilience risks, and send those risks to a Harness code scan. It covers outbound calls, shutdown handling, health checks, queues and pools, and local state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harness/harness-skills/chaos-code-risk-scan
Install

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.

Any agent
npx skills add harness/harness-skills --skill chaos-code-risk-scan
Clone the repo
git clone --depth 1 https://github.com/harness/harness-skills

Made for: Claude Code.

Or install harness-observability-governance, the plugin that ships this one along with the rest of its 19 skills.

Wrote 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.

agentmods badge for chaos-code-risk-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/harness/harness-skills/chaos-code-risk-scan/github.svg)](https://agentmods.dev/skills/harness/harness-skills/chaos-code-risk-scan)
Your own site
<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.

agentmods 80×15 button for chaos-code-risk-scan

Your own site · 80×15
<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>
Per session 172 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,239 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 11d ago against content hash 4d0b6a8ca7a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/_common.py, scripts/build_payload.py, scripts/coverage.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/observability-governance/chaos-code-risk-scan/SKILL.md · 489 lines

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.py dropped, 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

  1. Use the org and project already configured for Harness MCP. State them: Working in org=..., project=.... Do not ask.
  2. Repository root: the path the user named, otherwise the workspace root that is a git repo.
  3. Run git status --porcelain. Evidence is validated against HEAD. If the tree is dirty, continue and say in the summary that uncommitted files were ignored.
  4. The repository needs an origin remote; risks are keyed to it. Stop if it has none.

Read the full file on GitHub · 489 lines

Files

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.

Changes

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.

  1. 11d ago Changed · +32 lines 4d0b6a8ca7a8
  2. 1mo ago First seen · 457 lines · 172 tokens per session scan A 21dbc8cd19d9

Subscribe to this mod's changes

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.

Related

chaos-code-risk-scan compared with skills from other repositories

chaos-code-risk-scan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chaos-code-risk-scanharness/harness-skillsSkill138todayApache-2.0A172Claude Code
adk-debuggoogle/adk-pythonSkill22k2d agoApache-2.0A191Claude Code, Codex
resolve-handoffomnigent-ai/omnigentSkill12ktodayApache-2.0A23Claude Code, Codex
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
iterate-implementationhumanlayer/humanlayerSkill13k7d agoApache-2.0A16Claude Code, Codex
typescript-testingComposioHQ/composioSkill31ktodayMITA92Claude Code, Codex
cli-e2eComposioHQ/composioSkill31ktodayMITA62Claude Code, Codex