@fernado03/zoo-flow 0.9.1 → 0.11.0

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 (64) hide show
  1. package/README.md +139 -83
  2. package/bin/zoo-flow.js +444 -134
  3. package/package.json +3 -3
  4. package/templates/claude-code/.claude/commands/caveman.md +26 -0
  5. package/templates/claude-code/.claude/commands/commit-and-document.md +27 -0
  6. package/templates/claude-code/.claude/commands/diagnose.md +27 -0
  7. package/templates/claude-code/.claude/commands/feature.md +46 -0
  8. package/templates/claude-code/.claude/commands/fix.md +45 -0
  9. package/templates/claude-code/.claude/commands/grill-me.md +27 -0
  10. package/templates/claude-code/.claude/commands/grill-with-docs.md +27 -0
  11. package/templates/claude-code/.claude/commands/handoff.md +27 -0
  12. package/templates/claude-code/.claude/commands/improve-codebase-architecture.md +27 -0
  13. package/templates/claude-code/.claude/commands/prototype.md +27 -0
  14. package/templates/claude-code/.claude/commands/refactor.md +46 -0
  15. package/templates/claude-code/.claude/commands/review.md +27 -0
  16. package/templates/claude-code/.claude/commands/scaffold-context.md +27 -0
  17. package/templates/claude-code/.claude/commands/setup-matt-pocock-skills.md +27 -0
  18. package/templates/claude-code/.claude/commands/tdd.md +27 -0
  19. package/templates/claude-code/.claude/commands/teach.md +27 -0
  20. package/templates/claude-code/.claude/commands/to-issues.md +27 -0
  21. package/templates/claude-code/.claude/commands/to-prd.md +27 -0
  22. package/templates/claude-code/.claude/commands/triage.md +27 -0
  23. package/templates/claude-code/.claude/commands/tweak.md +27 -0
  24. package/templates/claude-code/.claude/commands/update-docs.md +27 -0
  25. package/templates/claude-code/.claude/commands/verify.md +27 -0
  26. package/templates/claude-code/.claude/commands/write-a-skill.md +27 -0
  27. package/templates/claude-code/.claude/commands/zoom-out.md +27 -0
  28. package/templates/claude-code/.claude/skills/engineering/commit-and-document/SKILL.md +37 -0
  29. package/templates/claude-code/.claude/skills/engineering/diagnose/SKILL.md +136 -0
  30. package/templates/claude-code/.claude/skills/engineering/explore/SKILL.md +61 -0
  31. package/templates/claude-code/.claude/skills/engineering/feature/SKILL.md +66 -0
  32. package/templates/claude-code/.claude/skills/engineering/fix/SKILL.md +59 -0
  33. package/templates/claude-code/.claude/skills/engineering/grill-with-docs/SKILL.md +35 -0
  34. package/templates/claude-code/.claude/skills/engineering/improve-codebase-architecture/SKILL.md +39 -0
  35. package/templates/claude-code/.claude/skills/engineering/prototype/SKILL.md +34 -0
  36. package/templates/claude-code/.claude/skills/engineering/refactor/SKILL.md +59 -0
  37. package/templates/claude-code/.claude/skills/engineering/review/SKILL.md +144 -0
  38. package/templates/claude-code/.claude/skills/engineering/scaffold-context/SKILL.md +44 -0
  39. package/templates/claude-code/.claude/skills/engineering/setup-matt-pocock-skills/SKILL.md +48 -0
  40. package/templates/claude-code/.claude/skills/engineering/tdd/SKILL.md +81 -0
  41. package/templates/claude-code/.claude/skills/engineering/to-issues/SKILL.md +37 -0
  42. package/templates/claude-code/.claude/skills/engineering/to-prd/SKILL.md +39 -0
  43. package/templates/claude-code/.claude/skills/engineering/triage/SKILL.md +36 -0
  44. package/templates/claude-code/.claude/skills/engineering/tweak/SKILL.md +37 -0
  45. package/templates/claude-code/.claude/skills/engineering/update-docs/SKILL.md +33 -0
  46. package/templates/claude-code/.claude/skills/engineering/verify/SKILL.md +38 -0
  47. package/templates/claude-code/.claude/skills/engineering/zoom-out/SKILL.md +74 -0
  48. package/templates/claude-code/.claude/skills/productivity/caveman/SKILL.md +24 -0
  49. package/templates/claude-code/.claude/skills/productivity/grill-me/SKILL.md +21 -0
  50. package/templates/claude-code/.claude/skills/productivity/handoff/SKILL.md +20 -0
  51. package/templates/claude-code/.claude/skills/productivity/teach/SKILL.md +116 -0
  52. package/templates/claude-code/.claude/skills/productivity/write-a-skill/SKILL.md +59 -0
  53. package/templates/claude-code/.zoo-flow/CONTEXT.md +8 -0
  54. package/templates/claude-code/.zoo-flow/START_HERE.md +28 -0
  55. package/templates/claude-code/.zoo-flow/docs/adr/0001-record-architecture-decisions.md +22 -0
  56. package/templates/claude-code/.zoo-flow/evals/no-regression-checklist.md +26 -0
  57. package/templates/claude-code/.zoo-flow/evals/routing-cases.jsonl +18 -0
  58. package/templates/claude-code/.zoo-flow/evals/routing-cases.md +211 -0
  59. package/templates/claude-code/.zoo-flow/project-profile.json +24 -0
  60. package/templates/claude-code/CLAUDE.md +237 -0
  61. package/templates/full/.roo/rules/07-scratch-working-memory.md +39 -0
  62. package/templates/full/.roo/skills/engineering/diagnose/SKILL.md +44 -10
  63. package/templates/full/.roo/skills/engineering/review/SKILL.md +35 -11
  64. package/templates/full/.roo/skills/engineering/zoom-out/SKILL.md +55 -1
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: review
3
+ description: Review a diff, branch, PR, or work-in-progress change against the requested spec, repo standards, architecture, and likely regressions. Use before committing non-trivial work.
4
+ ---
5
+
6
+ Uses scratch working memory.
7
+
8
+ # Review
9
+
10
+ Purpose: answer whether the diff matches the spec, standards, architecture, and project intent.
11
+
12
+ Review only. Do not patch application source. As architect profile, edits are limited to Markdown, `.scratch/`, and `docs/`.
13
+
14
+ ## 1. Identify target
15
+
16
+ Use the narrowest target that fits the request:
17
+
18
+ - User-provided base ref, PR, issue, files, or review focus.
19
+ - Staged diff when staged changes exist.
20
+ - Unstaged diff when unstaged changes exist.
21
+ - Branch diff against the likely base (`main`, `master`, or merge-base) when asked to review a branch.
22
+ - Specific files/specs/PRDs when provided.
23
+
24
+ If the target is unclear, ask one short question via `AskUserQuestion` and stop.
25
+
26
+ ## 2. Read needed context only
27
+
28
+ Start with:
29
+
30
+ - `git status --short` via `Bash`
31
+ - `git diff --stat` via `Bash`
32
+ - `git diff --cached --stat` via `Bash` when staged changes exist
33
+
34
+ Then read targeted diffs only:
35
+
36
+ - `git diff -- <file>` via `Bash`
37
+ - `git diff --cached -- <file>` via `Bash`
38
+ - `git diff <base>...HEAD -- <file>` via `Bash`
39
+
40
+ Read relevant specs, issues, PRDs, standards, docs, ADRs, security notes, or project conventions only when they affect the changed area or the user requested that axis.
41
+
42
+ ## 3. Review axes (multi-pass with working memory)
43
+
44
+ Initialize session: `.scratch/reviews/<YYYY-MM-DD>/review-<slug>/`
45
+
46
+ Write `<session-dir>/session.md` with review target, base ref, scope.
47
+
48
+ ### Pass 1: Standards axis
49
+
50
+ Analyze and write `<session-dir>/standards.md`:
51
+
52
+ - style
53
+ - architecture
54
+ - test quality
55
+ - maintainability
56
+ - security
57
+ - project conventions
58
+
59
+ ### Pass 2: Spec axis
60
+
61
+ Read `<session-dir>/standards.md` for context.
62
+
63
+ Analyze and write `<session-dir>/spec.md`:
64
+
65
+ - did it solve the requested problem?
66
+ - did it change public behavior unexpectedly?
67
+ - did it miss edge cases?
68
+ - did it violate PRD, issue, or user intent?
69
+
70
+ Cross-reference standards findings where relevant.
71
+
72
+ ### Pass 3: Security/Risk axis
73
+
74
+ Read `<session-dir>/standards.md` and `<session-dir>/spec.md`.
75
+
76
+ Analyze and write `<session-dir>/security.md`:
77
+
78
+ - does the change touch auth, payments, PII, session data, or external API contracts?
79
+ - does it introduce new dependencies or entitlements?
80
+ - are there error paths that could leak information?
81
+ - is there a regression path that would be hard to detect?
82
+ - does the change affect audit logs or compliance obligations?
83
+
84
+ For every Security/Risk finding, include severity and mitigation. Cross-reference previous passes.
85
+
86
+ Omit this axis when the change clearly cannot affect security (copy changes, comment fixes, test-only additions, docs-only updates).
87
+
88
+ ## 4. Findings
89
+
90
+ Order findings by severity:
91
+
92
+ - Blocker
93
+ - High
94
+ - Medium
95
+ - Low
96
+ - Nit
97
+
98
+ For every finding include:
99
+
100
+ - file/path
101
+ - line or symbol when possible
102
+ - problem
103
+ - why it matters
104
+ - suggested fix
105
+
106
+ Prefer concrete findings over commentary. If no findings exist for a severity, omit that severity.
107
+
108
+ ## 5. Result
109
+
110
+ End with exactly one result line:
111
+
112
+ - `Review result: approve`
113
+ - `Review result: approve with nits`
114
+ - `Review result: changes requested`
115
+ - `Review result: blocked`
116
+
117
+ ## 6. Synthesize and complete
118
+
119
+ Read all angle files from `<session-dir>/` (standards.md, spec.md, security.md if present).
120
+
121
+ Write `<session-dir>/synthesis.md` with:
122
+
123
+ - Summary of each axis
124
+ - Cross-cutting findings (issues spanning multiple axes)
125
+ - Prioritized findings by severity
126
+ - Result line: `approve` / `approve with nits` / `changes requested` / `blocked`
127
+
128
+ Return completion with:
129
+ - `<session-dir>/synthesis.md` path
130
+ - brief result line (approve / approve with nits / changes requested / blocked)
131
+ - recommended next command
132
+
133
+ ## Recommended next command
134
+
135
+ If fixes are needed, recommend one next command only:
136
+
137
+ - small fix -> `/tweak`
138
+ - behavior fix -> `/tdd`
139
+ - unknown cause -> `/fix`
140
+ - design issue -> `/refactor`
141
+ - ready for evidence -> `/verify`
142
+ - ready to commit -> `/commit-and-document`
143
+
144
+ Do not auto-launch any follow-up command.
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: scaffold-context
3
+ description: Bootstrap or expand the project CONTEXT.md with domain language, key decisions, and conventions. Use when starting a new project, onboarding to an existing one, or when CONTEXT.md is missing/thin.
4
+ ---
5
+
6
+ # Scaffold Context
7
+
8
+ RULE: CONTEXT.md is the project's shared vocabulary. Keep it concise, accurate, and useful for both humans and agents.
9
+
10
+ ## Procedure
11
+
12
+ 1. Check if `.zoo-flow/CONTEXT.md` exists via `Glob`.
13
+ 2. If exists and non-empty:
14
+ - Read current content via `Read`.
15
+ - Ask user via `AskUserQuestion`: expand existing or replace entirely.
16
+ 3. If missing or thin:
17
+ - Explore codebase via `Glob`, `Grep`, and targeted `Read`.
18
+ - Identify domain language, key abstractions, conventions.
19
+ - Draft CONTEXT.md content.
20
+ 4. Structure CONTEXT.md with:
21
+ - Project purpose and scope
22
+ - Domain language and terminology
23
+ - Key architectural decisions
24
+ - Conventions and standards
25
+ - Common patterns
26
+ 5. Review with user via `AskUserQuestion`.
27
+ 6. Write to `.zoo-flow/CONTEXT.md` via `Write`.
28
+
29
+ ## Context economy
30
+
31
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
32
+
33
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
34
+
35
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
36
+
37
+ Do not re-read unchanged files; use prior findings unless the file changed.
38
+
39
+ ## Complete
40
+
41
+ Return a summary with:
42
+ - CONTEXT.md location
43
+ - sections added/updated
44
+ - recommended next command (typically `/explore` to deepen understanding, or `/feature`/`/refactor` to start work)
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: setup-matt-pocock-skills
3
+ description: Configure Matt Pocock's TypeScript/React workflow preferences and conventions. Use when user wants to adopt Matt Pocock's coding style, TypeScript patterns, or React best practices.
4
+ ---
5
+
6
+ # Setup Matt Pocock Skills
7
+
8
+ RULE: Apply Matt Pocock's TypeScript and React conventions consistently. These are opinionated but battle-tested patterns.
9
+
10
+ ## Procedure
11
+
12
+ 1. Read user's current configuration via `Glob` and `Read`:
13
+ - `tsconfig.json`
14
+ - `.eslintrc` or `eslint.config.js`
15
+ - `package.json`
16
+ - Existing `.prettierrc` or similar
17
+ 2. Apply TypeScript preferences via `Edit` or `Write`:
18
+ - Strict mode enabled
19
+ - No implicit any
20
+ - Explicit function return types
21
+ - Prefer type inference for locals
22
+ 3. Apply React preferences:
23
+ - Functional components only
24
+ - Custom hooks for shared logic
25
+ - Proper prop typing with interfaces
26
+ - Avoid inline object/function definitions in JSX
27
+ 4. Apply ESLint preferences:
28
+ - Recommended rulesets
29
+ - Custom rules for common pitfalls
30
+ 5. Document conventions in `.zoo-flow/matt-pocock-conventions.md` via `Write`.
31
+ 6. Review changes with user via `AskUserQuestion`.
32
+
33
+ ## Context economy
34
+
35
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
36
+
37
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
38
+
39
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
40
+
41
+ Do not re-read unchanged files; use prior findings unless the file changed.
42
+
43
+ ## Complete
44
+
45
+ Return a summary with:
46
+ - configuration files updated
47
+ - conventions document location
48
+ - recommended next command (typically `/verify` to ensure config is valid)
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: tdd
3
+ description: Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
4
+ ---
5
+
6
+ # Test-Driven Development
7
+
8
+ RULE: Test observable behaviour through public interfaces. No implementation-detail tests. Use glossary. Respect ADRs.
9
+
10
+ ## Planning
11
+
12
+ Before code:
13
+ 1. Confirm public interface changes.
14
+ 2. Confirm behaviours; prioritise critical paths/complex logic.
15
+ 3. Identify deep-module opportunities.
16
+ 4. Design for testability.
17
+ 5. List behaviours, not implementation steps.
18
+ 6. Get user approval via `AskUserQuestion`.
19
+
20
+ Ask: `What should the public interface look like? Which behaviours matter most?`
21
+
22
+ ## Loop
23
+
24
+ DO NOT write all tests then all code.
25
+
26
+ For each slice:
27
+ 1. RED: write one failing behaviour test.
28
+ 2. GREEN: write minimal code to pass.
29
+ 3. Repeat next behaviour.
30
+
31
+ Rules:
32
+ - One test at a time.
33
+ - Public interface only.
34
+ - Minimal code only.
35
+ - No speculative features.
36
+
37
+ ## Refactor
38
+
39
+ Only after green:
40
+ 1. Remove duplication.
41
+ 2. Deepen shallow modules.
42
+ 3. Apply SOLID where natural.
43
+ 4. Refactor problematic existing code revealed.
44
+ 5. Run tests after each refactor via `Bash`.
45
+
46
+ Checklist per cycle:
47
+ - [ ] Test describes behaviour.
48
+ - [ ] Test uses public interface.
49
+ - [ ] Test survives internal refactor.
50
+ - [ ] Code minimal.
51
+ - [ ] No speculation.
52
+
53
+ After green, suggest `/verify`, then `/review`, then `/commit-and-document` for non-trivial work. Do not auto-launch follow-up commands.
54
+
55
+ ## Complete
56
+
57
+ Return a summary with:
58
+ - what was implemented (behaviours, interfaces)
59
+ - tests written (count, pass/fail)
60
+ - status (complete / blocked with reason)
61
+ - recommended next command
62
+
63
+ ## Context economy
64
+
65
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
66
+
67
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
68
+
69
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
70
+
71
+ Do not re-read unchanged files; use prior findings unless the file changed.
72
+
73
+ Read the public interface and nearest existing tests first. Avoid reading unrelated implementation until a failing test or search result points there.
74
+
75
+ ## References
76
+
77
+ - `tests.md` — what to assert and what not to.
78
+ - `mocking.md` — when (and when not) to mock.
79
+ - `interface-design.md` — designing testable interfaces.
80
+ - `deep-modules.md` — interface vs implementation depth.
81
+ - `refactoring.md` — refactor candidates after green.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: to-issues
3
+ description: Break down a feature or project into implementable issues/tasks. Use after creating a PRD to plan implementation work.
4
+ ---
5
+
6
+ # To Issues
7
+
8
+ RULE: Each issue should be independently implementable and testable. Avoid vague or oversized issues.
9
+
10
+ ## Procedure
11
+
12
+ 1. Read PRD or requirements from `.scratch/prd/` or user input.
13
+ 2. Break down into discrete issues:
14
+ - Each issue has clear scope and acceptance criteria.
15
+ - Issues are sized appropriately (not too large, not too small).
16
+ - Dependencies between issues are identified.
17
+ 3. Write issues to `.scratch/issues/<feature-name>/` using `Write`.
18
+ 4. Create issue index with dependency graph.
19
+ 5. Review with user via `AskUserQuestion`.
20
+
21
+ ## Context economy
22
+
23
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
24
+
25
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
26
+
27
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
28
+
29
+ Do not re-read unchanged files; use prior findings unless the file changed.
30
+
31
+ ## Complete
32
+
33
+ Return completion with:
34
+ - issues directory location
35
+ - issue count and summary
36
+ - dependency graph
37
+ - recommended next command (typically `/tdd` or `/tweak` to start implementing first issue)
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: to-prd
3
+ description: Convert requirements or ideas into a Product Requirements Document. Use when defining what to build before starting implementation.
4
+ ---
5
+
6
+ # To PRD
7
+
8
+ RULE: PRD defines what to build, not how to build it. Implementation details belong in design docs.
9
+
10
+ ## Procedure
11
+
12
+ 1. Gather requirements from user input, discussions, or existing documentation.
13
+ 2. Structure PRD with standard sections:
14
+ - Problem statement
15
+ - Goals and objectives
16
+ - User stories or use cases
17
+ - Functional requirements
18
+ - Non-functional requirements
19
+ - Constraints and assumptions
20
+ - Success metrics
21
+ 3. Write PRD to `.scratch/prd/<feature-name>.md` using `Write`.
22
+ 4. Review with user via `AskUserQuestion`.
23
+
24
+ ## Context economy
25
+
26
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
27
+
28
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
29
+
30
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
31
+
32
+ Do not re-read unchanged files; use prior findings unless the file changed.
33
+
34
+ ## Complete
35
+
36
+ Return completion with:
37
+ - PRD location
38
+ - summary of requirements
39
+ - recommended next command (typically `/to-issues` to break down into tasks)
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: triage
3
+ description: Prioritize and categorize issues, bugs, or tasks. Use when managing a backlog or deciding what to work on next.
4
+ ---
5
+
6
+ # Triage
7
+
8
+ RULE: Be decisive. Every item needs a clear priority and category.
9
+
10
+ ## Procedure
11
+
12
+ 1. Review list of issues/bugs/tasks (from user input, issue tracker, etc.).
13
+ 2. For each item:
14
+ - Assess severity (critical, high, medium, low).
15
+ - Categorize (bug, feature, tech debt, documentation, etc.).
16
+ - Estimate effort (small, medium, large).
17
+ - Identify dependencies or blockers.
18
+ 3. Prioritize based on impact and urgency.
19
+ 4. Document triage results in `.scratch/triage/<date>.md` using `Write`.
20
+
21
+ ## Context economy
22
+
23
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
24
+
25
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
26
+
27
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
28
+
29
+ Do not re-read unchanged files; use prior findings unless the file changed.
30
+
31
+ ## Complete
32
+
33
+ Return completion with:
34
+ - triage document location
35
+ - prioritized list summary
36
+ - recommended next command (typically `/fix` for bugs, `/feature` for features, or `/refactor` for tech debt)
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: tweak
3
+ description: Direct implementation mode for small, known fixes or UI updates. Bypasses heavy diagnosis or PRD creation.
4
+ ---
5
+
6
+ # Tweak
7
+
8
+ Use for small known fixes.
9
+
10
+ 1. Locate target files quickly using `Glob` and `Grep`.
11
+ 2. Ask only if multiple identical matches.
12
+ 3. Implement exact requested fix.
13
+ 4. DO NOT rewrite surrounding logic unless requested.
14
+ 5. If existing test covers touched area, run it via `Bash`.
15
+ 6. DO NOT write new tests unless asked.
16
+ 7. Confirm change.
17
+ 8. For R3+ risk, suggest `/verify` before `/review` before `/commit-and-document`. Do not auto-launch. Otherwise offer `/commit-and-document` only after user satisfied.
18
+ 9. Do not auto-launch follow-up commands.
19
+
20
+ ## Complete
21
+
22
+ Return a summary with:
23
+ - what was changed (file paths, line ranges)
24
+ - status (complete / blocked with reason)
25
+ - recommended next command
26
+
27
+ ## Context economy
28
+
29
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
30
+
31
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
32
+
33
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
34
+
35
+ Do not re-read unchanged files; use prior findings unless the file changed.
36
+
37
+ For small changes, audit only the named files and nearby call sites. Expand search only if the first audit shows hidden dependencies.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: update-docs
3
+ description: Update documentation to reflect code changes. Use when implementation changes require documentation updates.
4
+ ---
5
+
6
+ # Update Docs
7
+
8
+ RULE: Documentation must match the current implementation. Stale docs are worse than no docs.
9
+
10
+ ## Procedure
11
+
12
+ 1. Identify which documentation needs updating (README, API docs, inline comments, etc.).
13
+ 2. Read existing documentation via `Glob` and `Read`.
14
+ 3. Read relevant code to understand current behavior.
15
+ 4. Update documentation using `Edit` or `Write` to match implementation.
16
+ 5. Verify documentation accuracy against code.
17
+
18
+ ## Context economy
19
+
20
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
21
+
22
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
23
+
24
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
25
+
26
+ Do not re-read unchanged files; use prior findings unless the file changed.
27
+
28
+ ## Complete
29
+
30
+ Return completion with:
31
+ - documentation files updated
32
+ - summary of changes
33
+ - recommended next command (typically `/verify` to ensure docs are accurate)
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: verify
3
+ description: Run the smallest meaningful verification suite. Use after implementation to ensure changes work correctly.
4
+ ---
5
+
6
+ # Verify
7
+
8
+ RULE: Never claim verified unless you actually ran the checks and they passed.
9
+
10
+ ## Procedure
11
+
12
+ 1. Identify what to verify (changed files, new features, bug fixes).
13
+ 2. Determine appropriate verification commands:
14
+ - `Bash` with test commands (pytest, jest, etc.)
15
+ - `Bash` with type checking (mypy, tsc, etc.)
16
+ - `Bash` with linting (ruff, eslint, etc.)
17
+ - `Bash` with build commands if applicable
18
+ 3. Run verification commands via `Bash`.
19
+ 4. Parse output to determine pass/fail status.
20
+ 5. If any check fails, stop and report failures.
21
+ 6. If all checks pass, report success.
22
+
23
+ ## Context economy
24
+
25
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
26
+
27
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
28
+
29
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
30
+
31
+ Do not re-read unchanged files; use prior findings unless the file changed.
32
+
33
+ ## Complete
34
+
35
+ Return completion with:
36
+ - verification commands run
37
+ - pass/fail status for each
38
+ - recommended next command (typically `/review` if passed, or `/fix` if failed)
@@ -0,0 +1,74 @@
1
+ ---
2
+ name: zoom-out
3
+ description: Map the codebase at a high level to understand structure, modules, and relationships. Use when entering an unfamiliar codebase or planning large changes.
4
+ ---
5
+
6
+ Uses scratch working memory for multi-dimension mapping.
7
+
8
+ # Zoom Out
9
+
10
+ RULE: Produce a high-level map, not detailed code analysis. Focus on structure and relationships.
11
+
12
+ ## Procedure
13
+
14
+ 1. Use `Glob` to identify directory structure and file organization.
15
+ 2. Use `Grep` to find key patterns (entry points, exports, configurations).
16
+ 3. Use targeted `Read` on key files (README, package.json, main entry points).
17
+
18
+ ## Multi-dimension mapping
19
+
20
+ Initialize session directory: `.scratch/zoom-out/<YYYY-MM-DD>-<slug>/`
21
+
22
+ Use `Write` to create `<session-dir>/session.md` with:
23
+ - Target area or scope
24
+ - Initial observations from step 3
25
+
26
+ ### Dimension 1: Architecture
27
+
28
+ Analyze and `Write` to `<session-dir>/architecture.md`:
29
+ - Module boundaries and responsibilities
30
+ - Key interfaces and abstractions
31
+ - Separation of concerns
32
+
33
+ ### Dimension 2: Data flow
34
+
35
+ Analyze and `Write` to `<session-dir>/data-flow.md`:
36
+ - Entry points (API endpoints, CLI commands, event handlers)
37
+ - Data transformations and processing steps
38
+ - State management and persistence
39
+ - External integrations
40
+
41
+ ### Dimension 3: Call graph
42
+
43
+ Analyze and `Write` to `<session-dir>/call-graph.md`:
44
+ - Key functions and their call chains
45
+ - Control flow patterns
46
+ - Dependencies between components
47
+ - Error propagation paths
48
+
49
+ ### Synthesis
50
+
51
+ `Read` all dimension files and synthesize insights.
52
+
53
+ `Write` to `<session-dir>/synthesis.md`:
54
+ - Cross-cutting architectural patterns
55
+ - Key dependencies and integration points
56
+ - Potential areas of concern or technical debt
57
+ - Recommended areas for deeper exploration
58
+
59
+ ## Context economy
60
+
61
+ Before broad reads, locate relevant files/symbols with `Glob`, `Grep`, or targeted file reads.
62
+
63
+ Prefer targeted `Read` with line ranges or block reads once the relevant area is known.
64
+
65
+ Read full files only when structure, ordering, or surrounding context is required for correctness.
66
+
67
+ Do not re-read unchanged files; use prior findings unless the file changed.
68
+
69
+ ## Complete
70
+
71
+ Return completion with:
72
+ - `<session-dir>/synthesis.md` file path
73
+ - high-level structure summary
74
+ - recommended next command (typically `/explore` for deeper dive, or `/feature`/`/refactor` if changes needed)
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: caveman
3
+ description: Ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman.
4
+ ---
5
+
6
+ # Caveman
7
+
8
+ ACTIVE until user says stop/normal mode.
9
+
10
+ Rules:
11
+ - Drop articles/filler/pleasantries/hedging.
12
+ - Keep technical accuracy + exact terms.
13
+ - Fragments OK.
14
+ - Use short synonyms.
15
+ - Abbrev: DB/auth/config/req/res/fn/impl.
16
+ - Use arrows for causality.
17
+ - Code blocks unchanged.
18
+ - Quote errors exact.
19
+
20
+ Pattern: `[thing] [action] [reason]. [next step].`
21
+
22
+ Auto-clarity:
23
+ - Use normal clarity briefly for security warnings/irreversible actions/risky multi-step/repeated clarification.
24
+ - Resume caveman after.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: grill-me
3
+ description: Interview the user about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
4
+ ---
5
+
6
+ # Grill Me
7
+
8
+ 1. Interview plan/design until shared understanding.
9
+ 2. Walk design tree branch-by-branch.
10
+ 3. Resolve dependency order between decisions.
11
+ 4. Ask one question at a time via `AskUserQuestion`.
12
+ 5. Include recommended answer.
13
+ 6. Inspect code via `Read` and `Grep` instead of asking when code can answer.
14
+
15
+ ## Complete
16
+
17
+ Return a summary with:
18
+ - decision tree branches resolved (count)
19
+ - key decisions made (summary)
20
+ - status (complete / blocked with reason)
21
+ - recommended next command
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: handoff
3
+ description: Compact the current conversation into a handoff document for another agent to pick up.
4
+ argument-hint: "What will the next session be used for?"
5
+ ---
6
+
7
+ # Handoff
8
+
9
+ 1. Write handoff for fresh agent.
10
+ 2. Save in OS temp dir via `Bash`, not workspace.
11
+ 3. Tailor to user args.
12
+ 4. Include suggested skills section.
13
+ 5. Reference artifacts by path/URL; do not duplicate.
14
+ 6. Redact secrets/API keys/passwords/PII.
15
+
16
+ ## Complete
17
+
18
+ Return a summary with:
19
+ - handoff file path (OS temp dir)
20
+ - status (complete / blocked with reason)