working-state-maintenance
Skill0 starsChanged 7 days agoMITView on GitHub
Maintain a compact temporary working state during multi-step work, task changes, handoffs, or recovery. Use when updating current progress, correcting stale status, or when the user asks to 维护工作状态、精简进度、更新当前状态 or continue an interrupted task. Not for durable memory capture or a new task execution engine.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- complexity-reductionSkill
- doc-maintenanceSkill
- nmg-memorySkill
- repo-developmentSkill
- script-reuseSkill
- verification-traceabilitySkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Keep the smallest provisional snapshot that lets a capable reader choose the next authorized action with the available evidence.
- Distinctive: line 22
Check any new completion claim against the actual result: exit status, assertions, verification scope, and the relevant owner.
- Distinctive: line 27
Keep an item only if removing it could change the next action, lose an unmet obligation, violate a constraint, or hide evidence needed to …
- Distinctive: line 33
Remove superseded observations, resolved blockers, and irrelevant runtime details.
- Distinctive: line 37
Use only the fields the task needs: goal, relevant verified progress, current step, next action, blockers, constraints, or evidence.
- Distinctive: line 41
Before writing, check whether the reader can identify the next action and its limits without the original Agent's private reasoning.
- Distinctive: line 54
When a task has a contract or governed lifecycle, its owner determines allowed moves and authoritative facts.
- Distinctive: line 57
Do not create a run, Task IR, or board entry merely to maintain a single-Agent snapshot.
- Distinctive: line 64
No section layout or task-schema fields from that long document are required here.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Working-state maintenance
简体中文 · Terms used
Keep the smallest provisional snapshot that lets a capable reader choose the next authorized action with the available evidence. A working state is not a journal, a second task contract, or proof of completion. This procedure works without reading a task-semantics design document.
Maintain the current snapshot
- Reconcile the visible state with the latest user request and completed tool results. Reuse what is already available; read an owner or evidence reference only to settle a missing or conflicting fact. Replace the old task when the request changes; do not carry its pending actions into the new task or invent a semantic task identifier. A new request can end a previous wait for input.
- Check any new completion claim against the actual result: exit status, assertions, verification scope, and the relevant owner. A returned tool call, live process, or written artifact is not a passing check. Distinguish planned, attempted, implemented, verified, and unresolved work. Unknown stays unknown; do not expand a targeted pass into a full verification claim.
- Keep an item only if removing it could change the next action, lose an unmet obligation, violate a constraint, or hide evidence needed to resume. Preserve necessary exact values, permission boundaries, unresolved assumptions, and accessible evidence references. Detailed logs and completed-task history belong at their existing owners, not in this snapshot.
- Rewrite the whole current snapshot rather than appending a progress entry. Remove superseded observations, resolved blockers, and irrelevant runtime details; retain an unresolved blocker until evidence settles it. A PID or test count belongs here only while a current decision depends on it. Do not remove a necessary condition merely to meet a line target.
- Use only the fields the task needs: goal, relevant verified progress, current step, next action, blockers, constraints, or evidence. Omit empty fields and repeated standing instructions. A small task can use one sentence; no fixed template, field count, or length proves sufficiency.
- Before writing, check whether the reader can identify the next action and its limits without the original Agent's private reasoning. Write only when the current state materially changes. On completion leave a short result, remaining limits, and an evidence entry point, not a deployment narrative.
For NMG, use the existing nmg_state AG writer and complete-text replacement.
The shared memory_policy owns its activation, completion, and recovery rules.
Read working-state operations
only when the operation, binding, or lifecycle needs clarification. Do not put
secrets or hidden chain-of-thought in the state or create another state store.
Existing task contracts
When a task has a contract or governed lifecycle, its owner determines allowed moves and authoritative facts. Reference those facts; a status sentence cannot approve a deliverable, grant a lease, undo cancellation, or unlock dependencies. Do not create a run, Task IR, or board entry merely to maintain a single-Agent snapshot. Missing required evidence is a gap, not evidence that nothing happened.
Task-unit semantics is optional background for understanding NMG's governed collaboration, not a prerequisite, mandatory read, or definition this workflow depends on. Consult the relevant current owner only when an actual managed task needs its contract interpreted. No section layout or task-schema fields from that long document are required here.
Small review cases
- A target check exits 0; full verification has not run. Keep the target scope and the remaining required verification, not "all checks passed".
- A probe exits 1 after producing output. Keep the failure or uncertainty, not "verified" merely because an artifact or tool response exists.
- A blocker is resolved and the user changes tasks. Drop the old blocker and pending actions; retain only constraints and evidence relevant to the new task.
- A long snapshot ends with a necessary permission limit. Preserve that limit while removing irrelevant history; shortening by cutting the tail is unsafe.
These are review examples, not executed evaluations or evidence of token savings.
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.

