maestro-flow 0.3.44 → 0.3.45

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.
Files changed (123) hide show
  1. package/.claude/commands/learn-decompose.md +1 -1
  2. package/.claude/commands/learn-follow.md +1 -1
  3. package/.claude/commands/learn-investigate.md +1 -1
  4. package/.claude/commands/learn-retro.md +1 -1
  5. package/.claude/commands/learn-second-opinion.md +1 -1
  6. package/.claude/commands/maestro-analyze.md +1 -1
  7. package/.claude/commands/maestro-brainstorm.md +1 -1
  8. package/.claude/commands/maestro-execute.md +1 -1
  9. package/.claude/commands/maestro-plan.md +1 -1
  10. package/.claude/commands/maestro-tools-execute.md +14 -14
  11. package/.claude/commands/maestro-tools-register.md +25 -26
  12. package/.claude/commands/quality-debug.md +1 -1
  13. package/.claude/commands/quality-review.md +1 -1
  14. package/.claude/commands/spec-add.md +7 -12
  15. package/.claude/commands/spec-load.md +15 -16
  16. package/.claude/skills/codify-to-knowhow/SKILL.md +1 -1
  17. package/.claude/skills/codify-to-knowhow/phases/04-index-verify.md +1 -1
  18. package/.codex/skills/codify-to-knowhow/SKILL.md +2 -2
  19. package/.codex/skills/maestro-analyze/SKILL.md +1 -1
  20. package/.codex/skills/maestro-collab/SKILL.md +1 -1
  21. package/.codex/skills/maestro-milestone-complete/SKILL.md +1 -1
  22. package/.codex/skills/maestro-plan/SKILL.md +1 -1
  23. package/.codex/skills/maestro-tools-execute/SKILL.md +12 -12
  24. package/.codex/skills/maestro-tools-register/SKILL.md +149 -144
  25. package/.codex/skills/maestro-ui-codify/SKILL.md +1 -1
  26. package/.codex/skills/maestro-verify/SKILL.md +1 -1
  27. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  28. package/.codex/skills/quality-auto-test/SKILL.md +2 -2
  29. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  30. package/.codex/skills/spec-add/SKILL.md +104 -114
  31. package/.codex/skills/spec-load/SKILL.md +73 -73
  32. package/.codex/skills/team-quality-assurance/roles/executor/role.md +1 -1
  33. package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
  34. package/.codex/skills/team-tech-debt/roles/scanner/role.md +1 -1
  35. package/.codex/skills/team-testing/roles/executor/role.md +1 -1
  36. package/.codex/skills/team-testing/roles/generator/role.md +1 -1
  37. package/dashboard/dist-server/dashboard/src/server/routes/specs.js +1 -1
  38. package/dashboard/dist-server/dashboard/src/server/routes/specs.js.map +1 -1
  39. package/dashboard/dist-server/dashboard/src/server/routes/wiki.js +0 -2
  40. package/dashboard/dist-server/dashboard/src/server/routes/wiki.js.map +1 -1
  41. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +0 -1
  42. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +6 -23
  43. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  44. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +0 -1
  45. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  46. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +0 -1
  47. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  48. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +25 -36
  49. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  50. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +0 -5
  51. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +0 -2
  52. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +2 -3
  53. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  54. package/dashboard/dist-server/src/agents/cli-agent-runner.js +5 -5
  55. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  56. package/dashboard/dist-server/src/tools/spec-entry-parser.d.ts +3 -9
  57. package/dashboard/dist-server/src/tools/spec-entry-parser.js +9 -31
  58. package/dashboard/dist-server/src/tools/spec-entry-parser.js.map +1 -1
  59. package/dashboard/dist-server/src/tools/spec-loader.d.ts +5 -9
  60. package/dashboard/dist-server/src/tools/spec-loader.js +99 -52
  61. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  62. package/dist/src/agents/cli-agent-runner.js +5 -5
  63. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  64. package/dist/src/commands/knowhow.js +4 -4
  65. package/dist/src/commands/knowhow.js.map +1 -1
  66. package/dist/src/commands/spec.d.ts.map +1 -1
  67. package/dist/src/commands/spec.js +7 -14
  68. package/dist/src/commands/spec.js.map +1 -1
  69. package/dist/src/commands/wiki.d.ts.map +1 -1
  70. package/dist/src/commands/wiki.js +11 -20
  71. package/dist/src/commands/wiki.js.map +1 -1
  72. package/dist/src/hooks/plugins/spec-injection-plugin.js +10 -10
  73. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  74. package/dist/src/hooks/spec-injector.d.ts +0 -7
  75. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  76. package/dist/src/hooks/spec-injector.js +41 -81
  77. package/dist/src/hooks/spec-injector.js.map +1 -1
  78. package/dist/src/hooks/wiki-role-loader.d.ts +5 -5
  79. package/dist/src/hooks/wiki-role-loader.d.ts.map +1 -1
  80. package/dist/src/hooks/wiki-role-loader.js +6 -6
  81. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  82. package/dist/src/tools/spec-entry-parser.d.ts +3 -9
  83. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  84. package/dist/src/tools/spec-entry-parser.js +9 -31
  85. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  86. package/dist/src/tools/spec-init.d.ts.map +1 -1
  87. package/dist/src/tools/spec-init.js +54 -73
  88. package/dist/src/tools/spec-init.js.map +1 -1
  89. package/dist/src/tools/spec-loader.d.ts +5 -9
  90. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  91. package/dist/src/tools/spec-loader.js +99 -52
  92. package/dist/src/tools/spec-loader.js.map +1 -1
  93. package/dist/src/tools/spec-writer.d.ts +1 -1
  94. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  95. package/dist/src/tools/spec-writer.js +2 -2
  96. package/dist/src/tools/spec-writer.js.map +1 -1
  97. package/package.json +1 -1
  98. package/workflows/analyze.md +2 -2
  99. package/workflows/auto-test.md +2 -2
  100. package/workflows/brainstorm.md +1 -1
  101. package/workflows/codebase-rebuild.md +1 -1
  102. package/workflows/codebase-refresh.md +1 -1
  103. package/workflows/debug.md +1 -1
  104. package/workflows/execute.md +3 -3
  105. package/workflows/integration-test.md +2 -2
  106. package/workflows/issue-discover.md +1 -1
  107. package/workflows/knowhow.md +2 -2
  108. package/workflows/learn.md +1 -1
  109. package/workflows/map.md +1 -1
  110. package/workflows/milestone-complete.md +2 -2
  111. package/workflows/plan.md +1 -1
  112. package/workflows/quick.md +1 -1
  113. package/workflows/refactor.md +1 -1
  114. package/workflows/retrospective.md +3 -3
  115. package/workflows/review.md +1 -1
  116. package/workflows/roadmap-common.md +1 -1
  117. package/workflows/specs-add.md +2 -11
  118. package/workflows/specs-load.md +13 -14
  119. package/workflows/test-gen.md +1 -1
  120. package/workflows/tools-spec.md +17 -50
  121. package/workflows/ui-codify-knowhow.md +1 -1
  122. package/workflows/ui-codify.md +1 -1
  123. package/workflows/verify.md +1 -1
@@ -385,7 +385,7 @@ Create learnings.md with frontmatter (title, type: spec, roles: [implement]) if
385
385
  For each insight in `distilled_insights`, append a `<spec-entry>` to `.workflow/specs/learnings.md`:
386
386
 
387
387
  ```html
388
- <spec-entry roles="{insight.role}" keywords="{insight.category},{insight.tags joined by comma}" date="{YYYY-MM-DD}" id="{insight.id}" source="retrospective">
388
+ <spec-entry category="{insight.category}" keywords="{insight.tags joined by comma}" date="{YYYY-MM-DD}" id="{insight.id}" source="retrospective">
389
389
 
390
390
  ### {insight.title}
391
391
 
@@ -408,7 +408,7 @@ Append learnings to `.workflow/specs/learnings.md` (shared with milestone-comple
408
408
 
409
409
  ```
410
410
  Append each insight to .workflow/specs/learnings.md as <spec-entry> with:
411
- roles="implement", keywords (3-5 extracted), date, source="retrospective"
411
+ category="learning", keywords (3-5 extracted), date, source="retrospective"
412
412
  Body: title, summary, phase/lens/INS_id metadata
413
413
 
414
414
  Create file with roles frontmatter + "## Entries" header if it does not exist.
@@ -499,7 +499,7 @@ If `mode == "range"` or `--all`, loop Stages 3-8 per phase, then print aggregate
499
499
  ### spec-entry (in specs/learnings.md)
500
500
 
501
501
  ```html
502
- <spec-entry roles="implement" keywords="pattern,auth,jwt,security" date="2026-04-11" id="INS-a1b2c3d4" source="retrospective">
502
+ <spec-entry category="coding" keywords="pattern,auth,jwt,security" date="2026-04-11" id="INS-a1b2c3d4" source="retrospective">
503
503
 
504
504
  ### JWT refresh tokens must rotate on every use
505
505
 
@@ -104,7 +104,7 @@ dimensions = --dimensions flag (comma-separated), or level defaults:
104
104
  **Skip if `--skip-specs` flag is set.**
105
105
 
106
106
  ```
107
- specs_content = maestro spec load --role review
107
+ specs_content = maestro spec load --category review
108
108
  ```
109
109
 
110
110
  Pass specs_content to reviewer agents as quality standards context.
@@ -15,7 +15,7 @@ Block if `.workflow/worktree-scope.json` exists — must run from main worktree.
15
15
  ### Load Specs
16
16
 
17
17
  ```
18
- specs_content = maestro spec load --role plan
18
+ specs_content = maestro spec load --category arch
19
19
  ```
20
20
 
21
21
  Ensure phases respect architectural constraints.
@@ -5,12 +5,11 @@ Add a `<spec-entry>` closed-tag entry to a single target spec file by category.
5
5
  ## Arguments
6
6
 
7
7
  ```
8
- $ARGUMENTS: "[--scope <scope>] [--uid <uid>] [--roles <csv>] <category> <content>"
8
+ $ARGUMENTS: "[--scope <scope>] [--uid <uid>] <category> <content>"
9
9
 
10
10
  --scope -- target scope: project (default) | global | team | personal
11
11
  --uid -- user id for personal scope (auto-detected from git if omitted)
12
- --roles -- comma-separated applicable roles (implement,plan,test,review,analyze,explore)
13
- category -- one of: coding, arch, quality, debug, test, review, learning, tools
12
+ category -- one of: coding, arch, quality, debug, test, review, learning
14
13
  content -- free-text description of the entry
15
14
  ```
16
15
 
@@ -34,7 +33,6 @@ content -- free-text description of the entry
34
33
  | `test` | `test-conventions.md` |
35
34
  | `review` | `review-standards.md` |
36
35
  | `learning` | `learnings.md` |
37
- | `tools` | `tools.md` |
38
36
 
39
37
  ## Prerequisites
40
38
 
@@ -85,13 +83,6 @@ Auto-extract 3-5 relevant keywords from the content:
85
83
  ```
86
84
  Entry format (closed-tag), date = YYYY-MM-DD, title = first meaningful phrase:
87
85
 
88
- When --roles provided (new format):
89
- <spec-entry roles="{role1},{role2}" keywords="{kw1},{kw2},{kw3}" date="{YYYY-MM-DD}">
90
- ### {title}
91
- {content}
92
- </spec-entry>
93
-
94
- When --roles not provided (legacy format):
95
86
  <spec-entry category="{category}" keywords="{kw1},{kw2},{kw3}" date="{YYYY-MM-DD}">
96
87
  ### {title}
97
88
  {content}
@@ -5,12 +5,12 @@ Load spec files filtered by category. Supports project, global, team, and person
5
5
  ## Arguments
6
6
 
7
7
  ```
8
- $ARGUMENTS: "[--scope <scope>] [--uid <uid>] [--role <role>] [keyword]"
8
+ $ARGUMENTS: "[--scope <scope>] [--uid <uid>] [--category <category>] [keyword]"
9
9
 
10
10
  --scope -- load scope: project (default) | global | team | personal
11
11
  --uid -- user id for personal scope (auto-detected from git if omitted)
12
- --role -- filter by role: implement | plan | test | review | analyze | explore
13
- Loads primary role doc in full + cross-file entries with matching roles attr
12
+ --category -- filter by category: coding | arch | test | review | debug | quality | learning
13
+ Loads category's primary doc in full + cross-file entries with matching category attr
14
14
  keyword -- optional, grep within loaded specs for matching sections
15
15
  ```
16
16
 
@@ -18,18 +18,17 @@ keyword -- optional, grep within loaded specs for matching sections
18
18
 
19
19
  Each category loads exactly one file per layer. Same mapping as spec-add.
20
20
 
21
- ## File → Primary Role Mapping
21
+ ## File → Primary Category Mapping
22
22
 
23
- | File | Role |
24
- |------|------|
25
- | `coding-conventions.md` | implement |
26
- | `architecture-constraints.md` | plan |
23
+ | File | Category |
24
+ |------|----------|
25
+ | `coding-conventions.md` | coding |
26
+ | `architecture-constraints.md` | arch |
27
27
  | `test-conventions.md` | test |
28
28
  | `review-standards.md` | review |
29
- | `debug-notes.md` | analyze |
30
- | `quality-rules.md` | review |
31
- | `learnings.md` | implement |
32
- | `tools.md` | _(per-entry roles)_ |
29
+ | `debug-notes.md` | debug |
30
+ | `quality-rules.md` | quality |
31
+ | `learnings.md` | learning |
33
32
 
34
33
  ## Layer Order by Scope
35
34
 
@@ -46,12 +45,12 @@ Each layer is prefixed with a section header when multi-layer.
46
45
 
47
46
  ### Step 1: Parse Arguments
48
47
 
49
- Extract `--scope`, `--uid`, `--role <role>` and remaining text (keyword for grep).
48
+ Extract `--scope`, `--uid`, `--category <category>` and remaining text (keyword for grep).
50
49
 
51
50
  ### Step 2: Load Specs via CLI
52
51
 
53
52
  ```bash
54
- maestro spec load --scope <scope> [--uid <uid>] [--role <role>] [--keyword <word>]
53
+ maestro spec load --scope <scope> [--uid <uid>] [--category <category>] [--keyword <word>]
55
54
  ```
56
55
 
57
56
  If `maestro spec load` CLI is unavailable, read files directly from the resolved directory.
@@ -9,7 +9,7 @@ Tests expose bugs -- fixing is for quality-debug or maestro-execute.
9
9
  ### Step 0: Load Project Specs
10
10
 
11
11
  ```
12
- specs_content = maestro spec load --role test
12
+ specs_content = maestro spec load --category test
13
13
  ```
14
14
 
15
15
  Follow project test conventions in Step 4 (Generate Test Plan) and Step 5 (Write Tests).
@@ -4,48 +4,19 @@ Shared reference for tool spec registration and execution commands.
4
4
 
5
5
  ## Storage
6
6
 
7
- Tool specs are stored in `.workflow/specs/tools.md` as `<spec-entry>` blocks with per-entry `roles` attribute. The `tools.md` file has no primary role entries are loaded via role matching.
7
+ Tool specs are stored as knowhow documents in `.workflow/knowhow/` with `tool: true` in YAML frontmatter. Tool registration creates knowhow files, not spec entries. The `category` field determines which `spec load --category` queries match this tool.
8
8
 
9
9
  ## Entry Format
10
10
 
11
- ### Inline mode (short process, <10 steps)
12
-
13
- ```xml
14
- <spec-entry roles="implement,test" keywords="payment,gateway,idempotency" date="YYYY-MM-DD">
15
-
16
- ### Tool Name
17
-
18
- Use when {trigger condition / timing}.
19
-
20
- 1. Step one
21
- 2. Step two
22
- ...
23
-
24
- </spec-entry>
25
- ```
26
-
27
- ### Ref mode (long process, >=10 steps or with code examples)
28
-
29
- Spec index entry in `tools.md`:
30
- ```xml
31
- <spec-entry roles="implement" keywords="oauth,pkce,token" date="YYYY-MM-DD"
32
- ref="knowhow/RCP-<slug>.md">
33
-
34
- ### Tool Name
35
-
36
- Use when {trigger condition}. {scope summary — must fit within 200 chars for spec load display}.
37
-
38
- </spec-entry>
39
- ```
40
-
41
- Referenced knowhow document (`knowhow/RCP-<slug>.md`):
11
+ Knowhow document (`knowhow/RCP-<slug>.md`):
42
12
  ```yaml
43
13
  ---
44
14
  title: Tool Name
45
15
  type: recipe
16
+ tool: true
46
17
  summary: "Use when {timing}. {scope description}"
47
18
  tags: [keyword1, keyword2]
48
- roles: [implement]
19
+ category: coding
49
20
  ---
50
21
 
51
22
  ## Prerequisites
@@ -64,35 +35,31 @@ roles: [implement]
64
35
  ## Discovery Path
65
36
 
66
37
  ```
67
- Register → tools.md → spec load --role <role> / spec-injector auto-inject → agent discovers tool
38
+ Register → tools.md → spec load --category <category> / spec-injector auto-inject → agent discovers tool
68
39
  ```
69
40
 
70
41
  Agents discover tool specs via:
71
- - `spec load --role <role>` — returns entries matching the role
42
+ - `spec load --category <category>` — returns entries matching the category
72
43
  - `spec-injector` hook — auto-injects at Agent launch based on agent type
73
44
  - `spec load --keyword <word>` — keyword search across all entries
74
45
 
75
- ## Role Reference
46
+ ## Category Reference
76
47
 
77
- | Role | Agent types | Tool examples |
78
- |------|-------------|---------------|
79
- | implement | code-developer, workflow-executor | Build, deploy, integrate |
48
+ | Category | Agent types | Tool examples |
49
+ |----------|-------------|---------------|
50
+ | coding | code-developer, workflow-executor | Build, deploy, integrate |
80
51
  | test | tdd-developer, test-fix-agent | Test flows, verification steps |
81
52
  | review | workflow-reviewer | Checklists, audit standards |
82
- | plan | workflow-planner | Design flows, analysis steps |
83
- | analyze | debug-explore-agent | Diagnostic flows, investigation |
53
+ | arch | workflow-planner | Design flows, analysis steps |
54
+ | debug | debug-explore-agent | Diagnostic flows, investigation |
84
55
 
85
56
  ## CLI Commands
86
57
 
87
58
  ```bash
88
- # Add inline tool spec
89
- maestro spec add tools "<title>" "<content>" --roles "<csv>" --keywords "<csv>"
90
-
91
- # Add ref tool spec with knowhow
92
- maestro spec add tools "<title>" "<summary>" --roles "<csv>" --keywords "<csv>" \
93
- --ref "knowhow/RCP-<slug>.md" --knowhow-type recipe
59
+ # Register tool as knowhow document
60
+ maestro knowhow add "knowhow/RCP-<slug>.md" --type recipe --tool
94
61
 
95
- # Load tool specs
96
- maestro spec load --role <role>
97
- maestro spec load --role <role> --keyword <word>
62
+ # Load specs by category
63
+ maestro spec load --category <category>
64
+ maestro spec load --category <category> --keyword <word>
98
65
  ```
@@ -253,6 +253,6 @@ Open preview:
253
253
  file://${absolutePath}/preview.html
254
254
 
255
255
  Next steps:
256
- maestro wiki list --role implement
256
+ maestro wiki list --category coding
257
257
  maestro spec load --keyword ${package_name}
258
258
  ```
@@ -220,6 +220,6 @@ Open preview:
220
220
  file://{absolute_path}/preview.html
221
221
 
222
222
  Next steps:
223
- maestro wiki list --role implement # Browse by role
223
+ maestro wiki list --category coding # Browse by category
224
224
  maestro spec load --keyword {package_name} # Load related specs
225
225
  ```
@@ -42,7 +42,7 @@ Milestone mode creates output dir: .workflow/scratch/verify-{milestone_slug}-{da
42
42
  ## V0: Load Project Specs
43
43
 
44
44
  ```
45
- specs_content = maestro spec load --role review
45
+ specs_content = maestro spec load --category review
46
46
  ```
47
47
 
48
48
  Pass specs_content to verifier agent as quality standards context.