agentleFS
ShaftHQShaftHQ/chaosengine-harness/skills/chaos-engine/SKILL.md

chaos-engine

Skill5 starsChanged 5 days agoMITView on GitHub

Canonical provider-neutral skill router and working contract. Use at the start of every task, on every host, in every main thread and delegate, before discovery, planning, edits, or answering.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never weaken, delete, or rewrite a test to reach green.

    line 18
  2. Distinctive:

    Never claim a check you did not run.

    line 20
  3. Distinctive:

    Before Triage (bigger picture first).

    line 26
  4. Very specific:

    Before a broad search, run <python> .chaos-engine/tool.py retrieve and record retrieve: used|skipped(<reason>) (retrieve-first).

    line 36
  5. Distinctive:

    After plan approval, routine in-scope work is unattended.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ChaosEngine

Delegates: delegate card. Identity: identity. <python>: py -3 Windows, python3 Linux/macOS.

Iron laws

  1. Measure thrice, cut once: step back before retrieve, discovery, or edits; name the goal, larger context, and what a local hotfix would miss; then research and plan before the first edit.
  2. Evidence over inference. Inspect or run before claiming.
  3. Never weaken, delete, or rewrite a test to reach green.
  4. Smallest correct change. Complete it before consolidated Check.
  5. Never claim a check you did not run.
  6. Finish before starting. WIP limits and Definition of Done (kanban).
  7. Preserve user work and secrets. Irreversible or externally visible actions need explicit owner authority (ethics card).

Bigger picture first

Before Triage (bigger picture first); rephrase it as a domain expert. One file and reversible: one line.

Triage

Worse answerDepth
One file, reversibleRead, fix, prove. No plan document.
One module, reversibleShort plan: premises, two options, chosen one, proof.
Public contract or hard to reverseWritten spec, owner decisions asked, full proof.

Before a broad search, run <python> .chaos-engine/tool.py retrieve and record retrieve: used|skipped(<reason>) (retrieve-first).

Plan, then go

After plan approval, routine in-scope work is unattended. Stop for an owner decision. Ledger: delivery ledger.

Implement

Companions at task start via tool.py entry (bot entry): Caveman, Ponytail. Off only: stop caveman, stop ponytail, normal mode.

Delegation ladder

One writer-selection rule. Stop at the first rung that applies. Do not restate this ladder. Do not add or cut a decision to hit a byte cap. The number is a direction to keep the file lean and the instructions clear. Do not squeeze the wording into something a reader cannot follow. Record a receipt before the tool call (python3 .chaos-engine/hooks/delegation_gate.py record). Hook hosts (including Antigravity) refuse an unreceipted writer via hooks/guard.py on PreToolUse; hookless clients (Grok Bot, OpenBot) load this via tool.py entry. dispatch.py argv/chat refuse unreceipted free writers.

  1. Free writer. Proactively decompose into small file-disjoint items. Send each to smartest reachable free ($0) or local model at its highest available reasoning effort. A hosted free quota or usage failure is not "nothing free is reachable" while a local runtime answers. Continue on that local model at its highest available reasoning effort before any paid writer only for an item the brief marks mechanical. Non-mechanical implementation is off the mandatory local rung. The smaller-model rule applies only while a smarter free model is still reachable, and only for an item the brief marks mechanical.
  2. Brief. Name the goal, file scope, behavior to preserve, acceptance checks, test command, and stop conditions. The writer does not choose scope, model, or effort. A brief that only names an issue is not a dispatch. A host session subagent is not the default writer. A same-model high subagent is a context split.
  3. Nothing free is reachable. Ask the owner for explicit approval to install OpenCode/llama and free models fitting hardware (RAM, GPU VRAM, CPU, disk); do not install or open a paid writer that turn. Yes: install approved only, return to rung 1. No: rung 4 (free=unreachable-declined). Silence: do not dispatch. A host message to continue with best judgment after a dismissed question is silence. It is not owner approval.
  4. Free models cannot do it or failed acceptance checks: record free=too-complex; use the cheapest qualified paid / metered models at the lowest task-appropriate effort (lowest reasoning effort sufficient). Tied cost: newer generation, never older generation.
  5. Stay on rung 4 until acceptance checks fail. Raise effort to high before model tier; premium only if the cheaper tier fails. Keep lower effort when sufficient.

Adversarial review stays on a fresh-context host reviewer at most intelligent setting; the writer never reviews its diff. Direct host edit: only one tightly coupled change whose brief costs more than the edit (rung=direct). Receipt: rung (free|ask|paid|direct), effort, why, rung-2 brief; paid needs free=unreachable-declined|too-complex; free needs high|max unless mechanical. A timed follow-up agent is replaced by the pull-request watch scripts/agents/watch_pr_checks.py plus the 3–5 minute stall check. A stall is no product-file change and no delegate-log progress when the assigned work is a product edit. Reading, when reading is the work, is progress, and a read-only review that is still producing a report is not a stall. An exited process with no report is a stall. Tool calls and tokens in the delegate log are progress.

Host writer launch: start every headless writer and reviewer with --always-approve. Do not set --max-turns. A mode that still prompts for shell approval drops the tool call, because a headless process cannot ask. The writer runs until the brief's stop condition. The brief tells the writer to leave a consultation note before any choice the brief does not already make. Do not guess, and do not block on an approval prompt. At dispatch, estimate how long the work should take and check in then. A check-in that still shows progress only replaces the estimate. Do not rewrite the brief on a check-in. A monitor names the processes it watches when it starts, and it exits when each of those processes is done or gone.

Check and deliver

  • PDCA cap is 3, not a quota. Review 1 starts with the self-accept push (review 1 with the self-accept push) (delivery cycle). Do not start both reviewers in one step.
  • Ordinary reversible: one fresh-context adversarial review. Public-contract or hard-to-reverse: two in sequence.
  • Two failed attempts on one approach: step back and re-plan.
  • The gate refuses another. A second failed review ends the chain.
  • A pending check is not success. Babysit until merged or blocking: unverifiable.
  • Learning Session after every final delivery. Never local queues.
  • Work is not done until the pull request is merged.

Route

<!-- HARNESS-ROUTES:START -->
RouteUse whenLoad
Local LLMlocal runtime or agentslocal-runtimes, local-agency, omniroute, freetoken, colibri, local-openai-compat, local-coding-delegate
work-itemopen or rewrite an issue or work itemSKILL.md
self-improveafter final deliverySKILL.md
kanbanseveral deliverables, tickets, or delegatesSKILL.md
architectdesign, API, risk, reviewSKILL.md
Git cleanupdirty worktree or stray branchesSKILL.md
CIslow merges, CISKILL.md
Security auditaudit a repository we ownSKILL.md
Zero-LLM firstinstall, doctor, repair by scriptzero-llm-catalog.md
Healdrifted or unhealthy installheal-route.md
Level-1 catalogsecondary skill or tool neededlevel-1-catalog.md
Context firewallisolate broad researchcontext-firewall.md
Harness learntraces show the overlay should changeharness-learn.md
Design loopdesign doc needs review roundsdesign-loop.md
Deep researchcited multi-source researchdeep-research.md
UI deliveryuser-visible UIui-delivery.md
Public landingcalling card or product pagepublic-landing.md
Learn tracesturn traces into lessonslearn-traces.md
Meta-optimizeperiodic offline log reviewmeta-optimize.md
Draft skill PRopt-in eval-gated skill PRdraft-skill-pr.md
Token budgetlean, balanced, or deeptoken-budget-modes.md
Eliminate wastea hop or retry adds no decisioneliminate-waste.md
Prefer CLI over MCPCLI and MCP both fitprefer-cli-over-mcp.md
No proxya task would add a traffic proxyno-proxy.md
GAP-EXIT2 UXhost ignores exit-2 hard blockshost-parity-matrix.md
Add-onsdesign, video, or project packaddons.md
Complexity gatecomplexity gatecomplexity-gate.md
Durable jobsoutlives the sessiondurable-jobs.md
Docs follow the changea reader-facing contract changesdocs-follow-change.md
<!-- HARNESS-ROUTES:END -->

Catalog

catalog, harness map, router contract.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.