chaos-code-risk-scan

chaos-code-risk-scan is a skill for Claude Code from harness/harness-ai. It costs 172 tokens per session (6,484 once invoked), scanned A, a copy of chaos-code-risk-scan, Apache-2.0.

A source-code scan that finds resilience risks which a Harness chaos experiment could test. Chaos experiments deliberately create controlled failures, such as unavailable dependencies, to see whether software handles them safely.

In plain words
What is it for?
Use it to scan a repository for timeout, retry, shutdown, health-check, queue, pool, and local-state problems, then submit the findings to a Harness code risk scan.
Why use it?
It turns code evidence such as missing timeouts, unsafe retries, or unbounded queues into testable pass-or-fail risks instead of relying on guesses. Verified code facts are mapped to generic risk rules and rechecked by the server.

Skill for Claude Code

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

Part of the harness plugin — 73 skills, 1 MCP server shipped together

Good fit Use it to scan a repository for timeout, retry, shutdown, health-check, queue, pool, and local-state problems, then submit the findings to a Harness code risk scan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harness/harness-ai/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-ai --skill chaos-code-risk-scan
Clone the repo
git clone --depth 1 https://github.com/harness/harness-ai

Made for: Claude Code.

Or install harness, the plugin that ships this one along with the rest of its 73 skills, 1 MCP server.

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-ai/chaos-code-risk-scan/github.svg)](https://agentmods.dev/skills/harness/harness-ai/chaos-code-risk-scan)
Your own site
<a href="https://agentmods.dev/skills/harness/harness-ai/chaos-code-risk-scan"><img src="https://agentmods.dev/badge/skills/harness/harness-ai/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-ai/chaos-code-risk-scan"><img src="https://agentmods.dev/badge/skills/harness/harness-ai/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 6,484 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 100% copy Near-identical to another mod 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.06484
Opus 5.5 $0.00069 $0.02594
Sonnet 5.5 $0.00034 $0.01297
Haiku 4.5 $0.00017 $0.00648

Measured 1mo ago against content hash 21dbc8cd19d9, 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 1mo 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

This is a copy

100% identical to chaos-code-risk-scan — 50 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/claude/skills/chaos-code-risk-scan/SKILL.md · 457 lines

How it starts

The opening of the file, as written. The whole thing — 457 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 · 457 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. 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-ai (35 stars, last pushed 4d ago), licensed Apache-2.0. It adds 172 tokens to every session and 6,484 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to chaos-code-risk-scan, differing in 50 lines, and is treated as a copy.

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-aiSkill354d agoApache-2.0A172Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k4d agoMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9k2d agoApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill339todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
triaging-web-analytics-supportPostHog/posthogSkill41ktodaynoneA151Claude Code, Codex