Repository navigation
Conversation
…an template inaccuracies
…dev's text where no issue requires a change Of this PR's edits to writing-plans, the design keeps the plan header without "(recommended)", the Modify example without a line range (#2178, defect 1) and the commit-message placeholder (#1187). Everything else returns to dev's text: - the Context line, which no cited issue needs; - the example paths in the Files block and in Step 3, and the test name in the Step 2 and Step 4 run commands; the Modify example keeps its symbol anchor on dev's path; - the "substantial context" paragraph at the top of Execution Handoff, which the next commit replaces with one fixed sentence in each handoff prompt (finding A1, with A5's option a). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… say what to do when it is chosen In #2612 a plan was written and approved in a session that had reached 487k tokens, and subagent-driven-development then ran in that same session, re-reading that context on 183 coordinator requests. The handoff never mentioned starting execution in a fresh session. Each handoff prompt now ends with one fixed sentence: execution can run in a fresh session, which reads the plan instead of carrying the whole conversation into every turn. A new branch covers the partner taking that offer: give them a start line that names the plan path and the skill for the approach they chose or supplied, to be opened in the checkout where the plan is saved, and invoke neither executor in this session. The sentence is fixed and unconditional (finding A5, option a). A "substantial context" trigger has no threshold, it is unverified whether any harness shows the model its context size at that point, and an offer composed fresh each run can land anywhere in the prompt. The start line names the skill because a new session given only the plan path has no record of the choice: by the skill descriptions, an agent with a subagent tool starts subagent-driven-development even when the partner chose Native (finding A1; inferred from the descriptions, not run). Without the branch, a partner answering "Native, but in a fresh session" would have this agent start executing-plans here, in the session the offer exists to leave. The text is finding A1's replacement for the section, unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… path's code span The task template's Modify line put its note inside the path's code span: `exact/path/to/existing.py (function normalize_path)`. Plans copy the template, so a plan author copies the note as if it were part of the path. Every other code span in the Files block holds a bare path, and the form #2178 suggests keeps the symbol outside the path's span. The line now reads `exact/path/to/existing.py` (function `normalize_path`): dev's path alone in its span, the function name in its own. The example still cites a symbol rather than a line range (#2178, defect 1). This is review finding A3's form, applied to dev's path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t commits In #1187 an agent took its commit style from the writing-plans example without looking at the repository's git log. The template's commit step already uses a placeholder, "<message matching this repo's commit style>", but the placeholder does not say where that style is found. It now reads "<message in the style of this repo's recent commits>", which names where to look. This is review finding A4's wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
danishkumar26
left a comment
There was a problem hiding this comment.
Code review from Hermes Agent (danishkumar26). Comment only — this token cannot approve on this repo.
What this change does:
- Both execution-handoff prompts now offer a fresh session unconditionally, replacing the vague "substantial context" trigger that had no threshold and could land anywhere in the prompt.
- When a fresh session is chosen, the partner gets a start line naming the skill and plan path ("Use superpowers: to execute docs/superpowers/plans/.md"), opened in the checkout where the plan is saved, and neither skill is invoked in this session — so "Native, but in a fresh session" no longer starts executing-plans in the session the offer exists to leave.
- Files block: the Modify example keeps the path bare in its code span and puts the symbol outside it (
exact/path/to/existing.py(functionnormalize_path)), per #2178 defect 1. - Commit placeholder now says "<message in the style of this repo's recent commits>" so agents check the repo instead of copying the example (#1187).
- Drops the stale "(recommended)" sub-skill tag and the Context line.
Looks good. Ship.
Not checked: none — skill text only; checked the wording against the cited prior findings (#2612, #2178, #1187) and the plan template's other examples (all bare paths in code spans).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Who is submitting this PR? (required)
superpowers,dealerboard,toolsmith@arittr)What your human partner asked you to do, in their words:
Human-authored summary (required, under 200 words)
By the time you finish a long brainstorming and plan-writing conversation, the session is carrying a huge amount of exploratory context before a single line of implementation code is written. Starting execution inline or dispatching subagents from that bloated session burns extra tokens on every turn, yet
writing-plansonly offered continuing in the current session. We also had a few bad habits baked directly intowriting-plans's task template: it taught:123-145line-number citations that drift as soon as an earlier task edits the file, hardcoded"feat: ..."commits even in repos that don't use Conventional Commits, and left it unclear that the plan itself gets saved in the current checkout before the executor sets up a worktree.This adds a fresh-session handoff note when context is heavy, clarifies worktree timing, and fixes the template's citations, commit-style guidance, and inconsistent dummy paths.
What problem are you trying to solve?
Fixes #1187.
Addresses part of #2178 (defect 1: the template's line-range citation).
Addresses part of #2612 (item 1: the plan and the build ran in one session).
dev, both handoff prompts inwriting-planslead only to starting an executor in the current session. This PR addresses that item only. The issue's other items (the method comparison skipped when a method was already supplied, repeated full-suite runs, no spike for a run-time estimate) are not touched.superpowers:subagent-driven-development (recommended), while the handoff already recommends one approach per plan ("For this plan I recommend , because …"). obra's comment closing writing-plans: make execution-handoff recommendation contextual #2265 named this leftover and said it would be fixed separately.writing-planstemplate teaches line-number citations, which go stale by construction #2178. The task template demonstratesModify: exact/path/to/existing.py:123-145. Plans copy that form, and a line range goes stale as soon as an earlier task edits the same file; a stale range still resolves, to different code. The reporter found eleven stale citations in one plan. A comment on the issue says defect 2 (one file per plan) is in progress in open PR Plans as directories (a header file plus one file per task), and a boundary check before each next plan #2340. Defect 3 (Self-Review checks for citations against HEAD and for mutation binding) and a commenter's report of plan steps that anchor edits by line number are not addressed here.git commit -m "feat: add specific feature". In a repository whose recent commits use gitmoji, Claude used the Conventional Commits style and, asked why, pointed at this example. The reporter said it did not check the existing commits.What does this PR change?
All changes are in
skills/writing-plans/SKILL.md:(recommended)aftersuperpowers:subagent-driven-development.Modify:example drops the:123-145line range and names a symbol instead, outside the path's code span:- Modify: `exact/path/to/existing.py` (function `normalize_path`)."feat: add specific feature"becomes"<message in the style of this repo's recent commits>".Is this change appropriate for the core library?
Yes —
writing-plansis a core workflow skill used across all projects and harnesses.What alternatives did you consider?
devalready recommends one approach per plan; obra's comment closing writing-plans: make execution-handoff recommendation contextual #2265 named the header's leftover(recommended)as a separate fix, which this PR makes.test-driven-development's rule against writing production code before the failing test.dev's text, because no cited issue asks for either.dev's template still runs::test_name, a test it never defines, and its Create and Step 3 path (exact/path/to/file.py) does not match its owngit addline (src/path/file.py).Does this PR contain multiple unrelated changes?
Partly. This PR makes four small changes to one file. The header edit and the fresh-session offer both concern how the plan's execution is chosen and started. The two task-template lines (#2178, #1187) are independent of the handoff and of each other; they are included because each is a one-line change to the same template and the request quoted above names them together.
Existing PRs
I have reviewed all open AND closed PRs for duplicates or prior art
Related PRs: writing-plans: make execution-handoff recommendation contextual #2265 (closed), fix(writing-plans): avoid imposing commit style examples #1813 (open), fix(writing-plans): avoid teaching conventional commit style by default #1211 (closed)
writing-plans: make execution-handoff recommendation contextual #2265 proposed making the handoff recommendation contextual. obra closed it because
devalready makes a per-plan recommendation, and his closing comment named the header's leftover(recommended)as a separate fix, which this PR makes; this PR leaves the handoff's recommendation logic asdevhas it.fix(writing-plans): avoid imposing commit style examples #1813 addresses Claude picking up conventional commit style from example #1187 by changing the example to
"add specific feature", adding a paragraph that says to check project instructions and recent commits, and adding a bullet on commit style, alongside version bumps, release notes and changes to SDD scripts and tests; for Claude picking up conventional commit style from example #1187 this PR changes only the commit line, putting fix(writing-plans): avoid imposing commit style examples #1813's pointer to recent commits into the placeholder itself.fix(writing-plans): avoid teaching conventional commit style by default #1211 (closed by its author) addressed Claude picking up conventional commit style from example #1187 by changing the example to
"Add specific feature"and adding a sentence to use the repository's existing commit style; this PR replaces the example message with a placeholder instead of another literal message.This PR carries no text from another contributor's PR.
Environments tested
New harness support (required if this PR adds a new harness)
N/A — does not add support for a new harness.
Evaluation
Initial prompt: Apply the scoped
writing-planstemplate fixes (Claude picking up conventional commit style from example #1187,writing-planstemplate teaches line-number citations, which go stale by construction #2178) and fresh-session handoff offer (subagent-driven-development: 15-task port of a ~2,000-line R script hit 5 session limits; coordinator context grew to 830k tokens (Claude Code) #2612) without altering TDD step ordering or guard prose.Checks run at the final head (
75e3c597), from the repository root:bash tests/skill-size/test-skill-size.shprintedPASS: every SKILL.md is under 20000 bytes(exit 0).bash tests/sdd-helper-paths/test-sdd-helper-paths.shprintedPASS: all 14 relative helper references under skills/ say to run them by absolute path(exit 0).git diff --check df2e996a174f49f05aa5d5777ca56fbb0aa972ec HEADprinted nothing (exit 0).None of these generates a plan or reaches a handoff. The roborev post-commit review's voting reviewer passed the last three commits with no issues. On
397a37bfit flagged, at low severity, that the template's run commands andgit addpaths disagree with its Files block; that isdev's text (alternative 4).Eval sessions after the change: none. No coding-agent session has exercised the changed skill text: no plan was generated and no handoff was reached with either version, and the Claude picking up conventional commit style from example #1187 repro (a plan written in a gitmoji repository) and a
writing-planstemplate teaches line-number citations, which go stale by construction #2178 repro were not run.Planned before merge: a wording test of the handoff on Opus and Sonnet, five fresh single-sample runs per cell, following the micro-test method in
writing-skills. The partner answers "Native, but in a fresh session"; a run passes when the reply names the plan path andexecuting-plansand starts no skill in the current session. It has not been run.Before/after outcome: not measured. In the text, the commit step no longer models
feat:, theModify:example no longer shows a line range, and both handoff prompts offer a fresh session with a start line that names the chosen skill and the plan path. Whether agents follow that text is unverified.Rigor
superpowers:writing-skillsandcompleted adversarial pressure testing (paste results below)
rationalizations, "human partner" language) without extensive evals
showing the change is an improvement
This PR changes skill text, and no pressure testing with agents was done: no agent session has run against the changed text (see Evaluation). What was done:
dev: a hunk stayed only if a cited issue needed it, a confirmed review finding required it, or Drew decided it. The Context line, the example paths and the test names went back todev's text, and the fresh-session text was replaced with the review's version.19a522d6and found no defect that required a change. It recorded three low-severity open points about the handoff, left unchanged: a partner who answers only "fresh session" has chosen no approach for the start line to name; the start line carries the plan's relative path; and the Native option still says "I implement every task myself in this session" two lines above the fresh-session sentence. The two later commits each change one line (theModify:example and the commit placeholder) to text from the first review.Human review