planflow-ai 1.2.0 → 1.3.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.
- package/.claude/commands/brainstorm.md +228 -0
- package/.claude/commands/discovery-plan.md +25 -1
- package/.claude/commands/execute-plan.md +35 -0
- package/.claude/commands/flow.md +36 -3
- package/.claude/commands/review-code.md +10 -0
- package/.claude/resources/core/_index.md +37 -2
- package/.claude/resources/core/design-awareness.md +400 -0
- package/.claude/resources/core/model-routing.md +116 -0
- package/.claude/resources/core/pattern-capture.md +227 -0
- package/.claude/resources/patterns/_index.md +11 -1
- package/.claude/resources/patterns/brainstorm-templates.md +132 -0
- package/.claude/resources/patterns/discovery-templates.md +44 -0
- package/.claude/resources/skills/_index.md +28 -1
- package/.claude/resources/skills/brainstorm-skill.md +284 -0
- package/.claude/resources/skills/discovery-skill.md +38 -4
- package/.claude/resources/skills/execute-plan-skill.md +66 -4
- package/.claude/resources/skills/flow-cost.md +153 -0
- package/.claude/resources/skills/review-code-skill.md +16 -1
- package/.claude/rules/core/allowed-patterns.md +6 -0
- package/.claude/rules/core/forbidden-patterns.md +6 -0
- package/dist/cli/daemon/heartbeat-daemon.js +7 -2
- package/dist/cli/daemon/heartbeat-daemon.js.map +1 -1
- package/dist/cli/handlers/claude.d.ts.map +1 -1
- package/dist/cli/handlers/claude.js +130 -2
- package/dist/cli/handlers/claude.js.map +1 -1
- package/dist/cli/handlers/shared.d.ts.map +1 -1
- package/dist/cli/handlers/shared.js +2 -1
- package/dist/cli/handlers/shared.js.map +1 -1
- package/dist/cli/index.js +0 -0
- package/package.json +1 -1
- package/templates/shared/CLAUDE.md.template +27 -10
|
@@ -12,16 +12,19 @@
|
|
|
12
12
|
| `/review-code` | Review local uncommitted changes |
|
|
13
13
|
| `/review-pr` | Review a Pull Request |
|
|
14
14
|
| `/write-tests` | Write tests to achieve coverage target |
|
|
15
|
+
| `/brainstorm` | Free-form idea exploration with interactive questions |
|
|
15
16
|
| `/brain` | Manual brain entry (capture meeting notes, ideas, brainstorms) |
|
|
16
|
-
| `/
|
|
17
|
+
| `/learn` | Extract reusable patterns from current session |
|
|
18
|
+
| `/flow` | Configure plan-flow settings — autopilot, git control, model routing (`key=value` syntax) |
|
|
17
19
|
|
|
18
20
|
## Recommended Workflow
|
|
19
21
|
|
|
20
22
|
1. `/setup` - Run once to index project patterns
|
|
21
|
-
2. `/
|
|
22
|
-
3. `/
|
|
23
|
-
4. `/
|
|
24
|
-
5. `/
|
|
23
|
+
2. `/brainstorm` - (Optional) Explore and crystallize a vague idea
|
|
24
|
+
3. `/discovery-plan` - Gather requirements for a new feature
|
|
25
|
+
4. `/create-plan` - Create structured implementation plan
|
|
26
|
+
5. `/execute-plan` - Execute the plan phase by phase
|
|
27
|
+
6. `/review-code` or `/review-pr` - Review changes before merging
|
|
25
28
|
|
|
26
29
|
## Session Start Behaviors
|
|
27
30
|
|
|
@@ -48,10 +51,12 @@ flow/
|
|
|
48
51
|
│ ├── index.md # Brain index (loaded at session start)
|
|
49
52
|
│ ├── features/ # Feature history and context
|
|
50
53
|
│ └── errors/ # Reusable error patterns
|
|
54
|
+
├── brainstorms/ # Brainstorm exploration documents
|
|
51
55
|
├── contracts/ # Integration contracts
|
|
52
56
|
├── discovery/ # Discovery documents
|
|
53
57
|
├── plans/ # Active implementation plans
|
|
54
|
-
├── references/ #
|
|
58
|
+
├── references/ # Auto-generated reference materials
|
|
59
|
+
├── resources/ # Valuable artifacts captured during skill execution
|
|
55
60
|
├── reviewed-code/ # Code review documents
|
|
56
61
|
├── reviewed-pr/ # PR review documents
|
|
57
62
|
├── tasklist.md # Project todo list (updated in real-time during execution)
|
|
@@ -67,6 +72,18 @@ flow/
|
|
|
67
72
|
|
|
68
73
|
All projects are linked into a central Obsidian vault at `~/plan-flow/brain/`. Each `plan-flow init` creates a project directory in the vault with individual symlinks for each flow subdirectory (features, errors, decisions, discovery, plans, archive, contracts). Daily session logs live globally at `~/plan-flow/brain/daily/`. Open `~/plan-flow/brain/` as your Obsidian vault to see all projects in one graph with path-based color-coded groups.
|
|
69
74
|
|
|
75
|
+
## Model Routing
|
|
76
|
+
|
|
77
|
+
When `model_routing: true` in `flow/.flowconfig` (default), `/execute-plan` auto-selects the most cost-effective model per phase: 0-3 → haiku, 4-5 → sonnet, 6-10 → opus. Disable with `/flow model_routing=false`.
|
|
78
|
+
|
|
79
|
+
## Design Awareness
|
|
80
|
+
|
|
81
|
+
Discovery asks whether features involve UI work. If confirmed, captures structured design tokens (colors, typography, spacing) into a `## Design Context` section. During execution, tokens are auto-injected into UI phase prompts. Includes 6 built-in design personalities and screenshot-based token extraction. See `.claude/resources/core/design-awareness.md`.
|
|
82
|
+
|
|
83
|
+
## Pattern Capture
|
|
84
|
+
|
|
85
|
+
During skill execution, the LLM silently buffers patterns and anti-patterns, presenting them for approval at the end. Approved patterns are written to `.claude/rules/core/allowed-patterns.md` or `forbidden-patterns.md`. See `.claude/resources/core/pattern-capture.md`.
|
|
86
|
+
|
|
70
87
|
## Complexity Scoring
|
|
71
88
|
|
|
72
89
|
Every plan phase has a complexity score (0-10):
|
|
@@ -86,8 +103,8 @@ Always-loaded rules are in `.claude/rules/core/`:
|
|
|
86
103
|
- `forbidden-patterns.md` - Anti-patterns to avoid
|
|
87
104
|
|
|
88
105
|
On-demand reference files (loaded by commands when needed) are in `.claude/resources/`:
|
|
89
|
-
- `core/` - Complexity scoring, project ledger
|
|
90
|
-
- `patterns/` - Templates and patterns for plans, discovery, contracts
|
|
91
|
-
- `skills/` - Skill implementation details
|
|
106
|
+
- `core/` - Complexity scoring, model routing, design awareness, pattern capture, project ledger, autopilot mode
|
|
107
|
+
- `patterns/` - Templates and patterns for plans, discovery, contracts, brainstorms
|
|
108
|
+
- `skills/` - Skill implementation details (12 skills)
|
|
92
109
|
- `languages/` - Language-specific patterns (TypeScript, Python)
|
|
93
|
-
- `tools/` - Tool-specific patterns (Jest, Pytest, auth)
|
|
110
|
+
- `tools/` - Tool-specific patterns (Jest, Pytest, auth, interactive questions)
|