ss-coding-workflow
Skill2 starsChanged 5 months agoApache-2.0View on GitHub
Executes a ready-made plan or a plain-language change instruction end to end — branch, multi-agent coding with built-in review, and PR/commit delivery. Use for running an existing execution plan or a simple, well-scoped code change; use ss-feature-workflow instead when a proposal and plan still need to be drafted.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ss-archiveSkill
- ss-cleanupSkill
- ss-code-reviewSkill
- ss-codingSkill
- ss-create-branchSkill
- ss-create-prSkill
- ss-feature-workflowSkill
- ss-guardrailsSkill
- ss-inspectSkill
- ss-list-changesSkill
- ss-multi-repo-workflowSkill
- ss-planSkill
- ss-proposalSkill
- ss-referencesSkill
- ss-reverse-specSkill
- ss-show-specSkill
- ss-trace-specSkill
- ss-troubleshooting-workflowSkill
- ss-write-specSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
If ambiguous which one it is, ask.
- Distinctive: line 56
Use normal JSON escaping inside strings and compare the parsed object plus canonical serialization verbatim.
- Distinctive: line 63
Only the start and finish change:
- Distinctive: line 106
Run once on start. Any unmet check defaults to asking the user, not terminating.
- Distinctive: line 129
If an explicit branch name was given, use it verbatim and skip derivation.
- Very specific: line 185
After ss-coding returns its verdict, this workflow sets no gate and does not pause:
- Distinctive: line 188
No unresolved findings (approved) → go to delivery.
- Very specific: line 196
All judged invalid → pass the complete adjudication record back to ss-coding and require a fresh built-in review of the current diff.
≈ “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 Workflow
Chains the existing ss-* skills into a single execute-and-deliver flow:
ss-create-branch → ss-coding (built-in review) → review-acceptance loop → ss-create-prCore principle: thin orchestration. This skill never writes code itself. It calls the other skills in order, passes outputs along, and reports progress.
Review is not run twice.
ss-codingalready enforces a post-coding review internally and returns a verdict. This workflow never invokesss-code-reviewseparately — the review-acceptance loop below is driven entirely by that verdict.
Unlike ss-feature-workflow, there is no proposal or planning step here, and no manual gate by
default — the input is either an already-prepared plan or a change instruction handed straight to
coding.
When to Run
This is end-to-end orchestration: it creates a branch, spawns coding agents, runs reviews, and
delivers the result. Only run it when the user explicitly asks for this skill or clearly wants the
full execute-to-delivery pipeline. For an ordinary edit, a question, or a single-step request, do
the work directly (or point to the one relevant ss-* skill).
Inputs
- Execution input, one of:
- a path to an existing execution plan (produced by
ss-plan), or - a plain-language change instruction (e.g., "extract OrderService's helper methods into OrderUtils"). If ambiguous which one it is, ask; when deciding autonomously, treat text with a recognizable task/file structure as a plan, otherwise as a change instruction.
- a path to an existing execution plan (produced by
- Delivery mode —
full(default) orlite. See "Delivery Mode" below. - Explicit branch name (optional) — used verbatim by
ss-create-branch, skipping name derivation. Set this when a caller (such asss-multi-repo-workflow) needs one unified branch name across repositories. - Skip-gates / decide-autonomously — kept for consistency with the other workflows; this workflow has no gate by default, so skip-gates has little effect here.
- Worktree preference — forwarded to
ss-create-branch.
Derive one stable input identity before pre-flight and carry it verbatim into branch/commit/PR references and result evidence:
- plan input → compact JSON with keys in this exact order and no extra whitespace:
{"kind":"plan","path":"<canonical repo-relative POSIX path>","problem_id":<JSON string containing the exact persisted Problem ID, or null>}; - direct instruction → compact JSON with keys in this exact order and no extra whitespace:
{"kind":"instruction","sha256_12":"<first-12-lowercase-hex-of-SHA-256>"}, hashing UTF-8 text after trimming, lowercasing, and collapsing each whitespace run to one space.
Use normal JSON escaping inside strings and compare the parsed object plus canonical serialization verbatim. Never derive identity from a later summary, branch name alone, or whichever artifact is newest. Repository-runner invocation does not weaken these checks.
Delivery Mode: full vs. lite
The quality gates — TDD, multi-agent code review, verification — are identical in both modes. Only the start and finish change:
full (default) | lite | |
| Start | ss-create-branch cuts a branch (optionally a worktree) | Skipped — develop in place on the current branch |
| Finish | ss-create-pr opens a pull/merge request | Skipped — finish with a conventional-commits commit (push optional) and print a change summary |
| Cleanup | ss-cleanup removes the branch/worktree after merge | Not applicable |
Mode resolution: an explicit mode input wins; otherwise ask once at the start and use that answer for the rest of the run. Never persist the choice to a project config file.
Multi-Repo Routing
Checked once, before pre-flight — this workflow's input is the plan, so multi-repo nature is
fully decidable at the entrance. Full rules in ../ss-references/multi-repo-detection.md (this
table is a condensed copy; the reference file wins on conflict).
| Level | Signal | Action |
| Deterministic | Input is a master plan (*-master.md with a **Repos:** table of more than one row), or a plan set with multiple **Repo:** sub-plans | Hand off to ss-multi-repo-workflow — no question when deciding autonomously |
| High confidence | The plan's file paths escape the current repo root (../other-repo/..., or absolute paths outside it) | Ask, showing the paths; autonomous mode hands off |
| Heuristic | The change instruction explicitly requires committing code in two or more repositories | Ask, showing the evidence; autonomous mode hands off |
| Exclusions | Shared API-contract repo, spec/standards submodules, read-only mentions of other services, multiple modules inside one repository | Not multi-repo signals |
On hand-off: pass the original input, any existing artifacts, and the active automation flags to
ss-multi-repo-workflow; print one line explaining the hand-off and terminate this workflow.
Iron Rules
Violating any of these means stopping and explaining to the user:
- The orchestrator does no real work — only call other
ss-*skills; never edit source directly. - Pre-flight checks ask, they don't abort — apply the autonomous default only when deciding autonomously.
- No gate for review — run the loop instead — see "Review-Acceptance Loop". There is also no gate before delivery.
- Resumable — on start, probe for existing artifacts and skip completed steps.
- Never relax safety guardrails — automation flags only affect questions and approvals; they never bypass the hard rules built into the underlying skills.
Pre-flight Checks
Run once on start. Any unmet check defaults to asking the user, not terminating.
| Check | Trigger condition | Ask the user (default) | Autonomous default |
| Requirement/plan source reachable | Input is a URL and no tool is configured to fetch it | [describe how to fetch it]/[switch to a local file or pasted text]/[abort] | Cannot read the source → abort and report |
| PR-hosting CLI available | Neither gh nor glab is installed/authenticated | [install/authenticate then continue]/[continue but skip ss-create-pr]/[abort] | Continue; skip ss-create-pr, prompt to deliver manually |
| Branch state | Still on the trunk/default branch when entering coding | [create a branch first]/[code on the current branch]/[abort] | Auto-invoke ss-create-branch, then continue |
No source-fetching tool is needed when the input is a local plan file or plain text — the check only triggers for a URL input, same as the other workflows.
Resume Detection
| Step | Completion check | On hit |
ss-create-branch | The current branch/worktree is explicitly linked to the exact input plan or normalized direct-instruction identity (branch slug, commit/PR reference, or recorded workflow artifact) | Reuse/switch only when identity matches; otherwise create the correct branch |
ss-coding | Every task in the exact input plan is checked off; built-in review is APPROVED for the current diff; full verification evidence matches current HEAD; and the tree is clean | Skip coding; stale checkboxes or evidence from another plan/ref never count |
ss-create-pr | An open PR is linked to this identity-matched branch and exact plan/instruction, and current structured evidence satisfies every SUCCESS invariant including delivered/tested ref equality | Report the existing PR link and finish; an open PR alone is insufficient |
Process
- Pre-flight and resume, then detect the input type (plan vs. change instruction).
ss-create-branch(full mode only):- If an explicit branch name was given, use it verbatim and skip derivation.
- Otherwise name the branch from the plan title, or from the change instruction's summary with
a prefix that matches its nature (refactor →
refactor/, small feature →feat/, small fix →fix/); ask if ambiguous. Forward the worktree preference. Record the branch name and worktree path.
ss-coding— full execution for a plan input; inline fast mode (handles small, low-file-count changes without a full plan) for a change instruction. It already covers TDD and test verification, and enforces its own post-coding review before returning a verdict.- Review-acceptance loop — adjudicate findings and feed valid fixes or invalid-finding reasons
back into
ss-codinguntil its fresh built-in review returns literalAPPROVED, or escalate. - Delivery (full mode) — call
ss-create-prto archive any delta spec, rebase, and open the PR; report the link, plus a reminder thatss-cleanupremoves the worktree and branch after merge. (lite mode) — commit with a conventional-commits message (push optional), then print a summary of files changed, tests run, and the review verdict. Resolve the final delivered commit after all delivery/rebase work. If it differs from the last test-verified ref, rerun full verification against that commit; if conflict resolution or delivery changed content, rerunss-codingso its built-in review approves the delivered diff. Structured result block — always end the final report with this block. A repository runner under
ss-multi-repo-workflowreturns it to the parent; in ordinary interactive use it is just a few extra lines. Values for object/array fields are compact valid JSON on one line:---SS-RESULT--- status: SUCCESS | FAILED | BLOCKED input_identity: {"kind":"plan","path":"docs/plans/example.md","problem_id":null} branch: <branch-name> delivery: <pr-url | local-commit:<7-64 lowercase hex SHA> | none> delivered_ref: <7-64 lowercase hex SHA | none> review_verdict: <APPROVED | NEEDS_CHANGES | CRITICAL_ISSUES | NOT_RUN> test_verified_ref: <7-64 lowercase hex SHA | none> test_evidence: {"command":"<full verification command or none>","result":"passed|failed|not-run","summary":"<concise result>"} tasks_completed: <N/N> changed_files: ["path/one", "path/two"] commands_run: [{"command":"<exact command>","result":"passed|failed|not-run","summary":"<concise result>"}] residual_risks: ["<remaining non-blocking risk>"] clean_worktree: <true | false> blocker: <one-line reason when status is not SUCCESS, else omit> ---END-SS-RESULT---Emit exactly one block, as the last thing in the final message, with every field except the conditional
blockerpresent. Use[],none, andnot-runrather than omitting evidence on failure paths.status: SUCCESSis valid only when all of these hold:input_identityexactly matches this invocation; delivery is an open PR or explicit local commit;delivered_refis the final commit delivered at that location;review_verdictisAPPROVED;test_verified_ref == delivered_ref;test_evidence.resultispassed; its exact full verification command appears as a passed entry incommands_run; every task is complete;changed_filesis non-empty; all residual risks are disclosed;clean_worktreeistrue; andblockeris absent. Any contradiction or missing evidence changes the status toFAILEDorBLOCKED. Every escalation/abort path emits the block withblockerfilled in.
Review-Acceptance Loop
After ss-coding returns its verdict, this workflow sets no gate and does not pause:
- Read the verdict.
- No unresolved findings (approved) → go to delivery.
- Unresolved findings remain → judge each one: valid goes on the to-fix list; invalid
(false positive, out of scope, by design, or suggestion-only) is recorded with a reason and
left unfixed.
- Scope-reduction findings get no leniency: a finding reporting unimplemented requirements, stubbed logic presented as complete, or scope silently deferred ("phase 2", "MVP", "simplified for now") must never be judged invalid as "by design" or "out of scope" unless the user explicitly approved that scope adjustment earlier — cite that approval.
- All judged invalid → pass the complete adjudication record back to
ss-codingand require a fresh built-in review of the current diff. Only a literalAPPROVEDresult proceeds to delivery; if approval cannot be obtained, emitFAILED/BLOCKEDrather than rewriting the prior verdict. - Valid findings remain → call
ss-codingagain for just those findings → back to step 1.
Convergence protection:
- Cap workflow-level rounds at 3, independent of
ss-coding's internal rounds; if exceeded, escalate with the latest verdict plus the fixed/unresolved lists. - Track recurrence at the workflow level: the same finding judged valid across 2 consecutive
workflow rounds after being "fixed" is a stall — escalate. Don't rely on
ss-coding's internal counter; it doesn't accumulate across calls. - Record every "invalid" judgment and its reason. Never force a finding to "invalid" just to pass.
Edge Cases & Error Handling
| Situation | Handling |
| Input empty | Ask for a plan path, plan text, or change instruction |
| Plan is missing a file list | Incomplete plan; report and stop |
Change instruction is too large (ss-coding estimates more than ~5 tasks or ~5 files) | Suggest switching to ss-feature-workflow for full planning; ask whether to continue anyway |
| Coding is blocked | Stop, escalate, preserve the scene |
| Review-acceptance loop exceeds max rounds | Escalate |
| Worktree creation fails | ss-create-branch falls back to in-place development automatically; record and continue |
| No PR-hosting CLI, user chose "continue" | Stop before delivery, prompt to deliver manually |
Examples
Run ss-coding-workflow on docs/plans/2026-06-26-refund.md
Run ss-coding-workflow with "Extract OrderService's helper methods into OrderUtils"
Run ss-coding-workflow with "Add 2-decimal-place amount validation to /api/refund", deciding autonomouslyDoes 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.

