Skip to content

Commit c9d3e23

Browse files
committed
docs: plugin design spec + implementation plan + Post-Audit §14b revisions
Full @atlas-ai/prd-taskmaster plugin ARCHITECTURE spec and implementation plan, plus supporting audit + architecture-diagram artifacts. Spec (1213 lines): 15 sections + §9b customization layer + §9c namespace consolidation (three-layer MCP-first + CLI-cwd + symlink defense, revised after empirical precision-agent testing revealed TASK_MASTER_PROJECT_ROOT is BROKEN for task-master CLI) + §11 dogfood validation plan (triage matrix B/O/R signals, SHIP_CHECK_OK as unfakable completion criterion, checklist-backed ralph-loop promise) + §12 adopted superpowers patterns + §13 RE corrections + §14b Post-Audit Revisions (Core Question inline-action reframe, evidence-driven framing, Mode D preview-alpha not hard-block, prd-taskmaster migrate + doctor CLIs, customization visibility on plugin start, unfakable-criterion language). Plan (2349 lines): ARCHITECTURE-class, 9 parallel DAG waves, F1 repo skeleton through S9 npm publish + dogfood, TDD from task 1, 3 doubt iterations embedded, handoff checkpoint schema, Jobs Lens (fix-don't-cut, surfaced to human) in header. Audit (inevitable-audit + architecture-diagram): pre-build inevitability audit validating design against Claude Code plugin internals reverse-engineering. CLAUDE.md updated with Jobs Lens Fix-Don't-Demolish rule (mandatory), Reply Indexing Convention, Citation Convention, Nested CLAUDE.md/AGENTS.md scoping notes. These become global rules across all future Claude Code sessions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a0edff8 commit c9d3e23

File tree

5 files changed

+4063
-13
lines changed

5 files changed

+4063
-13
lines changed

CLAUDE.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@ This repo **is** the `prd-taskmaster-v2` Claude Code skill — not a consumer of
88

99
You are working on the **v4 5-phase rewrite** on the `handoff-overhaul` branch — the canonical line. The `master` branch is the obsolete v3 12-step architecture; do not port code from it without checking against the rewrite's intent.
1010

11-
## Critical: branch and worktree layout
11+
## Branch layout
1212

13-
This repo has two git worktrees on the same `.git`:
14-
15-
| Worktree | Branch | Status |
16-
|---|---|---|
17-
| `prd-taskmaster-v2` (folder named "v2" but really v3) | `master` | **Stale.** v3 12-step. Kept only for reference / git history. |
18-
| `prd-taskmaster-v2-handoff-overhaul` (this folder) | `handoff-overhaul` | **Canonical.** v4 5-phase. All new work happens here. |
19-
20-
When in doubt, run `git worktree list`. Never commit v4 work to master.
13+
The canonical branch is `main`. The `master` branch (`origin/master`) is the obsolete v3 12-step architecture — kept for git history only, do not commit to it. Run `git worktree list` to verify.
2114

2215
## v4 architecture: 5-phase pipeline
2316

@@ -59,7 +52,10 @@ Run `python3 script.py --help` for the current subcommand list. Note: `calc-task
5952

6053
## Companion skills
6154

62-
`companion-skills/expand-tasks/` ships alongside the main skill (same SKILL.md + script.py codification). It reads `tasks.json` and launches parallel Perplexity research agents per task. Use after PRD parsing, before implementation.
55+
`companion-skills/` ships alongside the main skill (same SKILL.md + script.py codification pattern):
56+
57+
- **`expand-tasks/`** — Reads `tasks.json` and launches parallel Perplexity research agents per task. Use after PRD parsing, before implementation.
58+
- **`customise-workflow/`** — Post-handoff workflow customisation for the chosen execution mode.
6359

6460
## Testing
6561

@@ -79,18 +75,24 @@ pytest --collect-only -q # Discovery only (sanity check)
7975

8076
```bash
8177
python3 script.py <subcommand> [args] # Every command emits JSON
82-
python3 script.py preflight # Detect environment state
78+
python3 script.py preflight # Detect environment state (includes recommended_action)
8379
python3 script.py validate-prd --input .taskmaster/docs/prd.md
8480
python3 script.py detect-capabilities # Scan for skills/tools/plugins
81+
python3 script.py append-workflow --target ./CLAUDE.md --content-file /tmp/wf.md # Idempotent, backup-safe
82+
python3 script.py debrief --slug my-project --grade "EXCELLENT 56/57" # Scaffold dogfood debrief
8583
```
8684

8785
Pipe through `jq` when debugging — never add human-readable output that would break the SKILL.md parsing contract.
8886

89-
## Install / update flow
87+
`preflight` returns a `recommended_action` field with one of: `recover | run_setup | generate_prd | parse_prd | resume | complete` — this is the decision table that replaced ambiguous raw-field interpretation.
88+
89+
## Install / update / uninstall flow
9090

9191
`install.sh` is the public entry point (`curl | bash`). It clones/updates into `~/.claude/skills/prd-taskmaster-v2/` and supports `--check-update`. The script writes all status output to **stderr** (not stdout) so it remains visible when invoked via a pipe — preserve this when editing logging.
9292

93-
When changing install behavior, update `tests/test_install.py` in the same change.
93+
`uninstall.sh` removes `~/.claude/skills/prd-taskmaster-v2/` and prunes the updates.json entry. It explicitly leaves downstream `.taskmaster/` artifacts untouched. Supports `--yes`, `--dry-run`, `--help`.
94+
95+
When changing install/uninstall behavior, update `tests/test_install.py` in the same change.
9496

9597
## Editing guidelines specific to this repo
9698

@@ -114,6 +116,16 @@ atlas-start → prd-taskmaster-v2 → atlas-plan → atlas-loop → atlas-sync
114116

115117
It also works standalone — input is any goal, output is `prd.md` + `tasks.json` in `.taskmaster/`. When editing handoff behavior, remember both consumers exist: the next pipeline stage (atlas-plan) and a human running the skill on its own.
116118

119+
## v4-release docs
120+
121+
`docs/v4-release/` contains ship-readiness audits, dogfood debrief docs, and release notes. Key files:
122+
123+
- `ship-readiness-discovery.md` — 20 ship-blockers found during Apr 13 dogfood run
124+
- `ship-readiness-AUDIT-20260414.md` — Re-audit of #1-10 with grep/runtime evidence (10/10 CLOSED)
125+
- `dogfood-shade-20260413.md` — Retroactive debrief from the atlas-shade dogfood run
126+
127+
These are development artifacts, not shipped with the skill.
128+
117129
## Session-context convention
118130

119131
`session-context/` is gitignored working state for Claude sessions on this repo. Not part of the shipped skill — don't include it in `install.sh`.

0 commit comments

Comments
 (0)