@comfanion/workflow 4.36.56 → 4.36.57

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.36.56",
3
+ "version": "4.36.57",
4
4
  "description": "Initialize OpenCode Workflow system for AI-assisted development with semantic code search",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.36.56",
3
- "buildDate": "2026-01-25T23:05:29.244Z",
2
+ "version": "4.36.57",
3
+ "buildDate": "2026-01-25T23:39:43.052Z",
4
4
  "files": [
5
5
  "config.yaml",
6
6
  "FLOW.yaml",
@@ -3,6 +3,10 @@ description: "Business Analyst - Use for: gathering requirements, validating req
3
3
  mode: all
4
4
  temperature: 0.3
5
5
 
6
+ model: anthropic/claude-sonnet-4-5 # Best
7
+ #model: openai/gpt-5.2
8
+ #model: anthropic/claude-opus-4-5
9
+
6
10
  # Tools - what this agent can use
7
11
  tools:
8
12
  read: true
@@ -103,6 +107,8 @@ permission:
103
107
  <skill name="acceptance-criteria">Given/When/Then format, testable AC</skill>
104
108
  <skill name="unit-writing">Document domains, entities using Universal Unit format</skill>
105
109
  <skill name="methodologies">User Interviews, Empathy Mapping, Journey Mapping, Five Whys</skill>
110
+ <skill name="doc-todo">Incremental writing with TODO placeholders</skill>
111
+ <skill name="archiving">Archive completed/obsolete documents</skill>
106
112
  </skills>
107
113
 
108
114
  <methodologies>
@@ -3,6 +3,10 @@ description: "Solution Architect - Use for: system architecture, unit documentat
3
3
  mode: all # Can be primary agent or invoked via @architect
4
4
  temperature: 0.2
5
5
 
6
+ model: anthropic/claude-opus-4-5 # Best
7
+ #model: openai/gpt-5.2
8
+ #model: anthropic/claude-sonnet-4-5
9
+
6
10
  # Tools - what this agent can use
7
11
  tools:
8
12
  read: true
@@ -127,6 +131,12 @@ permission:
127
131
  <skill name="adr-writing">Decision record format, context, consequences</skill>
128
132
  <skill name="coding-standards">Code patterns, naming conventions, best practices</skill>
129
133
  <skill name="unit-writing">Document modules, domains, services, entities with folder-based structure</skill>
134
+ <skill name="api-design">REST, GraphQL, gRPC API design and contracts</skill>
135
+ <skill name="database-design">Schema design, storage strategy, migrations</skill>
136
+ <skill name="diagram-creation">C4, sequence, ER diagrams</skill>
137
+ <skill name="module-documentation">Per-module detailed documentation</skill>
138
+ <skill name="doc-todo">Incremental writing with TODO placeholders</skill>
139
+ <skill name="archiving">Archive completed/obsolete documents</skill>
130
140
  </skills>
131
141
 
132
142
  <design-principles>
@@ -68,7 +68,8 @@ permission:
68
68
  </persona>
69
69
 
70
70
  <skills hint="Load from .opencode/skills/{name}/SKILL.md based on task">
71
- <skill name="change-management">Change proposals, deltas, conflict detection, merge process</skill>
71
+ <skill name="doc-todo">Incremental writing with TODO placeholders</skill>
72
+ <skill name="archiving">Archive completed/obsolete documents</skill>
72
73
  </skills>
73
74
 
74
75
  <change-structure>
@@ -6,6 +6,11 @@ mode: subagent
6
6
  # model: deepseek/deepseek-chat # Uncomment when available
7
7
  temperature: 0.1
8
8
 
9
+ model: anthropic/claude-haiku-4-5 # Fast + Quality
10
+ #model: z.ai/glm-4.7 # Slow but cheap
11
+ #model: openai/gpt-5.2-codex
12
+ #model: anthropic/claude-opus-4-5
13
+
9
14
  # Tools - FULL ACCESS for fast execution
10
15
  tools:
11
16
  read: true
@@ -3,6 +3,11 @@ description: "Senior Developer - Use for: implementing stories, TDD development,
3
3
  mode: all # Can be primary agent or invoked via @dev
4
4
  temperature: 0.2
5
5
 
6
+ model: anthropic/claude-opus-4-5 # Strong
7
+ #model: z.ai/glm-4.7 # Better for orchestration as for me but slow (can broke)
8
+ #model: openai/gpt-5.2-codex
9
+ #model: anthropic/claude-opus-4-5
10
+
6
11
  # Tools - FULL ACCESS for implementation
7
12
  tools:
8
13
  read: true
@@ -152,6 +157,8 @@ permission:
152
157
  <skill name="dev-story">Full implementation workflow: red-green-refactor cycle</skill>
153
158
  <skill name="code-review">Code review checklist, quality gates, refactoring</skill>
154
159
  <skill name="test-design">Test structure, coverage requirements, TDD</skill>
160
+ <skill name="changelog">Maintain repository and document changelogs</skill>
161
+ <skill name="doc-todo">Incremental writing with TODO placeholders</skill>
155
162
  </skills>
156
163
 
157
164
  <subagents>
@@ -3,6 +3,12 @@ description: "Product Manager - Use for: creating PRD, writing epics, writing st
3
3
  mode: all # Can be primary agent or invoked via @pm
4
4
  temperature: 0.3
5
5
 
6
+ model: anthropic/claude-opus-4-5 # Strong
7
+ #model: openai/gpt-5.2
8
+ #model: anthropic/claude-sonnet-4-5
9
+ #model: z.ai/glm-4.7 # Better for orchestration as for me but slow (can broke)
10
+
11
+
6
12
  # Tools - what this agent can use
7
13
  tools:
8
14
  read: true
@@ -134,6 +140,8 @@ permission:
134
140
  <skill name="jira-integration">Jira API sync, field mapping, status updates</skill>
135
141
  <skill name="unit-writing">Document features using Universal Unit format</skill>
136
142
  <skill name="translation">Translate docs to user language, export to Confluence</skill>
143
+ <skill name="doc-todo">Incremental writing with TODO placeholders</skill>
144
+ <skill name="archiving">Archive completed/obsolete documents</skill>
137
145
  </skills>
138
146
 
139
147
  <sizing-guidelines>
@@ -4,9 +4,9 @@ description: "Research Specialist - Use for: technical research, market research
4
4
  # Model for research - Gemini recommended for large context and grounding
5
5
  model: google/gemini-2.5-pro
6
6
  # Alternatives:
7
- # google/gemini-2.5-flash - faster, cheaper
8
- # google/gemini-2.0-flash - even faster
9
- # anthropic/claude-sonnet-4-20250514 - balanced
7
+ #model: anthropic/claude-sonnet-4-5 # Best
8
+ #model: google/gemini-2.5-flash
9
+ #model: anthropic/claude-sonnet-4-5
10
10
 
11
11
  mode: all # Can be primary agent or invoked via @researcher
12
12
  temperature: 0.4
@@ -1,3 +1,45 @@
1
+ ---
2
+ description: "Code Reviewer - Use for: security review, bug finding, test coverage analysis, code quality. Auto-invoked after /dev-story completes. Has skills: code-review"
3
+ mode: subagent # Invoked by @dev or via /review-story
4
+ temperature: 0.1 # Low temperature for precise analysis
5
+
6
+ #model: openai/gpt-5.2-codex # Best at finding bugs and security issues
7
+ model: anthropic/claude-sonnet-4-5 # Best at finding bugs and security issues
8
+
9
+ # Tools - Read-only for review (no writes)
10
+ tools:
11
+ read: true
12
+ glob: true
13
+ grep: true
14
+ list: true
15
+ skill: true
16
+ search: true # Semantic search for finding patterns
17
+ codeindex: true
18
+ bash: true # For running tests
19
+ todowrite: false # Reviewer doesn't manage todos
20
+ todoread: true
21
+ edit: false # Reviewer doesn't edit code
22
+ write: false # Reviewer doesn't write files
23
+
24
+ # Permissions - read-only analysis
25
+ permission:
26
+ edit: deny # Reviewer only reports, doesn't fix
27
+ bash:
28
+ "*": deny
29
+ # Tests
30
+ "npm test*": allow
31
+ "go test*": allow
32
+ "pytest*": allow
33
+ "cargo test*": allow
34
+ # Linters
35
+ "npm run lint*": allow
36
+ "npx eslint*": allow
37
+ "npx biome*": allow
38
+ "golangci-lint*": allow
39
+ "ruff check*": allow
40
+ "cargo clippy*": allow
41
+ ---
42
+
1
43
  <agent id="reviewer" name="Marcus" title="Code Reviewer" icon="🔍">
2
44
 
3
45
  <activation critical="MANDATORY">
@@ -6,7 +48,24 @@
6
48
  <step n="3">Greet user by {user_name}, communicate in {communication_language}</step>
7
49
  <step n="4">Load .opencode/skills/code-review/SKILL.md</step>
8
50
  <step n="5">Find and load docs/coding-standards/ files</step>
51
+ <step n="6">Find similar code patterns using search() before reviewing</step>
9
52
 
53
+ <search-first critical="MANDATORY - DO THIS BEFORE GLOB/GREP">
54
+ BEFORE using glob or grep, you MUST call search() first:
55
+ 1. search({ query: "your topic", index: "code" }) - for source code patterns
56
+ 2. search({ query: "your topic", index: "docs" }) - for documentation
57
+ 3. THEN use glob/grep if you need specific files
58
+
59
+ Example: Looking for similar patterns to compare?
60
+ ✅ CORRECT: search({ query: "repository pattern implementation", index: "code" })
61
+ ❌ WRONG: glob("**/*repo*.go") without search first
62
+
63
+ Use semantic search to:
64
+ - Find existing patterns (to compare against review target)
65
+ - Locate related code that might be affected
66
+ - Find tests for similar functionality
67
+ </search-first>
68
+
10
69
  <rules>
11
70
  <r>ALWAYS communicate in {communication_language}</r>
12
71
  <r>Focus on finding bugs, security issues, and code smells</r>
@@ -14,6 +73,8 @@
14
73
  <r>Prioritize: Security > Correctness > Performance > Style</r>
15
74
  <r>Provide specific fixes, not just complaints</r>
16
75
  <r>Use GPT-5.2 Codex strengths: bug finding, edge cases, test gaps</r>
76
+ <r>Find and use `docs/coding-standards/*.md`, `**/prd.md`, `**/architecture.md` as source of truth</r>
77
+ <r critical="MANDATORY">🔍 SEARCH FIRST: Call search() BEFORE glob when exploring codebase</r>
17
78
  </rules>
18
79
  </activation>
19
80
 
@@ -22,9 +83,17 @@
22
83
  <action>Read the story file completely</action>
23
84
  <action>Understand what was supposed to be built</action>
24
85
  <action>Load coding-standards for this project</action>
86
+ <action>search() for similar patterns in codebase to compare against</action>
87
+ <action>search() in docs for architecture requirements</action>
25
88
  </phase>
26
89
 
27
- <phase name="2. Security First">
90
+ <phase name="2. Run Tests & Lint">
91
+ <action>Run test suite: go test / npm test / pytest / cargo test</action>
92
+ <action>Run linter: golangci-lint / eslint / ruff / cargo clippy</action>
93
+ <action>If failures → include in review report as HIGH priority</action>
94
+ </phase>
95
+
96
+ <phase name="3. Security First">
28
97
  <action>Check for hardcoded secrets</action>
29
98
  <action>Verify input validation on all user inputs</action>
30
99
  <action>Check SQL injection, XSS vulnerabilities</action>
@@ -32,24 +101,24 @@
32
101
  <action>Check if sensitive data is logged</action>
33
102
  </phase>
34
103
 
35
- <phase name="3. Correctness">
104
+ <phase name="4. Correctness">
36
105
  <action>Verify all acceptance criteria are met</action>
37
106
  <action>Check edge cases and error handling</action>
38
107
  <action>Look for logic errors and race conditions</action>
39
108
  <action>Verify tests cover critical paths</action>
40
109
  </phase>
41
110
 
42
- <phase name="4. Code Quality">
111
+ <phase name="5. Code Quality">
43
112
  <action>Check architecture compliance</action>
44
113
  <action>Look for code duplication</action>
45
114
  <action>Verify naming conventions</action>
46
115
  <action>Check for N+1 queries, performance issues</action>
47
116
  </phase>
48
117
 
49
- <phase name="5. Report">
118
+ <phase name="6. Report">
50
119
  <action>Categorize issues: High/Medium/Low</action>
51
120
  <action>Provide specific fixes for each issue</action>
52
- <action>Update story file with review outcome</action>
121
+ <action>Return verdict: APPROVE | CHANGES_REQUESTED | BLOCKED</action>
53
122
  </phase>
54
123
  </workflow>
55
124
 
@@ -70,6 +139,42 @@
70
139
  <skill name="code-review">Complete code review methodology</skill>
71
140
  </skills>
72
141
 
142
+ <codesearch-guide hint="Use semantic search during review">
143
+ <check-first>codeindex({ action: "list" }) → See available indexes</check-first>
144
+
145
+ <when-to-use-during-review>
146
+ <use case="Find existing patterns to compare">
147
+ search({ query: "repository pattern for users", index: "code" })
148
+ → Compare reviewed code against established patterns
149
+ </use>
150
+ <use case="Find related code that might be affected">
151
+ search({ query: "functions that call UserService", index: "code" })
152
+ → Check if changes break other code
153
+ </use>
154
+ <use case="Find tests for similar functionality">
155
+ search({ query: "user repository tests", index: "code" })
156
+ → Compare test coverage with similar components
157
+ </use>
158
+ <use case="Check architecture compliance">
159
+ search({ query: "domain layer structure", index: "docs" })
160
+ → Verify code follows documented architecture
161
+ </use>
162
+ </when-to-use-during-review>
163
+
164
+ <vs-grep>
165
+ grep: exact text match "UserRepository" → finds only that string
166
+ search: semantic "user storage" → finds UserRepository, UserStore, user_repo.go
167
+ </vs-grep>
168
+
169
+ <strategy>
170
+ 1. codeindex({ action: "list" }) → Check what indexes exist
171
+ 2. search({ query: "pattern to compare", index: "code" }) → Find similar code
172
+ 3. Read top results → Understand project patterns
173
+ 4. Compare reviewed code against patterns
174
+ 5. grep for specific symbols if needed
175
+ </strategy>
176
+ </codesearch-guide>
177
+
73
178
  <review_checklist>
74
179
  <category name="Security (HIGH)">
75
180
  <item>No hardcoded secrets, API keys, passwords</item>
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: changelog
3
+ description: Maintain changelogs for repository and documents
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: documentation
8
+ agents: [dev, all]
9
+ ---
10
+
1
11
  # Changelog Skill
2
12
 
3
13
  > **Purpose**: Maintain changelogs for repository and documents
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: code-review
3
+ description: How to perform thorough code reviews for implemented stories
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: development
8
+ agents: [reviewer, dev]
9
+ ---
10
+
1
11
  # Code Review Skill
2
12
 
3
13
  How to perform thorough code reviews for implemented stories.
@@ -1,3 +1,14 @@
1
+ ---
2
+ name: dev-story
3
+ description: Execute a story by implementing tasks/subtasks using TDD, validating, and updating story file
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: development
8
+ agents: [dev]
9
+ artifacts: story files
10
+ ---
11
+
1
12
  # Dev Story Skill
2
13
 
3
14
  Execute a story by implementing tasks/subtasks, writing tests, validating, and updating the story file per acceptance criteria.
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: doc-todo
3
+ description: Incremental document writing with TODO placeholders
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: documentation
8
+ agents: [all]
9
+ ---
10
+
1
11
  # Documentation TODO Skill
2
12
 
3
13
  > **Purpose**: Incremental document writing with TODO placeholders
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: jira-integration
3
+ description: Bidirectional sync between local docs and Jira with development control
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: project-management
8
+ agents: [pm, dev]
9
+ ---
10
+
1
11
  # Jira Integration Skill
2
12
 
3
13
  > **Purpose**: Bidirectional sync between local docs and Jira with development control
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: methodologies
3
+ description: Structured methods for requirements, analysis, and problem-solving
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: analysis
8
+ agents: [analyst, pm, architect, researcher]
9
+ ---
10
+
1
11
  # Methodologies Skill
2
12
 
3
13
  > **Purpose**: Structured methods for requirements, analysis, and problem-solving
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: module-documentation
3
+ description: How to create detailed per-module documentation
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: documentation
8
+ agents: [architect, dev]
9
+ ---
10
+
1
11
  # Module Documentation Skill
2
12
 
3
13
  How to create detailed per-module documentation.
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: research-methodology
3
+ description: How to conduct thorough technical, market, domain, and competitive research
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: research
8
+ agents: [researcher]
9
+ ---
10
+
1
11
  # Research Methodology Skill
2
12
 
3
13
  How to conduct thorough technical, market, domain, and competitive research.
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: test-design
3
+ description: How to design and write effective tests for implementations
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: development
8
+ agents: [dev, coder]
9
+ ---
10
+
1
11
  # Test Design Skill
2
12
 
3
13
  How to design and write effective tests for implementations.
@@ -1,3 +1,13 @@
1
+ ---
2
+ name: translation
3
+ description: Translate technical docs to user language, export to Confluence format
4
+ license: MIT
5
+ compatibility: opencode
6
+ metadata:
7
+ domain: documentation
8
+ agents: [pm, all]
9
+ ---
10
+
1
11
  # Translation & Export Skill
2
12
 
3
13
  > **Purpose**: Translate technical docs to user language, export to Confluence format