Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d5f78b8
docs(iss-34): glossary
maceorichards Oct 26, 2026
cb11c95
test(iss-34-t35): acceptance tests
maceorichards Oct 26, 2026
4f9a44c
feat(iss-34-t35): name the user's clone in the devflow section and ig…
maceorichards Oct 26, 2026
5b25dd6
chore(iss-34-t35): ignore vendor at any depth and the per-tool instru…
maceorichards Oct 26, 2026
9eb2ad6
docs(iss-34-t35): MIT license and third-party notices for superpowers…
maceorichards Oct 26, 2026
b75fd77
docs(iss-34-t35): AGENTS.md contributor instructions, with the genera…
maceorichards Oct 26, 2026
420ad46
Merge #35: License, contributor instructions and personal leftovers
maceorichards Oct 26, 2026
07f0c66
test(iss-34-t36): acceptance tests
maceorichards Oct 26, 2026
7144644
feat(iss-34-t36): smoke fixture package, a tiny stdlib-only word coun…
maceorichards Oct 26, 2026
8d61346
feat(iss-34-t36): smoke driver with init, send, step and loop over a …
maceorichards Oct 26, 2026
b800a86
Merge branch 'feat/iss-34-public-readiness-fixes' into feat/iss-34-pu…
maceorichards Oct 26, 2026
47bcd55
Merge #36: Smoke driver
maceorichards Oct 26, 2026
14f5375
test(iss-34-t38): acceptance tests
maceorichards Oct 26, 2026
01ffc57
docs(iss-34-t38): smoke kit README, refreshed checklist and generic s…
maceorichards Oct 26, 2026
5869d80
docs(iss-34-t38): DESIGN says smoke run, links the kit, adds entry 16
maceorichards Oct 26, 2026
eef0d3f
Merge #38: Smoke docs
maceorichards Oct 26, 2026
d6b1ef9
test(iss-34-t37 task 1): acceptance tests
maceorichards Oct 26, 2026
5c47d15
feat(iss-34-t37): write ignore lines to the file git reads
maceorichards Oct 26, 2026
cba41e9
test(iss-34-t37 task 2): acceptance tests
maceorichards Oct 26, 2026
67cc95a
test(iss-34-t37 task 2): drop unreachable malformed-config case
maceorichards Oct 26, 2026
b2fe1be
fix(iss-34-t37): warn instead of failing when the ignore file can't b…
maceorichards Oct 26, 2026
a928188
Merge #37: Write to the ignore file git actually reads
maceorichards Oct 26, 2026
4929bcc
test(iss-34-t39): acceptance tests
maceorichards Oct 26, 2026
66dd463
feat(iss-34-t39): fail instead of skip when DEVFLOW_REQUIRE_VENDORS=1
maceorichards Oct 26, 2026
a6a5c48
docs(iss-34-t39): README opens with public framing, quickstart and co…
maceorichards Oct 26, 2026
40aa75b
ci(iss-34-t39): unit matrix and fresh-install job
maceorichards Oct 26, 2026
e1c8ac8
test(iss-34-t39): vendor drift tests pin the default skip without the…
maceorichards Oct 26, 2026
02c184b
Merge #39: First-run experience: README quickstart and CI
maceorichards Oct 26, 2026
424fdb8
fix(iss-34): honor git config includes; warn on undecodable ignore file
maceorichards Oct 26, 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
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: CI

on:
push:
branches: [develop, main]
pull_request:

defaults:
run:
shell: bash

jobs:
unit:
name: unit (${{ matrix.os }}, python ${{ matrix.python || 'default' }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python: "3.9"
- os: ubuntu-latest
python: "3.x"
- os: macos-latest # its default python3, no setup-python
steps:
- uses: actions/checkout@v4
- if: matrix.python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python3 --version
- name: Clone vendors at the locked commits (installs nothing)
run: ./sync.sh --dry-run
- name: Tests
run: python3 -m unittest
env:
DEVFLOW_REQUIRE_VENDORS: "1"

fresh-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dry run
run: ./sync.sh --dry-run
- name: Sync
run: ./sync.sh
- name: Every manifest skill is installed and managed
run: |
python3 - <<'PY'
import json, os, sys
man = json.load(open("manifest.json"))
root = os.path.expanduser("~/.claude/skills")
missing = [s["name"] for s in man["skills"]
if not os.path.isfile(os.path.join(root, s["name"], man["marker"]))]
if missing:
sys.exit("not installed with a %s marker in %s: %s" % (man["marker"], root, ", ".join(missing)))
print("%d managed skills in %s" % (len(man["skills"]), root))
PY
- name: Re-sync and dry run report no change
# Every status that changes something (or would) starts its line with one of these words.
run: |
for args in "" "--dry-run"; do
out=$(./sync.sh $args)
echo "$out"
if grep -E '^[[:space:]]*(installed|updated|removed|added|would|FAIL|WARN|SKIP)([[:space:]]|$)' <<<"$out"; then
echo "::error::./sync.sh $args reported a change after a full sync"
exit 1
fi
done
- name: Tests
run: python3 -m unittest
env:
DEVFLOW_REQUIRE_VENDORS: "1"
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
vendor/
# vendor clones, as a folder or a symlink, at any depth
vendor
.patch-work/
__pycache__/
devflow.local.json
# per-tool instructions files: AGENTS.md is the shared one
/CLAUDE.md
/CLAUDE.local.md
/GEMINI.md
20 changes: 20 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Contributor instructions

For agents working on the devflow repo itself, or on a fork of it. This file is never installed anywhere: what users get is the devflow section, `global/claude-md-section.md`.

## Rules

- **Tests:** run `python3 -m unittest` before calling a change done. Without the vendor clones most sync tests skip; `./sync.sh --dry-run` clones them without installing anything.
- **Patches:** change them only through `./sync.sh edit <skill>` (edit `.patch-work/<skill>/b/`), then `./sync.sh save <skill>` and `./sync.sh`. Never hand-edit a `patches/*.patch`.
- **Never edit an installed skill** (`<skills folder>/<name>/`). It's generated, and the next sync overwrites it. Change `owned/`, `patches/` or `manifest.json` here, then sync.
- **`vendor/`** holds the git-ignored upstream clones. Never edit or commit them.
- **Smoke driver exception:** when the user asks for an unattended smoke run, you may send devflow slash commands, and the answers to their pauses, as the user message of a headless child agent session in the throwaway smoke repo. Never in any other repo, and never in your own session. This is the one exception to the devflow section's "never start a slash-only skill yourself". The smoke kit is in `smoke/`; start with its README.

## Per-tool setup

Codex and Cursor read `AGENTS.md` natively. For the others:

- **Claude Code** reads `AGENTS.md` only when the repo has no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md`. If you keep one, put `@AGENTS.md` in it.
- **Gemini CLI:** add `AGENTS.md` to `context.fileName` in your settings, e.g. `"context": {"fileName": ["AGENTS.md", "GEMINI.md"]}`.

`CLAUDE.md`, `CLAUDE.local.md` and `GEMINI.md` are git-ignored here: keep your per-tool notes in them. Only `AGENTS.md` is shared.
11 changes: 9 additions & 2 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ Why devflow is built the way it is. [SKILLS.md](SKILLS.md) says what is installe
## 9. SDD skips its own final review for devflow callers

- **Decision:** when `/dev-single --rigor` or `run-lanes` calls SDD, it skips its whole-branch Final Review and returns its deferred minor findings along with its Rulings.
- **Why:** the caller's final review (`spec-review` over the whole feature, with one fix pass; see 15) covers the same ground. In the smoke test, three reviews of one branch reached the same verdict. Per-task reviews still gate every task.
- **Why:** the caller's final review (`spec-review` over the whole feature, with one fix pass; see 15) covers the same ground. In a [smoke run](smoke/README.md), three reviews of one branch reached the same verdict. Per-task reviews still gate every task.
- **Rejected:** keeping SDD's final review and dropping `spec-review` in rigor mode.

## 10. Footprints stay per module; splits for parallelism are raised

- **Decision:** `to-tickets` lists each ticket's footprint as modules. If tickets can only run in parallel after a module is split, the proposal says so and asks: split or serialize.
- **Why:** in the smoke test, a one-file module was quietly turned into a package just so tickets could run in parallel, and review then flagged that as speculative generality. Asking keeps that architecture choice yours.
- **Why:** in a smoke run, a one-file module was quietly turned into a package just so tickets could run in parallel, and review then flagged that as speculative generality. Asking keeps that architecture choice yours.
- **Rejected:** per-function footprints for fast tickets that only add new functions.

## 11. `--auto` uses a stand-in agent and ends at the PR
Expand Down Expand Up @@ -101,3 +101,10 @@ Why devflow is built the way it is. [SKILLS.md](SKILLS.md) says what is installe
- **Why:** skill folders are read by several tools (as of 2026-10: Codex, Gemini CLI and Copilot CLI read `~/.agents/skills`; Cursor reads `~/.agents`, `~/.cursor`, `~/.claude` and `~/.codex` skills and honors `disable-model-invocation`; Claude Code reads only `~/.claude/skills`), so one build can serve all of them. A local choice keeps the repo free of per-machine state.
- **Cost accepted:** Cursor with Claude or Codex also selected reads both folders, so duplicates can appear. Codex needs `multi_agent = true` for subagents.
- **Rejected:** a per-tool mapping file for each tool (obra/superpowers), plugin packaging, and rewording skill bodies per tool. devflow follows mattpocock/skills' lighter approach, keeping "Call the Skill tool" prose and adding one translation sentence to the global section.

## 16. Contributor rules live outside the devflow section; the smoke kit runs any agent

- **Decision:** rules for developing devflow itself (the suite, patch editing, the smoke-driver exception) live in the contributor instructions: the tracked `AGENTS.md`. Per-tool files (`CLAUDE.md`, `CLAUDE.local.md`, `GEMINI.md`) are git-ignored, and `AGENTS.md` says how each tool reads it. The devflow section carries only what every user needs. The smoke kit in `smoke/` is one Python driver over a per-agent command table (`agents.json`), with the agent under test and the stand-in chosen separately. Results stay out of the repo; findings become GitHub issues.
- **Why:** the devflow section loads into every session of every user, so a rule only contributors need is pure context cost (see 14). `AGENTS.md` is the one file most tools read. A table makes adding an agent one entry, so a smoke run can test any provider (see 15), and a Claude stand-in can answer for Codex under test.
- **Cost accepted:** a smoke run makes live agent calls and creates a real GitHub repo. The codex entry is unverified until it has been smoke-run.
- **Rejected:** keeping the rule in the devflow section; a local section-override mechanism (sync machinery for one rule); the old Claude-only bash scripts kept outside the repo (stale and personal); tracking results in the repo (an issue is the lasting record).
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Maceo Richards

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# devflow

My agent skills and workflows, for Claude Code, Codex, Gemini CLI or Cursor. **[SKILLS.md](SKILLS.md) is the current overview** of every skill, the workflow mechanics and the naming conventions. Handpicked skills from [obra/superpowers](https://github.com/obra/superpowers) and [mattpocock/skills](https://github.com/mattpocock/skills), plus my patches and my own skills, built into the skills folders of the providers you pick (Claude Code by default) so every project sees them. [DESIGN.md](DESIGN.md) records why it's built this way.
An opinionated set of agent skills and workflows for Claude Code, Codex, Gemini CLI or Cursor: handpicked skills from [obra/superpowers](https://github.com/obra/superpowers) and [mattpocock/skills](https://github.com/mattpocock/skills), patches to some of them, and devflow's own skills, built into the skills folders of the providers you pick (Claude Code by default) so every project sees them. **[SKILLS.md](SKILLS.md) is the current overview** of every skill, the workflow mechanics and the naming conventions. [DESIGN.md](DESIGN.md) records why it's built this way.

Use it as is, or fork it to choose your own skills: edit `manifest.json`, then run `./sync.sh`.

## Quickstart

**Prerequisites:** Python 3.9+, git, the GitHub CLI `gh` signed in (`gh auth login`), and one supported provider (see [Providers](#providers)). GitHub is the only tracker the workflows support.

```bash
git clone https://github.com/maceorichards/devflow.git
cd devflow
./sync.sh --dry-run
./sync.sh
```

The dry run clones the upstream skill repos into `vendor/` at the locked commits and shows what would change, writing nothing outside the clone. The second command builds and installs for Claude Code; to pick other providers, run `./sync.sh providers <list>` instead. Then, in each project, run `/setup-devflow-skills` once (see [Workflows](#workflows)).

What the sync edits outside the clone:
- Each selected provider's skills folder (e.g. `~/.claude/skills`): only folders it marks with `.managed-by-devflow`. A folder of the same name without the marker is skipped.
- The devflow section of each provider's instructions file (e.g. `~/.claude/CLAUDE.md`), between `devflow` markers. The rest of the file is left alone.
- The git ignore file git reads, to which it appends the lines in `global/git-ignore-lines` (`.devflow/`, `.worktrees/`, …): the global `core.excludesFile`, else `$XDG_CONFIG_HOME/git/ignore`, else `~/.config/git/ignore`. A system-level `core.excludesFile` is not consulted.

## Workflows

Expand Down Expand Up @@ -59,7 +79,7 @@ The building blocks can't be slash-only: `disable-model-invocation` also stops o
| `devflow.local.json` | Which providers this machine installs to (git-ignored; written by `./sync.sh providers`) |
| `vendor.lock` | The upstream commits the patches were last applied against (written by `sync.sh`) |
| `patches/` | Diffs against upstream skills |
| `owned/` | My skills. Never synced from upstream. `tdd` was forked once from Matt's (see `owned/tdd/ORIGIN.md`). |
| `owned/` | devflow's own skills. Never synced from upstream. `tdd` was forked once from Matt Pocock's (see `owned/tdd/ORIGIN.md`). |
| `global/` | The devflow section for providers' instructions files (between `devflow` markers) and the global git ignore lines |
| `tests/` | The `python3 -m unittest` suite for `sync.sh` and the docs |
| `vendor/` | Git-ignored upstream clones |
Expand All @@ -84,3 +104,7 @@ python3 -m unittest # run the test suite
**Adding a skill:** add an entry to `manifest.json`, then run `./sync.sh`. **Removing one:** delete its entry; `./sync.sh` removes the installed copy.

**Never edit an installed `<skills folder>/<name>/` directly.** It's generated, and the next sync overwrites it.

## Contributing

Agents (and people) working on devflow itself, or on a fork, follow [AGENTS.md](AGENTS.md): the test command, the patch edit/save flow and the rules for the repo. To check the workflows end to end, use the smoke kit: [smoke/README.md](smoke/README.md).
65 changes: 65 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Third-party notices

devflow builds its managed skills from two MIT-licensed upstreams, cloned into `vendor/` at the commits in `vendor.lock`:

- [obra/superpowers](https://github.com/obra/superpowers), by Jesse Vincent.
- [mattpocock/skills](https://github.com/mattpocock/skills), by Matt Pocock.

What in this repo derives from them:

- `patches/`: diffs against upstream skills from both repos, carrying their text.
- `owned/tdd`: forked once from Matt Pocock's `tdd` skill (see `owned/tdd/ORIGIN.md`).

The upstream skills themselves aren't in this repo: each user's sync builds them from clones it pulls itself.

## obra/superpowers

```
MIT License

Copyright (c) 2025 Jesse Vincent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

## mattpocock/skills

```
MIT License

Copyright (c) 2026 Matt Pocock

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
14 changes: 13 additions & 1 deletion docs/GLOSSARY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# devflow

A personal set of agent skills and workflows, built from upstream skill repos plus patches and owned skills, and installed for one or more agent tools.
An opinionated set of agent skills and workflows, built from upstream skill repos plus patches and owned skills, and installed for one or more agent tools. Use it as is, or fork it to choose your own skills.

## Language

Expand All @@ -11,3 +11,15 @@ _Avoid_: Target, harness, model provider
**Agent docs**:
The git-ignored working material agents write in a project's main checkout (specs, plans, run state and per-repo conventions), kept in `.devflow/`.
_Avoid_: Agent files, working docs

**Devflow section**:
The managed block that devflow writes into each provider's global instructions file, between `devflow` markers. It is for everyone who uses devflow, so nothing about developing devflow itself belongs in it.
_Avoid_: Global rules, managed block

**Contributor instructions**:
The tracked `AGENTS.md` at the root of the devflow repo, read by agents working on devflow itself (and on forks of it). Never installed anywhere.
_Avoid_: Project rules, dev rules

**Smoke run**:
An unattended end-to-end run of a devflow workflow in a throwaway repo, with a stand-in agent answering the workflow's pauses, used to find defects in the skills.
_Avoid_: Smoke test, e2e test
3 changes: 1 addition & 2 deletions global/claude-md-section.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- devflow:start (managed by ~/Documents/CUSTOM-SKILLS/devflow: edit global/claude-md-section.md there, then run sync.sh) -->
<!-- devflow:start (managed by {{clone}}: edit global/claude-md-section.md there, then run sync.sh) -->
## devflow skills and workflows

- `/dev-single <description | #N> [--fast | --rigor] [--auto]`: one-ticket feature. Worktree → grill-with-docs → to-spec → your review → implement (or, with `--rigor`, plan + subagent-driven-development) → final review → PR.
Expand All @@ -10,7 +10,6 @@
Rules:
- **Tool wording:** "Call the Skill tool with X": follow X. "Dispatch a subagent": use your subagents. `/name`: the user invokes `name`. Cannot dispatch subagents? Stop and say so; never fake a dispatch.
- **Never start a slash-only skill yourself:** `dev-single`, `dev-multi`, `grill-me`, `prototype`, `setup-devflow-skills`, `systematic-debugging`. `--auto` is the user's permission for that one run's pauses, nothing more: it never lets you start one of these.
- **Smoke driver exception:** when the user asks for an unattended smoke run, you may send these commands, and the answers to their pauses, as the user message of a child `claude -p` session in the throwaway smoke repo. Never in any other repo, and never in your own session.
- **Devflow building blocks run only when a workflow or another skill calls for them, or when the user asks:** align, grill-with-docs, grilling, domain-modeling, to-spec, to-tickets, implement, implement-spec, run-lanes, writing-plans, subagent-driven-development, requesting-code-review, using-git-worktrees, finishing-a-development-branch, spec-review, codebase-design, tdd.
- **Agent docs** live in the main checkout's git-ignored `.devflow/`:
- specs: `specs/iss-N-<slug>.md`
Expand Down
Loading
Loading