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
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewSkill
- debugging-failuresSkill
- worker-adapter-developmentSkill
- letitloopSkill
- letitloopSkill
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
- Very specific: line 49
Always provide a physical verification command (verification.command) that returns exit code 0 on success and non-zero on failure.
- Very specific: line 50
Avoid interactive commands (input(), raw terminal pagers).
- Very specific: line 52
Keep workspace_scope.allow as minimal as possible to prevent workers from mutating unrelated files.
- Very specific: line 53
Always add sensitive files (.env, secrets, core infrastructure) to workspace_scope.deny.
≈ “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.
Files
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
- Deterministic Test Commands:
- Always provide a physical verification command (
verification.command) that returns exit code0on success and non-zero on failure. - Avoid interactive commands (
input(), raw terminal pagers).
- Always provide a physical verification command (
- Strict Workspace Scopes:
- Keep
workspace_scope.allowas minimal as possible to prevent workers from mutating unrelated files. - Always add sensitive files (
.env, secrets, core infrastructure) toworkspace_scope.deny.
- Keep
- 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).
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
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.

