agentleFS
wxxb789wxxb789/hoa/skills/productivity/agent-operating-contract-evolution/SKILL.md

agent-operating-contract-evolution

Skill2 starsChanged 10 days agoMITView on GitHub

Rewrite an assistant's standing instructions, persona and permissions across its identity file, AGENTS.md and memory. When the owner changes the agent's role or authority, make delegation and publishing boundaries stick across handoffs; measure prompt compression without dropping rules. Not for agent-harness-settings-parity.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Use the owner's risk policy.

    line 24
  2. Distinctive:

    Establish the baseline: Read the relevant files and traces.

    line 32
  3. Distinctive:

    Keep the minimum voice anchors and disambiguating examples.

    line 48
  4. Distinctive:

    If a write escaped, report what changed, ask whether to keep or revert, and record the decision.

    line 54
  5. Very specific:

    Only if a script command fails (for example uv is not found), read references/troubleshooting.md.

    line 60
  6. Distinctive:

    Storage and migration: verify store ownership, gate implementation and call sites with routing probes.

    line 67
  7. Distinctive:

    Control-plane review or refactor: use the review checklist or refactor playbook.

    line 70

≈ “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

Agent Operating Contract Evolution

Before writing

  • A shortcut or a finding from a trace is not consent to change persistent instructions. Clarify the intended behavior and layer; confirm the target, durable edit and any authority change unless the owner already explicitly authorized that scope. A draft request is read-only.
  • Use the owner's risk policy; Yellow/Red labels have no universal meaning. Back up authorized durable edits with timestamps. Protected files require their own approval; a denial or timeout leaves the file unchanged. Do not retry or bypass it. Report the blocked lines and pending edit.
  • Changes to permissions must agree across all affected layers; restate the limits that remain. Compression must preserve all rules, especially hard limits.

Edit and prove

  1. Establish the baseline. Read the relevant files and traces. Identify the correction and the observable result. Use loading probes to verify actual files, cwd scope and precedence before moving a rule. Check the installed runtime version; a loader recipe does not prove behavior. Pass required rules explicitly to subagents that do not load them. Do not change runtime source to fix the contract.
  2. Choose one canonical owner. Identity owns stance, voice and cwd-independent hard limits; the operating protocol owns routing and execution; memory owns stable facts and preferences; skills own reusable procedures; config owns runtime settings; long outputs are artifacts. For subjective design, offer a few concrete choices and resolve one section at a time. Distinguish borrowed ideas from local conventions.
  3. Patch narrowly. State trigger, action and proof. For a permission change, search all layers and update affected references together. Keep profile deltas to differences; rebuild from the canonical file plus deltas and check wrapper flags, section pointers, counts and drift using the reconciliation procedure.
  4. Prove coverage and behavior. For compression, declare one distinctive marker per rule before editing and run uv run scripts/contract-coverage-check.py OLD NEW markers.txt. Keep the minimum voice anchors and disambiguating examples; measure bytes and non-heading rule lines before and after. Keep replies human-facing. For any contract change, use behavioral evals in equivalent fresh contexts before and after. Default to 10-15 one-shot cases; size the set to the changed behaviors and restraint paths. Compare raw outputs and expect/forbid outcomes. Keep cases out of the workspace and fail contaminated runs. Use read-only tools or safe mode for gate cases; check external state. If a write escaped, report what changed, ask whether to keep or revert, and record the decision. Same-family reviews are not independent.
  5. Report the layer, final and backup paths, meaningful diff, and proof or verification limits. After meaningful work, identify where the lesson belongs; applying another durable change still requires authority.

Only if a script command fails (for example uv is not found), read references/troubleshooting.md.

Read on demand

  • Prompt budget: measure the actual assembled prompt and verify the largest reducible block with context budget measurement.
  • Storage and migration: verify store ownership, gate implementation and call sites with routing probes. Inventory to full depth and sweep old references before retirement; use the migration procedure.
  • Control-plane review or refactor: use the review checklist or refactor playbook. For repo-owned skill placement, use the port procedure.
  • Voice and role rewrite: see the case study.

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.