claude-flow-novice 2.19.0 → 2.19.1
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/agents/AGENT_LIFECYCLE.md +1 -1
- package/.claude/agents/SHARED_PROTOCOL.md +8 -4
- package/.claude/agents/cfn-dev-team/analysts/analyst.md +4 -4
- package/.claude/agents/cfn-dev-team/analysts/root-cause-analyst.md +4 -4
- package/.claude/agents/cfn-dev-team/architecture/api-designer-persona.md +4 -4
- package/.claude/agents/cfn-dev-team/architecture/base-template-generator.md +4 -4
- package/.claude/agents/cfn-dev-team/architecture/goal-planner.md +4 -4
- package/.claude/agents/cfn-dev-team/architecture/system-architect.md +4 -4
- package/.claude/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +4 -4
- package/.claude/agents/cfn-dev-team/coordinators/handoff-coordinator.md +4 -4
- package/.claude/agents/cfn-dev-team/dev-ops/devops-engineer.md +4 -4
- package/.claude/agents/cfn-dev-team/dev-ops/docker-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/dev-ops/fly-io-specialist.md +2 -2
- package/.claude/agents/cfn-dev-team/dev-ops/github-commit-agent.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/api-gateway-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/backend-developer.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/data/data-engineer.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/database/database-architect.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/database/mem0-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/database/memgraph-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/database/supabase-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/frontend/mobile-dev.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/frontend/ui-designer.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/graphql-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/developers/rust-developer.md +4 -4
- package/.claude/agents/cfn-dev-team/documentation/agent-type-guidelines.md +4 -4
- package/.claude/agents/cfn-dev-team/documentation/api-documentation.md +4 -4
- package/.claude/agents/cfn-dev-team/documentation/pseudocode.md +4 -4
- package/.claude/agents/cfn-dev-team/documentation/specification-agent.md +4 -4
- package/.claude/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +4 -4
- package/.claude/agents/cfn-dev-team/product-owners/cto-agent.md +4 -4
- package/.claude/agents/cfn-dev-team/product-owners/power-user-persona.md +4 -4
- package/.claude/agents/cfn-dev-team/product-owners/product-owner.md +4 -4
- package/.claude/agents/cfn-dev-team/reviewers/code-reviewer.md +4 -4
- package/.claude/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +4 -4
- package/.claude/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +4 -4
- package/.claude/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +4 -4
- package/.claude/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +4 -4
- package/.claude/agents/cfn-dev-team/reviewers/quality/quality-metrics.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/api-testing-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/contract-tester.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/e2e/playwright-tester.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/integration-tester.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/interaction-tester.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/load-testing-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/mutation-testing-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/playwright-tester.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/test-validation-agent.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/tester.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +4 -4
- package/.claude/agents/cfn-dev-team/testers/validation/validation-production-validator.md +4 -4
- package/.claude/agents/cfn-dev-team/utility/agent-builder.md +7 -7
- package/.claude/agents/cfn-dev-team/utility/memory-leak-specialist.md +4 -4
- package/.claude/agents/cfn-dev-team/utility/researcher.md +4 -4
- package/.claude/agents/cfn-dev-team/utility/z-ai-specialist.md +4 -4
- package/.claude/agents/custom/claude-code-expert.md +1 -1
- package/.claude/agents/project-only-agents/npm-package-specialist.md +1 -1
- package/.claude/cfn-extras/agents/context-curator.md +4 -4
- package/.claude/cfn-extras/agents/custom-agents/cfn-docker-expert.md +4 -4
- package/.claude/cfn-extras/agents/custom-agents/cfn-redis-operations.md +1 -1
- package/.claude/cfn-extras/agents/custom-agents/cfn-system-expert.md +4 -4
- package/.claude/cfn-extras/agents/custom-agents/trigger-dev-expert.md +4 -4
- package/.claude/cfn-extras/agents/deprecated-coordinators/consensus-builder.md +4 -4
- package/.claude/cfn-extras/agents/deprecated-coordinators/multi-sprint-coordinator.md +4 -4
- package/.claude/cfn-extras/agents/docker-team/docker-coordinators/cfn-docker-v3-coordinator.md +1 -1
- package/.claude/cfn-extras/agents/kubernetes-specialist.md +4 -4
- package/.claude/cfn-extras/agents/planner.md +4 -4
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/QUICKSTART.md +1 -1
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/README.md +19 -19
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/SKILL.md +7 -7
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/TDD_COORDINATOR_OVERVIEW.md +3 -3
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/TEST_RESULTS.md +3 -3
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/coordinate-generation.sh +19 -19
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/example-fix-scenario.md +4 -4
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/example-usage.sh +1 -1
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/feedback-logger.sh +5 -5
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/fix-existing-code-v2.sh +2 -2
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/fix-existing-code.sh +10 -10
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/pattern-examples.md +3 -3
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/query-patterns.sh +9 -9
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/tdd-coordinator.sh +8 -8
- package/.claude/cfn-extras/skills/cfn-cerebras-coordinator/test-tdd-coordinator.sh +1 -1
- package/.claude/commands/README.md +1 -1
- package/.claude/commands/cfn-codesearch/cfn-codebase-reindex.md +4 -4
- package/.claude/commands/cfn-codesearch/cfn-codebase-search.md +3 -3
- package/.claude/commands/cfn-codesearch-search.md +3 -3
- package/.claude/commands/cfn-update-search-index.md +2 -2
- package/.claude/hooks/cfn-SessionStart-cfn-build-codesearch.sh +24 -0
- package/.claude/hooks/cfn-bash-search-hook.sh +6 -6
- package/.claude/hooks/cfn-smart-search-hook.sh +15 -15
- package/.claude/hooks/cfn-subagent-stop.sh +9 -9
- package/.claude/hooks/post-commit-codebase-index +14 -14
- package/.claude/skills/bulk-add-codesearch-instructions.sh +2 -2
- package/.claude/skills/cfn-codesearch/AGENT_LIFECYCLE_INTEGRATION.md +1 -1
- package/.claude/skills/cfn-codesearch/SECURITY_FINDINGS_SUMMARY.txt +1 -1
- package/.claude/skills/cfn-codesearch/SECURITY_TESTING_COMPLETION.md +1 -1
- package/.claude/skills/cfn-codesearch/SKILL.md +3 -3
- package/.claude/skills/cfn-codesearch/cfn-integration.sh +2 -2
- package/.claude/skills/cfn-codesearch/docs/EXECUTIVE_SUMMARY.txt +1 -1
- package/.claude/skills/cfn-codesearch/docs/PHASE_4_QUERY_API.md +24 -24
- package/.claude/skills/cfn-codesearch/docs/RUST_AST_EXTRACTOR_IMPLEMENTATION.md +7 -7
- package/.claude/skills/cfn-codesearch/docs/TRANSACTION_MANAGEMENT.md +1 -1
- package/.claude/skills/cfn-codesearch/docs/VALIDATION_FINDINGS.txt +1 -1
- package/.claude/skills/cfn-codesearch/epic-ast-indexer.json +8 -8
- package/.claude/skills/cfn-codesearch/src/cli/cleanup.rs +1 -1
- package/.claude/skills/cfn-codesearch/src/cli/index.rs +5 -5
- package/.claude/skills/cfn-codesearch/src/cli/index_ast.rs +3 -3
- package/.claude/skills/cfn-codesearch/src/cli/init.rs +4 -4
- package/.claude/skills/cfn-codesearch/src/cli/migration.rs +5 -5
- package/.claude/skills/cfn-codesearch/src/cli/reset.rs +5 -5
- package/.claude/skills/cfn-codesearch/src/main.rs +3 -3
- package/.claude/skills/cfn-codesearch/src/migration_v2.rs +1 -1
- package/.claude/skills/cfn-codesearch/src/paths.rs +1 -1
- package/.claude/skills/cfn-codesearch/src/search_engine.rs +3 -3
- package/.claude/skills/cfn-knowledge-base/lib/playbook/SKILL.md +1 -1
- package/.claude/skills/cfn-mdap-context-injection/inject.sh +2 -2
- package/CLAUDE.md +3 -3
- package/package.json +1 -1
- package/readme/feature-status.md +12 -6
- package/.claude/hooks/cfn-SessionStart-cfn-build-ruvector.sh +0 -24
- package/.claude/skills/cfn-codesearch/.claude/hooks/SessionStart-cfn-build-ruvector.sh +0 -13
|
@@ -14,16 +14,16 @@ capabilities: [agent-design, template-creation, agent-maintenance, validation]
|
|
|
14
14
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
15
15
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
16
16
|
|
|
17
|
-
# IMPORTANT:
|
|
17
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
18
18
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
19
19
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
20
20
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
21
21
|
# Also query past errors and learnings:
|
|
22
|
-
# ./.claude/skills/cfn-
|
|
23
|
-
# ./.claude/skills/cfn-
|
|
22
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
23
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
24
24
|
# This prevents duplicated work and leverages existing solutions.
|
|
25
25
|
|
|
26
|
-
→ **Skills**:
|
|
26
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
27
27
|
|
|
28
28
|
# Agent Builder
|
|
29
29
|
|
|
@@ -461,7 +461,7 @@ This script:
|
|
|
461
461
|
|
|
462
462
|
**What gets added:**
|
|
463
463
|
```markdown
|
|
464
|
-
→ **Skills**:
|
|
464
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
465
465
|
```
|
|
466
466
|
|
|
467
467
|
**Manual insertion (for single files):**
|
|
@@ -472,12 +472,12 @@ name: my-agent
|
|
|
472
472
|
...
|
|
473
473
|
---
|
|
474
474
|
|
|
475
|
-
→ **Skills**:
|
|
475
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
476
476
|
|
|
477
477
|
# Agent Title
|
|
478
478
|
```
|
|
479
479
|
|
|
480
|
-
→ **Skills**:
|
|
480
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
481
481
|
|
|
482
482
|
---
|
|
483
483
|
|
|
@@ -24,16 +24,16 @@ validation_hooks:
|
|
|
24
24
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
25
25
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
26
26
|
|
|
27
|
-
# IMPORTANT:
|
|
27
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
28
28
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
29
29
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
30
30
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
31
31
|
# Also query past errors and learnings:
|
|
32
|
-
# ./.claude/skills/cfn-
|
|
33
|
-
# ./.claude/skills/cfn-
|
|
32
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
33
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
34
34
|
# This prevents duplicated work and leverages existing solutions.
|
|
35
35
|
|
|
36
|
-
→ **Skills**:
|
|
36
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
37
37
|
|
|
38
38
|
<!-- PROVIDER_PARAMETERS
|
|
39
39
|
provider: zai
|
|
@@ -15,16 +15,16 @@ validation_hooks:
|
|
|
15
15
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
16
16
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
17
17
|
|
|
18
|
-
# IMPORTANT:
|
|
18
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
19
19
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
20
20
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
21
21
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
22
22
|
# Also query past errors and learnings:
|
|
23
|
-
# ./.claude/skills/cfn-
|
|
24
|
-
# ./.claude/skills/cfn-
|
|
23
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
24
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
25
25
|
# This prevents duplicated work and leverages existing solutions.
|
|
26
26
|
|
|
27
|
-
→ **Skills**:
|
|
27
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
28
28
|
|
|
29
29
|
# Researcher Agent
|
|
30
30
|
|
|
@@ -23,16 +23,16 @@ validation_hooks:
|
|
|
23
23
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
24
24
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
25
25
|
|
|
26
|
-
# IMPORTANT:
|
|
26
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
27
27
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
28
28
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
29
29
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
30
30
|
# Also query past errors and learnings:
|
|
31
|
-
# ./.claude/skills/cfn-
|
|
32
|
-
# ./.claude/skills/cfn-
|
|
31
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
32
|
+
# ./.claude/skills/cfn-codesearch/query-agent-patterns.sh --task-description "Your task description"
|
|
33
33
|
# This prevents duplicated work and leverages existing solutions.
|
|
34
34
|
|
|
35
|
-
→ **Skills**:
|
|
35
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
36
36
|
|
|
37
37
|
<!-- PROVIDER_PARAMETERS
|
|
38
38
|
provider: zai
|
|
@@ -17,7 +17,7 @@ acl_level: 1
|
|
|
17
17
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
18
18
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
19
19
|
|
|
20
|
-
→ **Skills**:
|
|
20
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
21
21
|
|
|
22
22
|
# Claude Code Expert
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ mode_support: [mvp, standard, enterprise]
|
|
|
26
26
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
27
27
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
28
28
|
|
|
29
|
-
→ **Skills**:
|
|
29
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
30
30
|
|
|
31
31
|
# NPM Package Specialist
|
|
32
32
|
|
|
@@ -18,16 +18,16 @@ acl_level: 3
|
|
|
18
18
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
19
19
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
20
20
|
|
|
21
|
-
# IMPORTANT:
|
|
21
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
22
22
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
23
23
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
24
24
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
25
25
|
# Also query past errors and learnings:
|
|
26
|
-
# ./.claude/skills/cfn-
|
|
27
|
-
# ./.claude/skills/cfn-
|
|
26
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
27
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
28
28
|
# This prevents duplicated work and leverages existing solutions.
|
|
29
29
|
|
|
30
|
-
→ **Skills**:
|
|
30
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
31
31
|
|
|
32
32
|
# Context Curator Agent
|
|
33
33
|
|
|
@@ -15,16 +15,16 @@ version: 1.1.0
|
|
|
15
15
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
# IMPORTANT:
|
|
18
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
19
19
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
20
20
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
21
21
|
# /codebase-search "error pattern or issue you"re fixing" --top 3
|
|
22
22
|
# Also query past errors and learnings:
|
|
23
|
-
# ./.claude/skills/cfn-
|
|
24
|
-
# ./.claude/skills/cfn-
|
|
23
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
24
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
25
25
|
# This prevents duplicated work and leverages existing solutions.
|
|
26
26
|
|
|
27
|
-
→ **Skills**:
|
|
27
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
28
28
|
|
|
29
29
|
# CFN Docker Mode Expert
|
|
30
30
|
|
|
@@ -14,7 +14,7 @@ capabilities: [redis-diagnostics, key-inspection, redis-health-checks, coordinat
|
|
|
14
14
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
15
15
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
16
16
|
|
|
17
|
-
→ **Skills**:
|
|
17
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
18
18
|
|
|
19
19
|
# CFN Redis Operations Troubleshooting Specialist
|
|
20
20
|
|
|
@@ -151,15 +151,15 @@ capabilities: [cfn-system-architecture, workflow-optimization, troubleshooting,
|
|
|
151
151
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
152
152
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
153
153
|
|
|
154
|
-
→ **Skills**:
|
|
154
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
155
155
|
|
|
156
|
-
# IMPORTANT:
|
|
156
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
157
157
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
158
158
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
159
159
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
160
160
|
# Also query past errors and learnings:
|
|
161
|
-
# ./.claude/skills/cfn-
|
|
162
|
-
# ./.claude/skills/cfn-
|
|
161
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
162
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
163
163
|
# This prevents duplicated work and leverages existing solutions.
|
|
164
164
|
|
|
165
165
|
# Claude Flow Novice System Expert
|
|
@@ -15,15 +15,15 @@ version: 2.0.0
|
|
|
15
15
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
16
16
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
17
17
|
|
|
18
|
-
→ **Skills**:
|
|
18
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
19
19
|
|
|
20
|
-
# IMPORTANT:
|
|
20
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
21
21
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
22
22
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
23
23
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
24
24
|
# Also query past errors and learnings:
|
|
25
|
-
# ./.claude/skills/cfn-
|
|
26
|
-
# ./.claude/skills/cfn-
|
|
25
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
26
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
27
27
|
# This prevents duplicated work and leverages existing solutions.
|
|
28
28
|
|
|
29
29
|
# Trigger.dev v4 Infrastructure Expert
|
|
@@ -21,16 +21,16 @@ validation_hooks:
|
|
|
21
21
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
22
22
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
23
23
|
|
|
24
|
-
# IMPORTANT:
|
|
24
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
25
25
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
26
26
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
27
27
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
28
28
|
# Also query past errors and learnings:
|
|
29
|
-
# ./.claude/skills/cfn-
|
|
30
|
-
# ./.claude/skills/cfn-
|
|
29
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
30
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
31
31
|
# This prevents duplicated work and leverages existing solutions.
|
|
32
32
|
|
|
33
|
-
→ **Skills**:
|
|
33
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
34
34
|
|
|
35
35
|
# Consensus Builder Agent
|
|
36
36
|
|
|
@@ -13,16 +13,16 @@ type: coordinator
|
|
|
13
13
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
14
14
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
15
15
|
|
|
16
|
-
# IMPORTANT:
|
|
16
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
17
17
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
18
18
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
19
19
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
20
20
|
# Also query past errors and learnings:
|
|
21
|
-
# ./.claude/skills/cfn-
|
|
22
|
-
# ./.claude/skills/cfn-
|
|
21
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
22
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
23
23
|
# This prevents duplicated work and leverages existing solutions.
|
|
24
24
|
|
|
25
|
-
→ **Skills**:
|
|
25
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
26
26
|
|
|
27
27
|
# Multi-Sprint Coordinator Agent
|
|
28
28
|
|
package/.claude/cfn-extras/agents/docker-team/docker-coordinators/cfn-docker-v3-coordinator.md
CHANGED
|
@@ -15,7 +15,7 @@ argument-hint: "[task-description] --mode=mvp|standard|enterprise --memory-limit
|
|
|
15
15
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
16
16
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
17
17
|
|
|
18
|
-
→ **Skills**:
|
|
18
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
19
19
|
|
|
20
20
|
# CFN Docker V3 Coordinator
|
|
21
21
|
|
|
@@ -17,16 +17,16 @@ validation_hooks:
|
|
|
17
17
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
18
18
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
19
19
|
|
|
20
|
-
# IMPORTANT:
|
|
20
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
21
21
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
22
22
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
23
23
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
24
24
|
# Also query past errors and learnings:
|
|
25
|
-
# ./.claude/skills/cfn-
|
|
26
|
-
# ./.claude/skills/cfn-
|
|
25
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
26
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
27
27
|
# This prevents duplicated work and leverages existing solutions.
|
|
28
28
|
|
|
29
|
-
→ **Skills**:
|
|
29
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
30
30
|
|
|
31
31
|
<!-- PROVIDER_PARAMETERS
|
|
32
32
|
provider: zai
|
|
@@ -24,16 +24,16 @@ validation_hooks:
|
|
|
24
24
|
# This is mandatory for all file edits to ensure code quality and validation.
|
|
25
25
|
# The pipeline will run compilation checks and TDD compliance verification.
|
|
26
26
|
|
|
27
|
-
# IMPORTANT:
|
|
27
|
+
# IMPORTANT: CodeSearch Semantic Search (Before Making Changes)
|
|
28
28
|
# Before implementing any changes, ALWAYS query the codebase for similar patterns:
|
|
29
29
|
# /codebase-search "relevant search terms for your task" --top 5
|
|
30
30
|
# /codebase-search "error pattern or issue you're fixing" --top 3
|
|
31
31
|
# Also query past errors and learnings:
|
|
32
|
-
# ./.claude/skills/cfn-
|
|
33
|
-
# ./.claude/skills/cfn-
|
|
32
|
+
# ./.claude/skills/cfn-codesearch/query-error-patterns.sh --task-description "Your task description"
|
|
33
|
+
# ./.claude/skills/cfn-codesearch/query-learnings.sh --task-description "Your task description" --category PATTERN
|
|
34
34
|
# This prevents duplicated work and leverages existing solutions.
|
|
35
35
|
|
|
36
|
-
→ **Skills**:
|
|
36
|
+
→ **Skills**: CodeSearch (semantic search) | Post-edit hook (file validation)
|
|
37
37
|
|
|
38
38
|
# Strategic Planning Agent
|
|
39
39
|
|
|
@@ -39,7 +39,7 @@ cd /path/to/project
|
|
|
39
39
|
3. Generates implementation (GREEN phase)
|
|
40
40
|
4. Runs tests - if fail, enters fix loop
|
|
41
41
|
5. Saves conversation to `conversations/` directory
|
|
42
|
-
6. Indexes pattern to
|
|
42
|
+
6. Indexes pattern to CodeSearch
|
|
43
43
|
|
|
44
44
|
**Expected output**:
|
|
45
45
|
```
|
|
@@ -6,14 +6,14 @@ Iterative Test-Driven Development with Cerebras LLM and conversation memory for
|
|
|
6
6
|
|
|
7
7
|
This coordinator implements a complete TDD workflow (Red-Green-Refactor) with:
|
|
8
8
|
- **Conversation Memory**: Full history tracked across iterations for context-aware fixes
|
|
9
|
-
- **Context Gathering**:
|
|
9
|
+
- **Context Gathering**: CodeSearch pattern queries + explicit context files
|
|
10
10
|
- **Iterative Refinement**: Failed tests trigger fix loops with error context
|
|
11
|
-
- **Success Logging**: Successful patterns indexed to
|
|
11
|
+
- **Success Logging**: Successful patterns indexed to CodeSearch for learning
|
|
12
12
|
|
|
13
13
|
## Workflow Phases
|
|
14
14
|
|
|
15
15
|
### Phase 1: Context Gathering
|
|
16
|
-
- Query
|
|
16
|
+
- Query CodeSearch for similar patterns in codebase
|
|
17
17
|
- Load explicit context files (types, utilities, related code)
|
|
18
18
|
- Store context in conversation metadata
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ This coordinator implements a complete TDD workflow (Red-Green-Refactor) with:
|
|
|
34
34
|
|
|
35
35
|
### Phase 5: GREEN - Verify Pass
|
|
36
36
|
- Run tests to check if implementation works
|
|
37
|
-
- If pass: success, log to
|
|
37
|
+
- If pass: success, log to CodeSearch
|
|
38
38
|
- If fail: enter fix loop
|
|
39
39
|
|
|
40
40
|
### Phase 6: FIX - Iterative Refinement
|
|
@@ -44,7 +44,7 @@ This coordinator implements a complete TDD workflow (Red-Green-Refactor) with:
|
|
|
44
44
|
- Repeat until tests pass or max iterations reached
|
|
45
45
|
|
|
46
46
|
### Phase 7: Success Logging
|
|
47
|
-
- Index successful pattern to
|
|
47
|
+
- Index successful pattern to CodeSearch
|
|
48
48
|
- Save full conversation JSON for learning
|
|
49
49
|
- Store in `conversations/` directory
|
|
50
50
|
|
|
@@ -129,7 +129,7 @@ This coordinator implements a complete TDD workflow (Red-Green-Refactor) with:
|
|
|
129
129
|
- Recommended: `zai-glm-4.6` for fast code generation
|
|
130
130
|
- Alternative: `llama3.1-70b` for complex reasoning
|
|
131
131
|
- `MAX_TDD_ITERATIONS` - Default max iterations (default: 5)
|
|
132
|
-
- `
|
|
132
|
+
- `CODESEARCH_INDEX_PATH` - CodeSearch index location (default: `./.claude/skills/cfn-codesearch`)
|
|
133
133
|
|
|
134
134
|
### SessionStart Hook Integration
|
|
135
135
|
|
|
@@ -205,12 +205,12 @@ The coordinator automatically determines test file paths based on language:
|
|
|
205
205
|
| Go | `pkg/handler.go` | `pkg/handler_test.go` |
|
|
206
206
|
| Other | `path/file.ext` | `path/file.test.ext` |
|
|
207
207
|
|
|
208
|
-
## Integration with
|
|
208
|
+
## Integration with CodeSearch
|
|
209
209
|
|
|
210
210
|
### Query Phase (Phase 1)
|
|
211
211
|
```bash
|
|
212
|
-
# Queries
|
|
213
|
-
./.claude/skills/cfn-
|
|
212
|
+
# Queries CodeSearch for similar patterns
|
|
213
|
+
./.claude/skills/cfn-codesearch/query-local.sh \
|
|
214
214
|
--pattern "Email validation function" \
|
|
215
215
|
--limit 3
|
|
216
216
|
```
|
|
@@ -218,7 +218,7 @@ The coordinator automatically determines test file paths based on language:
|
|
|
218
218
|
### Success Phase (Phase 7)
|
|
219
219
|
```bash
|
|
220
220
|
# Indexes successful implementation
|
|
221
|
-
./.claude/skills/cfn-
|
|
221
|
+
./.claude/skills/cfn-codesearch/index-code.sh \
|
|
222
222
|
--path ./src/validators/email.ts \
|
|
223
223
|
--source tdd-cerebras \
|
|
224
224
|
--success true
|
|
@@ -262,7 +262,7 @@ Tests failed:
|
|
|
262
262
|
|
|
263
263
|
### After Success
|
|
264
264
|
- `./.claude/skills/cfn-cerebras-coordinator/conversations/{date}-{agent-id}.json` - Saved conversation
|
|
265
|
-
-
|
|
265
|
+
- CodeSearch index updated with successful pattern
|
|
266
266
|
|
|
267
267
|
## Best Practices
|
|
268
268
|
|
|
@@ -384,24 +384,24 @@ cat /tmp/cerebras-tdd-*.json | jq '.messages[] | select(.role == "user") | .cont
|
|
|
384
384
|
--max-iterations 10 # May indicate deeper issues
|
|
385
385
|
```
|
|
386
386
|
|
|
387
|
-
###
|
|
387
|
+
### CodeSearch Integration Issues
|
|
388
388
|
**Symptom**: Context gathering or success logging fails
|
|
389
389
|
|
|
390
390
|
**Causes**:
|
|
391
|
-
-
|
|
392
|
-
- Incorrect `
|
|
391
|
+
- CodeSearch index not initialized
|
|
392
|
+
- Incorrect `CODESEARCH_INDEX_PATH`
|
|
393
393
|
- Permission issues
|
|
394
394
|
|
|
395
395
|
**Solutions**:
|
|
396
396
|
```bash
|
|
397
|
-
# Check
|
|
398
|
-
ls -la ./.claude/skills/cfn-
|
|
397
|
+
# Check CodeSearch installation
|
|
398
|
+
ls -la ./.claude/skills/cfn-codesearch/
|
|
399
399
|
|
|
400
400
|
# Initialize index if needed
|
|
401
|
-
./.claude/skills/cfn-
|
|
401
|
+
./.claude/skills/cfn-codesearch/initialize-index.sh
|
|
402
402
|
|
|
403
403
|
# Set custom path
|
|
404
|
-
export
|
|
404
|
+
export CODESEARCH_INDEX_PATH="/path/to/codesearch"
|
|
405
405
|
```
|
|
406
406
|
|
|
407
407
|
## Testing
|
|
@@ -516,7 +516,7 @@ export ZAI_MODEL="glm-4.6" # vs more expensive alternatives
|
|
|
516
516
|
|
|
517
517
|
- [Test-Driven Development](https://en.wikipedia.org/wiki/Test-driven_development)
|
|
518
518
|
- [Given-When-Then](https://martinfowler.com/bliki/GivenWhenThen.html)
|
|
519
|
-
- [
|
|
519
|
+
- [CodeSearch Semantic Search](..//cfn-codesearch/README.md)
|
|
520
520
|
- [CFN Agent Spawning](../cfn-agent-spawning/SKILL.md)
|
|
521
521
|
- [Project Tests Guide](../../../tests/CLAUDE.md)
|
|
522
522
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cfn-cerebras-coordinator
|
|
3
|
-
description: "Coordinates FAST code generation via Z.ai glm-4.6 with
|
|
3
|
+
description: "Coordinates FAST code generation via Z.ai glm-4.6 with CodeSearch pattern learning. Use when agents need rapid test generation, bulk code creation, or repetitive boilerplate. Tracks successful prompts for continuous improvement. Ideal for high-volume, low-complexity code tasks."
|
|
4
4
|
version: 2.0.0
|
|
5
5
|
tags: [coordination, code-generation, fast, zai, glm-4.6, pattern-learning, tests]
|
|
6
6
|
---
|
|
@@ -8,11 +8,11 @@ tags: [coordination, code-generation, fast, zai, glm-4.6, pattern-learning, test
|
|
|
8
8
|
# Cerebras Coordinator Skill
|
|
9
9
|
|
|
10
10
|
## Description
|
|
11
|
-
Coordinates **fast code generation** via Z.ai glm-4.6 model with
|
|
11
|
+
Coordinates **fast code generation** via Z.ai glm-4.6 model with CodeSearch pattern learning. Agents use this skill to offload rapid test generation and boilerplate code while building a searchable database of successful patterns.
|
|
12
12
|
|
|
13
13
|
## Key Features
|
|
14
14
|
- 🚀 **Fast Code Generation**: Uses Cerebras API for rapid code creation
|
|
15
|
-
- 📚 **Pattern Learning**: Tracks successful prompts and contexts in
|
|
15
|
+
- 📚 **Pattern Learning**: Tracks successful prompts and contexts in CodeSearch
|
|
16
16
|
- 🔄 **Feedback Loop**: Tests generated code and logs results
|
|
17
17
|
- 🎯 **Agent Coordination**: Provides simple interface for agents to coordinate generation tasks
|
|
18
18
|
- 📊 **Success Metrics**: Analyzes and ranks prompt effectiveness
|
|
@@ -59,7 +59,7 @@ Coordinates **fast code generation** via Z.ai glm-4.6 model with RuVector patter
|
|
|
59
59
|
## Architecture
|
|
60
60
|
|
|
61
61
|
```
|
|
62
|
-
Agent (Coordinator) Cerebras Coordinator Skill
|
|
62
|
+
Agent (Coordinator) Cerebras Coordinator Skill CodeSearch
|
|
63
63
|
| | |
|
|
64
64
|
|--- Request Generation --->| |
|
|
65
65
|
| |--- Store Prompt ------------->|
|
|
@@ -84,7 +84,7 @@ Agent (Coordinator) Cerebras Coordinator Skill RuVector
|
|
|
84
84
|
```bash
|
|
85
85
|
# Required
|
|
86
86
|
export ZAI_API_KEY="your-zai-api-key" # or CEREBRAS_API_KEY for legacy
|
|
87
|
-
export
|
|
87
|
+
export CODESEARCH_INDEX_PATH="./.claude/skills/cfn-codesearch/data"
|
|
88
88
|
|
|
89
89
|
# Optional
|
|
90
90
|
export ZAI_MODEL="glm-4.6" # Fast, cost-effective model (default)
|
|
@@ -96,12 +96,12 @@ export MAX_GENERATION_ATTEMPTS="3"
|
|
|
96
96
|
## Workflow
|
|
97
97
|
|
|
98
98
|
1. **Agent Request**: Agent calls coordinator with generation task
|
|
99
|
-
2. **Pattern Lookup**: Coordinator queries
|
|
99
|
+
2. **Pattern Lookup**: Coordinator queries CodeSearch for similar successful patterns
|
|
100
100
|
3. **Prompt Enhancement**: Enhances prompt with successful pattern examples
|
|
101
101
|
4. **Generation**: Sends to Cerebras for code generation
|
|
102
102
|
5. **Testing**: Automatically runs tests on generated code
|
|
103
103
|
6. **Validation**: Checks if tests pass and code compiles
|
|
104
|
-
7. **Logging**: Stores results in
|
|
104
|
+
7. **Logging**: Stores results in CodeSearch for future learning
|
|
105
105
|
8. **Feedback**: Returns result to agent with success metrics
|
|
106
106
|
|
|
107
107
|
## Success Metrics
|
|
@@ -9,7 +9,7 @@ This directory contains two TDD coordinators with different approaches:
|
|
|
9
9
|
1. Generate tests
|
|
10
10
|
2. Generate implementation
|
|
11
11
|
3. Run tests once
|
|
12
|
-
4. Log to
|
|
12
|
+
4. Log to CodeSearch
|
|
13
13
|
|
|
14
14
|
**Best For**:
|
|
15
15
|
- Simple, well-understood features
|
|
@@ -29,7 +29,7 @@ This directory contains two TDD coordinators with different approaches:
|
|
|
29
29
|
**Purpose**: Iterative TDD with intelligent error recovery
|
|
30
30
|
|
|
31
31
|
**Workflow**:
|
|
32
|
-
1. Gather context (
|
|
32
|
+
1. Gather context (CodeSearch + files)
|
|
33
33
|
2. Generate tests (RED phase)
|
|
34
34
|
3. Verify tests fail
|
|
35
35
|
4. Generate implementation (GREEN phase)
|
|
@@ -58,7 +58,7 @@ This directory contains two TDD coordinators with different approaches:
|
|
|
58
58
|
| Feature | Original | Conversation |
|
|
59
59
|
|---------|----------|--------------|
|
|
60
60
|
| Iterations | 1 | 1-N (configurable) |
|
|
61
|
-
| Context gathering | Basic |
|
|
61
|
+
| Context gathering | Basic | CodeSearch + files |
|
|
62
62
|
| Error recovery | None | Full conversation history |
|
|
63
63
|
| Red phase validation | No | Yes |
|
|
64
64
|
| Fix analysis | No | Yes (with history) |
|
|
@@ -71,7 +71,7 @@ cargo check
|
|
|
71
71
|
- Simplify error handling for better compatibility
|
|
72
72
|
- Test script on multiple shells (bash, zsh)
|
|
73
73
|
|
|
74
|
-
2. **Pattern to Store in
|
|
74
|
+
2. **Pattern to Store in CodeSearch**:
|
|
75
75
|
```json
|
|
76
76
|
{
|
|
77
77
|
"type": "rust_borrow_checker_fix",
|
|
@@ -84,12 +84,12 @@ cargo check
|
|
|
84
84
|
|
|
85
85
|
3. **Integration Notes**:
|
|
86
86
|
- The fix script concept works well
|
|
87
|
-
- Pattern matching from
|
|
87
|
+
- Pattern matching from CodeSearch would improve fixes
|
|
88
88
|
- Direct integration with Cerebras would enhance automation
|
|
89
89
|
|
|
90
90
|
## Conclusion
|
|
91
91
|
|
|
92
|
-
The approach of fixing existing code with TDD +
|
|
92
|
+
The approach of fixing existing code with TDD + CodeSearch patterns is viable. The main script needs minor fixes for shell compatibility, but the core concept of:
|
|
93
93
|
1. Analyzing errors
|
|
94
94
|
2. Querying fix patterns
|
|
95
95
|
3. Applying solutions
|