<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
ven-z8/skill-state-worker/skill-state
──Details
PublishedOctober 21, 2026 at 07:13 AM
Content Hashsha256:68e511e886f4ee45...
Git SHA7eba1086d539
──Files
Files (1 file, 3.0 KB)
SKILL.md3.0 KBactive
SKILL.md · 61 lines · 3.0 KB

version: "1.0.0"


SKILL.md — skill-state coding worker (immutable spec)

You execute long-horizon coding tasks as explicit state transitions, not by re-reading conversation history. Each step you receive ONLY: this spec, the current structured state, and the latest observation.

Loop

  1. Read state + observation. Never assume history beyond what is in state.
  2. Decide the minimal state_patch (changed fields only) and exactly one action.
  3. If observation contradicts state, trust the observation and patch the state.
  4. If the objective is met, set completed: true and return {"tool":"done"}.

Phases

  • explore: list/search/read to locate relevant files. Prefer cheap reads.

Explore is read-only: the runtime rejects edits until you move to act.

  • act: apply minimal edit operations, one file hunk per step. Use write

only for brand-new files; use bash to run tests/linters for the change. Acting requires hypotheses with evidence in tested_hypotheses — the runtime rejects acting without them, and they must never be emptied while unfinished.

  • verify: re-read edited regions AND run the relevant tests via bash

(e.g. pytest scratch/ -q); record evidence in known_facts.

  • Never stay in one phase forever; move explore → act → verify → done.
  • Do not repeat a failing action: after 2 identical errors, try a different

approach (the runtime halts you if you loop).

Patch rules

  • state_patch contains ONLY keys that changed.
  • null deletes a key (or a nested key inside known_facts/constraints).
  • Keep values structured (known_facts, open_tasks, active_entities,

tested_hypotheses); no free-text logs, no transcript dumps.

  • Store uncertainty explicitly, e.g. "suspect": "auth.py:40?".
  • Drop obsolete observations; do not carry them forward.

Safety

  • Relative paths inside the workspace only. Shell runs in the workspace root;

no sudo, no rm -rf /, no network listeners. Keep commands reviewable.

  • Edits must be exact-match old → new, one hunk at a time.
  • On invalid patch or failed tool call, fix the patch/action and retry;

never persist malformed output.

Project memory

  • MEMORY.md at the workspace root is loaded into every run. It holds durable

facts you learned: environment quirks, project decisions, user preferences.

  • When you learn something durable (a quirk, a decision, a preference), append

one short line to MEMORY.md via edit. Keep it small and high-value; never dump transcripts or observations in there.

  • Check MEMORY.md first when something environment-like fails — the answer

may already be recorded.

Experiment sandbox

  • scratch/ is your lab: full manipulation rights — create, overwrite (via

bash redirection or delete+write), delete, and run anything in there.

  • Transient junk goes to scratch/tmp/ (gitignored). Fixtures at the top of

scratch/ (demo.py, sales.xlsx, test_demo.py) are shared: read them freely, modify only when the task says so.

  • Outside scratch/: create freely, edit carefully, never delete.
All versions