claude-flow-novice 1.5.6 → 1.5.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/.claude-flow-novice/.claude/agents/CLAUDE.md +34 -17
- package/.claude-flow-novice/.claude/agents/validate-agent.js +24 -3
- package/.claude-flow-novice/dist/src/mcp/mcp-config-manager.js +1362 -0
- package/.claude-flow-novice/dist/src/mcp/mcp-server-novice-simplified.js +583 -0
- package/.claude-flow-novice/dist/src/mcp/mcp-server-novice.js +723 -0
- package/.claude-flow-novice/dist/src/mcp/mcp-server-sdk.js +649 -0
- package/.claude-flow-novice/dist/src/mcp/mcp-server.js +2256 -0
- package/.claude-flow-novice/dist/src/mcp/ruv-swarm-wrapper.js +254 -0
- package/package.json +2 -2
- package/examples/sdk-swarm-demo.js +0 -194
|
@@ -114,6 +114,28 @@ Priming Effect:
|
|
|
114
114
|
|
|
115
115
|
### Frontmatter (YAML)
|
|
116
116
|
|
|
117
|
+
#### Required Frontmatter Fields
|
|
118
|
+
|
|
119
|
+
- **name**: Lowercase with hyphens (e.g., `system-architect`, `api-developer`)
|
|
120
|
+
- **description**: Clear, keyword-rich description (supports multiline with `|`)
|
|
121
|
+
- **tools**: Comma-separated list of tool names (e.g., `Read, Write, Edit, Bash, Grep, Glob`)
|
|
122
|
+
- ⚠️ **IMPORTANT**: Use comma-separated format, NOT YAML array format
|
|
123
|
+
- ✅ **CORRECT**: `tools: Read, Write, Edit, Bash`
|
|
124
|
+
- ❌ **WRONG**: `tools:` followed by `- Read` on new lines
|
|
125
|
+
- **model**: AI model to use (`sonnet`, `opus`, or `haiku`)
|
|
126
|
+
- **color**: Visual identifier for the agent (e.g., `seagreen`, `royalblue`)
|
|
127
|
+
|
|
128
|
+
#### Optional Frontmatter Fields
|
|
129
|
+
|
|
130
|
+
- **type**: Agent classification (`specialist`, `coordinator`, `swarm`)
|
|
131
|
+
- **capabilities**: YAML array of capability tags
|
|
132
|
+
- **lifecycle**: Hooks for agent lifecycle events
|
|
133
|
+
- **hooks**: Integration points with Claude Flow system
|
|
134
|
+
- **triggers**: Automatic activation patterns (YAML array)
|
|
135
|
+
- **constraints**: Limitations and boundaries (YAML array)
|
|
136
|
+
|
|
137
|
+
#### Complete Frontmatter Example
|
|
138
|
+
|
|
117
139
|
```yaml
|
|
118
140
|
---
|
|
119
141
|
name: agent-name # REQUIRED: Lowercase with hyphens
|
|
@@ -122,12 +144,7 @@ description: | # REQUIRED: Clear, keyword-rich description
|
|
|
122
144
|
Use PROACTIVELY for [specific scenarios].
|
|
123
145
|
ALWAYS delegate when user asks [trigger phrases].
|
|
124
146
|
Keywords - [comma-separated keywords for search]
|
|
125
|
-
tools:
|
|
126
|
-
- Read
|
|
127
|
-
- Write
|
|
128
|
-
- Edit
|
|
129
|
-
- Bash
|
|
130
|
-
- TodoWrite
|
|
147
|
+
tools: Read, Write, Edit, Bash, TodoWrite # REQUIRED: Comma-separated list of tool names
|
|
131
148
|
model: sonnet # REQUIRED: sonnet | opus | haiku
|
|
132
149
|
color: seagreen # REQUIRED: Visual identifier
|
|
133
150
|
type: specialist # OPTIONAL: specialist | coordinator | swarm
|
|
@@ -212,7 +229,7 @@ npx claude-flow@alpha hooks post-edit [FILE_PATH] --memory-key "agent/step" --st
|
|
|
212
229
|
---
|
|
213
230
|
name: system-architect
|
|
214
231
|
description: Expert in designing scalable systems
|
|
215
|
-
tools:
|
|
232
|
+
tools: Read, Write, Edit, Bash, TodoWrite
|
|
216
233
|
model: sonnet
|
|
217
234
|
color: seagreen
|
|
218
235
|
---
|
|
@@ -281,7 +298,7 @@ You are a senior system architect specializing in [domain]. You excel at [key st
|
|
|
281
298
|
---
|
|
282
299
|
name: backend-api-dev
|
|
283
300
|
description: Backend API development specialist
|
|
284
|
-
tools:
|
|
301
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
285
302
|
model: sonnet
|
|
286
303
|
color: royalblue
|
|
287
304
|
---
|
|
@@ -419,7 +436,7 @@ Test Pyramid:
|
|
|
419
436
|
---
|
|
420
437
|
name: rust-coder-basic
|
|
421
438
|
description: Rust implementation specialist for basic tasks
|
|
422
|
-
tools:
|
|
439
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
423
440
|
model: sonnet
|
|
424
441
|
color: mediumblue
|
|
425
442
|
---
|
|
@@ -839,7 +856,7 @@ Apply same principles but validate with testing:
|
|
|
839
856
|
---
|
|
840
857
|
name: code-reviewer
|
|
841
858
|
description: Expert code reviewer focusing on quality and maintainability
|
|
842
|
-
tools:
|
|
859
|
+
tools: Read, Grep, Bash
|
|
843
860
|
model: sonnet
|
|
844
861
|
color: orange
|
|
845
862
|
---
|
|
@@ -902,7 +919,7 @@ You are an experienced code reviewer who identifies issues and suggests improvem
|
|
|
902
919
|
---
|
|
903
920
|
name: system-architect
|
|
904
921
|
description: Senior system architect for scalable software design
|
|
905
|
-
tools:
|
|
922
|
+
tools: Read, Write, Edit, Bash, TodoWrite
|
|
906
923
|
model: sonnet
|
|
907
924
|
color: seagreen
|
|
908
925
|
---
|
|
@@ -956,7 +973,7 @@ You are a senior system architect specializing in [domain].
|
|
|
956
973
|
---
|
|
957
974
|
name: unit-tester
|
|
958
975
|
description: Comprehensive unit test specialist
|
|
959
|
-
tools:
|
|
976
|
+
tools: Read, Write, Edit, Bash, Grep, TodoWrite
|
|
960
977
|
model: sonnet
|
|
961
978
|
color: mediumvioletred
|
|
962
979
|
---
|
|
@@ -1052,7 +1069,7 @@ Test Categories:
|
|
|
1052
1069
|
---
|
|
1053
1070
|
name: tech-researcher
|
|
1054
1071
|
description: Technology research and analysis specialist
|
|
1055
|
-
tools:
|
|
1072
|
+
tools: Read, WebSearch, Bash, TodoWrite
|
|
1056
1073
|
model: sonnet
|
|
1057
1074
|
color: steelblue
|
|
1058
1075
|
---
|
|
@@ -1103,7 +1120,7 @@ You conduct thorough research to inform technical decisions.
|
|
|
1103
1120
|
---
|
|
1104
1121
|
name: cicd-engineer
|
|
1105
1122
|
description: CI/CD pipeline specialist
|
|
1106
|
-
tools:
|
|
1123
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
1107
1124
|
model: sonnet
|
|
1108
1125
|
color: darkkhaki
|
|
1109
1126
|
---
|
|
@@ -1566,7 +1583,7 @@ description: |
|
|
|
1566
1583
|
Use PROACTIVELY for distributed systems, event-driven architecture,
|
|
1567
1584
|
microservices decomposition, scalability planning.
|
|
1568
1585
|
Keywords - architecture, system design, microservices, scalability
|
|
1569
|
-
tools:
|
|
1586
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
1570
1587
|
model: sonnet
|
|
1571
1588
|
color: seagreen
|
|
1572
1589
|
---
|
|
@@ -1636,7 +1653,7 @@ description: |
|
|
|
1636
1653
|
Backend API development specialist for RESTful and GraphQL APIs.
|
|
1637
1654
|
Use for endpoint implementation, data modeling, API documentation.
|
|
1638
1655
|
Keywords - API, REST, GraphQL, backend, endpoints
|
|
1639
|
-
tools:
|
|
1656
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
1640
1657
|
model: sonnet
|
|
1641
1658
|
color: royalblue
|
|
1642
1659
|
---
|
|
@@ -1786,7 +1803,7 @@ description: |
|
|
|
1786
1803
|
Rust implementation specialist for basic string processing,
|
|
1787
1804
|
error handling, and CRUD operations.
|
|
1788
1805
|
Keywords - rust, basic tasks, string processing, error handling
|
|
1789
|
-
tools:
|
|
1806
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
1790
1807
|
model: sonnet
|
|
1791
1808
|
color: mediumblue
|
|
1792
1809
|
---
|
|
@@ -357,6 +357,12 @@ function validateFrontmatter(frontmatter) {
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
// Tools validation
|
|
360
|
+
// NOTE: Tools can be specified as comma-separated string OR YAML array
|
|
361
|
+
// Examples:
|
|
362
|
+
// tools: Read, Write, Edit # Comma-separated string
|
|
363
|
+
// tools: # YAML array
|
|
364
|
+
// - Read
|
|
365
|
+
// - Write
|
|
360
366
|
if (!frontmatter.tools) {
|
|
361
367
|
warnings.push({
|
|
362
368
|
severity: 'warning',
|
|
@@ -365,9 +371,24 @@ function validateFrontmatter(frontmatter) {
|
|
|
365
371
|
fix: 'Add "tools: Read, Write, Edit, ..." to frontmatter'
|
|
366
372
|
});
|
|
367
373
|
} else {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
374
|
+
// Parse tools: handle both comma-separated strings and YAML arrays
|
|
375
|
+
let tools;
|
|
376
|
+
if (typeof frontmatter.tools === 'string') {
|
|
377
|
+
// Comma-separated format: "Read, Write, Edit"
|
|
378
|
+
tools = frontmatter.tools.split(',').map(t => t.trim());
|
|
379
|
+
} else if (Array.isArray(frontmatter.tools)) {
|
|
380
|
+
// YAML array format: ["Read", "Write", "Edit"]
|
|
381
|
+
tools = frontmatter.tools;
|
|
382
|
+
} else {
|
|
383
|
+
// Invalid format
|
|
384
|
+
issues.push({
|
|
385
|
+
severity: 'error',
|
|
386
|
+
field: 'tools',
|
|
387
|
+
message: 'Tools must be comma-separated string or YAML array',
|
|
388
|
+
fix: 'Use "tools: Read, Write, Edit" or YAML array format'
|
|
389
|
+
});
|
|
390
|
+
tools = [];
|
|
391
|
+
}
|
|
371
392
|
|
|
372
393
|
const invalidTools = tools.filter(tool => !APPROVED_TOOLS.includes(tool));
|
|
373
394
|
if (invalidTools.length > 0) {
|