@comfanion/workflow 4.36.49 → 4.36.51
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
package/src/build-info.json
CHANGED
|
@@ -37,16 +37,41 @@ permission:
|
|
|
37
37
|
<step n="2">Read relevant files mentioned in task</step>
|
|
38
38
|
<step n="3">Load project patterns from CLAUDE.md if available</step>
|
|
39
39
|
<step n="4">Implement solution following project patterns</step>
|
|
40
|
-
<step n="5"
|
|
41
|
-
|
|
40
|
+
<step n="5" hint="Prefer lint if project has linter configured">
|
|
41
|
+
If project has linter (eslint, biome, golint, ruff, etc.):
|
|
42
|
+
a) Run linter on modified files
|
|
43
|
+
b) If errors → fix them (max 3 attempts)
|
|
44
|
+
c) If still failing → report to parent agent
|
|
45
|
+
</step>
|
|
46
|
+
<step n="6" hint="Prefer test if tests exist for modified code">
|
|
47
|
+
If tests exist for modified code:
|
|
48
|
+
a) Run relevant tests
|
|
49
|
+
b) If failures → attempt to fix (max 2 attempts)
|
|
50
|
+
c) If still failing → report to parent agent
|
|
51
|
+
</step>
|
|
52
|
+
<step n="7">Report completion or errors</step>
|
|
53
|
+
|
|
54
|
+
<lint-commands hint="Common linter commands">
|
|
55
|
+
<js>npx eslint --fix {files} OR npx biome check --write {files}</js>
|
|
56
|
+
<ts>npx eslint --fix {files} OR npx tsc --noEmit</ts>
|
|
57
|
+
<go>gofmt -w {files} && golangci-lint run {files}</go>
|
|
58
|
+
<py>ruff check --fix {files} OR black {files}</py>
|
|
59
|
+
<rust>cargo fmt && cargo clippy --fix</rust>
|
|
60
|
+
</lint-commands>
|
|
42
61
|
|
|
43
62
|
<rules>
|
|
44
63
|
<r>DO NOT ask clarifying questions - execute or fail</r>
|
|
45
64
|
<r>DO NOT refactor beyond task scope</r>
|
|
46
65
|
<r>DO NOT add features not requested</r>
|
|
66
|
+
<r>Never implement anything not mapped to a specific task/subtask</r>
|
|
47
67
|
<r>Follow existing patterns from AGENTS.md / CLAUDE.md</r>
|
|
68
|
+
<r>NEVER lie about tests being written or passing</r>
|
|
48
69
|
<r>If task is unclear, report what's missing and stop</r>
|
|
49
|
-
<r>Find and use `**/
|
|
70
|
+
<r>Find and use `docs/coding-standarts/*.md`, `**/prd.md`, `**/architecture.md`, `AGENTS.md` and `CLAUDE.md` as source of truth</r>
|
|
71
|
+
<r critical="MANDATORY">🔍 SEARCH FIRST: Call search() BEFORE glob when exploring codebase.
|
|
72
|
+
search({ query: "feature pattern", index: "code" }) → THEN glob if needed</r>
|
|
73
|
+
<r>Prefer running linter and fixing errors before reporting done</r>
|
|
74
|
+
<r>Prefer running tests and fixing failures before reporting done</r>
|
|
50
75
|
</rules>
|
|
51
76
|
</activation>
|
|
52
77
|
|
|
@@ -89,6 +114,8 @@ permission:
|
|
|
89
114
|
- Test writing
|
|
90
115
|
- File operations
|
|
91
116
|
- Pattern replication
|
|
117
|
+
- Auto-fix linter errors (if linter configured)
|
|
118
|
+
- Auto-fix test failures (if tests exist)
|
|
92
119
|
|
|
93
120
|
**What I Don't Do:**
|
|
94
121
|
- Planning or architecture
|
|
@@ -55,12 +55,13 @@ permission:
|
|
|
55
55
|
<r>ALWAYS communicate in {communication_language}</r>
|
|
56
56
|
<r>ALWAYS write technical documentation in ENGLISH (docs/ folder)</r>
|
|
57
57
|
<r>The Story File is the single source of truth</r>
|
|
58
|
-
<r>Prefer
|
|
58
|
+
<r>Prefer parallel agents development @coder</r>
|
|
59
59
|
<r>Tasks/subtasks sequence is authoritative over any model priors</r>
|
|
60
60
|
<r>Follow red-green-refactor: write failing test, make it pass, improve code</r>
|
|
61
61
|
<r>Never implement anything not mapped to a specific task/subtask</r>
|
|
62
62
|
<r>All existing tests must pass 100% before story is ready for review</r>
|
|
63
63
|
<r>NEVER lie about tests being written or passing</r>
|
|
64
|
+
<r>Prefer story review after story implementation @reviewer</r>
|
|
64
65
|
<r>Find and use `**/prd.md`, `**/architecture.md`, `AGENTS.md` and `CLAUDE.md` as source of truth</r>
|
|
65
66
|
<r critical="MANDATORY">🔍 SEARCH FIRST: Call search() BEFORE glob when exploring codebase.
|
|
66
67
|
search({ query: "feature pattern", index: "code" }) → THEN glob if needed</r>
|
|
@@ -290,8 +291,8 @@ permission:
|
|
|
290
291
|
|
|
291
292
|
**Red-Green-Refactor:** 🔴 Write failing test → 🟢 Minimal code to pass → 🔵 Refactor
|
|
292
293
|
|
|
293
|
-
**Story Status Flow:**
|
|
294
|
+
**Story Status Flow:**
|
|
294
295
|
```
|
|
295
|
-
ready-for-dev → in-progress → review → @reviewer → done
|
|
296
|
-
|
|
296
|
+
ready-for-dev → in-progress -> @coder`s → review → @reviewer → done
|
|
297
|
+
↑_________| (if changes requested)
|
|
297
298
|
```
|
|
@@ -41,7 +41,7 @@ Prerequisites: Run 'npx @comfanion/workflow index --index <name>' first.`,
|
|
|
41
41
|
args: {
|
|
42
42
|
query: tool.schema.string().describe("Semantic search query describing what you're looking for"),
|
|
43
43
|
index: tool.schema.string().optional().default("code").describe("Index to search: code, docs, config, or custom name"),
|
|
44
|
-
limit: tool.schema.number().optional().default(
|
|
44
|
+
limit: tool.schema.number().optional().default(10).describe("Number of results to return (default: 10)"),
|
|
45
45
|
searchAll: tool.schema.boolean().optional().default(false).describe("Search all indexes instead of just one"),
|
|
46
46
|
freshen: tool.schema.boolean().optional().default(true).describe("Auto-update stale files before searching (default: true)"),
|
|
47
47
|
includeArchived: tool.schema.boolean().optional().default(false).describe("Include archived files in results (default: false). Files are archived if in /archive/ folder or have 'archived: true' in frontmatter."),
|