Skip to content

Commit 5da32db

Browse files
sourcehawkclaude
andauthored
feat(templates): add a user CLAUDE.md template that triggers the skills in every project (#77)
The skills rarely trigger in a project whose CLAUDE.md does not name them, so each project had to repeat the same skill table. The new template maps each kind of work to the skill to load first. It goes in ~/.claude/CLAUDE.md, which loads in every session. The README now recommends a user-scope install and this template. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e2687e5 commit 5da32db

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ This repo is both a plugin and its own single-plugin marketplace:
115115

116116
A local path also works for development: `/plugin marketplace add /path/to/feature-dev-workflow`.
117117

118+
Install it at user scope, so its skills are available in every project, not only in repos that list the plugin in their settings.
119+
120+
We recommend pasting [`templates/user-CLAUDE.md`](templates/user-CLAUDE.md) into your user `CLAUDE.md` (`~/.claude/CLAUDE.md`). It maps each kind of work to the skill to load first, so the skills trigger in every project, including projects whose own `CLAUDE.md` never mentions them. A project's `CLAUDE.md` still comes first where it names a different skill for the same work.
121+
118122
No further setup is required; the skills derive your repo and build commands from context. Optionally, paste [`templates/project-CLAUDE.md`](templates/project-CLAUDE.md) into your project's `CLAUDE.md` to give every session the workflow overview and the operational rules (commit conventions, safe git staging, GitHub-mutation confirmation).
119123

120124
Keep project memory on to get the most from `bounding-heavy-commands`. In Claude Code that is auto memory, which is on by default. The skill saves the measured memory budget and the bounded command line of each heavy command there, so a later session starts with them. With memory off, each session measures the commands again, and each first measurement holds the default budget, or runs alone in the queue where there is no hard cap, so the sessions wait for each other more often. A command that a session did not measure runs under the default budget, which can be less than the command needs.

‎templates/user-CLAUDE.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
Paste this block into your user CLAUDE.md (~/.claude/CLAUDE.md) after installing the feature-dev-workflow plugin at user scope. It loads in every session on the machine, so the skills trigger in projects whose own CLAUDE.md never mentions them. No placeholders to fill in. Delete this comment after pasting.
3+
-->
4+
5+
## Skills: load before you act
6+
7+
Load the skill in the right column before you do the work in the left column. The skills hold the detail. Do not work from memory when a skill covers the task.
8+
9+
This file applies to every project. A project's own `CLAUDE.md` comes first where it names a different skill for the same work, or a rule that a skill here would contradict. Skip a row whose skill is not installed.
10+
11+
| Before you ... | Load this skill |
12+
| --- | --- |
13+
| Scope a rough product idea into an epic, or judge if an epic is ready for engineering | `feature-dev-workflow:product-epic` |
14+
| Start a feature, plan it, or split it into PRs, before any code, issue, or plan | `feature-dev-workflow:planning-a-feature`, then `feature-dev-workflow:developing-a-feature` |
15+
| Implement a written plan, yours or one someone handed you | `feature-dev-workflow:developing-a-feature` |
16+
| Continue feature work from a state file in `docs/superpowers/states/` | `feature-dev-workflow:resuming-a-feature` |
17+
| Dispatch parallel agents into worktrees for the PRs of one feature | `feature-dev-workflow:fanning-out-with-worktrees` and `feature-dev-workflow:maintaining-architectural-coherence` |
18+
| Split work across PRs, agents, or waves that must read as one author, or act on a structural, interface, naming, or vocabulary inconsistency | `feature-dev-workflow:maintaining-architectural-coherence` |
19+
| Stop at a checkpoint: between fan-out waves, before an integration PR, before you mark it ready | `feature-dev-workflow:reviewing-feature-progress` |
20+
| Base a PR on the branch of another open PR, or create, sync, or merge a stack of PRs | `feature-dev-workflow:stacking-dependent-prs` |
21+
| Write or change a test and decide what it asserts | `feature-dev-workflow:testing-a-feature` |
22+
| Decide if a change needs an end-to-end test, and what it asserts | `feature-dev-workflow:testing-end-to-end` |
23+
| Run a test suite, a linter, a build, a type check, or a command of that weight, or dispatch agents that will; or a command fails on a port in use, a lock, or a machine that swaps | `feature-dev-workflow:bounding-heavy-commands` |
24+
| Write, edit, or delete a comment in code, or review a diff that changes comments | `feature-dev-workflow:writing-code-comments` |
25+
| Write or update public docs: README, usage guide, tutorial, API reference | `feature-dev-workflow:writing-docs` |
26+
| Create, edit, or comment on a GitHub issue | `feature-dev-workflow:writing-github-issues` |
27+
| Open or edit a pull request | `feature-dev-workflow:opening-a-pull-request` |
28+
| Act on review feedback (Copilot, a person, or a local review), and again before every push of a review fix | `feature-dev-workflow:addressing-review-feedback` |
29+
| Run a review loop on a PR until it is clean | `feature-dev-workflow:copilot-review-loop` |
30+
| Cut, draft, tag, or publish a release | `feature-dev-workflow:drafting-a-release` |
31+
| Write prose that people read: PR and issue bodies, review replies, docs, release notes, commit bodies | `simple-english:simple-english` |
32+
| Say that work is complete, fixed, or passing | `superpowers:verification-before-completion` |

0 commit comments

Comments
 (0)