Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/commands/decompose-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ An epic's body opens with the Repositories callout when its stories need a repos

## Dependent Issues

An issue whose work can't start until other work lands is blocked by that work's issue, in this repository or another one, as ADR-0049 in `docs/decisions/project-template/` records. Before you file it, name the issue it waits for. When that work is only a branch or an open pull request, its issue is the one the pull request's `Closes` line names. When it names none, file that issue first, for the work the pull request does. A pull request can be neither a blocker nor a sub-issue, so a wait that names only a pull request or a branch is never recorded. Then file the dependent issue with its type, `Story`, `Task` or `Bug`: `gh api repos/<owner>/<repo>/issues -F title=@<title file> -F body=@<file> -f type=<type>`, whose answer gives its `id`, `number` and `html_url`; where a command files it with `gh issue create`, set its type after with `gh api -X PATCH repos/<owner>/<repo>/issues/<number> -f type=<type>`. Link each blocker to it: `gh api repos/<owner>/<repo>/issues/<number>/dependencies/blocked_by -F issue_id=<id>`, where `<owner>/<repo>` and `<number>` are the dependent issue's and `<id>` is the blocker's `id`, from `gh api repos/<blocker's owner>/<blocker's repo>/issues/<blocker's number> --jq .id`, so a blocker in another repository is linked the same way. Its body opens, after the Repositories callout that Repositories Needed below gives it, since it waits on another repository's issue when its blocker is there, with the callout `> [!IMPORTANT]`, then a line `> **Blocked by <owner/repo>#<number>: don't start this yet.**` naming each blocker, then a line saying when it can start: once each blocker is closed, or, when the issue's text has to name a version that the blocker's work releases, once that release is tagged too. Its `## Depends on` section names the same issues, each written `<owner/repo>#<number>` when it is in another repository. Its title says it waits, such as `… (blocked on <owner/repo>#<number>)`. When the board is set, leave the issue where the board puts a new issue: the Definition of Ready keeps an issue with an open blocker out of `Ready`. A type or a link that fails doesn't stop the filing: the callout still says what the issue waits for. Say which issue missed it and give the command that adds it once the call works. Once the blocker's pull request is open, comment once on the dependent issue with its link, starting with `Autopilot:`.
An issue whose work can't start until other work lands is blocked by that work's issue, in this repository or another one, as ADR-0049 in `docs/decisions/project-template/` records. Before you file it, name the issue it waits for. When that work is only a branch or an open pull request, its issue is the one the pull request's `Closes` line names. When it names none, file that issue first, for the work the pull request does. A pull request can be neither a blocker nor a sub-issue, so a wait that names only a pull request or a branch is never recorded. Then file the dependent issue with its type, `Story`, `Task` or `Bug`: `gh api repos/<owner>/<repo>/issues -F title=@<title file> -F body=@<file> -f type=<type>`, whose answer gives its `id`, `number` and `html_url`; where a command files it with `gh issue create`, set its type after with `gh api -X PATCH repos/<owner>/<repo>/issues/<number> -f type=<type>`. Link each blocker to it: `gh api repos/<owner>/<repo>/issues/<number>/dependencies/blocked_by -F issue_id=<id>`, where `<owner>/<repo>` and `<number>` are the dependent issue's and `<id>` is the blocker's `id`, from `gh api repos/<blocker's owner>/<blocker's repo>/issues/<blocker's number> --jq .id`, so a blocker in another repository is linked the same way. Its body opens, after the Repositories callout that Repositories Needed below gives it, since it waits on another repository's issue when its blocker is there, with the callout `> [!IMPORTANT]`, then a line `> **Blocked by <owner/repo>#<number>: don't start this yet.**` naming each blocker, then a line saying when it can start: once each blocker is closed, or, when the issue's text has to name a version that the blocker's work releases, once that release is published too: tagged, with every Actions run on the tagged commit passed and, where its repository publishes packages, each package listed at that version, as ADR-0070 decision 1 in `docs/decisions/project-template/` says. When its text links a file that its blocker's release adds, such as a decision record, and its own repository takes that release, as a project made from the template takes a template release through its update, which brings the template's decision records into `docs/decisions/project-template/`, it says that its plan takes that release first, in a step titled `Take <repository> <version>`, where `<repository>` is the blocker's `owner/repo`, as ADR-0070 decision 3 in `docs/decisions/project-template/` says, and links the file the way its repository links its other files of that kind, relatively for a decision record. It never links that file at the other repository's default branch, and never names a later template update that would make the link relative, in its `Not in this issue` section or anywhere else. Its `## Depends on` section names the same issues, each written `<owner/repo>#<number>` when it is in another repository. Its title says it waits, such as `… (blocked on <owner/repo>#<number>)`. When the board is set, leave the issue where the board puts a new issue: the Definition of Ready keeps an issue with an open blocker out of `Ready`. A type or a link that fails doesn't stop the filing: the callout still says what the issue waits for. Say which issue missed it and give the command that adds it once the call works. Once the blocker's pull request is open, comment once on the dependent issue with its link, starting with `Autopilot:`.

### Repositories Needed

Expand Down
4 changes: 2 additions & 2 deletions .claude/commands/handoff-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ A smaller, cheaper model — a local model or a lower-cost Copilot model — wil
- A step or Done-when command that reaches a sibling repository, a clone next to this one, such as a documentation toolchain's, finds it from the folder that holds the main checkout, never through `..`: a plan's worktree is `.claude/worktrees/<name>/`, so `..` from it is `.claude/worktrees/`, and `../<repository>` works only in the main checkout. Write `Join-Path (Split-Path -Parent (Split-Path -Parent (git rev-parse --path-format=absolute --git-common-dir))) <repository>`, which names the same folder from the main checkout and from every worktree.
- Keep each step under about 25 lines. Split anything bigger.
- Expect escalations: when a step needs a decision the plan didn't make, the executor stops, marks it `[?]` with an `- Escalation:` note, and the step comes back to you for re-planning. Every escalation costs a round trip, so settle decisions now.
- When `AGENTS.md`'s `## Landing` section sets `release` to `tag` or `tag+release`, add the `Release:` line when the plan changes something a release ships: the product's code, a file its package or download carries, such as the `README.md` a package takes as its readme, which nuget.org shows, or what its build puts out, such as a build setting, a dependency or the SDK version. A plan that changes only what reaches its readers without a release, such as documentation-site pages, which deploy from every push to the default branch, CI workflows, decision records, tests or repository docs, such as `CONTRIBUTING.md`, `AGENTS.md`, instruction files or a `README.md` no package carries, gets no `Release:` line: its changelog entries go under `## [Unreleased]`, where the next release's section takes them in, and it lands with no tag and no release, as ADR-0032 in `docs/decisions/project-template/` says. When `AGENTS.md` says what this project's releases ship, follow it. A plan for several issues gets the line when any of them changes something a release ships. Use the newest version tag on `origin`, not one only this clone has (the first `git ls-remote --tags --refs --sort=-version:refname origin` entry whose name after `refs/tags/` is shaped like `v1.2.3` or `1.2.3`, or the first such `git tag --list --sort=-version:refname` entry when the repository has no `origin`; `v0.1.0` when there is none), raised by one patch version for a bugfix, docs, tests or refactor plan, or by one minor version, with the patch set to 0, for any other plan. In a pre-release project, as The Changelog below defines it, a raise keeps the major version at 0: name the first stable version, such as `v1.0.0`, only when the request asks for the first stable release. For a plan that covers several issues, use the largest raise any one of them would get on its own: one issue that needs a minor raise makes the plan's raise minor. When the change breaks how existing users work, ask me which version to use, except in a pre-release project, which has none. The version holds unless another plan lands it, or a later one, first: `/ship-plan` then moves this plan to the next free version, raised the same way, which the state script prints as `renumber`, and adds a step that merges in the default branch and retitles the changelog section, or, in a pre-release project, whose changelog has no release section, only changes the `Release:` line, so a plan can run ahead of one still waiting for review.
- When `AGENTS.md`'s `## Landing` section sets `release` to `tag` or `tag+release`, add the `Release:` line when the plan changes something a release ships: the product's code, a file its package or download carries, such as the `README.md` a package takes as its readme, which nuget.org shows, or what its build puts out, such as a build setting, a dependency or the SDK version. A plan that changes only what reaches its readers without a release, such as documentation-site pages, which deploy from every push to the default branch, CI workflows, decision records, tests or repository docs, such as `CONTRIBUTING.md`, `AGENTS.md`, instruction files or a `README.md` no package carries, gets no `Release:` line: its changelog entries go under `## [Unreleased]`, where the next release's section takes them in, and it lands with no tag and no release, as ADR-0032 in `docs/decisions/project-template/` says. When `AGENTS.md` says what this project's releases ship, follow it. A plan for several issues gets the line when any of them changes something a release ships. Use the newest version tag on `origin`, not one only this clone has (the first `git ls-remote --tags --refs --sort=-version:refname origin` entry whose name after `refs/tags/` is shaped like `v1.2.3` or `1.2.3`, or the first such `git tag --list --sort=-version:refname` entry when the repository has no `origin`; `v0.1.0` when there is none), raised by one patch version for a bugfix, docs, tests or refactor plan, or by one minor version, with the patch set to 0, for any other plan. A `Release:` version is `major.minor.patch`, such as `v1.4.0`, with no prerelease label such as `-alpha` or `-rc.1`, also in a pre-release project, whose versions are `0.y.z` (ADR-0075 in `docs/decisions/project-template/`). In a pre-release project, as The Changelog below defines it, a raise keeps the major version at 0: name the first stable version, such as `v1.0.0`, only when the request asks for the first stable release. For a plan that covers several issues, use the largest raise any one of them would get on its own: one issue that needs a minor raise makes the plan's raise minor. When the change breaks how existing users work, ask me which version to use, except in a pre-release project, which has none. The version holds unless another plan lands it, or a later one, first: `/ship-plan` then moves this plan to the next free version, raised the same way, which the state script prints as `renumber`, and adds a step that merges in the default branch and retitles the changelog section, or, in a pre-release project, whose changelog has no release section, only changes the `Release:` line, so a plan can run ahead of one still waiting for review.
- Make the last step write the plan's changelog entries as The Changelog below says, for every plan, with or without a `Release:` line.
- Under `## Follow-ups`, list only work someone would plan as its own task: a real defect, gap or cleanup you found that this plan doesn't do. Write each as one line, `<short title>: <what to change, where (file or symbol), and why it matters>`, that a reader who never saw this plan understands; `/ship-plan` files each one as an issue once the plan has landed, where and with the label `AGENTS.md`'s Landing section says (`follow-ups`, `follow-up-label`). Leave out nits, style preferences, ideas for someday, and anything this plan should do itself (add a step for that): mention them in your reply instead.

Expand Down Expand Up @@ -115,7 +115,7 @@ The plan's last step writes the plan's entries, for every plan:
- `other`, with a `Release:` line: add that version's section at the top, in the style of the sections below it.
- `other`, without a `Release:` line: leave the file as it is.

When the repository has a `version.json` at its root, which Nerdbank.GitVersioning builds each package's version from, and the plan has a `Release:` line, the same last step also sets that file's `version` to the `Release:` version without its leading `v`, such as `"1.4.0"` for `v1.4.0`, changing nothing else, and lists `version.json` on its Files line: a release tag whose commit holds another version publishes no package. When that version starts a new major version and the file's `assemblyVersion` names a `version`, the step also sets `assemblyVersion` to `{ "precision": "major" }`. The state script prints `version-file: match` when the file holds the plan's version, `mismatch <version>` when it holds another, and `-` without the file or a `Release:` line.
When the repository has a `version.json` at its root, which Nerdbank.GitVersioning builds each package's version from, and the plan has a `Release:` line, the same last step also sets that file's `version` to the `Release:` version without its leading `v`, such as `"1.4.0"` for `v1.4.0` and dropping a prerelease label the file held, such as the `-alpha` of `"1.4.0-alpha"`, changing nothing else, and lists `version.json` on its Files line: a release tag whose commit holds another version publishes no package. When that version starts a new major version and the file's `assemblyVersion` names a `version`, the step also sets `assemblyVersion` to `{ "precision": "major" }`. The state script prints `version-file: match` when the file holds the plan's version, `mismatch <version>` when it holds another, and `-` without the file or a `Release:` line.

When the repository has `.github/workflows/raise-baseline.yml`, that workflow pushes the branch that raises `PackageValidationBaselineVersion` once nuget.org lists a release and opens an issue whose link opens its pull request: a plan never raises the baseline in a step or lists raising it under `## Follow-ups`.

Expand Down
Loading