@mind-fold/open-flow 0.2.16 → 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 +63 -140
- package/dist/templates/commands/onboard-developer.txt +219 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,183 +1,106 @@
|
|
|
1
1
|
# open-flow
|
|
2
2
|
|
|
3
|
-
AI-assisted development workflow
|
|
3
|
+
AI-assisted development workflow system for Cursor, Claude Code and more.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
+
## Initialize
|
|
30
16
|
|
|
31
17
|
```bash
|
|
32
|
-
cd
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
47
|
+
## Quick Reference
|
|
127
48
|
|
|
128
|
-
|
|
49
|
+
### Core Workflow Commands
|
|
129
50
|
|
|
130
|
-
|
|
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
|
-
|
|
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
|
-
###
|
|
71
|
+
### Utility Commands
|
|
143
72
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
87
|
+
# 'open-flow' works the same as 'of'
|
|
88
|
+
open-flow init
|
|
89
|
+
open-flow init -u <name>
|
|
90
|
+
```
|
|
161
91
|
|
|
162
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
|
@@ -533,8 +542,211 @@ Debugging and investigation can spiral - AI keeps trying things without concludi
|
|
|
533
542
|
|
|
534
543
|
---
|
|
535
544
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
2
|
|
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)
|
|
539
751
|
|
|
540
|
-
|
|
752
|
+
What would you like to do first?"
|