@mind-fold/open-flow 0.2.15 → 0.2.17

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/README.md CHANGED
@@ -1,183 +1,106 @@
1
1
  # open-flow
2
2
 
3
- AI-assisted development workflow initializer for Cursor, Claude Code and more.
3
+ AI-assisted development workflow system for Cursor, Claude Code and more.
4
4
 
5
- Based on Anthropic's [Effective Harnesses for Long-Running Agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents).
6
-
7
- ## Why open-flow?
8
-
9
- AI coding assistants are powerful but lack continuity across sessions. open-flow adds a lightweight workflow system that gives AI "long-term memory" through structured documentation.
10
-
11
- Key outcomes:
12
- - **Multi-developer support**: Each developer (human or AI) has independent progress tracking
13
- - **Guidelines index system**: `index.md + doc.md` two-layer structure for efficient knowledge access
14
- - **Short commands**: Pre-defined prompts for common operations
15
- - **Human-in-the-loop**: AI writes code, human reviews and commits
16
-
17
- ## Getting Started
5
+ Give your AI coding assistant "long-term memory" through structured progress tracking and project-specific guidelines.
18
6
 
19
- ### Prerequisites
20
-
21
- - Node.js >= 18.0.0
7
+ Based on Anthropic's [Effective Harnesses for Long-Running Agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents).
22
8
 
23
- ### Install
9
+ ## Install
24
10
 
25
11
  ```bash
26
- npm install -g open-flow
12
+ npm install -g @mind-fold/open-flow
27
13
  ```
28
14
 
29
- ### Initialize in your project
15
+ ## Initialize
30
16
 
31
17
  ```bash
32
- cd my-project
33
- open-flow init
18
+ cd your-project
19
+
20
+ # Initialize workflow system
21
+ of init
22
+ # or: open-flow init
23
+
24
+ # Set your developer identity (use your git name)
25
+ of init -u your-git-name
26
+ # or: open-flow init -u your-git-name
34
27
  ```
35
28
 
36
29
  You'll be prompted to select AI tools to configure:
37
30
  - Cursor
38
31
  - Claude Code
39
32
 
40
- ### What gets created
33
+ ## Learn the Workflow
41
34
 
42
- ```
43
- your-project/
44
- ├── .cursor/commands/ # Cursor short commands
45
- │ ├── init-agent.md
46
- │ ├── check-frontend.md
47
- │ ├── check-backend.md
48
- │ ├── record-agent-flow.md
49
- │ └── onboard-developer.md
50
- ├── .claude/commands/ # Claude Code short commands
51
- ├── workflow/
52
- │ ├── scripts/
53
- │ │ ├── init-developer.sh
54
- │ │ └── get-developer.sh
55
- │ ├── agent-progress/
56
- │ │ └── index.md
57
- │ ├── structure/
58
- │ │ ├── frontend/
59
- │ │ │ ├── index.md
60
- │ │ │ └── doc.md
61
- │ │ └── backend/
62
- │ │ ├── index.md
63
- │ │ └── doc.md
64
- │ ├── feature.json
65
- │ └── flow.md
66
- ├── init-agent.md
67
- └── AGENTS.md
68
- ```
69
-
70
- ## Short Commands
35
+ After initialization, open your AI IDE (Cursor or Claude Code) and run:
71
36
 
72
- | Command | Purpose |
73
- |---------|---------|
74
- | `/init-agent` | Initialize AI session, read context and guidelines |
75
- | `/before-frontend-dev` | Read frontend guidelines before starting development |
76
- | `/before-backend-dev` | Read backend guidelines before starting development |
77
- | `/check-frontend` | Check frontend code against guidelines |
78
- | `/check-backend` | Check backend code against guidelines |
79
- | `/record-agent-flow` | Record work progress (after human commits) |
80
- | `/record-question` | Document a solved problem for future reference |
81
- | `/onboard-developer` | Guide new developer through setup |
82
- | `/update-frontend-structure` | Update frontend guidelines if new patterns found |
83
- | `/update-backend-structure` | Update backend guidelines if new patterns found |
84
- | `/create-command` | Create a new slash command in both `.cursor/` and `.claude/` directories |
85
-
86
- ## Workflow
87
-
88
- ### 1. Initialize Developer Identity
89
-
90
- ```bash
91
- ./workflow/scripts/init-developer.sh <your-name>
37
+ ```
38
+ /onboard-developer
92
39
  ```
93
40
 
94
- ### 2. Start AI Session
95
-
96
- Use `/init-agent` command in your AI tool.
97
-
98
- ### 3. Development
99
-
100
- 1. AI reads guidelines from `workflow/structure/`
101
- 2. AI writes code following the guidelines
102
- 3. Human reviews and tests
103
- 4. Human commits the code
104
- 5. Use `/record-agent-flow` to record progress
105
-
106
- ### 4. Customize Guidelines
107
-
108
- Fill in your project-specific guidelines in:
109
- - `workflow/structure/frontend/doc.md`
110
- - `workflow/structure/backend/doc.md`
111
-
112
- **Requirements**:
113
- - Write all documentation in **English**
114
- - Add section markers: `@@@section:kebab-case-id` and `@@@/section:kebab-case-id`
115
- - Update `index.md` files with section IDs for quick navigation
116
-
117
- ## Key Concepts
118
-
119
- ### index.md + doc.md Structure
120
-
121
- Instead of reading entire guideline documents (which can be 1000+ lines), AI:
122
- 1. Reads the lightweight `index.md` (navigation table with section IDs)
123
- 2. Finds relevant section ID for the task
124
- 3. Extracts only the needed section: `sed -n '/@@@section:ID/,/@@@\/section:ID/p' doc.md`
41
+ The AI will explain in detail:
42
+ - **Core Philosophy**: Why this workflow exists, what problems it solves
43
+ - **System Structure**: What each directory does
44
+ - **Command Deep Dive**: Each command's purpose, mechanism, and importance
45
+ - **Real-World Examples**: 5 complete workflow scenarios with step-by-step explanations
125
46
 
126
- Section markers (`@@@section:id`) ensure references don't break when content is added or removed.
47
+ ## Quick Reference
127
48
 
128
- This saves tokens and improves focus.
49
+ ### Core Workflow Commands
129
50
 
130
- ### Multi-Developer Progress Tracking
51
+ | Command | When to Use |
52
+ |---------|-------------|
53
+ | `/init-agent` | Start of every session |
54
+ | `/before-frontend-dev` | Before writing frontend code |
55
+ | `/before-backend-dev` | Before writing backend code |
56
+ | `/check-frontend` | After writing frontend code |
57
+ | `/check-backend` | After writing backend code |
58
+ | `/check-cross-layer` | After changes spanning multiple layers |
59
+ | `/finish-work` | Before human commits |
60
+ | `/record-agent-flow` | After human commits |
61
+ | `/break-loop` | End debugging/investigation |
131
62
 
132
- ```
133
- workflow/agent-progress/
134
- ├── index.md # Main index
135
- └── {developer}/ # Per-developer directory
136
- ├── index.md # Personal index
137
- └── progress-N.md # Progress files (max 2000 lines each)
138
- ```
63
+ ### Customization Commands
139
64
 
140
- Each developer has independent progress files that don't conflict during collaboration.
65
+ | Command | Purpose |
66
+ |---------|---------|
67
+ | `/generate-frontend-structure` | Auto-scan project and generate frontend guidelines |
68
+ | `/generate-backend-structure` | Auto-scan project and generate backend guidelines |
69
+ | `/extract-to-rules` | Extract knowledge from docs into guidelines |
141
70
 
142
- ### Human-in-the-Loop
71
+ ### Utility Commands
143
72
 
144
- AI should NOT execute `git commit`. The workflow is:
145
- 1. AI writes code
146
- 2. Human tests locally
147
- 3. Human reviews code
148
- 4. Human commits
149
- 5. AI records progress with commit hash
73
+ | Command | Purpose |
74
+ |---------|---------|
75
+ | `/onboard-developer` | Learn the complete workflow system |
76
+ | `/create-command` | Create new slash command |
77
+ | `/record-question` | Document solved problems |
150
78
 
151
- ## Commands
79
+ ## CLI Commands
152
80
 
153
81
  ```bash
154
- open-flow init # Initialize in current project
155
- open-flow update # Update configuration (coming soon)
156
- open-flow --version # Show version
157
- open-flow --help # Show help
158
- ```
82
+ of init # Initialize in current project
83
+ of init -u <name> # Initialize with developer identity
84
+ of --version # Show version
85
+ of --help # Show help
159
86
 
160
- ## Comparison with OpenSpec
87
+ # 'open-flow' works the same as 'of'
88
+ open-flow init
89
+ open-flow init -u <name>
90
+ ```
161
91
 
162
- | Aspect | OpenSpec | open-flow |
163
- |--------|----------|-----------|
164
- | Focus | Spec-driven development | Memory-driven workflow |
165
- | Main feature | Change proposals & specs | Progress tracking & guidelines |
166
- | Collaboration | Single change flow | Multi-developer directories |
167
- | Guidelines | N/A | index.md + doc.md system |
92
+ ## Key Principles
168
93
 
169
- Both can be used together - OpenSpec for specs, open-flow for workflow.
94
+ 1. **AI Never Commits** - AI prepares code, human tests and commits
95
+ 2. **Guidelines Before Code** - Read project conventions before writing
96
+ 3. **Check After Code** - Verify against guidelines before commit
97
+ 4. **Record Everything** - Persist session context for future sessions
170
98
 
171
99
  ## Contributing
172
100
 
173
101
  ```bash
174
- # Install dependencies
175
102
  npm install
176
-
177
- # Build
178
103
  npm run build
179
-
180
- # Development
181
104
  npm run dev
182
105
  ```
183
106
 
@@ -4,7 +4,7 @@ YOUR ROLE: Be a mentor and teacher. Don't just list steps - EXPLAIN the underlyi
4
4
 
5
5
  ## CRITICAL INSTRUCTION - YOU MUST COMPLETE ALL SECTIONS
6
6
 
7
- This onboarding has TWO equally important parts:
7
+ This onboarding has THREE equally important parts:
8
8
 
9
9
  **PART 1: Core Concepts** (Sections: CORE PHILOSOPHY, SYSTEM STRUCTURE, COMMAND DEEP DIVE)
10
10
  - Explain WHY this workflow exists
@@ -17,9 +17,18 @@ This onboarding has TWO equally important parts:
17
17
  - WHAT HAPPENS: What the command actually does
18
18
  - IF SKIPPED: What goes wrong without it
19
19
 
20
- DO NOT skip Part 2. The examples are NOT optional - they are the most important part for understanding how the workflow works in practice. A developer cannot truly understand the system without seeing real workflow examples.
20
+ **PART 3: Customize Your Development Guidelines** (Section: CUSTOMIZE YOUR DEVELOPMENT GUIDELINES)
21
+ - Check if project guidelines are still default templates
22
+ - If default, guide the developer to customize them
23
+ - Show feature.json structure for systematic customization
24
+ - Explain the customization workflow
21
25
 
22
- After completing BOTH parts, ask the developer about their first task.
26
+ DO NOT skip any part. All three parts are essential:
27
+ - Part 1 teaches the concepts
28
+ - Part 2 shows how concepts work in practice
29
+ - Part 3 ensures the project has proper guidelines for AI to follow
30
+
31
+ After completing ALL THREE parts, ask the developer about their first task.
23
32
 
24
33
  ---
25
34
 
@@ -72,6 +81,56 @@ workflow/
72
81
  \-- scripts/ # Automation tools
73
82
  ```
74
83
 
84
+ ### Understanding structure/ subdirectories
85
+
86
+ **frontend/** - Single-layer frontend knowledge:
87
+ - Component patterns (how to write components in THIS project)
88
+ - State management rules (Redux? Zustand? Context?)
89
+ - Styling conventions (CSS modules? Tailwind? Styled-components?)
90
+ - Hook patterns (custom hooks, data fetching)
91
+
92
+ **backend/** - Single-layer backend knowledge:
93
+ - API design patterns (REST? GraphQL? tRPC?)
94
+ - Database conventions (query patterns, migrations)
95
+ - Error handling standards
96
+ - Logging and monitoring rules
97
+
98
+ **flows/** - Cross-layer integration knowledge:
99
+
100
+ This is the CRITICAL directory that many developers overlook. It answers questions that NEITHER frontend nor backend docs can answer alone:
101
+
102
+ **WHY flows/ EXISTS**:
103
+ When a feature spans multiple layers (frontend + backend + database), there are integration concerns that don't belong in either layer's docs:
104
+ - How does data flow from UI click to database write and back?
105
+ - What's the contract between frontend and backend for this feature?
106
+ - What happens when one layer changes - what must the other layer update?
107
+ - How do we handle cross-layer error propagation?
108
+ - What's the deployment order when both layers change?
109
+
110
+ **WHAT flows/ CONTAINS**:
111
+ 1. **Feature flow documentation**: End-to-end data flow for complex features
112
+ 2. **API contracts**: Shared type definitions, request/response schemas
113
+ 3. **Cross-layer checklists**: "When changing X, also check Y"
114
+ 4. **Integration patterns**: How layers communicate in this project
115
+ 5. **Deployment guides**: Order of operations for multi-layer changes
116
+
117
+ **WHEN TO READ flows/**:
118
+ - Before implementing ANY feature that touches both frontend and backend
119
+ - When debugging issues that might be integration-related
120
+ - Before making API changes
121
+ - When planning new features
122
+
123
+ **EXAMPLE**:
124
+ A "user authentication" flow doc might include:
125
+ - Frontend: What happens when user clicks login
126
+ - API: What endpoint is called, what's the request/response format
127
+ - Backend: How credentials are validated, session created
128
+ - Database: What gets stored, what gets returned
129
+ - Error cases: How each layer handles auth failures
130
+ - Security: Token handling, refresh logic
131
+
132
+ Without flows/ documentation, AI treats frontend and backend as isolated islands. With flows/, AI understands how the layers work TOGETHER.
133
+
75
134
  ---
76
135
 
77
136
  ## COMMAND DEEP DIVE
@@ -158,6 +217,71 @@ This causes "context drift" - AI starts following guidelines but gradually rever
158
217
 
159
218
  ---
160
219
 
220
+ ### /check-cross-layer - Multi-Dimension Verification
221
+
222
+ **WHY IT EXISTS**:
223
+ `/check-frontend` and `/check-backend` verify code within a single layer. But most bugs don't come from lack of technical skill - they come from "didn't think of it":
224
+ - Changed a constant in one place, missed 5 other places using it
225
+ - Modified database schema, forgot to update the API layer
226
+ - Created a new utility function, but similar one already exists
227
+ - Fixed a bug in one component, but 3 other components have the same bug
228
+
229
+ **THE CORE INSIGHT**:
230
+ Real-world changes have multiple "dimensions" that need checking:
231
+ 1. **Cross-layer data flow**: Does data flow correctly from UI -> API -> Service -> Database and back?
232
+ 2. **Code reuse**: Are there duplicate definitions? Should this be a shared constant?
233
+ 3. **Consistency**: Is the same concept displayed the same way in different places?
234
+ 4. **Impact scope**: Did you check ALL files affected by this change?
235
+
236
+ **WHAT IT ACTUALLY DOES**:
237
+ 1. Identifies which dimensions your change involves
238
+ 2. For each dimension, runs targeted checks:
239
+
240
+ **Dimension A - Cross-Layer Data Flow** (when changes touch 3+ layers):
241
+ - Trace read flow: Database -> Service -> API -> Hook -> Component
242
+ - Trace write flow: Component -> Hook -> API -> Service -> Database
243
+ - Check types passed correctly between layers
244
+ - Check errors propagated to UI
245
+ - Check loading states at each layer
246
+
247
+ **Dimension B - Code Reuse** (when modifying constants/config):
248
+ - Search: How many places define this value?
249
+ - If 2+ places -> Should extract to shared constant
250
+ - After modification, all usage sites updated?
251
+
252
+ **Dimension B2 - New Utilities** (when creating helper functions):
253
+ - Search for existing similar utilities first
254
+ - If similar exists, extend instead of duplicate
255
+ - If new, is it in the right location?
256
+
257
+ **Dimension B3 - Batch Modifications** (after fixing multiple files):
258
+ - Did you check ALL files with similar patterns?
259
+ - Any files missed?
260
+ - Should this pattern be abstracted?
261
+
262
+ **Dimension C - Import Paths** (when creating new files):
263
+ - Using correct path aliases?
264
+ - No circular imports?
265
+ - Consistent with project convention?
266
+
267
+ **Dimension D - Same-Layer Consistency** (when modifying display logic):
268
+ - Search for other components using same concept
269
+ - Are displays consistent?
270
+ - Should they share configuration?
271
+
272
+ **WHY THIS MATTERS**:
273
+ - Without check-cross-layer: You fix one bug, but miss 5 related places. You create a utility that already exists. You change a constant but miss half the usages.
274
+ - With check-cross-layer: Systematic verification across all dimensions. No "didn't think of it" bugs.
275
+
276
+ **ANALOGY**: Like a pre-flight checklist for pilots. Not because pilots don't know how to fly, but because complex systems have many dimensions that are easy to overlook.
277
+
278
+ **RELATED DOCUMENTS** (referenced by this command):
279
+ - `workflow/structure/flows/pre-implementation-checklist.md` - Questions BEFORE coding
280
+ - `workflow/structure/flows/code-reuse-thinking-guide.md` - Pattern recognition
281
+ - `workflow/structure/flows/cross-layer-thinking-guide.md` - Data flow analysis
282
+
283
+ ---
284
+
161
285
  ### /finish-work - Holistic Pre-Commit Review
162
286
 
163
287
  **WHY IT EXISTS**:
@@ -418,8 +542,211 @@ Debugging and investigation can spiral - AI keeps trying things without concludi
418
542
 
419
543
  ---
420
544
 
421
- After explaining, ask the developer:
422
- 1. What kind of work will they be doing? (frontend/backend/full-stack)
423
- 2. Do they have a specific task to start with?
545
+ # PART 3: Customize Your Development Guidelines
546
+
547
+ After explaining Part 1 and Part 2, check if the project's development guidelines need customization.
548
+
549
+ ## Step 1: Check Current Guidelines Status
550
+
551
+ Check if `workflow/structure/` contains default templates or customized guidelines:
552
+
553
+ ```bash
554
+ # Check if files are still templates (look for placeholder text)
555
+ grep -l "TODO" workflow/structure/backend/*.md 2>/dev/null | head -5
556
+ grep -l "your project" workflow/structure/frontend/*.md 2>/dev/null | head -5
557
+
558
+ # Also check the project's actual tech stack
559
+ cat package.json 2>/dev/null | head -30
560
+ ls -la src/ 2>/dev/null || ls -la apps/ 2>/dev/null
561
+ ```
562
+
563
+ ## Step 2: Explain Guidelines Status (Adjust Tone Based on Situation)
564
+
565
+ **Situation A: First time using open-flow in this project**
566
+
567
+ If this appears to be a new open-flow setup (guidelines are default templates), explain warmly:
568
+
569
+ "I see that the development guidelines in `workflow/structure/` are still the default templates that come with open-flow. This is completely normal if you've just set up the workflow system!
570
+
571
+ The default templates use generic examples (React, TypeScript, Drizzle ORM, etc.) that may not match your actual tech stack. To make `/before-*-dev` commands truly useful, you'll want to customize these guidelines with YOUR project's patterns.
572
+
573
+ This is a great opportunity - let's set up a task to customize your guidelines. I'll show you how to use **feature.json** for complex tasks like this."
574
+
575
+ **Situation B: Existing open-flow setup, new team member**
576
+
577
+ If guidelines appear customized (project-specific examples found), explain:
578
+
579
+ "Great news! Your team has already customized the development guidelines. You can start using `/before-*-dev` commands right away to learn your project's conventions.
580
+
581
+ I recommend reading through `workflow/structure/` to familiarize yourself with the team's coding standards."
582
+
583
+ ## Step 3: Create Feature for Guidelines Customization (If Needed)
584
+
585
+ If guidelines need customization, DO THIS IN THE CURRENT SESSION:
586
+
587
+ **First, explain the concept of feature.json**:
588
+
589
+ "For complex tasks with multiple subtasks, we use **feature.json** to track progress. This is important because:
590
+ - Complex tasks often span multiple AI sessions
591
+ - Each session has limited context
592
+ - feature.json persists the task breakdown across sessions
593
+ - Future sessions can read feature.json to continue where you left off
594
+
595
+ Let me create one for you now, and this will also teach you how to create feature.json for your own complex tasks in the future."
596
+
597
+ **Then create the feature**:
598
+
599
+ ```bash
600
+ ./workflow/scripts/feature.sh create customize-guidelines
601
+ ```
602
+
603
+ **Now fill in the feature.json based on the project's actual tech stack**:
604
+
605
+ Analyze the project's tech stack and create appropriate subtasks. Example for a typical project:
606
+
607
+ ```json
608
+ {
609
+ "name": "customize-guidelines",
610
+ "description": "Customize development guidelines to match this project's actual tech stack and patterns",
611
+ "created": "[current-date]",
612
+ "status": "in-progress",
613
+ "subtasks": [
614
+ {
615
+ "id": "analyze-tech-stack",
616
+ "title": "Analyze Project Tech Stack",
617
+ "description": "Identify frameworks, libraries, and patterns used in this project",
618
+ "status": "completed",
619
+ "notes": "Analyzed in onboard session: [list findings]"
620
+ },
621
+ {
622
+ "id": "backend-database",
623
+ "title": "Backend: Database Guidelines",
624
+ "description": "Analyze database patterns and rewrite workflow/structure/backend/database-guidelines.md",
625
+ "status": "pending"
626
+ },
627
+ {
628
+ "id": "backend-directory",
629
+ "title": "Backend: Directory Structure",
630
+ "description": "Document backend directory organization in workflow/structure/backend/directory-structure.md",
631
+ "status": "pending"
632
+ },
633
+ {
634
+ "id": "backend-error-handling",
635
+ "title": "Backend: Error Handling",
636
+ "description": "Document error handling patterns in workflow/structure/backend/error-handling.md",
637
+ "status": "pending"
638
+ },
639
+ {
640
+ "id": "frontend-components",
641
+ "title": "Frontend: Component Guidelines",
642
+ "description": "Analyze component patterns and rewrite workflow/structure/frontend/component-guidelines.md",
643
+ "status": "pending"
644
+ },
645
+ {
646
+ "id": "frontend-state",
647
+ "title": "Frontend: State Management",
648
+ "description": "Document state management approach in workflow/structure/frontend/state-management.md",
649
+ "status": "pending"
650
+ },
651
+ {
652
+ "id": "frontend-directory",
653
+ "title": "Frontend: Directory Structure",
654
+ "description": "Document frontend directory organization in workflow/structure/frontend/directory-structure.md",
655
+ "status": "pending"
656
+ }
657
+ ]
658
+ }
659
+ ```
660
+
661
+ **Adapt subtasks based on actual tech stack**:
662
+ - If no database -> remove database subtask
663
+ - If no React -> change component guidelines to vanilla JS patterns
664
+ - If Rust backend -> change to Rust-specific guidelines
665
+ - Add project-specific subtasks as needed
666
+
667
+ ## Step 4: Teach User How to Use Feature.json for Future Tasks
668
+
669
+ Explain to the developer:
670
+
671
+ "Now you've seen how feature.json works. In the future, when you have complex tasks, you can create your own feature.json by telling AI:
672
+
673
+ **How to ask AI to create a feature.json**:
674
+
675
+ > 'I need to [describe complex task]. This seems like a multi-session task. Can you help me:
676
+ > 1. Create a feature with `./workflow/scripts/feature.sh create [feature-name]`
677
+ > 2. Break it down into subtasks in feature.json
678
+ > 3. Mark the first subtask as in-progress'
679
+
680
+ **When to use feature.json**:
681
+ - Task has 3+ distinct steps
682
+ - Task might span multiple sessions
683
+ - Task has dependencies between steps
684
+ - You want to track progress systematically
685
+
686
+ **Feature.json lifecycle**:
687
+ 1. Create feature -> feature.json created with subtasks
688
+ 2. Work on subtasks -> update status in feature.json
689
+ 3. Human commits -> git commit the changes
690
+ 4. Record session -> /record-agent-flow captures progress
691
+ 5. New session -> AI reads feature.json, continues from where you left off
692
+ 6. Complete all subtasks -> archive feature"
693
+
694
+ ## Step 5: Complete This Session
695
+
696
+ Guide the developer to complete the onboard session properly:
697
+
698
+ "Let's wrap up this onboard session:
699
+
700
+ 1. **Review the feature.json** I created - does it capture the right subtasks for your project?
701
+
702
+ 2. **Commit the feature.json**:
703
+ ```bash
704
+ git add workflow/features/customize-guidelines/feature.json
705
+ git commit -m 'feat(workflow): add customize-guidelines feature'
706
+ ```
707
+
708
+ 3. **Record this session**:
709
+ Use `/record-agent-flow` to record what we did in this onboard session.
710
+
711
+ 4. **Start customization in a new session**:
712
+ - Open a new conversation window
713
+ - Run `/init-agent` - AI will see the customize-guidelines feature
714
+ - AI will read feature.json and ask which subtask to work on
715
+ - Work through subtasks one by one"
716
+
717
+ ## Step 6: Show Example of Continuing in Next Session
718
+
719
+ "In your next session, after `/init-agent`, you can say:
720
+
721
+ > 'I want to continue the customize-guidelines feature. Let's work on the backend-database subtask. Please:
722
+ > 1. Analyze my project's database code
723
+ > 2. Identify the ORM, query patterns, transaction handling
724
+ > 3. Rewrite workflow/structure/backend/database-guidelines.md with examples from MY codebase'
725
+
726
+ The AI will read the feature.json, understand the context, and help you complete that subtask."
727
+
728
+ ## Customization Commands Reference
729
+
730
+ These commands can help with guidelines customization:
731
+
732
+ | Command | Purpose |
733
+ |---------|---------|
734
+ | `/generate-frontend-structure` | Auto-scan project and generate frontend guidelines |
735
+ | `/generate-backend-structure` | Auto-scan project and generate backend guidelines |
736
+ | `/extract-to-rules` | Extract knowledge from a document into guidelines |
737
+
738
+ ---
739
+
740
+ After completing all three parts, summarize and ask:
741
+
742
+ "You're now onboarded to the workflow system! Here's what we covered:
743
+ - Part 1: Core concepts (why this workflow exists)
744
+ - Part 2: Real-world examples (how to apply the workflow)
745
+ - Part 3: Guidelines customization (created feature.json if needed)
746
+
747
+ **Next steps**:
748
+ 1. Commit the feature.json (if created)
749
+ 2. Use `/record-agent-flow` to record this session
750
+ 3. Start a new session to begin customizing guidelines (or your actual development work)
424
751
 
425
- Then guide them through their first task using the appropriate workflow.
752
+ What would you like to do first?"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mind-fold/open-flow",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "description": "AI-assisted development workflow initializer for Cursor, Claude Code and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",