agentleFS
Gena915Gena915/central-brain/skills/contract/SKILL.md

contract

Skill0 starsChanged 4 months agoMITView on GitHub

Turn a fuzzy task into an executable contract (a plan in small, verifiable steps) BEFORE executing. Triggers "/contract", "plan out", "break down this task", "plan before starting". It's piece 1 of the universal harness — used at the start of any non-trivial task, especially when running on a cheaper API model, so the model doesn't have to plan on its own. The gate later verifies against this contract.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the real thing first: Don't plan from memory: open the files/paths the task touches and verify names, fields, existing patterns.

    line 17
  2. Distinctive:

    If ≤5 steps and no risk → proceed and execute.

    line 34
  3. Distinctive:

    If >5 steps or anything destructive/ambiguous → wait for the owner's OK first.

    line 35
  4. Very specific:

    Keep the contract (in the chat, or a file if the task is big): /gate will use it as the acceptance criteria.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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

Skill: /contract — build the task contract (piece 1 of the harness)

You turn the request into an executable, verifiable contract BEFORE touching anything. This hands the model (especially a cheap API one) the plan, so it doesn't improvise or hallucinate.

When to use

At the start of any non-trivial task. If it's an obvious one-liner, skip it.

What you do

  1. Read the real thing first. Don't plan from memory: open the files/paths the task touches and verify names, fields, existing patterns. No inventing paths/APIs/params.
  2. Fill the contract with this exact structure:
# Task contract
## Objective (1 sentence)
## Context / inputs
## Steps (small, numbered) → each with an observable **expected result**
## Success criteria (checklist of observable conditions)
## What NOT to do (out of scope)
## Risks / irreversible steps
  1. Golden rule for steps: each step has an observable expected result (so the gate can verify it one by one). Small steps > big steps.
  2. Show the contract and:
    • If ≤5 steps and no risk → proceed and execute.
    • If >5 steps or anything destructive/ambiguous → wait for the owner's OK first.
  3. Keep the contract (in the chat, or a file if the task is big): /gate will use it as the acceptance criteria.

Language & tone

Reply in {{LANG}}, direct, no filler. The contract is concrete, not literature.

Input

$ARGUMENTS

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.