Skill.State
Description
Long-horizon execution skill for Claude, Codex etc
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
SKILL.state
**SKILL.state** is a long-horizon agent skill pattern for Claude that replaces append-only chat history with an explicit structured execution state. It is designed for multi-step workflows where the agent must remember only what is relevant for future actions, not the entire transcript. In the paper’s benchmarks, the key measurements are prompt size, total token cost, task accuracy/success rate, noise robustness, and recovery steps across horizons such as 10, 25, 50, 100, and 200.
Overview
Traditional agent loops keep adding observations, reasoning, and tool outputs to the prompt, which makes the context grow and can degrade performance over time. SKILL.state instead keeps three things at each step: the immutable task spec, the current state, and the latest observation. The model proposes a state patch and next action, the runtime validates the patch, applies it, and then discards the reasoning trace.
Why use it
This pattern is useful when the task is:
- long-running,
- stateful,
- tool-heavy,
- dependent on active entities, hypotheses, files, or inventories,
- sensitive to noisy or outdated history.
It is especially useful when repeated history reconstruction causes errors or token growth.
Execution flow
- Start with a task specification and a structured state.
- Provide Claude with only the current state and the latest observation.
- Claude returns:
- a
state_patch, - an
action.
- a
- Validate the patch against the schema.
- Merge the patch into the current state.
- Execute the action and continue with the next observation.
This keeps execution bounded and avoids relying on stale transcript content.
State patch rules
The state patch should be minimal and only contain changes needed for future execution.
Rules
- Update only changed fields.
- Use
nullto delete a key. - Do not rewrite the entire state unless necessary.
- Keep the state compact and operational.
- Prefer structured values over free text.
- Sto
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11