Skip to content

Using A feature start to finish

Ilia edited this page Dec 3, 2026 · 22 revisions

Starting. sclaude new offers the repository's open issues, yours first; in the terminal each one shows its column on the GitHub board in yellow, last on its line. The chosen issue suggests a branch name, which you can edit. sclaude moves the issue to In progress on the board and fills in its start date. Before it creates the worktree, it brings the main checkout up to origin/main (a fast-forward, and only when it is on main) and, if its lockfile moved, runs the product's clean install there (npm ci unless its config names another, deps.ci): the new worktree links the main checkout's dependency folder. An edit in the way of the fast-forward, or a Node process working in the main checkout (a dev server, a typecheck, a test run), leaves it as it is, with a warning that says what to run once it is out of the way. For dependencies other than npm's, it asks before it reinstalls.

Closing a session from sclaude's terminal. Under Windows Terminal in WSL a session runs in a tab of its own, and while it works the tab sclaude waits in takes keys of its own; they are listed, a word each, on one line under the line that says the first session started (the same keys are not listed again for the next ones), and k is a box on the status line. Every session sclaude starts closes by itself once its work is done; these give you the word instead, and change nothing else: going forward is the session's own end, going again is your /exit. The letter says which, the case says when — lower case goes on now, upper case stops sclaude until the next sclaude <feature>. Every key is pressed twice in a row, so a stray one does nothing: the first press shows the key and what it does in yellow on the status line, and the second press or any other key clears it:

key what happens
n forward, now: closed as if it had ended itself — its marker written, the plan on screen counted as approved, step 2's work as accepted, so you skip the turn Claude would spend reading your approval; its friction review and the step's checks run, then the next step
N forward, later: the same, and sclaude stops before the next step's session (after step 4, before the preview)
r again, now: closed as /exit closes it, and the same conversation opens again at once, with no message to it
R again, later: closed as /exit closes it, and sclaude stops; the next sclaude <feature> opens this conversation again. A step's session has its friction review first
k keep it open: it does not close by itself when its work is done, and you leave it with /exit; twice again, and it closes as usual

The retrospective has no marker written for it by n: its own marker means "nothing to act on", so n closes it as its /exit would. With no tab (over ssh, or inside code-server), claude has the terminal to itself and there are no keys.

Step 1, plan. Claude gets the issue, its parent issues and the manuals' contents up front. It tells you what it understood and waits; you correct it, and only then does it plan. The plan ends with acceptance criteria: a numbered list (AC1, AC2, …) of things a person can check on a deployment without reading the code. When you approve, the criteria go into the issue as a comment of their own. sclaude never edits an issue's description: the original request, the criteria and the status are separate comments, so the task as it was given stays readable.

A feature too large to build and show in one go (about 10,000 changed lines) is offered in parts. If you take it, it stays one feature: one issue, one plan, one pull request, one QA, built in parts. The plan gets a ## Parts section (### Part 1 — …) and each criterion names its part (AC7. [part 2] …). Step 2 then builds the parts one after another, each in a session of its own on its own branch (feat/<slug>-1, -2, …) over the part before it. No pull request and no review yet: before a part closes, a fresh subagent reads its diff for what would cost more to fix later — the design the next parts build on, bugs the tests miss — and the session fixes what it agrees with. Ask for something while a part is built and the session decides where it goes: now, when it touches what is built; into a later part of the plan, when that part covers it. Nobody is asked whether a part works — unless the project sets partAccept to each (sclaude config), and then each part ends on its demo and your Accept too. You are asked as well when you leave a part's session with /exit before it says the part is built, or when the part has no commit of its own: the next part starts only on your yes.

You still see each part as soon as it is built. Between two parts, before the next one starts, sclaude records a demo of what the part just added — only that, on a desktop and a phone — and sends it to the feature's Telegram topic and prints its page in the terminal: 🎬 Part 1's demo is ready. It asks nothing: watch it, and say what to change in the next part's session, which starts then — at the terminal or from the phone. That session changes what is already built and writes into the plan what a later part should. The next part waits for the recording, a few minutes; no demo is recorded after the last part, for a part that changed nothing a user sees, or with demo: off.

When every part is built, step 2 closes on the last part's branch as for any feature: the whole thing checked as one, the demo — written from the parts' scenarios, not from scratch — and your Accept.

Then the parts become one branch, the feature's, and the feature goes on as any other: step 3 opens one pull request into main, its description listing the parts, and step 4 reviews it — in review blocks, at that size (below). The menu shows where the parts are: 2/7 development · part 2/3 while they are built.

To ship a split feature with the parts built so far, sclaude parts <name> stop, while the parts are built, leaves out the part at work and the ones after it: step 2 closes on the parts kept, and its session strikes the left-out parts' criteria, files them as an issue of their own and takes them off the issue's list.

Step 2, code. A fresh session builds it, with the approved plan as its brief. Each commit names the criterion it serves in a Requirement: footer. Claude checks its work in Chrome at the feature's address. Before it asks, it cleans the code with Claude Code's /simplify — a part's session, its part — (simplify: off leaves that out) and records a demo of the feature, on a desktop and on a phone (skills/sdemo) — after your remarks that changed the code, a short delta of only what changed for a user, then the whole demo again — and gives the link first in its report; the link and the videos go to the feature's topic and to a demo comment on the issue, where QA finds them — the full demo, while each delta stays in the topic alone; a new full demo takes the earlier full one out of both, and the feature's demo page keeps every version as its history. It ends on one question in its own dialog: Accept, and the session closes and sclaude goes on with no question of its own; Remarks, and you say what is wrong and the session carries on. The step closes when you accept the work and the product's local tests pass. A branch not pushed yet is put on top of main before those tests, without a question, when it rebases cleanly.

Step 3, pr. The pull request, opened as a draft by the pr skill, with the criteria copied in as a plain list for QA, who ticks them in the issue, and the manuals updated in the same pull request.

Step 4, review. The project's automatic review reads the pull request, and a session fixes what it found, one round at a time. After every round — including the rounds a session takes up by itself — sclaude prints the review report in its terminal and sends it to the feature's topic: per round, what was found and how much of it sat on earlier fixes, and what the fix took and cost. The review marks each finding important, a nit, or a bug older than the change, and the session weighs a finding by that mark: a minor one is the readiest to leave with a reason, and an older bug too big for this change is filed as an issue of its own. Once nothing is left open, one polish round runs before the step closes: /simplify over what changed since step 2's own /simplify — the review's fixes and anything else changed since — or over the whole pull request when that point is not known (with simplify: on); with nothing changed since, there is no polish round. Its push is reviewed like any; in the report its session reads simplify — on a row of its own under the round when that round's findings were fixed first — and each place it changed counts as a finding found and fixed, in that row and the totals. The step closes when the review has nothing left open, the preview is deployed and its tests pass. A pull request too big for one review to read well — past 5,000 changed lines, generated files left out — is read in review blocks. As step 4 starts, a session cuts it once: each block is a group of the plan's criteria with the files that carry them, so that a rule is read end to end, from its criterion through the database and the server to the screen; tests go with their code, the manuals come last. The blocks are listed in the feature's topic and the terminal, and the review starts at once; the cut is kept in .sclaude/local/feature/review-blocks.json. Each block is read to a clean verdict before the next opens, its fixes going on top of the whole branch, and after the last a pass reads the seams between them — what changed in a block after it was read, the behaviours together; the topic is told as each block closes, and once more when the seams do. Meanwhile the review runs on this machine whatever the review setting; under a GitHub setting the project's CI there still counts. The menu says 4/7 review · block 2/5. A block whose files change by more than a block's size after it was read (a rework, a large fix) is read whole again before it closes — unless you ended the search, when you are told it was not. A block that has grown past a block's size by then — its fixes added files, a rework added code — is first split by behaviour into smaller blocks (1a, 1b, …), each read whole on its own, and the topic shows the blocks as they are now; the blocks after keep their names. reviewBlocks in the project's config sets the two sizes (from, 5000, and size, 3000 lines a block). Once the preview's tests pass, before the issue goes to QA, when the product's code changed since the last demo — the review may have changed what the feature does — a headless session records a delta of what changed for the user and the whole demo again, starting from the last script and what changed, and the issue's demo comment is replaced by the whole demo, the delta going to the topic and the page: step 2's demo is for you accepting the work, this one for QA to see what the feature is and what changed. Only where a person does QA (qa: github or both, or auto-own on somebody else's issue); with qa: auto (or auto-own on your own issue) the whole demo is recorded again before the last epilogue instead, and no delta. Where nothing a user meets changed — tests, a refactoring, a fix nobody sees — that session records nothing and keeps the demo there is (demo.py keep), and sclaude says why. Nothing it records goes out while it works: the last delta and the last full recording it made are sent to the topic and the issue after it, once each — none when it ended by keeping the demo — and a try it fixed is sent nowhere. While it works the terminal says what it is at, a bold line for each change, which goes to the feature's topic too — reading what changed, writing the script, recording the delta or the whole feature and which try, what the recording came to — under a status line that counts the scenarios as they play (scenario 3 of 6 … step 4) and the time against its forty minutes; refresh.log in the demo's folder keeps the same with what the session said. Wherever a demo plays in a feature's tree — step 2's /sdemo too — Claude Code's status line shows the scenario and the step (🎬 delta 2/4 · step 5). What it found wrong in the product while recording — a check that failed, a fault it had to go round — is printed in sclaude's terminal. At night (/isleep) a finding the session would leave as it is does not hold the step till morning. A minor one the review posted, with no reply under it yet but the review's own "still open" — nothing at risk for users, data or security, nothing promised changed, no check weakened, nothing left to mislead whoever maintains the code, and within those limits grammar in a comment, a duplicate or an unlikely case with small consequences — the session resolves itself, with a reply saying it was resolved at night without you, and lists it in its report; unresolve it on GitHub to make it open work again. Any other waits for you, and in the morning sclaude offers a session that asks you about each such thread and, on your yes, replies and resolves it on GitHub itself. The report after each round has a row per review run, in the order of the cycle: find — what the run found and what it cost, the pass on this machine as Claude Code accounts for it (— for GitHub's review, which sclaude cannot price), findings GitHub's review could only post as a comment counted with the threads; fix — the session that fixed those findings, its time and cost, and what it declined; and result — fixed, waiting. When the pull request is read in review blocks, a block column after the round's number says which block the run read and its round there — 3.7, block 3's seventh round, as the review's map names it; seams.2 is the second round of the last pass, over the seams between the blocks. A w is a value not known yet: a run still going, findings no session has started on, a launch whose cost comes when it ends. When the report says the fixes are feeding the review two rounds running — said only while something is open — its verdict is red, and the feature's topic is told once, with the keys that end the search for new findings. What a round leaves open goes back to a review session without a question: s (⏭ on the topic) is how the rounds end, n and r in sclaude's tab act at once. Leaving the session yourself (/exit) stops them there, unless [g] is ticked: the step stays open until the next sclaude <feature>. A round goes back to the same session while its context is under 40% and its last request is under 55 minutes old, so its prompt cache is still warm; otherwise a fresh session takes it, which costs less than resending a cold context. Once you end the search, one question with three answers settles the rest: check the fixes, close the step, or leave it.

When the review in Actions cannot run — the Claude subscription it runs under hit its usage limit, the GitHub account has no Actions minutes left and the job never started, or GitHub's runner could not reach the network to set the job up (apt stopping on packages it could not fetch) — what happens is the project's review setting (sclaude config). Once a Claude limit has reset, sclaude reruns the job on GitHub itself, at the next look, and neither stops nor moves anything. Before that, with github, step 4 stops and says why, in the terminal and the feature's topic: come back after the reset, or change the setting. With github-local — GitHub preferred, this machine as the backup — that feature's review moves to this machine, as with review: local, labels its pull request no-review, and says so. It stays local to the feature's end. For a while after that — until Claude's limit resets (five hours when the log did not say when), a day for the minutes, an hour for a runner without network — every other feature reaching step 3 or 4 on this machine is reviewed locally from the start; after that the next one tries GitHub again. Moved for Claude's limit alone, the feature's other Actions checks still count; moved for the minutes or a runner without network, none do.

With the review on this machine, its status line shows two boxes while a pass runs, ticked until they apply: [s] makes the pass the last that looks for new findings, and [g] lets the review go on by itself — no question after it: a pass that failed runs again after a pause that grows by a minute each time (ten times in a row, then you are asked), the fixes are checked and what is open goes back to a review session, for 30 rounds at most, then it is off for that step 4 and you are asked (a press of [g] then turns it on). In a project whose review runs in Actions, the wait for it shows [g] too. The friction review, which waits for you to approve its plan, is not opened after step 4's sessions (a review round's, a sync's, a regression fix's) — unless you typed sclaude friction or sclaude sync at the terminal yourself: their log is kept for the next friction review after the box comes off, and at the latest for the one before the retrospective; step 4 itself goes on. Each key pressed again takes its box back. [g] has three values, in turn on each press: auto (the default — the project's sleep_mode decides: by default, an /isleep night over every session, not an /isleep here one — and the box shows auto ☑ (night) or auto ☐), on (☑) and off (☐); on and off are yours and stay for the whole review, step 4 reopened included. [n n] (forward, now — the letter of the session keys below) stops the pass at once and ends the search for new findings, as [s] would after it: what is open goes to the fix session, and its fixes are checked only if you say so. A pass whose answer was refused (unfinished, or not in the review's format) runs once more at once; one that did not run, or was refused again, asks whether to go on with the head unreviewed — its reason in the terminal and the feature's topic, and on the phone the question carries that reason alone — and n reviews it again rather than leaving sclaude. A pass that met Claude's usage limit asks nothing: sclaude says in the terminal and the topic when the limit resets, waits until a minute past it (half an hour when the answer gave no time), and reviews the head again by itself; Ctrl-C leaves. The review on GitHub is treated the same way when it hands back before it finished (its findings check says "review did not finish"): no session opens for it; it runs again once by itself, and if that does not finish either you are asked whether to go on with the head unreviewed — n runs it again, [g] ticked does so by itself. A review on GitHub that read only the commits since the last one and never opened some of the files they changed has those files read by one short pass on this machine, before any session opens; what it finds goes to the session with the rest, and on the review map that round shows which files it read. With the search ended, no such pass runs. While a review session works in its own tab, the terminal sclaude waits in shows the same two boxes and takes [s] and [g] too; [s] said then ends the search, so after that session sclaude asks whether to check its fixes — or checks them, with [g] ticked.

QA, merge, production. The issue moves to In QA, and sclaude waits — you can close the terminal; a background timer keeps watching the board. QA checks the criteria on the preview and ticks them in the issue.

  • QA moves the issue to Done: the pull request is marked ready and gets a summary for whoever merges, and sclaude goes on to the merge.
  • QA moves it back to In progress: their comments are collected word for word and a review session opens with them.

You can also send a finished feature back yourself with sclaude return.

A branch that does not merge with main is synced first. Before the preview, again after QA's yes, and every two minutes while it waits for the merge, sclaude asks git whether the branch still merges with main — no session and no tokens for that. When it does not, step 5 merges main in, resolves the conflicts, checks the result and pushes; the preview, its tests and QA then run again on that code — QA only when the branch's own product changed: what main brought in and files that are not the product (.sclaude, docs, .github, .githooks, *.md) leave QA's yes standing. A conflict only in the deferred logs sclaude merges itself, with both sides' rows. A pull request already handed over for the merge goes back to a draft when a sync changes its code. Every step starts on a branch carrying the latest main, too: sclaude merges it in without asking, and a merge that would conflict goes to the same sync first. With uncommitted work in the tree it merges nothing and says so; the merge is then sclaude sync <name>, which goes the same way — the menu's line says beforehand whether a session will be needed. A merge left half-done in the tree holds the step until it is finished (sclaude sync <name>) or backed out (git merge --abort).

The merge is yours (unless the product set it otherwise). After it sclaude offers production, runs the tests there, and rolls back if they fail.

Epilogue and retro. A short session writes the outcome into the issue and every parent issue, so an epic shows where it stands without opening each child. The issue gets deployed-preview / deployed-prod labels, and its end date is filled in. Then sclaude done first runs every friction review still owed — one held under [g], one cut off, a log no review read — then the retrospective, and asks before removing the worktree and branches.

Every Claude session sclaude starts, its model and permissions, and where the issue's summary table shows it. The table lists the sessions in the order they began, whatever their kind:

Session Model Permissions What it does In the issue
1. plan opus / high plan Discussion; the only file it may write is the plan a row
2. code opus / medium auto Implementation, checking in Chrome, commits a row
3. pr sonnet / medium auto The manuals and the pull request — calls the pr skill a row
4. review opus / medium auto Fixing review findings, one round at a time, then one polish round (/simplify); a QA hand-back or a production rollback reopens it a row per session, with its rounds
fix after a regression as step 2 for the local tests, as step 4 for the preview's and production's auto Makes red tests green; after a rollback it is told what failed on production a row per session, with how it ended
5. sync sonnet / medium auto Only on a conflict with main: the merge of main into the branch, its conflicts resolved, checked and pushed a row per session
6. epilogue sonnet / medium auto The outcome as one comment per issue, on the feature's issue and every parent; changes nothing in the repository a row
7. retro opus / medium plan What you missed, how to work better, what sclaude could do better. What it fixes goes on the feature's branch and sends the feature back to step 3, those commits moved onto main when the merged pull request was squashed a row
friction review opus / medium plan After each step and fix session: reads what the safety rules refused, and loosens a rule that was in the way a row of its own, and what it came to in the Friction column of the session it read
demo refresh as step 2, claude -p the demo's files only With demo: on, when the code moved past the feature's demo: records it again before QA and at the epilogue a row per session
local review pass opus, claude -p read-only With the project's review set to local: finds problems in the pull request before step 4's session a row per pass the journal recorded, with the findings it posted; the findings land on the pull request, the report in the feature's Telegram topic
friction matching haiku, claude -p no tools One call that matches proposed rules to the ones already put off, when there are any to match them to not a row of its own: it keeps no conversation; the "friction put off" row that follows it says the proposals were put off
monthly friction review opus / medium plan sclaude deferred: the rules put off across features not on a feature's issue: it belongs to none
sclaude's workshop opus / medium plan sclaude workshop (the bot's 🛠): changes sclaude with you in a worktree of its own, reviews it and publishes it on your word not on an issue: it belongs to no product

Generated from docs/sclaude-guide.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally