Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
c12c5f9
feat(skills/addressing-review-feedback): find comment blocks by marke…
sourcehawk Sep 28, 2026
ad232d8
feat(skills/addressing-review-feedback): pair comment blocks by ancho…
sourcehawk Sep 28, 2026
c893a0a
feat(skills/addressing-review-feedback): compare the working tree wit…
sourcehawk Sep 28, 2026
b68d67c
feat(skills/addressing-review-feedback): report the blocks and exit 1…
sourcehawk Sep 28, 2026
0e672bb
chore: ignore the cache directories of the script tests (#44)
sourcehawk Sep 28, 2026
8accb9b
ci: run the script tests on Linux and macOS (#44)
sourcehawk Sep 28, 2026
473630e
fix(skills/addressing-review-feedback): do not read a string as a doc…
sourcehawk Sep 28, 2026
447d366
fix(skills/addressing-review-feedback): pair the best match first, an…
sourcehawk Sep 28, 2026
7796243
feat(skills/addressing-review-feedback): list a comment block that th…
sourcehawk Sep 28, 2026
31b859e
test(skills/addressing-review-feedback): make each test able to fail,…
sourcehawk Sep 28, 2026
466b760
fix(skills/addressing-review-feedback): report a missing program or f…
sourcehawk Sep 28, 2026
2e9bdca
fix(skills/addressing-review-feedback): pair a block by its words as …
sourcehawk Sep 28, 2026
2fa8df8
fix(skills/addressing-review-feedback): read one-line strings and tra…
sourcehawk Sep 28, 2026
5a519ee
fix(skills/addressing-review-feedback): find a doc string after a tra…
sourcehawk Sep 28, 2026
27a9cfc
feat(skills/addressing-review-feedback): pair a block that moved to a…
sourcehawk Sep 28, 2026
0768df0
fix(skills/addressing-review-feedback): mark the line of a removed bl…
sourcehawk Sep 28, 2026
418cab4
test(skills/addressing-review-feedback): add a test that fails for ea…
sourcehawk Sep 28, 2026
3ecfd45
fix(skills/addressing-review-feedback): pair blocks across files only…
sourcehawk Sep 28, 2026
b8ad1bd
fix(skills/addressing-review-feedback): bound the time of the pairing…
sourcehawk Sep 28, 2026
97adefc
feat(skills/addressing-review-feedback): name the old place of a bloc…
sourcehawk Sep 28, 2026
9c750e8
fix(skills/addressing-review-feedback): let a longer block with no pa…
sourcehawk Sep 28, 2026
a4da89a
fix(skills/addressing-review-feedback): do not let an identical copy …
sourcehawk Sep 28, 2026
50bd291
fix(skills/addressing-review-feedback): do not pair a block with no w…
sourcehawk Sep 28, 2026
269bdcf
fix(skills/addressing-review-feedback): share an old block only insid…
sourcehawk Sep 28, 2026
0871e1a
fix(skills/addressing-review-feedback): share an old block only with …
sourcehawk Sep 28, 2026
f17de4d
fix(skills/addressing-review-feedback): pair a block left free by a c…
sourcehawk Sep 28, 2026
07a5470
refactor(skills/addressing-review-feedback): apply the rule for an id…
sourcehawk Sep 28, 2026
228c695
refactor(skills/addressing-review-feedback): record the old place of …
sourcehawk Sep 28, 2026
78a8211
fix(skills/addressing-review-feedback): name the blocks not paired ac…
sourcehawk Sep 28, 2026
2137f11
test(skills/addressing-review-feedback): add a test for each survivin…
sourcehawk Sep 28, 2026
630258a
refactor(skills/addressing-review-feedback): fold the index of words …
sourcehawk Sep 28, 2026
b4fc374
feat(skills/addressing-review-feedback): add the evaluator prompt (#44)
sourcehawk Sep 28, 2026
b76534f
feat(skills/addressing-review-feedback): add the procedure for a revi…
sourcehawk Sep 28, 2026
724414a
fix(skills/addressing-review-feedback): flag growth beside a sibling …
sourcehawk Sep 28, 2026
c1045bf
docs(templates): list addressing-review-feedback and the Python prere…
sourcehawk Sep 28, 2026
29b71aa
docs: allow Python scripts in skills and require their tests (#44)
sourcehawk Sep 28, 2026
64db0d9
feat(skills/copilot-review-loop): require the review-round procedure …
sourcehawk Sep 28, 2026
c0ff2aa
feat(skills/fanning-out-with-worktrees): require the review-round pro…
sourcehawk Sep 28, 2026
694364d
fix(skills/addressing-review-feedback): judge each sentence of the ev…
sourcehawk Sep 28, 2026
eb8f9f3
fix(skills/addressing-review-feedback): resolve the conflicts that th…
sourcehawk Sep 28, 2026
8d473b2
fix(skills/addressing-review-feedback): make the evaluator name the c…
sourcehawk Sep 28, 2026
f0a3231
fix(skills/addressing-review-feedback): require caller code for a cal…
sourcehawk Sep 28, 2026
0ee1eb2
fix(skills/addressing-review-feedback): make the caller test the only…
sourcehawk Sep 28, 2026
896c6f5
fix(skills/addressing-review-feedback): make the caller test the only…
sourcehawk Sep 28, 2026
b712a2b
fix(skills/writing-code-comments): let a review finding add each fact…
sourcehawk Sep 28, 2026
2b8e653
fix(skills/addressing-review-feedback): name a caller fact in the red…
sourcehawk Sep 28, 2026
1ad3261
fix(skills/addressing-review-feedback): give a removed comment an ans…
sourcehawk Sep 28, 2026
55df15c
fix(skills/addressing-review-feedback): report a promise that the cod…
sourcehawk Sep 28, 2026
b0b7eb0
fix(skills/addressing-review-feedback): do not accept a statement of …
sourcehawk Sep 28, 2026
0dae6fe
fix(skills/addressing-review-feedback): do not accept a finding as th…
sourcehawk Sep 28, 2026
bf45d74
fix(skills/addressing-review-feedback): let the evaluator prompt alon…
sourcehawk Sep 28, 2026
0012aee
fix(skills/addressing-review-feedback): scan a renamed file with the …
sourcehawk Sep 28, 2026
a0c2bfe
fix(skills/addressing-review-feedback): compare by hand with the merg…
sourcehawk Sep 28, 2026
f620b9d
fix(skills/addressing-review-feedback): say which blocks with no flag…
sourcehawk Sep 29, 2026
80ed553
chore(.github): use the action versions that run on Node 24 (#44)
sourcehawk Sep 29, 2026
3b154e5
fix(skills/addressing-review-feedback): do not follow a symbolic link…
sourcehawk Sep 29, 2026
d750673
fix(skills/copilot-review-loop): close a thread about a comment after…
sourcehawk Sep 29, 2026
10d431f
fix(skills/addressing-review-feedback): require the check of a findin…
sourcehawk Sep 29, 2026
07aa2b7
docs(templates): show the review feedback stage in the workflow diagr…
sourcehawk Sep 29, 2026
d6250b0
fix(skills/addressing-review-feedback): scan the block comments of th…
sourcehawk Sep 29, 2026
2d224ca
fix(skills/addressing-review-feedback): name the promise from before …
sourcehawk Sep 29, 2026
e2828fc
fix(skills/addressing-review-feedback): give the shorter sentence of …
sourcehawk Sep 29, 2026
fa33375
fix(skills/addressing-review-feedback): do not read a file below a di…
sourcehawk Sep 29, 2026
5b63bc5
fix(skills/addressing-review-feedback): pair identical blocks one to …
sourcehawk Sep 29, 2026
45ae61b
fix(skills/addressing-review-feedback): tell the evaluator that its i…
sourcehawk Sep 29, 2026
9b1c6b4
fix(skills/addressing-review-feedback): name the second reason for a …
sourcehawk Sep 29, 2026
4b04601
fix(skills/addressing-review-feedback): list the comments of a file t…
sourcehawk Sep 29, 2026
72cbec8
fix(skills/addressing-review-feedback): require the default comment r…
sourcehawk Sep 29, 2026
f0d582d
fix(skills/addressing-review-feedback): limit the rule about how the …
sourcehawk Sep 29, 2026
9306cd0
fix(skills/addressing-review-feedback): name the old path of a block …
sourcehawk Sep 29, 2026
7e9e7bd
fix(skills/addressing-review-feedback): record the verdicts of each b…
sourcehawk Sep 29, 2026
0ca0ef0
fix(skills/addressing-review-feedback): do not read a link below a di…
sourcehawk Sep 29, 2026
547d453
fix(skills/addressing-review-feedback): keep each base sentence in th…
sourcehawk Sep 29, 2026
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
54 changes: 54 additions & 0 deletions .github/workflows/script-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Script tests

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
unittest:
name: ${{ matrix.os }}, Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python: ["3.9", "3.x"]
include:
# The interpreter that ships with the developer tools of macOS.
- os: macos-latest
python: system
steps:
- uses: actions/checkout@v7

- if: matrix.python != 'system'
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}

- name: Run the tests of the scripts of each skill
shell: bash
run: |
if [ "${{ matrix.python }}" = system ]; then
python=/usr/bin/python3
else
python=python3
fi
"$python" --version

found=0
for tests in skills/*/scripts/tests; do
[ -d "$tests" ] || continue
found=1
echo "::group::$tests"
"$python" -m unittest discover -s "$tests" -v
echo "::endgroup::"
done

if [ "$found" = 0 ]; then
echo "No script tests found under skills/*/scripts/tests."
exit 1
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.vscode
docs
.claude/worktrees/
__pycache__/
5 changes: 4 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ Before you open a PR:
A single Claude Code plugin, packaged as its own single-plugin marketplace.

- `.claude-plugin/plugin.json` is the plugin manifest; `.claude-plugin/marketplace.json` makes the repo installable as a marketplace. Skills are auto-discovered from `skills/`.
- The only runtime dependencies are the [superpowers](https://github.com/obra/superpowers) plugin, the `gh` CLI, and the official [`gh stack`](https://github.com/github/gh-stack) extension for `gh`, which the skills require only for stacked PRs. Keep it that way. Do not add a third-party dependency to make a skill work.
- The only runtime dependencies are the [superpowers](https://github.com/obra/superpowers) plugin, the `gh` CLI, the official [`gh stack`](https://github.com/github/gh-stack) extension for `gh`, which the skills require only for stacked PRs, and Python 3.9 or later, which the skills require only for the scripts they ship. Keep it that way. Do not add a third-party dependency to make a skill work.

## Editing skills

- **`superpowers:writing-skills` first.** Do not hand-edit a skill outside that loop.
- **A skill `description:` is "Use when..." trigger text only, never a workflow summary.** A summary becomes a shortcut the agent takes instead of reading the body.
- **Keep skills project-agnostic.** No hardcoded repo slug, no project-specific build commands, no domain examples. No language, framework, or product names in illustrations. A skill must read the same in a Go repo, a Next.js app, or a Python service. The honest test: would this still be correct in a project built on a completely different stack?
- **Reference templates with `${CLAUDE_PLUGIN_ROOT}/skills/<skill>/templates/<file>`.** Relative paths break once the plugin is copied into the install cache.
- **Scripts live in `skills/<skill>/scripts/`, use the Python standard library only, and carry tests in `skills/<skill>/scripts/tests/`.** Reference them with `${CLAUDE_PLUGIN_ROOT}/skills/<skill>/scripts/<file>`.
- **Intra-plugin skill invocations are namespaced `feature-dev-workflow:<name>`.** Leave `superpowers:*` references and the external `review` skill alone.
- **The `**REQUIRED SUB-SKILL:**` markers are the control flow.** If you add, rename, or remove a skill, fix every marker that points at it, in every skill, and update the diagram in `templates/project-CLAUDE.md` and the table in `README.md`.
- **`simple-english:simple-english` is an optional style skill, not a dependency.** Skills that draft prose people read (PR and issue bodies and comments, review replies, docs, release notes, specs, ADRs, commit bodies, code and doc comments) reference it with an `**OPTIONAL SUB-SKILL:**` marker: load it when it is available, suggest the install to the user once per session when it is not, and continue either way. Every skill must work without it. It sets sentence style only: a template's sections, a skill's length rules, a commit subject's convention, and a project's comment rules still apply. Its own formatting rules (headings, bold, lists, and its register for chat replies) give way to the host skill and its template, and every marker says so. It does not cover PR and issue titles, commit subjects, code itself (identifiers, strings, log messages), plans and state files, or the skill files themselves.
Expand All @@ -43,5 +44,7 @@ A single Claude Code plugin, packaged as its own single-plugin marketplace.
## Verify before done

- The JSON in `.claude-plugin/` must parse.
- Every script's tests must pass: `python3 -m unittest discover -s skills/<skill>/scripts/tests`.
- CI runs the same tests on Linux and macOS, on Python 3.9 and on the current release, from `.github/workflows/script-tests.yml`. A new script needs no change there: the workflow finds every `skills/<skill>/scripts/tests/` directory.
- Before committing any genericization, grep the skills for leakage: no repo slug, no project-specific build commands, no product or domain identifiers.
- Read the diff cold. If a sentence only makes sense knowing what just changed, it belongs in the commit message, not the file.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ It is also the faster path. Breaking the feature into independent PRs lets the m
| `testing-a-feature` | Writing tests for any non-trivial change. Decides the assertion shape (black-box against the contract). |
| `testing-end-to-end` | A structurally-complete feature introduces a new user- or consumer-visible flow. Decides which flows earn an end-to-end test and what each asserts (golden path, not edge cases). |
| `writing-code-comments` | About to write, edit, or delete a comment in source code. Decides whether the comment exists and what it holds: the contract for a doc comment, and the fact that the code cannot show for an inline comment. |
| `addressing-review-feedback` | About to act on review feedback, and before each push of a review fix. Keeps a review round from growing comments into a second account of the code: a script flags each comment that grew, and a fresh agent that does not see the finding judges it. |
| `writing-docs` | A structurally-complete feature changed public-facing docs (README, usage guide, tutorial, API/reference). Writes them to an OSS-grade bar and verifies a reader can use them via a fresh-reader test; defers docstrings, release notes, and specs to their owning skills. |
| `opening-a-pull-request` | About to `gh pr create`/`edit`. Draft and ready body templates, issue-linking keywords. |
| `maintaining-architectural-coherence` | Work split across PRs/agents/waves must read as one author. Invoked when agreeing conventions before parallel work, and when reviewing the merged union for structural, interface, naming, and vocabulary drift. |
Expand Down Expand Up @@ -69,7 +70,7 @@ flowchart TD
Done -->|yes| VerifyM[Verify the integrated branch<br/>green end to end]
VerifyM --> PR2[Open the integration PR<br/>feature → main · Closes the epic]

PR1 --> Ship([External review → merge<br/>plan + state torn down in the same diff])
PR1 --> Ship([External review → act on the feedback,<br/>comments checked for growth → merge<br/>plan + state torn down in the same diff])
PR2 --> Ship
```

Expand All @@ -88,6 +89,8 @@ Optionally, install the [simple-english](https://github.com/AminBlg/SimpleEnglis

The skills also assume the [`gh`](https://cli.github.com/) CLI is installed and authenticated.

The skills that ship a script need Python 3.9 or later as `python3`, with no extra packages. macOS provides it with the Xcode Command Line Tools. A skill whose script cannot run says so once per session and continues with a weaker fallback.

Stacked PRs (a linear chain where each PR builds on the one before it) also need GitHub's official [`gh stack`](https://github.com/github/gh-stack) extension. The skills check for it before any stacked work and ask you to install it if it is missing:

```
Expand Down
Loading
Loading