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
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
install:
name: installer, ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # the upgrade cases install old commits with their own installer
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install.sh, fresh, upgrade, edits, uninstall
if: runner.os != 'Windows'
run: bash scripts/test-install.sh
- name: install.ps1, the same cases
shell: bash
run: bash scripts/test-install.sh ps1
check:
name: check and tool self tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: bash scripts/check.sh # the private name scan is skipped here: its list is never committed
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: sudo apt-get update && sudo apt-get install -y ffmpeg
- run: npm run test:tools
7 changes: 5 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ git clone --depth 1 https://github.com/gntrs/workflow.git ~/.claude/workflow
markdown skills, one rules file, two installers and six scripts (the size probe, its runner, the brand check, the ref reader, the ref check, the recorder). no build.

- skills live in `skills/<name>/SKILL.md`, depth in `skills/<name>/references/`. frontmatter `name` matches the folder.
- `rules/RULES.md` is always on. a skill never contradicts it.
- `rules/RULES.md` is always on. a skill never contradicts it. nothing tells the reader to edit an installed file: what is personal goes in `~/.claude/RULES.local.md` (template in `setup/RULES.local.md`).
- generic only. no names, emails, hosts, private projects or personal paths.
- lowercase, direct prose. zero em dashes.
- `bash scripts/check.sh` before you hand back. it must print `ok`. put your own private strings in `.claude/denylist.txt` (gitignored, one regex per line) and it scans for them too.
- after changing `tools/responsive-probe.js`, run `node tools/probe-test.mjs` (needs playwright with chromium: `npx playwright install chromium`, or point `PLAYWRIGHT_MODULE` at an installed copy) and show it still catches the planted cases.
- after changing `tools/brand-check.mjs`, run `node tools/brand-check.mjs --self-test` and show every line passes.
- after changing `tools/ref-read.mjs` or `tools/ref-check.mjs`, run their `--self-test` and show every line passes. ref-read's needs playwright like the probe runner.
- after changing `tools/record.mjs`, run `node tools/record.mjs --self-test` and show every line passes. it needs playwright like the probe runner, and ffmpeg for the mp4 lines (without it, those check the webm fallback).
- after changing an installer, run it into a throwaway home: `HOME=$(mktemp -d) bash install.sh --yes --dry-run`, then without `--dry-run`, twice.
- after changing an installer, run `bash scripts/test-install.sh` (and `bash scripts/test-install.sh ps1` where `pwsh` exists). it installs into throwaway homes: fresh, an upgrade from old commits, with edits, uninstall. a new behavior gets a case there. keep `install.sh` and `install.ps1` doing the same thing.
- `npm ci && npm test` runs the check, the installer cases and every tool self test. playwright is pinned in `package.json`.
- a release: bump `VERSION` and `package.json`, add the `CHANGELOG.md` entry, tag `v<version>`.
- `ln -sf ../../scripts/pre-commit .git/hooks/pre-commit` once per clone, so the check runs before every commit.

## the rules that hold here too

Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# changelog

newest first. the installer prints the version it had and the one it wrote.

## 1.1.0

updates work now. before this, running the installer again skipped every skill that differed from the new one, whether you had edited it or not.

- **`/bbq`, the fast build.** for a hackathon, a prototype or a quick iteration: no questions, a time box, the demo path end to end first, fakes behind one seam, builders split by surface on a contract, one cold review of the demo, a debt list at the end.
- **big prs and single features are faster.** the build lane and the deep lane's phase builders no longer go through pstack's full feature playbook (a design panel on every job, a worktree per delegate, a commit per unit, its own pr flow). everything independent starts in one message, a ten line plan, builders split by files, high effort only on the plan and the final review, pstack tools by name. the deep lane keeps pstack for the long loop and its state.
- **it reviews itself.** on build and deep the cold review runs and its findings are fixed without being asked.
- **the installer tracks what it installed.** `~/.claude/workflow-manifest` holds a hash per file. on the next run a file you did not touch is replaced, a file you edited is kept and named. an install from before this version is recognised from the hashes of every file ever shipped, so it updates too.
- **backups leave `skills/`.** `--force` moves your copy to `~/.claude/workflow-backups/<date>/`. the `<name>.bak-<date>` folders older versions left inside `skills/` are moved there on the next run.
- **your settings have their own file.** `~/.claude/RULES.local.md` is created once and never written again. name, model names, voice, git changes and extra steps go there, and it wins over `RULES.md`. installed skills are no longer edited by setup.
- **`--with-permissions`.** merges an ask list into `~/.claude/settings.json`, so claude code stops and asks before a push, merge, pr, release or deploy command. the old file is backed up.
- **`--with-hooks`.** a hook that installs missing `node_modules` before a command that needs them. mac and linux, needs `jq`.
- **`--status`** says what you have, what main has, what is behind and what you edited. **`--uninstall`** moves what it installed to the backups folder and takes its lines out of `CLAUDE.md` and its hook out of `settings.json`.
- **merge.** the agent may merge, only on a yes that names the merge. a numbered chain printed in the `/ship` block can be approved with one yes, once.
- **models.** no model names in the skills. one strong model for every seat, a second family only for the major seats, names in `RULES.local.md`.
- **the size sweep** adds 2560 wide and a new fault, `off-center`: a tall column with a max width and no auto margins, glued to the left on a wide screen.
- **every recap and `/ship` block** says first whether a fresh review ran and what it said.
- **lighter.** `design/SKILL.md` went from 3,496 words to 1,718, the rest moved into its references. the skill descriptions that load on every turn went from 989 words to 504.
- **pstack** pin moved from v1.5.0 to v1.21.0, and an existing install moves with it. `skills/pstack/models.md` ships with every role on `inherit-parent` and is yours: created once, never written again.
- **a skill folder that is a link** to your own copy is left alone.
- **the installer pulls** when it runs from `~/.claude/workflow`, so running it again is the update.
- **ci.** the installer cases on linux, mac and windows, the repo check and the tool self tests. playwright is pinned in `package.json`.

### if you edited your installed copy

setup used to tailor `RULES.md` and the skills in place. those files count as edited, so the installer keeps them and names them.

1. run `bash install.sh --status` to see which files you edited.
2. move what is yours (name, models, voice, git lines) into `~/.claude/RULES.local.md`.
3. run `bash install.sh --force`. your old copies are in `~/.claude/workflow-backups/`.

## 1.0.0

the first public version: cook, deep, ship, review, status, initiate, design, write, playbook, the optional brain, the size probe, the brand check, the ref reader and the recorder.
31 changes: 25 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ paste this into your agent:
set up https://github.com/gntrs/workflow
```

it reads [SETUP.md](SETUP.md), asks six things once and fits it to your machine.
it reads [SETUP.md](SETUP.md), asks seven things once and fits it to your machine.

### mac and linux

Expand All @@ -35,6 +35,17 @@ powershell -ExecutionPolicy Bypass -File $HOME\.claude\workflow\install.ps1 -Yes

then restart your agent and `/cook` something real. installer flags are at the top of [install.sh](install.sh).

### update

run the installer again. it pulls the newest version first. what you did not touch is replaced, what you edited is kept and named, and nothing is deleted: old copies go to `~/.claude/workflow-backups/`. your own settings live in `~/.claude/RULES.local.md`, which it never writes twice. [what changed](CHANGELOG.md)

```bash
bash ~/.claude/workflow/install.sh --status # what you have, what is behind, what you edited
bash ~/.claude/workflow/install.sh --yes # update
```

add `--with-permissions` and claude code itself asks before every push, merge, pr, release and deploy command. it matches how a command starts, so it is a second lock, not the only one.

## how it runs

<picture>
Expand All @@ -49,10 +60,12 @@ it starts small and moves up a lane if the work fights back.
| lane | looks like | runs |
|---|---|---|
| **microwave** (quick) | a typo, a color, a flag | main thread, no subagents |
| **stove** (build) | one feature or bug you know | up to 2 helpers, the plan read cold first |
| **stove** (build) | one feature or bug you know | helpers started together, split by files, reviewed as they land |
| **slow cook** (/deep) | unfamiliar code, broke twice, "run till done" | research, a plan, your read, up to 4 agents |

stove and slow cook print a `/goal` with a finish line you can check, so the session can't stop short.
stove and slow cook print a `/goal` with a finish line you can check, so the session can't stop short. both review their own work with a fresh agent and fix what it finds. you never have to say "review it".

not a lane, its own door: **the grill** (`/bbq`), for when it has to exist tonight.

## the commands

Expand All @@ -66,13 +79,17 @@ the one door. it picks the lane, the models and how many agents. [skills/cook](s

for work that fights back, or runs while you sleep. research first, then a plan in a file you read, then a long run that survives a compact. [skills/deep](skills/deep/SKILL.md)

### the grill (/bbq &lt;time&gt; &lt;thing&gt;)

fast, hot, a bit burnt. for a hackathon, a prototype, a quick try. no questions, no plan to approve: it picks a time box, builds the demo path end to end first, fakes the slow parts behind one seam, splits builders by surface, reviews itself, and hands back what works, what is faked and the shortcuts it took. one yes at the end commits it and, if a host is logged in, puts up a preview link. nothing leaves before that. [skills/bbq](skills/bbq/SKILL.md)

### <img src="assets/poses/tray.png" width="96" align="absmiddle" alt="the chef carrying a tray"> serve (/ship)

prints the exact text that would go public, every file, the real test output and your hand tests. then it waits. nothing leaves without your yes, not even a commit. [skills/ship](skills/ship/SKILL.md)

### <img src="assets/poses/taste.png" width="96" align="absmiddle" alt="the chef tasting from a spoon"> taste test (/review)

a fresh agent reads the work, your exact words and your taste file, then says ship it, fix these, or bin it. [skills/review](skills/review/SKILL.md)
a fresh agent reads the work, your exact words and your taste file, then says ship it, fix these, or bin it. cook runs it on its own, you only call it for a second look. [skills/review](skills/review/SKILL.md)

### <img src="assets/poses/thumbs.png" width="96" align="absmiddle" alt="the chef giving a thumbs up"> /status

Expand Down Expand Up @@ -110,7 +127,9 @@ these load on their own:

### why it's fast

- **review early.** the plan is read before anyone builds, and each lane the moment it lands.
- **no waiting in line.** everything independent starts in one message: explorers, builders, the plan's reviewer.
- **it reviews itself, early.** the plan is read before anyone builds, each piece the moment it lands, and the findings are fixed without you asking.
- **heavy tools by name only.** a design panel or a second review runs when the job calls for it, not on every feature and not on every phase of a big pr.
- **parallel.** up to 4 agents, fewer on less ram. each owns its own files, so nothing collides.
- **the coordinator doesn't build,** so its context stays small.
- **a new ask gets its own lane,** never queued behind the batch.
Expand All @@ -137,7 +156,7 @@ every reaction you give goes into a taste file, word for word, dated, with what

### the rules

always on in [rules/RULES.md](rules/RULES.md), and they beat every skill: nothing leaves without your yes, git only with a yes, no ai authorship, every job ends with a hand test.
always on in [rules/RULES.md](rules/RULES.md), and they beat every skill: nothing leaves without your yes, git only with a yes, no ai authorship, every job ends with a hand test. your own layer, `~/.claude/RULES.local.md`, beats them: your name, your models, your voice, your extra steps.

### the brain, optional

Expand Down
Loading
Loading