@mind-fold/open-flow 0.1.5 → 0.1.7

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
@@ -72,10 +72,14 @@ your-project/
72
72
  | Command | Purpose |
73
73
  |---------|---------|
74
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 |
75
77
  | `/check-frontend` | Check frontend code against guidelines |
76
78
  | `/check-backend` | Check backend code against guidelines |
77
79
  | `/record-agent-flow` | Record work progress (after human commits) |
78
80
  | `/onboard-developer` | Guide new developer through setup |
81
+ | `/update-frontend-structure` | Update frontend guidelines if new patterns found |
82
+ | `/update-backend-structure` | Update backend guidelines if new patterns found |
79
83
 
80
84
  ## Workflow
81
85
 
@@ -138,73 +138,394 @@ async function createRootFiles(cwd) {
138
138
  \`\`\`
139
139
 
140
140
  This creates:
141
- - \`workflow/.developer\` - Your identity file (gitignored)
141
+ - \`workflow/.developer\` - Your identity file (gitignored, not committed)
142
142
  - \`workflow/agent-progress/<your-name>/\` - Your personal progress directory
143
143
 
144
- ### Step 1: Understand Current Context
144
+ **Naming suggestions**:
145
+ - Human developers: Use your name, e.g., \`john-doe\`
146
+ - Cursor AI: \`cursor-agent\` or \`cursor-<feature>\`
147
+ - Claude Code: \`claude-agent\` or \`claude-<feature>\`
148
+
149
+ ### Step 1: Understand Current Context (5 min)
145
150
 
146
151
  \`\`\`bash
147
152
  # 0. Check your identity
148
153
  ./workflow/scripts/get-developer.sh
149
154
 
150
- # 1. Check recent work progress (your own progress)
155
+ # 1. Check recent work (your own progress)
151
156
  DEVELOPER=$(./workflow/scripts/get-developer.sh)
152
157
  cat workflow/agent-progress/$DEVELOPER/index.md 2>/dev/null || cat workflow/agent-progress/index.md
153
158
 
154
159
  # 2. Check feature status
155
160
  cat workflow/feature.json
156
161
 
157
- # 3. Check git history
162
+ # 3. Check git history (use git command directly)
158
163
  git status
159
164
  git log --oneline -20
160
165
  \`\`\`
161
166
 
162
- ### Step 2: Read Project Guidelines
167
+ ### Step 2: Read Project Guidelines (10 min) [MANDATORY]
163
168
 
164
- Based on your task, read the corresponding guidelines:
169
+ **CRITICAL**: Read BOTH frontend and backend guideline indexes to understand the project:
165
170
 
166
171
  \`\`\`bash
167
- # Frontend guidelines
172
+ # Read frontend guidelines index (REQUIRED - even for backend tasks)
168
173
  cat workflow/structure/frontend/index.md
169
174
 
170
- # Backend guidelines
175
+ # Read backend guidelines index (REQUIRED - even for frontend tasks)
171
176
  cat workflow/structure/backend/index.md
172
177
  \`\`\`
173
178
 
174
- ### Step 3: Read Workflow Guide
179
+ **Why read both?**
180
+ - Understand the full project architecture
181
+ - Know coding standards for the entire codebase
182
+ - See how frontend and backend interact
183
+ - Learn the overall code quality requirements
184
+
185
+ ### Step 3: Read Workflow Guide (5 min)
175
186
 
176
187
  \`\`\`bash
177
188
  cat workflow/flow.md
178
189
  \`\`\`
179
190
 
191
+ **CRITICAL**: This document defines the entire development workflow. You MUST follow it.
192
+
193
+ ### Step 4: Before Coding - Read Specific Guidelines (Required)
194
+
195
+ Based on your task, read the **detailed** guidelines:
196
+
197
+ **Frontend Task**:
198
+ \`\`\`bash
199
+ # Use the line numbers from index.md to read specific sections in doc.md
200
+ # Example: Query Hook guidelines (adjust line numbers based on your index.md)
201
+ cat workflow/structure/frontend/doc.md | sed -n '50,100p'
202
+ \`\`\`
203
+
204
+ **Backend Task**:
205
+ \`\`\`bash
206
+ # Use the line numbers from index.md to read specific sections in doc.md
207
+ # Example: Directory structure guidelines
208
+ cat workflow/structure/backend/doc.md | sed -n '5,50p'
209
+ \`\`\`
210
+
211
+ **IMPORTANT**: The index files tell you WHICH sections to read in doc.md based on your task.
212
+
213
+ ---
214
+
215
+ ## Project Overview
216
+
217
+ ### What is This Project?
218
+
219
+ [Fill in your project description here after running \`of init\`]
220
+
221
+ ### Tech Stack
222
+
223
+ [Fill in your tech stack here]
224
+
225
+ ### Key Information
226
+
227
+ - **Main Branch**: Check with \`git branch\`
228
+ - **Current Branch**: Check \`git status\`
229
+ - **Package Manager**: Check for package-lock.json (npm), yarn.lock (yarn), or pnpm-lock.yaml (pnpm)
230
+ - **Linter**: Check package.json scripts
231
+
232
+ ---
233
+
234
+ ## Directory Structure
235
+
236
+ \`\`\`
237
+ your-project/
238
+ ├── workflow/ # [!] Agent-Human collaboration system
239
+ │ ├── flow.md # Workflow guide (MUST READ)
240
+ │ ├── feature.json # Feature tracking
241
+ │ ├── agent-progress/ # Work progress records
242
+ │ │ └── {developer}/ # Per-developer directories
243
+ │ ├── structure/ # [!] Development guidelines (MUST READ)
244
+ │ │ ├── frontend/
245
+ │ │ │ ├── index.md # Frontend guidelines index
246
+ │ │ │ └── doc.md # Frontend guidelines detailed
247
+ │ │ └── backend/
248
+ │ │ ├── index.md # Backend guidelines index
249
+ │ │ └── doc.md # Backend guidelines detailed
250
+ │ └── onboarding-guide.md # New developer guide
251
+ ├── init-agent.md # This file
252
+ └── AGENTS.md # Compatible with agents.md protocol
253
+ \`\`\`
254
+
255
+ ---
256
+
257
+ ## Development Workflow System
258
+
259
+ ### Overview
260
+
261
+ This project uses a structured workflow system based on [Anthropic's best practices](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents).
262
+
263
+ ### Core Files
264
+
265
+ | File | Purpose | When to Update |
266
+ |------|---------|----------------|
267
+ | \`workflow/flow.md\` | Complete workflow guide | Read at session start |
268
+ | \`workflow/feature.json\` | Feature tracking | When feature status changes |
269
+ | \`workflow/agent-progress/{developer}/*.md\` | Session work records | After each session |
270
+
271
+ ### Key Rules (CRITICAL - Must Follow)
272
+
273
+ **1. Read Guidelines Before Coding**
274
+ - Frontend: \`workflow/structure/frontend/index.md\` -> \`doc.md\`
275
+ - Backend: \`workflow/structure/backend/index.md\` -> \`doc.md\`
276
+ - This is **mandatory**, not optional
277
+
278
+ **2. Document Limits** ⚠️ **CRITICAL RULE**
279
+ - \`agent-progress/{developer}/progress-N.md\` max 2000 lines
280
+ - **⚠️ IMPORTANT: Only create new file when current file EXCEEDS 2000 lines**
281
+ - File naming: Use sequential numbers (\`progress-1.md\`, \`progress-2.md\`...)
282
+
283
+ **3. Update Tracking Files**
284
+ - After completing work: Update \`agent-progress\` (include commit hashes)
285
+ - When feature changes: Update \`feature.json\`
286
+
180
287
  ---
181
288
 
182
- ## Development Workflow
289
+ ## How to Use the Workflow System
290
+
291
+ ### At Session Start
292
+
293
+ 1. **Read context files** (see Quick Start Step 1 above)
294
+ 2. **Read ALL guideline indexes** (see Quick Start Step 2 above)
295
+ - **MANDATORY**: Read both frontend AND backend indexes
296
+ - This gives you complete project understanding
297
+ 3. **Read workflow guide** (see Quick Start Step 3 above)
298
+ 4. **Identify your task** from \`feature.json\`
299
+ 5. **Read specific guidelines** for your task (see Quick Start Step 4)
300
+ 6. **Select one feature** to work on
301
+
302
+ ### During Development
303
+
304
+ 1. **Update feature.json**
305
+ - Change status to \`"in-progress"\`
306
+
307
+ 2. **Follow guidelines strictly**
308
+ - Frontend: Type safety, Hook standards, Component standards
309
+ - Backend: Directory structure, Type safety, Database operations
310
+
311
+ 3. **Test before commit**
312
+ \`\`\`bash
313
+ npm run lint # or pnpm lint / yarn lint - Must pass
314
+ npm run type-check # or pnpm type-check - Must pass
315
+ \`\`\`
316
+
317
+ 4. **Commit with convention**
318
+ \`\`\`bash
319
+ git commit -m "type(scope): description"
320
+ # Types: feat, fix, docs, refactor, test, chore
321
+ \`\`\`
322
+
323
+ ### At Session End (REQUIRED)
324
+
325
+ **1. Update agent-progress** (write to your own directory):
326
+ \`\`\`bash
327
+ # Get your developer name
328
+ DEVELOPER=$(./workflow/scripts/get-developer.sh)
329
+
330
+ # Your progress file is in: workflow/agent-progress/$DEVELOPER/
331
+ # Check your personal index for the active file
332
+ cat workflow/agent-progress/$DEVELOPER/index.md
333
+
334
+ # Add new session to your active progress file
335
+ # Only create new file if current file EXCEEDS 2000 lines
336
+ # See template in workflow/agent-progress/index.md
337
+ \`\`\`
338
+
339
+ **2. Update feature.json**:
340
+ - Change status to \`"completed"\`
341
+ - Add \`completedAt\` and \`commit\` fields
342
+ - Recalculate \`statistics\`
343
+
344
+ ---
345
+
346
+ ## Development Guidelines Quick Reference
347
+
348
+ ### Frontend Guidelines Location
349
+
350
+ \`workflow/structure/frontend/index.md\` provides quick navigation to doc.md sections.
351
+
352
+ Use the extract script to get accurate line numbers:
353
+ \`\`\`bash
354
+ ./workflow/scripts/extract-md-headings.sh workflow/structure/frontend/doc.md -l 1,2,3 -r
355
+ \`\`\`
356
+
357
+ ### Backend Guidelines Location
358
+
359
+ \`workflow/structure/backend/index.md\` provides quick navigation to doc.md sections.
360
+
361
+ Use the extract script to get accurate line numbers:
362
+ \`\`\`bash
363
+ ./workflow/scripts/extract-md-headings.sh workflow/structure/backend/doc.md -l 1,2,3 -r
364
+ \`\`\`
365
+
366
+ ### Code Quality Standards
367
+
368
+ **Before EVERY commit**:
369
+ - [x] Lint check - 0 errors
370
+ - [x] Type check - No type errors
371
+ - [x] Manual testing passes
372
+
373
+ **Frontend-specific**:
374
+ - [x] Use semantic HTML (\`<button>\` not \`<div role="button">\`)
375
+ - [x] Import types from backend when applicable
376
+ - [x] No non-null assertions \`!\`
377
+
378
+ **Backend-specific**:
379
+ - [x] No non-null assertions \`!\` - use local variables
380
+ - [x] All API inputs/outputs have validation (Zod, etc.)
381
+ - [x] Use structured logging, not \`console.log\`
382
+ - [x] Avoid \`await\` in loops (N+1 problem)
383
+
384
+ ---
385
+
386
+ ## Common Commands
387
+
388
+ ### Development
389
+ \`\`\`bash
390
+ npm run dev # Start dev server
391
+ npm run build # Production build
392
+ npm run lint # Run linter
393
+ npm run format # Format code
394
+ npm run type-check # Type checking
395
+ \`\`\`
396
+
397
+ ### Git
398
+ \`\`\`bash
399
+ git status
400
+ git log --oneline -20
401
+ git diff main...HEAD
402
+ \`\`\`
403
+
404
+ ### Workflow Tools
405
+ \`\`\`bash
406
+ ./workflow/scripts/get-developer.sh # Get current developer
407
+ ./workflow/scripts/init-developer.sh <name> # Initialize developer
408
+ ./workflow/scripts/extract-md-headings.sh <file> # Extract headings with line numbers
409
+ \`\`\`
410
+
411
+ ---
412
+
413
+ ## Critical Reminders
414
+
415
+ ### DO (Follow These)
416
+
417
+ 1. **Read BOTH guideline indexes** at session start (frontend AND backend)
418
+ 2. **Read workflow/flow.md** at session start
419
+ 3. **Read specific doc.md sections** before coding (based on task)
420
+ 4. **Update tracking files** after work
421
+ 5. **Test thoroughly** before committing
422
+ 6. **Follow guidelines strictly**
423
+
424
+ ### DON'T (Avoid These)
425
+
426
+ 1. **Don't skip reading guideline indexes** at initialization (CRITICAL VIOLATION)
427
+ - You MUST read both frontend/index.md AND backend/index.md
428
+ - Even if you only work on frontend OR backend
429
+ 2. **Don't skip reading specific guidelines** before coding (CRITICAL VIOLATION)
430
+ 3. **Don't exceed 2000 lines** in agent-progress files
431
+ - ⚠️ **CRITICAL**: Only create new file when current file EXCEEDS 2000 lines
432
+ - Use sequential naming: \`progress-1.md\`, \`progress-2.md\`...
433
+ 4. **Don't commit with lint errors**
434
+ 5. **Don't use non-null assertions** (\`!\`)
435
+ 6. **Don't skip updating tracking files**
436
+ 7. ⚠️ **Don't execute \`git commit\`** - AI should not commit code
437
+ - Only allowed: \`git log\`, \`git status\`, \`git diff\`
438
+ - After development, remind human to test and commit
439
+ - After human commits, use \`/record-agent-flow\` to record
440
+
441
+ ---
442
+
443
+ ## Important Documentation
444
+
445
+ ### Must Read
446
+ - \`workflow/flow.md\` - Complete workflow guide
447
+ - \`workflow/structure/frontend/index.md\` - Frontend guidelines
448
+ - \`workflow/structure/backend/index.md\` - Backend guidelines
449
+
450
+ ### Reference
451
+ - \`workflow/onboarding-guide.md\` - New developer guide
452
+ - \`workflow/feature.json\` - Feature tracking
453
+
454
+ ---
455
+
456
+ ## Your First Task Checklist
457
+
458
+ ### Before You Start Coding
459
+
460
+ - [ ] Read \`workflow/agent-progress/index.md\` - Understand recent work
461
+ - [ ] Read \`workflow/feature.json\` - See what needs to be done
462
+ - [ ] Read \`workflow/flow.md\` - Understand the workflow
463
+ - [ ] Read \`workflow/structure/[frontend|backend]/index.md\` - Find relevant guidelines
464
+ - [ ] Read specific sections in \`doc.md\` based on your task
465
+ - [ ] Select ONE feature from \`feature.json\` to work on
466
+ - [ ] Update feature status to \`"in-progress"\`
467
+ - [ ] Start coding following the guidelines
468
+
469
+ ### After Completing Your Work
470
+
471
+ - [ ] Run lint and type-check - Must pass
472
+ - [ ] Commit with proper message format
473
+ - [ ] Update agent-progress: Add to your \`{developer}/progress-N.md\` (include commit hashes)
474
+ - [ ] Update \`feature.json\` status to \`"completed"\`
475
+ - [ ] Recalculate \`statistics\` in \`feature.json\`
476
+
477
+ ---
478
+
479
+ ## Collaboration Philosophy
480
+
481
+ You are working in a **multi-session environment**:
482
+
483
+ - **Previous sessions**: Other AI agents or human developers have worked before you
484
+ - **Context files**: \`workflow/\` contains the history and context
485
+ - **Your responsibility**: Continue the work, maintain quality, update documentation
486
+ - **Next sessions**: Future agents will read your updates to continue
487
+
488
+ **Key Principle**: Leave the codebase and documentation better than you found it.
489
+
490
+ ---
491
+
492
+ ## Quick Tips
493
+
494
+ 1. **When stuck**: Check \`workflow/agent-progress/\` for similar work done before
495
+ 2. **Before asking**: Read the guidelines first - answer is likely there
496
+ 3. **File too long**: ⚠️ **Only create new file when EXCEEDING 2000 lines** - Continue using existing file if under limit
497
+ 4. **Unsure about code style**: Check existing code in the same module
498
+ 5. **Need line numbers**: Use \`./workflow/scripts/extract-md-headings.sh <file> -r\`
499
+
500
+ ---
501
+
502
+ ## Getting Help
503
+
504
+ If you encounter issues:
505
+
506
+ 1. Check \`workflow/flow.md\` for workflow questions
507
+ 2. Check \`workflow/structure/\` for coding standards
508
+ 3. Check existing code for patterns
509
+ 4. Ask the user for clarification
183
510
 
184
- 1. **Read Before Write** - Understand context before starting
185
- 2. **Follow Standards** - Read \`workflow/structure/\` guidelines before coding
186
- 3. **Incremental Development** - Complete one feature at a time
187
- 4. **Record Promptly** - Update tracking files after completion
188
- 5. **Document Limits** - Max 2000 lines per agent-progress document
511
+ **Maintenance Tool**: Use \`./workflow/scripts/extract-md-headings.sh\` to auto-extract document headings and line numbers for updating index.md
189
512
 
190
513
  ---
191
514
 
192
- ## Key Rules
515
+ ## Success Criteria
193
516
 
194
- ### DO
195
- - Read guidelines before coding
196
- - Update agent-progress after each session
197
- - Run lint and type-check before finishing
517
+ You're doing well if:
198
518
 
199
- ### DON'T
200
- - Skip reading guidelines (CRITICAL VIOLATION)
201
- - Let agent-progress exceed 2000 lines
202
- - Commit code with lint/type-check errors
203
- - Execute \`git commit\` - AI should not commit, human reviews and commits
519
+ - [x] All lint and type checks pass
520
+ - [x] Code follows the guidelines
521
+ - [x] Tracking files are updated
522
+ - [x] Feature.json reflects current status
523
+ - [x] Commits are well-formatted
524
+ - [x] Documentation is up-to-date
204
525
 
205
526
  ---
206
527
 
207
- **Ready to start? Follow the Quick Start section above!**
528
+ **Ready to start? Follow the Quick Start section at the top!**
208
529
  `;
209
530
  // Write init-agent.md (skip if exists)
210
531
  if (!fs.existsSync(initAgentPath)) {
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAcvE,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,OAAoB;IAC9C,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C,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACrD,CAAC;SAAM,CAAC;QACP,OAAO,CAAC,GAAG,CACV,KAAK,CAAC,MAAM,CAAC,+CAA+C,CAAC,CAC7D,CAAC;IACH,CAAC;IAED,mBAAmB;IACnB,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;CAkBtB,CAAC;IAED,mCAAmC;IACnC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAChC,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,2CAA2C,CAAC,CAAC,CAAC;IACxE,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gBAAgB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAUtD"}
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,gBAAgB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CActD"}