Context Efficiency
The main session's context is the scarce resource. These are the habits that stop it being spent on things that carry no judgment. Which command to run and from where is the package-scripts skill; whether work goes to a subagent and on which family is the llm-delegation skill; when a check runs and how the session waits on it is the running-checks skill. This skill is only about what the main session reads, waits on, and re-does.
Keep dumps out of the session
- Answering a question that spans many files → narrow the search first. A targeted
Grepwith an output mode that returns the answer (files_with_matches,count, a line with its context) keeps the files out; a question no single grep answers goes to ahaikuagent whose prompt bounds its report, by the hop rule (thellm-delegationskill, "In a session"). For a single fact in a file you can already name, just read it. - A long command's output is read by its tail or its numbers, never whole: a parity run, a build log or a CI job log goes through
tail, agrepfor the lines that matter, or ahaikuagent that reads it back to the failing line. - Never
Read/taila subagent's output file. It is the full JSONL transcript; reading it overflows the context the subagent existed to protect. Wait for the completion notification. - Read the range, not the file, when the symbol's location is known. Whole-file reads are for files you are about to restructure.
Wait on a condition, never a sleep
This is about waiting on an external process from the shell — a dev server, a build, a deploy. It is not a loosening of the polling ban, which is about code and tests: inside the repo, a wait is an awaited signal, never a retry loop (the testing skill, references/polling.md, and openspec/specs/architecture/no-polling/design.md). Nothing here may be copied into a test. And it is never for a check the session itself started: a backgrounded check announces its own completion, and polling it is the failure running-checks exists to stop.
Wait until the thing you need is actually true — the harness's Monitor tool with an until-condition, since the Bash tool blocks a foreground sleep. A fixed sleep is wrong in both directions — wasted when the work finished early, a false failure when it didn't. This matters most where "done" lies: a server can answer while still building its client bundle, and async UI resolves long after the document reports complete. Poll the state you care about, not a proxy for it.
Diff against a clean tree before chasing an error
The question is never "are there errors" but "does my change add errors" — rebuild stale packages first, and compare against the commit before the change, never HEAD (references/pre-existing-errors.md).
Write backslashes with Write or Edit
A backslash crossing a tool parameter, a shell and an interpreter is eaten or decoded silently — \u, \n and a Windows path's \\ alike — so content holding one is written with Write or Edit and its bytes checked with cat -A, and a Windows path is built with path.win32.join (references/escapes-through-tools.md).
Reference pages
references/pre-existing-errors.md— when a check fails in files the change never touched, or a failure is called pre-existing.references/escapes-through-tools.md— before writing content that holds a backslash, and when a check reports something the intended code could not contain.