Why devflow is built the way it is. SKILLS.md says what is installed and how it runs; where the two disagree, SKILLS.md and the skills win. Each entry gives the decision, why, and what was rejected.
- Decision: no Superpowers session hook. The only heavy processes are
/dev-singleand/dev-multi, which only you can start. - Why: rigorous planning when you ask for it, no ceremony when you don't. For small changes you just ask (optionally
/tdd), and only auto-tier skills run. - Rejected: the
using-superpowershook, which routes every session through its process skills.
- Decision: Matt's skills provide grilling, specs, tickets and parallel execution (
implement-spec). Superpowers provides detailed plans, sequential reviewed execution (SDD), worktrees, verification and branch finishing. - Why: each collection is strongest there, and a small handpicked set keeps the descriptions loaded into every session short.
- Rejected (left out on purpose):
- Superpowers:
using-superpowers,brainstorming,executing-plans,test-driven-development(replaced bytdd, see 6),writing-skills,dispatching-parallel-agents,diagnosing-superpowers. - Matt:
ask-matt,triage,improve-codebase-architecture,wayfinder,retro,handoff,teach,to-questionnaire,wait-what,wizard,writing-for-agents.
- Superpowers:
- Decision: upstream repos are git-ignored clones in
vendor/, pinned invendor.lock. Changes to upstream skills are patches, and the selected providers' skills folders are generated output. If a patch stops applying after--update, that vendor's lock isn't advanced and the installed skills stay as they were. - Why: updating is one command, and a customization is never silently dropped. The repo holds only your decisions and your own skills, so its history is a log of your choices.
- Rejected: copying upstream skills into the repo and editing them in place, which turns every upstream update into a manual merge.
- Decision: skills that workflows call are "sub" tier: their
descriptioninmanifest.jsonsays to use them only when a workflow or skill calls for them, or when you ask. - Why:
disable-model-invocationalso stops other skills from loading a skill (confirmed at install), so building blocks can't be slash-only. - Cost accepted: the 22 auto and sub descriptions are loaded into every session, so each sub description is one short line.
- Rejected:
skillOverrides: name-onlyinsettings.json(untested, and not needed).
- Decision: specs, plans and run state live in
<main checkout>/.devflow/, git-ignored (moved from.claude/docs/by 15). The glossary and ADRs indocs/are tracked. Subagents get absolute paths, never pasted content. - Why: these are working material for agents, not project history. Keeping them in one place that outlives worktrees makes resuming (
#N) a file lookup. The local spec is what agents read and you edit; the GitHub issue is the lasting, shareable record and the fallback (gh issue view N). - Rejected: keeping them inside the feature worktree, where they're deleted at finish and the resume lookup breaks.
- Decision:
tddwas forked once from Matt's and is never re-synced (owned/tdd/ORIGIN.md). An independent tester subagent writes failing acceptance tests from the spec, then the implementer runs red-green. When the implementer is itself a subagent, the orchestrator launches its tester. - Why: the independence comes from separating who writes the tests from who writes the code. Subagents can launch subagents here, but an implementer that launched its own tester would also write that tester's brief.
- Rejected: implementers launching their own testers.
- Decision: feature and ticket worktrees are plain
git worktree add <main>/.worktrees/…. The orchestrating session stays in the main checkout and works in worktrees by absolute path (git -C, a subshell(cd <wt> && …)).alignstops if it's started from a linked worktree. - Why: a session inside a native worktree is isolated. Claude Code refuses its writes to the main checkout's
.devflow/(earlier.claude/docs/; see 15), and that check can't be turned off. The native tool also branches fromorigin/<default>under its own branch name, andExitWorktreeleaves a renamed branch behind. - Rejected: Claude Code's native
EnterWorktree(the original design), and moving agent docs into the worktree (see 5).
- Decision:
/setup-devflow-skillswrites the tracker and domain-doc conventions to.devflow/agents/(upstream'sdocs/agents/, moved by the manifest'srewritemap). Nothing is committed or pushed. (Amended by 15: it used to also write a## Agent skillsblock to the git-ignoredCLAUDE.local.md; that block is dropped, and the global section points at.devflow/agents/.) - Why: only the orchestrator reads these files, and it always runs in the main checkout (see 7), so worktrees and
origindon't need them..devflow/is ignored globally, so no per-repo ignore rule is needed, and repos that track their owndocs/agents/are unaffected. - Cost accepted: a fresh clone, another machine or a cloud session needs setup re-run.
- Rejected: committing the block to
CLAUDE.mdand the conventions todocs/agents/(the upstream behavior), and a globaldocs/agents/ignore rule.
- Decision: when
/dev-single --rigororrun-lanescalls 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-reviewover the whole feature, with one fix pass; see 15) covers the same ground. In a smoke run, 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-reviewin rigor mode.
- Decision:
to-ticketslists 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 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.
- Decision:
--autois the user's permission for one run to make the calls it would otherwise stop for. A fresh stand-in subagent answers the grilling rounds and reviews the spec; tickets, lanes and plans are approved; the PR opens without a confirmation, as a draft if work is blocked. Every call is logged and summarized in the PR. The rules live in one file,owned/align/AUTO.md, and each pause points to it. - Why: separating who asks from who answers keeps grilling honest, and the log plus the PR review keep the user in control after the fact. Stopping at the PR leaves the merge to the user.
- Rejected: the orchestrator accepting its own recommendations (nobody pushes back), merging into main, auto carrying over to a resume without the flag, and letting
--autostart slash-only skills such as/dev-multi.
- Decision: a new ADR is
docs/adr/iss-N-<slug>.md, where N is the feature's issue. Existing numbered ADRs stay as they are. A single-context glossary's top heading is the repo name, never a feature's context name.align's overlapping-PR check also flags open PRs that touch the glossary or ADRs. - Why: in the smoke runs, parallel features collided on ADR numbers and glossary headings. Issue numbers are already unique, and a fixed heading leaves parallel branches differing only in their term entries.
- Rejected: sequential numbering (parallel branches pick the same number), reserving numbers at merge (a rename after review), and committing a glossary stub to the base branch (devflow commits nothing on base).
- Decision: For a GitHub tracker,
/setup-devflow-skillsasks which branch features start from and open PRs against, defaulting to the GitHub default branch, and records aBase branch:line in the tracker conventions (see 8).alignreads that line; when it's missing or unfilled,alignfalls back to the GitHub default and states that base in the first grilling round. - Why: devflow used to assume the GitHub default silently, which is wrong for repos that work on
develop. Asking once at setup costs one question; the fallback keeps repos set up earlier working, and stating the base lets you correct it. - Rejected: always using the GitHub default branch, and asking on every run.
- Decision: every fix stays within a context budget. It edits an existing sentence, moves logic into a script, or moves text into a file loaded on demand (like
align's AUTO.md). Each changed skill file grows by about +30 words at most, measured withwc -won the built skill. - Why: every word in a SKILL.md is context the model carries through a run. Long skills are slower to follow and easier to misread, which caused several of the defects these fixes address.
- Rejected: a paragraph per fix.
- Decision: devflow installs to any of four providers (Claude Code, Codex, Gemini CLI, Cursor), listed in a
providerstable inmanifest.json(skills folder, instructions file, extra folders the tool also reads)../sync.sh providers <list> [--dry-run]chooses them; the choice is local, in the git-ignoreddevflow.local.json, defaulting toclaude. Related changes:- Folders: Codex, Gemini and Cursor share
~/.agents/skills; Claude uses~/.claude/skills. Deselecting a provider removes its devflow skills and instructions section, skipping symlinked folders, folders that are the same directory as an install folder, and instructions files with malformed markers. Cursor keeps global rules only in its settings UI, so the sync prints a reminder to paste the section there. .devflow/: agent docs and setup's conventions move from.claude/docs/to.devflow/(amends 5, 7 and 8), because the old path names one provider.- Dropped block:
/setup-devflow-skillsno longer writes the## Agent skillsblock toCLAUDE.local.md; the global section says where conventions live. - One review path: the built-in
/code-reviewexists only in Claude Code, so its job moves intospec-reviewas a third Correctness axis; the final review isspec-reviewplus one fix pass (amends 9). - Codex policy:
agents/openai.yamlwithallow_implicit_invocation: falseis generated for slash-tier skills, so tier holds on Codex asdisable-model-invocationdoes elsewhere.
- Folders: Codex, Gemini and Cursor share
- 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,~/.claudeand~/.codexskills and honorsdisable-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 = truefor 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.
- 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, andAGENTS.mdsays how each tool reads it. The devflow section carries only what every user needs. The smoke kit insmoke/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.mdis 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).