Skip to content

plans: ck plugin phase-one PRD, revision 3, with Phase 0 spike results - #5

Draft
d6veteran wants to merge 14 commits into
mainfrom
claude/code-katz-plugin-prd-34gbso
Draft

plans: ck plugin phase-one PRD, revision 3, with Phase 0 spike results#5
d6veteran wants to merge 14 commits into
mainfrom
claude/code-katz-plugin-prd-34gbso

Conversation

@d6veteran

@d6veteran d6veteran commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Turns plans/2026-09-05-agent-workflows-research-and-proposal.md (committed here alongside) into a phase-one PRD for a single code-katz plugin named ck, revised three times (first draft; a cross-model panel against an Opus-written PRD; a rewrite after Will's sixteen-comment review), and now carries the results of the Phase 0 spikes.

Current state: ck is an independent replacement for the old team tool. Phase one is the full product-definition pipeline plus a design step, /ck:panel, /ck:next, and 21 personas as subagents and switch commands on three model tiers. /ck:feature is confirmed for phase two. The Workbench is phase three. Six of eight Phase 0 spikes are answered; two need a local machine.

Commit 6: Phase 0 spikes

A throwaway ck plugin (plans/phase-0/ck-spike/) was loaded into a nested Claude Code with --plugin-dir and driven non-interactively. Record: plans/2026-09-09-ck-phase-0-spikes.md.

  • Yes: a persona agent inside a workflow runs on its frontmatter model and a per-call model overrides it (S2); the SubagentStart hook fires for direct delegation and inside workflows with agent_type, agent_id, session_id, cwd, and writes under CLAUDE_PLUGIN_DATA (S4); a neutral agent inside a nested workflow ran a real web search (S7); /ck:next registers and ${CLAUDE_PLUGIN_ROOT} expands (S1, this machine); the extra personas key in meta loads; a plugin workflow is addressed by name: "ck:<workflow>".
  • One design change: a nested workflow is called by name, workflow('ck:panel', args); calling by script path is refused when the plugin is outside the working directory. draft.js, the /ck:prd skill, and §6.6 updated.
  • From the docs (S5): review pages work in the CLI (2.1.183 or later) and the desktop app on any paid plan; comments need 2.1.221 or later and a Team or Enterprise organization. Clare's plan is the check; the file-edit fallback stays at every gate.
  • Still local: the interactive consent prompt for a nested workflow (S3), a marketplace install on a second machine (S1), Clare's CPU count (S8). The drill log has the commands.

Commit 5: /ck:feature confirmed for phase two

Will answered the one open scope question on 2026-09-09. PRD §1, §2.5, §3.2, §3.4, §10.2, and §10.4 record it.

Commit 4: revision 3 (Will's review, 2026-09-08)

Every comment and the decision it drove is recorded in PRD §3.4. The changes:

  • ck is independent. No coexistence, no retirement debate, no vendored profiles. ck owns profiles/ and tiers.conf after a one-time import; uninstalling the old tool is a prerequisite, with a SessionStart hook that warns while it remains.
  • Clare is the primary user, proficient with the current tool and running many sessions. Two journeys: J1, an idea to a full definition; J2, one feature to design mockups, the same way every time. Efficiency (fewer sessions and hand-offs) is a measured goal.
  • Paths: <project-repo> is defined once; every document is written into the product's own repository under docs/ (or ROADMAP.md, brand/) and committed.
  • Models: Fable 5.1 for the six judgment seats (River, Akira, Morgan, Sage, Jordan, Reiner), Opus 5 for the eleven craft seats, Sonnet 5 for the four execution seats, Haiku for validators. The panel default is River on Fable, Toni on Opus, Kai moved down to Sonnet.
  • Phase one is the pipeline: /ck:opportunity, /ck:market-research, /ck:brief (with a market pass), /ck:prd, /ck:team (roles and responsibilities), /ck:roadmap, /ck:architecture, /ck:brand-guide (proposals, finalists, guide, modelled on the NIGHTGRID process and the d20Mob guide), /ck:design. Ten document contracts. One drafting engine (draft.js) serves the PRD and the architecture document.
  • Reviews go through Claude's built-in review and comment system; every review page carries the five how-to-comment steps in its banner.
  • Phase two: /ck:feature, /ck:bugfix, /ck:gtm, Routines, /ck:map, /ck:report. Phase three: the Workbench, a rewrite replacing the conductor dashboard, local, never a hosted store.

Earlier commits

  • Commit 1, the PRD. Proposal §8 resolved first: a sign-off is a gate in a skill; each span between gates that needs fan-out is one plugin workflow; a single-agent span runs inline. Corrections to the proposal, each graded. Plugin vs web app: plugin.
  • Commit 2, the cross-model revision. Nine changes adopted from the Opus PRD and eleven rejected with verified reasons. Record: plans/2026-09-05-ck-prd-panel-memo.md, with §8 for the items Will's review superseded.
  • Commit 3. A one-line count fix in the PRD introduction.

Appendices

Four complete workflow scripts (panel, draft, brief, team; syntax-checked as the runtime runs them, body wrapped as an async function), two skills (prd, next), the brief and PRD contracts, the generated River agent excerpt, a cost model per command at 2026-09-05 prices, and sources. The other five workflows are specified to the stage level in §6.

Also in this PR

  • DEVLOG.md: four entries, one per revision and one for Phase 0.
  • plans/2026-09-05-agent-workflows-research-and-proposal.md and plans/opus/: the inputs, verbatim.
  • plans/phase-0/: the spike plugin and trimmed run results.

Not in this PR

No product code. The code-katz/ck repository and the marketplace entry are the build, which starts from this PRD after the two local spikes are recorded.

🤖 Generated with Claude Code

https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE

… a devlog entry

Turn the 2026-09-05 agent-workflows research proposal into a phase-one PRD for a
single code-katz plugin named ck: 21 persona subagents generated from team-cli
profiles, /ck:panel (three lenses on three models) and /ck:prd (River-led,
panel-challenged) end to end, one instrumentation hook, no UI.

- Resolves proposal section 8; Q2 sets the shape: gates live in skills, each
  span between gates is one plugin workflow, single-agent spans run inline.
- Records fifteen corrections to the proposal, led by the plugin name (the
  command prefix is the plugin name, so it must be ck) and the section 5.5 vs
  5.6 model contradiction, resolved by a per-invocation override in panel.js.
- Answers plugin vs web app vs wrapper vs dashboard: plugin; /workflows is the
  run view; a phase-two /ck:map renders the catalog from meta; any workbench is
  local, never a hosted app with its own store.
- Commits the proposal alongside so the PRD's derives-from link resolves.
- Appendices carry both workflow scripts, both skills, the generated River
  agent excerpt, a cost model at 2026-09-05 prices, and sources.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
…d Opus inputs

Fable took the engineering lens from Will's panel brief and reviewed the
Opus-written PRD, its brief, and its workbench mockups against the docs and
the repos. The ck PRD stays the base; nine changes are ported from the Opus
PRD and eleven of its claims are rejected with reasons, recorded in
plans/2026-09-05-ck-prd-panel-memo.md.

Adopted: a users table and journey for the harder user, with three failure
rules and a done criterion; /ck:brief before /ck:prd with an optional
interview; the artifact is the state (docs/brief.md, docs/PRD.md,
docs/decisions/) and the run directory is a cache with start-at resume;
per-lens evidence and a two-pass read of the rationale in the panel; effort
set per workflow stage; a Phase 0 of six spikes; /ck:next in phase one;
persona scopes as the shape of the 90-day prune; a goals table. Will's rule
for feedback, review pages with comments and mockups as labeled variants, is
now section 4.9 and the review path of /ck:prd.

Rejected with reasons: no workflow() primitive (it exists); pausing a
workflow to arbitrate (no mid-run input); quota fallback via PreModelSwitch
(fires on a requested session switch only); Stop/TaskCompleted gates; the
Phase 1 vs Phase 5 team-cli retirement contradiction; 22 personas; retiring
TODOS.md; maxBudgetUsd; editing the installed plugin copy; commands/ for
switches; cache replay across sessions.

Appendices now carry three workflow scripts (syntax-checked as the runtime
runs them), three skills, the two-part contract, the River excerpt, a cost
model, and sources. The Opus inputs are committed verbatim under plans/opus/.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
@d6veteran d6veteran changed the title plans: ck plugin phase-one PRD from the agent-workflows proposal plans: ck plugin phase-one PRD, revised after a cross-model panel Sep 7, 2026
Section 0.2 still described the appendices as two workflow scripts and two
skills; the revision carries three of each plus the brief-and-PRD contract.
Found while building the review page.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
…eview

ck is independent of the old team tool: no coexistence, no vendored profiles;
uninstall is a prerequisite. Clare is the primary user with two journeys. Every
path is written against <project-repo>. Six judgment seats return to Fable 5.1.
Phase one is the full product-definition pipeline (opportunity, market
research, brief with a market pass, PRD, team, roadmap, architecture, brand
guide, design) plus panel, next, and 21 switch commands, with ten document
contracts and four complete workflow scripts. The Workbench is phase three.
Reviews go through Claude's built-in comment system. PRD section 3.4 records
each comment and the decision it drove. Panel memo gains section 8 for the
superseded items. DEVLOG entry added.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
@d6veteran d6veteran changed the title plans: ck plugin phase-one PRD, revised after a cross-model panel plans: ck plugin phase-one PRD, revision 3 after Will's review Sep 9, 2026
Closes the one open scope question in PRD section 10.4; sections 1, 2.5,
3.2, 3.4, and 10.2 updated to match. DEVLOG entry gains the decision.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
…y name

A throwaway ck plugin loaded into a nested Claude Code answered S2, S4, S7,
and open questions 3 and 5 with yes; S5 from the docs (comments need
2.1.221+ and a Team or Enterprise organization); S1 on this machine; S3
mechanics (nesting works by name, script path outside the working
directory is refused). S3 consent, S1 marketplace, and S8 stay local.

PRD updated: draft.js nests with workflow('ck:panel', ...); the prd skill
launches with name "ck:draft"; section 8.0, 10.4, 11, 4.9, 5.5, 8.4
carry the answers. Drill log at plans/2026-09-09-ck-phase-0-spikes.md;
the spike plugin and trimmed results under plans/phase-0/.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
@d6veteran d6veteran changed the title plans: ck plugin phase-one PRD, revision 3 after Will's review plans: ck plugin phase-one PRD, revision 3, with Phase 0 spike results Sep 9, 2026
S1 yes on Will's MacBook Air by --plugin-dir; S3 answered for auto mode
(no consent prompt across three runs); S7 confirmed locally; S8 for Will's
machine: 10 CPUs, 8 agents at a time; S5 softened by observation (a Max
owner comments on their own pages). Clare's version and CPU count remain.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
The first /ck:brief run on the game fixture cost $2.50 against a $0.55
estimate, with River and Toni each writing about 11k output tokens.
Checklist item A8 (under 1,200 words) and the two brief.js prompts now say
so; Appendix I records the measurement.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
…l name

Synced from code-katz/ck after Will's first local run showed a slash
command hands a workflow its typed text as a string and that the plugin
root does not expand inside scripts. Section 4.3 and 6.11 record the rule;
the four appendix scripts match the plugin; the brief cost row carries the
second measurement.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
… record its cost

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
…ort (synced from ck)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
…es synced from ck

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aqcjmXas9EFDx3pstfpyE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants