@fernado03/zoo-flow 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/bin/zoo-flow.js +0 -2
  2. package/package.json +45 -55
  3. package/templates/claude-code/.claude/commands/explore.md +28 -0
  4. package/templates/claude-code/.claude/skills/engineering/commit-and-document/SKILL.md +2 -1
  5. package/templates/claude-code/.claude/skills/engineering/diagnose/SKILL.md +2 -1
  6. package/templates/claude-code/.claude/skills/engineering/explore/SKILL.md +1 -1
  7. package/templates/claude-code/.claude/skills/engineering/feature/SKILL.md +2 -1
  8. package/templates/claude-code/.claude/skills/engineering/fix/SKILL.md +2 -1
  9. package/templates/claude-code/.claude/skills/engineering/grill-with-docs/SKILL.md +2 -1
  10. package/templates/claude-code/.claude/skills/engineering/improve-codebase-architecture/SKILL.md +2 -1
  11. package/templates/claude-code/.claude/skills/engineering/prototype/SKILL.md +2 -1
  12. package/templates/claude-code/.claude/skills/engineering/refactor/SKILL.md +2 -1
  13. package/templates/claude-code/.claude/skills/engineering/review/SKILL.md +2 -1
  14. package/templates/claude-code/.claude/skills/engineering/scaffold-context/SKILL.md +2 -1
  15. package/templates/claude-code/.claude/skills/engineering/setup-matt-pocock-skills/SKILL.md +2 -1
  16. package/templates/claude-code/.claude/skills/engineering/tdd/SKILL.md +2 -1
  17. package/templates/claude-code/.claude/skills/engineering/to-issues/SKILL.md +2 -1
  18. package/templates/claude-code/.claude/skills/engineering/to-prd/SKILL.md +2 -1
  19. package/templates/claude-code/.claude/skills/engineering/triage/SKILL.md +2 -1
  20. package/templates/claude-code/.claude/skills/engineering/tweak/SKILL.md +2 -1
  21. package/templates/claude-code/.claude/skills/engineering/update-docs/SKILL.md +2 -1
  22. package/templates/claude-code/.claude/skills/engineering/verify/SKILL.md +2 -1
  23. package/templates/claude-code/.claude/skills/engineering/zoom-out/SKILL.md +2 -1
  24. package/templates/claude-code/.claude/skills/in-progress/writing-beats/SKILL.md +32 -0
  25. package/templates/claude-code/.claude/skills/in-progress/writing-fragments/SKILL.md +45 -0
  26. package/templates/claude-code/.claude/skills/in-progress/writing-shape/SKILL.md +50 -0
  27. package/templates/claude-code/.claude/skills/misc/git-guardrails-claude-code/SKILL.md +64 -0
  28. package/templates/claude-code/.claude/skills/misc/git-guardrails-claude-code/scripts/block-dangerous-git.sh +25 -0
  29. package/templates/claude-code/.claude/skills/misc/migrate-to-shoehorn/SKILL.md +39 -0
  30. package/templates/claude-code/.claude/skills/misc/scaffold-exercises/SKILL.md +53 -0
  31. package/templates/claude-code/.claude/skills/misc/setup-pre-commit/SKILL.md +62 -0
  32. package/templates/claude-code/.claude/skills/personal/edit-article/SKILL.md +13 -0
  33. package/templates/claude-code/.claude/skills/personal/obsidian-vault/SKILL.md +39 -0
  34. package/templates/claude-code/.claude/skills/productivity/grill-me/SKILL.md +2 -1
  35. package/templates/claude-code/.claude/skills/productivity/handoff/SKILL.md +2 -1
  36. package/templates/claude-code/.claude/skills/productivity/teach/SKILL.md +2 -1
  37. package/templates/claude-code/.claude/skills/productivity/write-a-skill/SKILL.md +2 -1
  38. package/templates/claude-code/CLAUDE.md +23 -0
  39. package/docs/architecture.md +0 -380
  40. package/docs/bloat-control.md +0 -49
  41. package/docs/command-design.md +0 -38
  42. package/docs/command-flow.md +0 -133
  43. package/docs/comparison.md +0 -86
  44. package/docs/context-packs.md +0 -35
  45. package/docs/dogfood/01-small-library.md +0 -28
  46. package/docs/dogfood/02-web-app.md +0 -29
  47. package/docs/dogfood/03-mixed-monorepo.md +0 -29
  48. package/docs/mode-rules.md +0 -86
  49. package/docs/npm-publishing.md +0 -79
  50. package/docs/out-of-scope/mainstream-issue-trackers-only.md +0 -25
  51. package/docs/out-of-scope/question-limits.md +0 -18
  52. package/docs/out-of-scope/setup-skill-verify-mode.md +0 -15
  53. package/docs/overview.md +0 -61
  54. package/docs/philosophy.md +0 -73
  55. package/docs/quality-scorecard.md +0 -23
  56. package/docs/skill-maintenance.md +0 -32
  57. package/docs/skills-index.md +0 -64
  58. package/docs/team-mode.md +0 -46
  59. package/docs/token-budget.md +0 -22
  60. package/docs/troubleshooting.md +0 -288
  61. package/examples/demo-transcripts/01-small-tweak.md +0 -37
  62. package/examples/demo-transcripts/02-unknown-bug-fix.md +0 -37
  63. package/examples/demo-transcripts/03-new-feature.md +0 -37
  64. package/examples/demo-transcripts/04-refactor.md +0 -37
  65. package/examples/demo-transcripts/05-review-and-verify.md +0 -37
  66. package/examples/feature-flow.md +0 -117
  67. package/examples/fix-flow.md +0 -139
  68. package/quality/scorecard.json +0 -88
  69. package/quality/token-budget.exceptions.json +0 -13
@@ -1,37 +0,0 @@
1
- # Refactor
2
-
3
- ## User request
4
-
5
- "The auth module is getting hard to change. Decouple provider-specific logic."
6
-
7
- ## Orchestrator recommendation
8
-
9
- Working behavior, structural problem, cross-module risk.
10
-
11
- 1. Plan the refactor first
12
- 2. Explore the auth module first
13
-
14
- ## User approval
15
-
16
- "Plan the refactor first."
17
-
18
- ## Delegation message
19
-
20
- Task: Plan auth provider decoupling.
21
- Command: `/refactor`
22
- Proceed policy: Ask before selecting a candidate and before implementation.
23
- Context hints: auth module, provider-specific logic.
24
- Allowed scope: targeted reads plus Markdown planning output.
25
- Must follow: command protocol and `/refactor` phase checklist.
26
-
27
- ## Worker behavior
28
-
29
- System Architect runs the architecture skill, lists candidates, asks which to explore, grills the chosen plan, records the approved plan, then switches to Code Tweaker. Code Tweaker executes the test-first implementation path.
30
-
31
- ## Verification / review
32
-
33
- Code Tweaker suggests `/verify`, then `/review`, then `/commit-and-document`. The user must explicitly approve each follow-up.
34
-
35
- ## Completion summary
36
-
37
- Custom Orchestrator summarizes architecture decision, behavior-preservation checks, files changed, and next suggested command.
@@ -1,37 +0,0 @@
1
- # Review And Verify
2
-
3
- ## User request
4
-
5
- "Review and verify this branch before I commit."
6
-
7
- ## Orchestrator recommendation
8
-
9
- This asks for evidence plus inspection. Run verification first, then review.
10
-
11
- 1. Run verification checks
12
- 2. Review the diff first
13
-
14
- ## User approval
15
-
16
- "Run verification checks."
17
-
18
- ## Delegation message
19
-
20
- Task: Verify current branch changes.
21
- Command: `/verify`
22
- Proceed policy: Proceed automatically after changed scope and project checks are identified.
23
- Context hints: current branch diff.
24
- Allowed scope: repository checks only.
25
- Must follow: command protocol, command file, referenced skill only.
26
-
27
- ## Worker behavior
28
-
29
- Code Tweaker loads `.roo/commands/verify.md`, sees `Skill: .roo/skills/engineering/verify/SKILL.md`, inspects project config and changed files, runs the smallest useful checks, and reports exact commands and results.
30
-
31
- ## Verification / review
32
-
33
- After verification completes, Custom Orchestrator summarizes and asks whether to continue with the plain-language review workflow. It does not auto-launch review. If approved, System Architect loads `.roo/commands/review.md`, follows the review skill, reads targeted diffs and needed standards/specs, then reports findings by severity.
34
-
35
- ## Completion summary
36
-
37
- The final summary includes verification status, review result, remaining risk, and whether commit is recommended. Commit requires explicit approval.
@@ -1,117 +0,0 @@
1
- # Example: `/feature` flow
2
-
3
- The `/feature` chain is the longest one Zoo Flow ships. It exists
4
- specifically because the most expensive mistakes happen when an agent
5
- implements a feature it has not properly sharpened. The chain forces
6
- the slow steps before any code is written.
7
-
8
- ## Setup
9
-
10
- - Active mode: `🪃 Custom Orchestrator`.
11
- - Example feature:
12
-
13
- > "Add a dark mode toggle to the settings page."
14
-
15
- ## Phase 1 — orchestrator routes
16
-
17
- Type:
18
-
19
- ```
20
- /feature Add a dark mode toggle to the settings page.
21
- ```
22
-
23
- The orchestrator delegates with `new_task` to `system-architect`.
24
-
25
- ## Phase 2 — architect sharpens
26
-
27
- The architect runs `grill-with-docs` to sharpen the request. Expect:
28
-
29
- - Questions about target users and platforms.
30
- - Questions about existing theming infrastructure.
31
- - Questions about persistence (per-user, per-device, system-default).
32
- - Updates to relevant docs.
33
-
34
- **Hard stop**: the architect halts and asks:
35
-
36
- > Prototype, or skip to PRD?
37
-
38
- Answer one or the other. For this example:
39
-
40
- ```
41
- Prototype.
42
- ```
43
-
44
- ## Phase 3 — prototype handoff (optional)
45
-
46
- Because you chose Prototype:
47
-
48
- 1. Architect summarizes the prototype question, constraints, relevant
49
- context, and the decision the prototype is meant to settle.
50
- 2. Architect calls `switch_mode` to `code-tweaker` **in the same task
51
- window**.
52
- 3. Tweaker executes `/prototype` per the command protocol.
53
- 4. Tweaker calls `switch_mode` back to `system-architect` with the
54
- prototype result, run command or URL if any, and the decision needed.
55
-
56
- **Hard stop**: architect halts and asks for your verdict on the
57
- prototype.
58
-
59
- This is the phase that breaks most often if the architect skips the
60
- `switch_mode`. See
61
- [`docs/troubleshooting.md`](../docs/troubleshooting.md#prototype-running-in-the-wrong-mode).
62
-
63
- ## Phase 4 — PRD
64
-
65
- The architect runs `to-prd`, summarizing the prior phases in three
66
- bullets and producing a PRD draft.
67
-
68
- **Hard stop**: "Ready to slice into issues?"
69
-
70
- Answer:
71
-
72
- ```
73
- Yes.
74
- ```
75
-
76
- ## Phase 5 — slice into issues
77
-
78
- The architect runs `to-issues`, producing a list of well-scoped issues.
79
-
80
- **Hard stop**: wait for your approval of the issue list. Edit, drop,
81
- or merge issues here. Once approved, the chain continues.
82
-
83
- ## Phase 6 — implement
84
-
85
- The architect summarizes the approved issues and `switch_mode`s to
86
- `code-tweaker`. The tweaker, for each issue:
87
-
88
- 1. Runs `/tdd` per the command protocol.
89
- 2. Implements the issue.
90
- 3. After each issue ships, suggests `/commit-and-document`.
91
-
92
- The orchestrator does not auto-launch `/commit-and-document`. You run
93
- it explicitly when you want the commit.
94
-
95
- ## Phase 7 — return
96
-
97
- When the chain completes (or hits a blocker), the active mode calls
98
- `attempt_completion`. The orchestrator summarizes and halts.
99
-
100
- ## Pass criteria
101
-
102
- - [ ] Orchestrator delegated to `system-architect`.
103
- - [ ] Architect halted after sharpening, asked for Prototype or PRD.
104
- - [ ] If you picked Prototype, the architect used `switch_mode` to
105
- hand off; the architect did not run the prototype itself.
106
- - [ ] Architect did not edit application source code at any point.
107
- - [ ] Architect halted before producing the PRD, after the PRD, and
108
- after the issue list.
109
- - [ ] Tweaker ran `/tdd` per issue, not freeform implementation.
110
- - [ ] Tweaker did not commit without explicit approval.
111
-
112
- ## Why this chain has so many stops
113
-
114
- Each hard stop is a place where the cheapest fix is "your input,
115
- right now". A wrong sharpening assumption is cheap to correct in
116
- phase 2, expensive after a PRD, and very expensive after an issue
117
- slice. The hard stops are not friction — they are the design.
@@ -1,139 +0,0 @@
1
- # Example: `/fix` flow
2
-
3
- A worked example of the multi-phase `/fix` chain: orchestrator delegates
4
- to the architect, architect diagnoses, architect switches to the tweaker
5
- to implement, tweaker switches back, architect runs the post-mortem,
6
- tweaker prepares the commit. The whole flow has explicit HITL stops.
7
-
8
- ## Setup
9
-
10
- - Active mode: `🪃 Custom Orchestrator`.
11
- - Workspace has a real bug to fix. For this example, assume:
12
-
13
- > "The login button does nothing on the second click. First click
14
- > works."
15
-
16
- ## Phase 1 — orchestrator routes
17
-
18
- Type:
19
-
20
- ```
21
- /fix The login button does nothing on the second click. First click works.
22
- ```
23
-
24
- **Expected**
25
-
26
- Orchestrator looks up the routing matrix and delegates with `new_task`
27
- targeting `system-architect`. The delegated message includes the
28
- slash form, user context, proceed policy, command-protocol pointer,
29
- skills location, and the completion rule.
30
-
31
- ## Phase 2 — architect diagnoses
32
-
33
- The new task window opens in `🏗️ System Architect`. The architect:
34
-
35
- 1. Loads `/fix` per the command protocol.
36
- 2. Runs the `diagnose` skill, phases 1–3.
37
- 3. Produces a short list of hypotheses.
38
- 4. **Halts** and asks you to pick one.
39
-
40
- **Expected message (paraphrased)**
41
-
42
- > Hypotheses:
43
- > 1. Click handler is wired once and never re-bound after a state change.
44
- > 2. The button enters a disabled state on first click and never resets.
45
- > 3. A queued network request is canceling the second click's handler.
46
- >
47
- > Which would you like to instrument? (1 / 2 / 3)
48
-
49
- You answer:
50
-
51
- ```
52
- 2
53
- ```
54
-
55
- ## Phase 3 — architect instruments
56
-
57
- The architect runs phase 4 of the `diagnose` skill on hypothesis 2.
58
- This phase may involve reading state-management code, adding a
59
- console-log or instrumentation suggestion (Markdown only — the architect
60
- cannot edit source), and producing a confirmed root cause.
61
-
62
- **Expected**
63
-
64
- > Root cause confirmed: `LoginButton` sets `disabled` on the first
65
- > click and the `onSuccess` handler does not reset it. The second
66
- > click is being absorbed by the disabled state.
67
-
68
- The architect summarizes the proposed fix and prepares to hand off.
69
-
70
- ## Phase 4 — architect switches to tweaker
71
-
72
- The architect calls `switch_mode` to `code-tweaker` **inside the same
73
- task window** with a summary of:
74
-
75
- - The root cause.
76
- - The proposed fix (`onSuccess` resets `disabled`).
77
- - The files involved.
78
- - The tests to add or extend.
79
-
80
- The tweaker takes over without losing context.
81
-
82
- ## Phase 5 — tweaker implements
83
-
84
- The tweaker:
85
-
86
- 1. Edits the `LoginButton` component to reset `disabled` on success
87
- and on error.
88
- 2. Adds or extends tests covering the second-click case.
89
- 3. Runs the test suite.
90
- 4. Reports back.
91
-
92
- **HITL stop**: the tweaker does not commit. Per the git rule, it waits
93
- for your approval.
94
-
95
- ## Phase 6 — back to architect for post-mortem
96
-
97
- The tweaker calls `switch_mode` back to `system-architect`. The
98
- architect runs phase 6 of `diagnose` (post-mortem):
99
-
100
- - What was the original assumption that masked the bug?
101
- - Is this an isolated mistake or a pattern?
102
- - If a pattern, would `/refactor` help?
103
-
104
- The architect produces a short post-mortem note in `docs/` or
105
- `.scratch/` (Markdown only) and either drops the matter there or
106
- suggests `/refactor`.
107
-
108
- ## Phase 7 — tweaker prepares the commit
109
-
110
- The architect switches back to the tweaker. The tweaker suggests
111
- `/commit-and-document`. **The orchestrator does not auto-launch it.**
112
- That command runs only when you type it.
113
-
114
- ## Phase 8 — return to orchestrator
115
-
116
- When the chain is complete (or blocked), the active mode calls
117
- `attempt_completion`. The orchestrator summarizes for you and halts.
118
-
119
- ## Pass criteria
120
-
121
- - [ ] Orchestrator delegated to `system-architect`, not the tweaker.
122
- - [ ] Architect halted after phase 3 hypotheses, did not instrument
123
- until you picked one.
124
- - [ ] Architect did not edit source code at any point.
125
- - [ ] Architect used `switch_mode` (same window) to hand off, not
126
- `new_task`.
127
- - [ ] Tweaker did not run `git commit` or `git push` without your
128
- explicit approval.
129
- - [ ] After return, orchestrator halted instead of auto-launching
130
- `/commit-and-document`.
131
-
132
- ## Common slips
133
-
134
- - Architect tries to edit source: see
135
- [`docs/troubleshooting.md`](../docs/troubleshooting.md#architect-trying-to-edit-source).
136
- - Tweaker commits without approval: tighten the git rule in the
137
- tweaker's `customInstructions`.
138
- - Orchestrator launches `/commit-and-document` automatically: see
139
- [`docs/troubleshooting.md`](../docs/troubleshooting.md#slash-command-leakage-from-subtask-summaries).
@@ -1,88 +0,0 @@
1
- {
2
- "version": 1,
3
- "minimum_score": 9.5,
4
- "categories": {
5
- "command_integrity": {
6
- "weight": 0.20,
7
- "checks": [
8
- "All documented commands have mode declarations",
9
- "All mode declarations match command-policy map",
10
- "Global rules cover paths, protocol, failure, reply, context-economy",
11
- "Mode rule folders exist for all three custom modes",
12
- "Routing table matches command-policy map"
13
- ],
14
- "max_score": 10.0
15
- },
16
- "skill_quality": {
17
- "weight": 0.20,
18
- "checks": [
19
- "Every command referencing a skill uses canonical Skill: marker",
20
- "Referenced skills exist on disk",
21
- "Skills describe purpose, steps, and output format",
22
- "No thin non-canonical skill wrappers exist",
23
- "Skills follow bucket layout under .roo/skills/"
24
- ],
25
- "max_score": 10.0
26
- },
27
- "validation_depth": {
28
- "weight": 0.20,
29
- "checks": [
30
- "Doctor validates all required files exist",
31
- "Doctor checks skill-reference integrity",
32
- "Doctor checks mode slugs against allowed set",
33
- "Doctor detects built-in delegation targets",
34
- "Doctor checks .roomodes permits documented commands",
35
- "Doctor validates routing table rows",
36
- "Doctor detects old doc-name leakage",
37
- "Doctor validates ADR path consistency"
38
- ],
39
- "max_score": 10.0
40
- },
41
- "token_economy": {
42
- "weight": 0.10,
43
- "checks": [
44
- "Context-economy rule exists and is referenced",
45
- "Domain-doc read gate defers broad reads",
46
- "Completion rules specify evidence output format",
47
- "Orchestrator routes by risk level to lightest safe workflow"
48
- ],
49
- "max_score": 10.0
50
- },
51
- "verification": {
52
- "weight": 0.10,
53
- "checks": [
54
- "Verify command exists and references verify skill",
55
- "Verify skill specifies evidence output format",
56
- "Verify skill hard-codes no-claim-unless-run rule",
57
- "Doctor fixture tests exist and pass",
58
- "Routing eval cases exist and validate",
59
- "Package-link integrity check exists"
60
- ],
61
- "max_score": 10.0
62
- },
63
- "review_process": {
64
- "weight": 0.10,
65
- "checks": [
66
- "Review command exists and references review skill",
67
- "Review skill covers standards and spec axes",
68
- "Review skill has Security/Risk axis",
69
- "Review findings ordered by severity",
70
- "Review result ends with one of four canonical results"
71
- ],
72
- "max_score": 10.0
73
- },
74
- "release_readiness": {
75
- "weight": 0.10,
76
- "checks": [
77
- "release:check script exists in package.json",
78
- "release:check runs doctor, eval-routing, package-links",
79
- "release:check runs package-manifest check",
80
- "release:check runs token-budget check",
81
- "release:check runs score-quality check",
82
- "quality/scorecard.json defines minimum thresholds",
83
- "npm pack --dry-run succeeds"
84
- ],
85
- "max_score": 10.0
86
- }
87
- }
88
- }
@@ -1,13 +0,0 @@
1
- {
2
- "_comment": "Token budget exceptions. Keys are relative file paths from project root. Values are reason + override size.",
3
- "overrides": {
4
- "compiled.md": {
5
- "reason": "Single-file bundle doc, expected to be large",
6
- "max_bytes": 819200
7
- },
8
- "ZOO-FLOW-BUNDLE.md": {
9
- "reason": "Single-file bundle doc, expected to be large",
10
- "max_bytes": 819200
11
- }
12
- }
13
- }