Install
openclaw skills install small-context-codingEfficient coding workflow for small-context models working on medium or large codebases. Use when the user wants to develop, debug, refactor, or analyze code with limited context windows, when tasks should be split into smaller verified steps, when sub-agents may help isolate work, or when long coding sessions need plan files, checkpoints, and strict context discipline.
openclaw skills install small-context-codingUse this skill to keep coding work effective when the model context is limited.
Treat the model as a short-working-memory engineer. Do not try to keep the whole project in chat context. Store project state in files and retrieve only what is needed for the current step.
For medium or large tasks, create these under a working notes folder such as notes/<task-slug>/:
plan.md — goal, constraints, phasestodo.md — actionable checklistcheckpoint.md — current state, decisions, next stepKeep each file short and current. Do not duplicate long chat history into these files.
A plan should contain:
If the task changes materially, update the plan before continuing broad edits.
Use a sub-agent when one of these is true:
Do not use sub-agents for trivial single-file edits. Do not spawn many sub-agents unless there are clearly separate workstreams.
Generate brief files with:
python3 /home/nick/.openclaw/workspace/skills/small-context-coding/scripts/generate_subagent_brief.py "<task-name>" "<scope>" "<verification>" <repo-root>
Read references/subagent-patterns.md for prompt shapes and references/usage-guide.md for a concrete example.
After each implementation step, run the smallest meaningful check:
Read references/verification-defaults.md for stack-specific defaults before choosing a verification command.
Never claim completion without a verification step or explicit blocker.
A task is only done when these are true:
checkpoint.md if more work remainsIf notes do not exist, create them from the bundled templates in references/templates.md.
For a real task, prefer initializing them with scripts/init_task.py.
Read references/usage-guide.md when you want a concrete flow for medium or large tasks.
Read references/verification-defaults.md when selecting the smallest useful validation command for a stack.
Avoid:
To set up a task workspace for medium or large work, run:
python3 /home/nick/.openclaw/workspace/skills/small-context-coding/scripts/init_task.py "<task-name>" <repo-root>
This creates notes/<task-slug>/plan.md, todo.md, and checkpoint.md if they do not already exist.
To verify the helper workflow end to end, run:
python3 /home/nick/.openclaw/workspace/skills/small-context-coding/scripts/smoke_test.py
Keep the skill lean. Improve it after real use by refining: