/coding is an OpenClaw skill for project-oriented delivery.
It is designed for sessions where the user describes a project, feature, or implementation goal and expects a structured handoff from clarification to planning to coding to review.
The skill runs a bounded workflow:
- Clarify what matters.
- Create a short brief only if needed.
- Produce a project folder with
plan.md. - Implement against that plan.
- Run a review loop until the work is acceptable.
- Return a final report to the user.
The skill is optimized for:
- reducing ambiguity before planning
- keeping implementation scoped to a concrete plan
- using structured handoffs between models
- preventing model-routing changes from leaking into the rest of OpenClaw
It also ships with a machine-readable routing file for OpenClaw:
Recommended default with the current model set:
Minimax-> clarificationMinimax-> optional briefCodex-> planning andplan.mdCodex-> implementationMinimax-> independent reviewMinimax-> final report
Allowed simplifications:
- skip the brief for simple tasks
- let one model own both brief and planning if handoff loss would be worse
- fall back to
Codexfor the full flow if only one model is available
- The brief is optional.
plan.mdis the only required durable artifact.- Implementation starts only after
plan.mdexists. - Review works on structured inputs, not vague summaries.
- Review sends back a bounded delta instead of restarting the whole task.
- Model switching must stay local to the active
/codingsession. - The skill must not change OpenClaw's global default model.
- SKILL.md - controlling contract
- openclaw-routing.json - machine-readable stage routing and local-state metadata
- openclaw-routing.schema.json - validation schema for the routing config
- prompts/clarify.md - clarification template
- prompts/brief.md - optional brief template
- prompts/plan.md - planning template
- prompts/implement.md - implementation template
- prompts/review.md - review template
- prompts/final-report.md - user-facing closeout template
- references/review-contract.md - handoff contract
- references/presets.md - routing presets
- references/adaptive.md - when to skip or use the brief
The skill asks only the questions that materially affect planning:
- goal
- target users
- stack constraints
- must-have features
- non-goals
- acceptance criteria
- risky unknowns
If the request is already concrete, clarification should stop early.
The brief is optional.
Use it when:
- the task is large
- architecture is still fuzzy
- acceptance criteria need normalization
- planning would otherwise depend on risky assumptions
Do not force a brief for small or already clear tasks.
Planning creates the first required artifact:
- project folder
plan.md
plan.md should give implementation enough detail to execute without guessing.
Implementation follows plan.md and produces:
- code changes
- validation results
- a structured implementation report
For each implementation task, follow the RED → GREEN → REFACTOR cycle:
- RED — Write a failing test that describes expected behavior
- GREEN — Write minimal code to make the test pass
- REFACTOR — Improve code without changing behavior
This ensures test coverage from the first lines, fast feedback, and confidence during refactoring.
For large tasks requiring >30 minutes of work:
- Break the plan into atomic tasks (2-5 minutes each)
- Subagent completes task → Review → Next task
- Micro-review after each subtask
Use for: long-running tasks, many independent subtasks. Skip for: simple tasks (<15 min), tasks requiring deep context.
Review compares:
- the original request
- the brief if one exists
plan.md- changed files or diff
- validation results
- implementation report
If something is missing, review returns a bounded delta. Implementation handles that delta and hands back a new report.
After review passes, the skill returns a concise user-facing summary of:
- what was delivered
- what was validated
- what remains limited or deferred
For complex bugs, use the formal debugging approach:
- Observe — Gather facts: full error message, stack trace, context. Reproduce the issue.
- Hypothesize — Form possible causes. Identify the most likely hypothesis.
- Test — Write a test that confirms or refutes the hypothesis.
- Fix — Make minimal change to solve the problem. Verify tests pass.
Repeat if the bug isn't fixed on the first attempt.
By default, the skill should keep persistent artifacts minimal.
Required:
plan.md
Only create additional saved artifacts if the user explicitly asks:
brief.mdimplementation-report.mdreview-report.md
User:
/coding
I need a Telegram bot for personal expense tracking. Python, SQLite, no external admin panel. MVP only.
Skill flow:
Minimaxasks for the needed clarifications:- categories fixed or editable
- monthly reports needed or not
- export needed or not
- deployment target
Minimaxmay produce a short brief if the task is still broad.Codexcreates the project folder and writesplan.md.Codeximplements the MVP from the plan.Minimaxreviews the result and either approves it or returns a bounded delta.Minimaxwrites the final report for the user.
To keep this skill isolated:
- store stage state under a local namespace such as
coding.* - apply model overrides only inside the active
/codingsession - clear those overrides when the session ends
- do not mutate the global default conversation model
Suggested local state fields:
coding.session_idcoding.stagecoding.modelscoding.project_rootcoding.plan_pathcoding.review_roundcoding.acceptance_status
The same state fields and stage routing are mirrored in openclaw-routing.json so the integration layer can consume them directly instead of parsing prose from SKILL.md.
Use openclaw-routing.schema.json to validate the routing config before loading it into OpenClaw.
This skill is not ideal for:
- casual one-off code questions with no project lifecycle
- tiny fixes that do not need planning
- requests where the user explicitly wants direct coding with no staged flow
For those cases, a simpler direct coding flow is usually better.
Added from external review:
- Hard/Soft Stop — STOP And Ask split:
- Hard Stop: always ask (unknown stack, credentials, scope creep)
- Soft Check: ask only if can't derive from context
- Autonomous decisions: agent decides and documents in plan.md
- TDD in Review — tests_written and tdd_cycles_completed checks
- tdd_cycles in Report — implementation report tracks TDD cycles
- test_strategy_unknown — added to clarify stop_conditions
Added from Superpowers methodology:
- TDD (Test-Driven Development) — RED → GREEN → REFACTOR cycle in Implementation
- Subagent-Driven Development — atomic tasks (2-5 min), micro-reviews for large tasks
- 4-Phase Debugging — Observe → Hypothesize → Test → Fix