@comfanion/workflow 4.1.0 → 4.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfanion/workflow",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Initialize OpenCode Workflow system for AI-assisted development",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "3.0.0",
3
- "buildDate": "2026-01-23T17:40:44.228Z",
3
+ "buildDate": "2026-01-23T17:53:50.018Z",
4
4
  "files": [
5
5
  "config.yaml",
6
6
  "FLOW.yaml",
@@ -37,7 +37,18 @@ permission:
37
37
  <r>Ship the smallest thing that validates the assumption</r>
38
38
  <r>Every feature must trace to a user problem</r>
39
39
  <r>NEVER create stories without acceptance criteria</r>
40
+ <r critical="true">BEFORE writing epic/story tasks: MUST Glob+Read coding standards (see skill)</r>
40
41
  </rules>
42
+
43
+ <before-epic-story critical="MANDATORY">
44
+ <instruction>BEFORE writing ANY epic or story with tasks, you MUST execute:</instruction>
45
+ <step n="1">Glob "**/AGENTS.md" OR "**/CLAUDE.md" → Read the file</step>
46
+ <step n="2">Glob "**/coding-standards/**/*.md" → Read ALL files found</step>
47
+ <step n="3">Glob "**/[module]-data-model*.md" → Read data model</step>
48
+ <step n="4">Glob "**/src/services/[module]/**/domain/**/*.go" → Read 2-3 existing patterns</step>
49
+ <step n="5">ONLY THEN proceed to write tasks with Documentation links</step>
50
+ <warning>Tasks without proper Documentation links to coding standards = REJECTED</warning>
51
+ </before-epic-story>
41
52
  </activation>
42
53
 
43
54
  <persona>
@@ -6,7 +6,7 @@
6
6
  # PROJECT CONFIGURATION
7
7
  # =============================================================================
8
8
  project_name: "ai-wf"
9
- version: "4.1.0"
9
+ version: "4.1.2"
10
10
 
11
11
  # =============================================================================
12
12
  # USER CONFIGURATION
@@ -18,44 +18,57 @@ Use this skill when you need to:
18
18
  - Define epic-level acceptance criteria
19
19
  - Track PRD coverage
20
20
 
21
- ## MANDATORY: Load Technical Context First
21
+ ## MANDATORY: Read Before Writing Epic
22
22
 
23
- **Before writing ANY epic, you MUST read and understand:**
23
+ **⚠️ STOP! Before writing ANY epic, execute these steps:**
24
24
 
25
- ### 1. Project Architecture (REQUIRED)
26
- ```
27
- Search and read in order:
28
- 1. CLAUDE.md (root) - Project patterns, conventions, tech stack
29
- 2. docs/architecture.md - System architecture, module boundaries
30
- 3. docs/architecture/[module]/ - Module-specific documentation
31
- ```
25
+ ### Step 1: Find and Read Project Standards
32
26
 
33
- ### 2. Module/Domain Documentation (REQUIRED)
27
+ ```bash
28
+ # Execute these Glob searches:
29
+ Glob "**/AGENTS.md" OR "**/CLAUDE.md" # → Read the file found
30
+ Glob "**/docs/architecture.md" # → Read system architecture
31
+ Glob "**/coding-standards/**/*.md" # → Read ALL coding standards
34
32
  ```
35
- For the specific module this epic covers:
36
- 1. docs/architecture/[module]/index.md - Module overview
37
- 2. docs/architecture/[module]/architecture.md - Module architecture
38
- 3. docs/architecture/[module]/data-model.md - Database schema
39
- 4. docs/architecture/[module]/api/ - API contracts
40
- 5. docs/architecture/[module]/events/ - Event schemas
33
+
34
+ **You MUST read these files before writing epic!**
35
+
36
+ ### Step 2: Find and Read Module Documentation
37
+
38
+ ```bash
39
+ # For the module this epic covers (e.g., "catalog"):
40
+ Glob "**/docs/**/catalog/**/*.md" # → Read ALL module docs
41
+ Glob "**/catalog-data-model*.md" # → Read data model
42
+ Glob "**/catalog-architecture*.md" # → Read module architecture
41
43
  ```
42
44
 
43
- ### 3. PRD Requirements (REQUIRED)
45
+ ### Step 3: Find and Read PRD
46
+
47
+ ```bash
48
+ Glob "**/prd.md" # → Read PRD for FR-XXX references
49
+ Glob "**/requirements/*.md" # → Read detailed requirements if exist
44
50
  ```
45
- 1. docs/prd.md - Functional requirements (FR-XXX)
46
- 2. docs/requirements/ - Detailed requirements if exists
51
+
52
+ ### Step 4: Find Existing Code Patterns (for technical notes)
53
+
54
+ ```bash
55
+ # Find existing code to reference in Technical Notes:
56
+ Glob "**/src/services/[module]/modules/*/domain/**/*.go" # → Domain patterns
57
+ Glob "**/src/services/[module]/modules/*/application/**/*.go" # → Use case patterns
47
58
  ```
48
59
 
49
60
  ### Pre-Epic Checklist
50
61
 
51
- Before writing epic, confirm you have read:
52
- - [ ] CLAUDE.md - coding patterns and conventions
53
- - [ ] Architecture document - system design
54
- - [ ] Module documentation - specific module architecture
55
- - [ ] PRD - requirements this epic implements
62
+ Before writing epic, confirm you executed:
63
+ - [ ] **Glob + Read** AGENTS.md/CLAUDE.md
64
+ - [ ] **Glob + Read** docs/architecture.md
65
+ - [ ] **Glob + Read** coding-standards/*.md (ALL files)
66
+ - [ ] **Glob + Read** module documentation (architecture, data-model)
67
+ - [ ] **Glob + Read** PRD for requirements
68
+ - [ ] **Glob** existing code patterns (for Technical Notes section)
56
69
 
57
- **⚠️ DO NOT proceed without reading technical documentation!**
58
- **Epic MUST reference architecture sections and follow established patterns.**
70
+ **⛔ DO NOT WRITE EPIC WITHOUT COMPLETING ALL STEPS ABOVE!**
71
+ **Epic without proper architecture references = REJECTED.**
59
72
 
60
73
  ---
61
74
 
@@ -18,42 +18,57 @@ Use this skill when you need to:
18
18
  - Define technical implementation tasks
19
19
  - Specify test scenarios
20
20
 
21
- ## MANDATORY: Load Technical Standards First
21
+ ## MANDATORY: Read Before Writing Tasks
22
22
 
23
- **Before writing ANY story with tasks, you MUST read and understand:**
23
+ **⚠️ STOP! Before writing ANY task, execute these steps:**
24
24
 
25
- ### 1. Coding Standards (REQUIRED)
26
- ```
27
- Search and read in order:
28
- 1. CLAUDE.md (root) - Project patterns, code style, conventions
29
- 2. docs/coding-standards/ - Detailed coding standards
30
- 3. docs/coding-standards/testing-standards.md - Test patterns
31
- ```
25
+ ### Step 1: Find and Read Coding Standards
32
26
 
33
- ### 2. Module Architecture (REQUIRED)
27
+ ```bash
28
+ # Execute these Glob searches:
29
+ Glob "**/AGENTS.md" OR "**/CLAUDE.md" # → Read the file found
30
+ Glob "**/coding-standards/**/*.md" # → Read ALL files found
31
+ Glob "**/testing-standards*.md" # → Read if exists
34
32
  ```
35
- For the specific module this story covers:
36
- 1. docs/architecture/[module]/architecture.md - Module design
37
- 2. docs/architecture/[module]/data-model.md - Database schema
38
- 3. Existing code in src/services/[module]/ - Current patterns
33
+
34
+ **You MUST read these files before writing tasks!**
35
+
36
+ ### Step 2: Find and Read Module Architecture
37
+
38
+ ```bash
39
+ # For the module this story covers (e.g., "catalog"):
40
+ Glob "**/docs/**/catalog/**/*.md" # → Read architecture docs
41
+ Glob "**/catalog-data-model*.md" # → Read data model
39
42
  ```
40
43
 
41
- ### 3. Parent Epic (REQUIRED)
44
+ ### Step 3: Find and Read Existing Code Patterns
45
+
46
+ ```bash
47
+ # Find existing code to use as patterns:
48
+ Glob "**/src/services/[module]/modules/*/domain/entity/*.go" # → Example entities
49
+ Glob "**/src/services/[module]/modules/*/domain/valueobject/*.go" # → Example VOs
50
+ Glob "**/src/services/[module]/modules/*/application/usecase/*" # → Example use cases
42
51
  ```
43
- 1. The epic this story belongs to - for context and dependencies
44
- 2. Other stories in the epic - for coordination
52
+
53
+ **Pick 1-2 existing files as patterns for Documentation links in tasks.**
54
+
55
+ ### Step 4: Read Parent Epic
56
+
57
+ ```bash
58
+ Glob "**/epic-[NN]*.md" # → Find and read the epic
45
59
  ```
46
60
 
47
61
  ### Pre-Story Checklist
48
62
 
49
- Before writing story tasks, confirm you have read:
50
- - [ ] CLAUDE.md - coding patterns and file structure
51
- - [ ] Coding standards - naming, error handling, testing
52
- - [ ] Module architecture - component boundaries
53
- - [ ] Parent epic - scope and dependencies
63
+ Before writing tasks, confirm you executed:
64
+ - [ ] **Glob + Read** AGENTS.md/CLAUDE.md
65
+ - [ ] **Glob + Read** coding-standards/*.md (ALL files)
66
+ - [ ] **Glob + Read** module architecture and data-model
67
+ - [ ] **Glob + Read** existing code patterns (at least 2 files)
68
+ - [ ] **Read** parent epic
54
69
 
55
- **⚠️ DO NOT write technical tasks without reading coding standards!**
56
- **Tasks MUST follow project conventions and patterns from CLAUDE.md.**
70
+ **⛔ DO NOT WRITE TASKS WITHOUT COMPLETING ALL STEPS ABOVE!**
71
+ **Tasks without proper Documentation links = REJECTED.**
57
72
 
58
73
  ### Task File Paths
59
74