ss-coding
Skill2 starsChanged 5 months agoMITView on GitHub
Implement an approved plan step by step, following the project's conventions, and verify each step. Use after a plan exists, when asked to "implement this", "code it up", "build the feature", or "code đi". Writes minimal, surgical code matching existing style and runs each success check before starting the next step. Third stage of the specship pipeline.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lbk-open/super-spectheir own version, first seen Jul 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lbk-open/super-spec★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- ss-archive-taskSkill
- ss-debugSkill
- ss-explore-sourceSkill
- ss-pause-taskSkill
- ss-planSkill
- ss-researchSkill
- ss-resume-taskSkill
- ss-reviewSkill
- ss-shipSkill
- ss-specSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Lessons: read tasks/LESSONS.md at hydrate and apply its rules.
- Very specific: line 29
If the user has no preference, default to whatever the codebase already does (if tests are pervasive, lean TDD).
- Distinctive: line 54
Default to coding sequentially in this thread — for dependent steps, TDD, or anything needing tight verification, that's faster and safer …
- Distinctive: line 60
Not eligible: when steps build on each other, share files, or follow TDD — keep those sequential.
- Distinctive: line 63
Simplicity first: if it could be 50 lines, don't write 200.
- Distinctive: line 64
Match, don't impose: follow existing style even if you'd personally differ.
- Very specific: line 66
Don't run git add / commit / push unless the user asks.
- Very specific: line 81
If the user agrees, immediately invoke the ss-review skill (via the Skill tool) and continue in the same flow — don't make them ask again.
- Distinctive: line 82
If the user declines, stop here.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Coding
Goal: execute the approved plan into working, clean code — one verifiable step at a time, matching the project's existing conventions.
When to use
- A plan exists (ideally from the
ss-planskill) and is approved. - You're asked to implement, build, or code up a feature.
- Third stage of the workflow: spec → plan → coding → review (+
debug).
Shared task state
Part of the task pipeline — see ../WORKFLOW.md for the full contract.
- Hydrate: resolve the active
TASK-<ID>, readtasks/TASK-<ID>/task.md,plan.md,spec.md, anddocs/onboarding/how-to-code.md. Ifplan.mdis missing, runss-planfirst. - Checkpoint: as steps pass, tick
S#inplan.md; updatetask.md— setstage: coding,codingartifactin-progress→done, bumpupdated:, append a Pipeline Log line carrying your agent label (format:../WORKFLOW.md→ Agent handoff). - Blocked? If a step can't proceed because of an external dependency (an unmerged API, missing data/access, another team), set
status: blocked, note it inBlocked by:, and log it; flip back toactivewhen it clears. A blocker bug instead goes throughss-debug(which setsblockeditself).blockedis involuntary — to set the task aside by choice, usess-pause-task. See../WORKFLOW.md→ Status values. - Lessons: read
tasks/LESSONS.mdat hydrate and apply its rules; if you detect a process mistake, fix it and append anL#entry there (see../WORKFLOW.md→ Lessons).
Before you write
- Read
tasks/TASK-<ID>/plan.mdandspec.mdso every change traces to a planned step and a requirement. If they're missing, runss-plan/ss-specfirst. - Know the conventions: if
docs/onboarding/how-to-code.md/source-structure.mdexist, follow them (placement, naming, layer separation, error handling, imports); otherwise read neighbouring code and match its style. - Ask the user which approach they want — e.g. "Bạn muốn code theo TDD hay cách thông thường?":
- TDD — write a failing test first, then code to make it pass, then refactor (red → green → refactor).
- Thông thường (conventional) — implement first, then add tests to verify.
- If the user has no preference, default to whatever the codebase already does (if tests are pervasive, lean TDD); otherwise conventional. (Under
ss-ship, don't ask — apply this default directly.)
Method — loop per step
For each step in the plan, follow the chosen approach:
If TDD — work in vertical slices, one behavior at a time (the tdd skill has the full method; invoke it for depth):
- Red — write one test for the next behavior the step needs; run it and confirm it fails for the right reason. Test observable behavior through the public interface, not implementation details — so it survives a refactor.
- Green — write the minimum code to make that one test pass. Don't anticipate the next test.
- Refactor — only once green, clean up duplication while keeping tests green; stay surgical. Never refactor while red.
- Loop — repeat 1-3 for the step's next behavior. The first test is a tracer bullet that proves the path end-to-end; each later test responds to what the previous cycle taught you.
Anti-pattern — don't write all the step's tests first and then all the code ("horizontal slicing"). Tests written in bulk verify imagined behavior, not real behavior. One test → one bit of code → repeat.
If conventional:
- Implement the minimum code that satisfies the step. No features, abstractions, or error handling beyond what's required.
- Verify — write/run the test or run the step's success check; observe the behavior.
Both approaches:
- Stay surgical — touch only what the step needs. Don't refactor or "improve" adjacent code. Remove only orphans your own change created.
- Run the step's own
verify:fromplan.md, verbatim. That command is the step's definition of done — don't substitute an easier check, and report its real output. Never weaken the check to make it pass (loosening an assertion, deleting a test case, widening a type): if the check itself is wrong, that's a plan/spec change — update the artifact with a Change History line, then fix the check openly. - Don't claim done until the check passes. If it fails, fix and re-verify before moving on. If the same check is still failing after ~3 distinct fix attempts, stop patching — you're guessing, not fixing. Switch to the
ss-debugskill with the failing command as the repro (it records the fix intasks/TASK-<ID>/debug.md) and resume after. - Tick the step in
plan.md— change its- [ ] S#to- [x] S#once its verify check passes, so the file tracks real progress. - When reality contradicts the plan, update the plan — don't force it or drift silently. A small deviation (different file, extra helper): note it inline on the
S#and add a Change History line. A structural one (approach doesn't work, step obsolete, new step needed): stop, editplan.mdin place per its own rules (appendS#, never renumber, strike obsolete steps), get it re-approved if the approach changed, then continue. If the requirement turns out wrong, that goes back tospec.md, not just the plan.
Parallelizing independent steps
Default to coding sequentially in this thread — for dependent steps, TDD, or anything needing tight verification, that's faster and safer than a subagent (which pays a cold-start cost and breaks the per-step loop).
Fanning out is an application of the in-stage subagents doctrine (../WORKFLOW.md → In-stage subagents): the main thread owns the state and the gate, agents only produce code, and if the platform can't spawn subagents you do the steps inline instead. Only fan out to parallel subagents when the speed-up is real:
- Eligible when the
S#steps are genuinely independent — no shared state, and non-overlapping files (judge this from the plan'scovers:IDs and "Files to Touch"). Good fits: separate modules/endpoints, or mechanical bulk work (scaffolding, repetitive edits across many files). - How: give each subagent a tight brief — its
S#step(s), the exact files it owns, and thedocs/onboarding/how-to-code.mdrules. Run independent agents in parallel; if files might still collide, give each its own git worktree. - Main thread stays the owner: integrate the agents' output, run the full gate (lint + type-check + entire test suite), tick the
S#inplan.md, and updatetask.md. Agents implement; you verify and own the state — same pattern asss-explore-source/ss-debug. - Not eligible when steps build on each other, share files, or follow TDD — keep those sequential.
Quality rules
- Simplicity first: if it could be 50 lines, don't write 200.
- Match, don't impose: follow existing style even if you'd personally differ.
- Run the gates: lint, format, type-check, and tests as the project defines them (the exact commands from
docs/onboarding/how-to-code.md). - Don't run
git add/commit/pushunless the user asks.
When done
- Re-run the full gate fresh (lint + type-check + the entire test suite), even though every step passed individually — a later step can regress an earlier one, and per-step checks won't catch it.
- Confirm all plan steps are implemented and their checks pass — state results plainly (if a test fails or a step was skipped, say so with the output).
- Summarize what changed (files + behavior) and note any follow-ups or deviations from the plan.
External phase execution
If an orchestrator launched you for the coding phase only (../WORKFLOW.md → External phase execution), the rules there override the handoff below. In short: confirm the envelope with specship check TASK-<ID> --phase coding --actor <codex|claude-code> --expect-revision <n> --json (exit 0 or stop), work from the named task's plan.md/spec.md alone (don't ask TDD vs conventional — apply the default in "Before you write"), tick the S#s you complete, then checkpoint task.md last with revision +1 and stop. Don't ask about reviewing, don't invoke ss-review or ss-debug, don't call ss-ship — skip "Next step" entirely. A blocker bug means checkpointing debug as the next phase for the orchestrator, not running ss-debug yourself.
Addressing review findings means handing back to review. If you were launched because review: changes-requested classified the loop-back as coding, the verdict stands until you say the work landed: finish the findings, leave coding: done with every S# ticked, and set next_phase: review so the gate re-runs the review (../WORKFLOW.md → the gate table). Leaving next_phase: coding just relaunches you on work you already did.
Next step
Once the implementation is complete, ask the user whether they want to review and wrap up — e.g. "Bạn có muốn tôi review lại và hoàn tất không?".
- If the user agrees, immediately invoke the
ss-reviewskill (via the Skill tool) and continue in the same flow — don't make them ask again. - If the user declines, stop here.
- Under
ss-ship(autopilot), skip the question and invokess-reviewdirectly.
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.

