agentleFS
sdageltcsdageltc/letitloop/.github/skills/contract-authoring/SKILL.md

contract-authoring

Skill4 starsChanged 3 months agoMITView on GitHub

Guide and validator for authoring deterministic contract JSON specifications, invariant test commands, workspace scope boundaries, and risk tiers in letitloop.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Always provide a physical verification command (verification.command) that returns exit code 0 on success and non-zero on failure.

    line 49
  2. Very specific:

    Avoid interactive commands (input(), raw terminal pagers).

    line 50
  3. Very specific:

    Keep workspace_scope.allow as minimal as possible to prevent workers from mutating unrelated files.

    line 52
  4. Very specific:

    Always add sensitive files (.env, secrets, core infrastructure) to workspace_scope.deny.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Contract Authoring Specification for letitloop

Contracts are the atomic unit of execution in letitloop. Each contract represents a single, verifiable task with bounded scope, deterministic exit-code verifiers, and independent quality gates.

Contract JSON Schema

{
  "task_id": "unique_contract_id",
  "goal_id": "parent_goal_id",
  "title": "Clear concise contract title",
  "description": "Exhaustive task specification describing exact required changes",
  "risk_tier": "TIER_1_TRIVIAL | TIER_2_STANDARD | TIER_3_CRUCIBLE",
  "depends_on": [],
  "workspace_scope": {
    "allow": ["src/module_a/", "tests/test_module_a.py"],
    "deny": ["src/auth/", "config/", "state.json"]
  },
  "acceptance_criteria": [
    "Feature X works as specified",
    "All unit tests pass with zero regression"
  ],
  "verification": {
    "command": "python -m pytest tests/test_module_a.py -v",
    "timeout_sec": 60,
    "require_clean_git": false
  },
  "worker": {
    "model": "gemini-2.5-flash",
    "adapter": "default",
    "max_attempts": 3,
    "timeout_sec": 300
  }
}

Best Practices for Deterministic Verification

  1. Deterministic Test Commands:
    • Always provide a physical verification command (verification.command) that returns exit code 0 on success and non-zero on failure.
    • Avoid interactive commands (input(), raw terminal pagers).
  2. Strict Workspace Scopes:
    • Keep workspace_scope.allow as minimal as possible to prevent workers from mutating unrelated files.
    • Always add sensitive files (.env, secrets, core infrastructure) to workspace_scope.deny.
  3. Bounded Risk Tiers:
    • TIER_1_TRIVIAL: Single-line edits, doc formatting, minor comments (fast LLM routing).
    • TIER_2_STANDARD: Feature coding, bugfixes, unit tests.
    • TIER_3_CRUCIBLE: Architecture changes, auth, database schemas (triggers multi-agent QC audit).

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.