claude-flow-guidance-implementation 0.1.0 → 0.1.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.
Files changed (258) hide show
  1. package/README.md +51 -75
  2. package/package.json +20 -1
  3. package/.agents/README.md +0 -38
  4. package/.agents/config.toml +0 -298
  5. package/.agents/skills/memory-management/SKILL.md +0 -126
  6. package/.agents/skills/memory-management/scripts/memory-backup.sh +0 -16
  7. package/.agents/skills/memory-management/scripts/memory-consolidate.sh +0 -11
  8. package/.agents/skills/security-audit/SKILL.md +0 -135
  9. package/.agents/skills/security-audit/scripts/cve-remediate.sh +0 -16
  10. package/.agents/skills/security-audit/scripts/security-scan.sh +0 -33
  11. package/.agents/skills/sparc-methodology/SKILL.md +0 -118
  12. package/.agents/skills/sparc-methodology/scripts/sparc-init.sh +0 -21
  13. package/.agents/skills/sparc-methodology/scripts/sparc-review.sh +0 -18
  14. package/.agents/skills/swarm-orchestration/SKILL.md +0 -114
  15. package/.agents/skills/swarm-orchestration/scripts/swarm-monitor.sh +0 -8
  16. package/.agents/skills/swarm-orchestration/scripts/swarm-start.sh +0 -14
  17. package/.claude/agents/analysis/analyze-code-quality.md +0 -179
  18. package/.claude/agents/analysis/code-analyzer.md +0 -210
  19. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -179
  20. package/.claude/agents/architecture/system-design/arch-system-design.md +0 -155
  21. package/.claude/agents/consensus/README.md +0 -253
  22. package/.claude/agents/consensus/byzantine-coordinator.md +0 -63
  23. package/.claude/agents/consensus/crdt-synchronizer.md +0 -997
  24. package/.claude/agents/consensus/gossip-coordinator.md +0 -63
  25. package/.claude/agents/consensus/performance-benchmarker.md +0 -851
  26. package/.claude/agents/consensus/quorum-manager.md +0 -823
  27. package/.claude/agents/consensus/raft-manager.md +0 -63
  28. package/.claude/agents/consensus/security-manager.md +0 -622
  29. package/.claude/agents/core/coder.md +0 -266
  30. package/.claude/agents/core/planner.md +0 -168
  31. package/.claude/agents/core/researcher.md +0 -190
  32. package/.claude/agents/core/reviewer.md +0 -326
  33. package/.claude/agents/core/tester.md +0 -319
  34. package/.claude/agents/custom/test-long-runner.md +0 -44
  35. package/.claude/agents/data/ml/data-ml-model.md +0 -193
  36. package/.claude/agents/development/backend/dev-backend-api.md +0 -142
  37. package/.claude/agents/development/dev-backend-api.md +0 -345
  38. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
  39. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
  40. package/.claude/agents/dual-mode/README.md +0 -94
  41. package/.claude/agents/dual-mode/codex-coordinator.md +0 -224
  42. package/.claude/agents/dual-mode/codex-worker.md +0 -211
  43. package/.claude/agents/dual-mode/dual-orchestrator.md +0 -291
  44. package/.claude/agents/flow-nexus/app-store.md +0 -88
  45. package/.claude/agents/flow-nexus/authentication.md +0 -69
  46. package/.claude/agents/flow-nexus/challenges.md +0 -81
  47. package/.claude/agents/flow-nexus/neural-network.md +0 -88
  48. package/.claude/agents/flow-nexus/payments.md +0 -83
  49. package/.claude/agents/flow-nexus/sandbox.md +0 -76
  50. package/.claude/agents/flow-nexus/swarm.md +0 -76
  51. package/.claude/agents/flow-nexus/user-tools.md +0 -96
  52. package/.claude/agents/flow-nexus/workflow.md +0 -84
  53. package/.claude/agents/github/code-review-swarm.md +0 -538
  54. package/.claude/agents/github/github-modes.md +0 -173
  55. package/.claude/agents/github/issue-tracker.md +0 -319
  56. package/.claude/agents/github/multi-repo-swarm.md +0 -553
  57. package/.claude/agents/github/pr-manager.md +0 -191
  58. package/.claude/agents/github/project-board-sync.md +0 -509
  59. package/.claude/agents/github/release-manager.md +0 -367
  60. package/.claude/agents/github/release-swarm.md +0 -583
  61. package/.claude/agents/github/repo-architect.md +0 -398
  62. package/.claude/agents/github/swarm-issue.md +0 -573
  63. package/.claude/agents/github/swarm-pr.md +0 -428
  64. package/.claude/agents/github/sync-coordinator.md +0 -452
  65. package/.claude/agents/github/workflow-automation.md +0 -635
  66. package/.claude/agents/goal/agent.md +0 -816
  67. package/.claude/agents/goal/code-goal-planner.md +0 -446
  68. package/.claude/agents/goal/goal-planner.md +0 -168
  69. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  70. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  71. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  72. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  73. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  74. package/.claude/agents/optimization/README.md +0 -250
  75. package/.claude/agents/optimization/benchmark-suite.md +0 -665
  76. package/.claude/agents/optimization/load-balancer.md +0 -431
  77. package/.claude/agents/optimization/performance-monitor.md +0 -672
  78. package/.claude/agents/optimization/resource-allocator.md +0 -674
  79. package/.claude/agents/optimization/topology-optimizer.md +0 -808
  80. package/.claude/agents/payments/agentic-payments.md +0 -126
  81. package/.claude/agents/sona/sona-learning-optimizer.md +0 -74
  82. package/.claude/agents/sparc/architecture.md +0 -472
  83. package/.claude/agents/sparc/pseudocode.md +0 -318
  84. package/.claude/agents/sparc/refinement.md +0 -525
  85. package/.claude/agents/sparc/specification.md +0 -276
  86. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -225
  87. package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
  88. package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
  89. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
  90. package/.claude/agents/sublinear/performance-optimizer.md +0 -368
  91. package/.claude/agents/sublinear/trading-predictor.md +0 -246
  92. package/.claude/agents/swarm/README.md +0 -190
  93. package/.claude/agents/swarm/adaptive-coordinator.md +0 -396
  94. package/.claude/agents/swarm/hierarchical-coordinator.md +0 -327
  95. package/.claude/agents/swarm/mesh-coordinator.md +0 -392
  96. package/.claude/agents/templates/automation-smart-agent.md +0 -205
  97. package/.claude/agents/templates/coordinator-swarm-init.md +0 -105
  98. package/.claude/agents/templates/github-pr-manager.md +0 -177
  99. package/.claude/agents/templates/implementer-sparc-coder.md +0 -259
  100. package/.claude/agents/templates/memory-coordinator.md +0 -187
  101. package/.claude/agents/templates/migration-plan.md +0 -746
  102. package/.claude/agents/templates/orchestrator-task.md +0 -139
  103. package/.claude/agents/templates/performance-analyzer.md +0 -199
  104. package/.claude/agents/templates/sparc-coordinator.md +0 -183
  105. package/.claude/agents/testing/production-validator.md +0 -395
  106. package/.claude/agents/testing/tdd-london-swarm.md +0 -244
  107. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  108. package/.claude/agents/testing/validation/production-validator.md +0 -395
  109. package/.claude/agents/v3/database-specialist.yaml +0 -21
  110. package/.claude/agents/v3/index.yaml +0 -17
  111. package/.claude/agents/v3/project-coordinator.yaml +0 -15
  112. package/.claude/agents/v3/python-specialist.yaml +0 -21
  113. package/.claude/agents/v3/test-architect.yaml +0 -20
  114. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  115. package/.claude/agents/v3/v3-integration-architect.md +0 -346
  116. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  117. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  118. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  119. package/.claude/agents/v3/v3-security-architect.md +0 -174
  120. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  121. package/.claude/commands/analysis/README.md +0 -9
  122. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  123. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  124. package/.claude/commands/analysis/performance-report.md +0 -25
  125. package/.claude/commands/analysis/token-efficiency.md +0 -45
  126. package/.claude/commands/analysis/token-usage.md +0 -25
  127. package/.claude/commands/automation/README.md +0 -9
  128. package/.claude/commands/automation/auto-agent.md +0 -122
  129. package/.claude/commands/automation/self-healing.md +0 -106
  130. package/.claude/commands/automation/session-memory.md +0 -90
  131. package/.claude/commands/automation/smart-agents.md +0 -73
  132. package/.claude/commands/automation/smart-spawn.md +0 -25
  133. package/.claude/commands/automation/workflow-select.md +0 -25
  134. package/.claude/commands/claude-flow-help.md +0 -103
  135. package/.claude/commands/claude-flow-memory.md +0 -107
  136. package/.claude/commands/claude-flow-swarm.md +0 -205
  137. package/.claude/commands/github/README.md +0 -11
  138. package/.claude/commands/github/code-review-swarm.md +0 -514
  139. package/.claude/commands/github/code-review.md +0 -25
  140. package/.claude/commands/github/github-modes.md +0 -147
  141. package/.claude/commands/github/github-swarm.md +0 -121
  142. package/.claude/commands/github/issue-tracker.md +0 -292
  143. package/.claude/commands/github/issue-triage.md +0 -25
  144. package/.claude/commands/github/multi-repo-swarm.md +0 -519
  145. package/.claude/commands/github/pr-enhance.md +0 -26
  146. package/.claude/commands/github/pr-manager.md +0 -170
  147. package/.claude/commands/github/project-board-sync.md +0 -471
  148. package/.claude/commands/github/release-manager.md +0 -338
  149. package/.claude/commands/github/release-swarm.md +0 -544
  150. package/.claude/commands/github/repo-analyze.md +0 -25
  151. package/.claude/commands/github/repo-architect.md +0 -367
  152. package/.claude/commands/github/swarm-issue.md +0 -482
  153. package/.claude/commands/github/swarm-pr.md +0 -285
  154. package/.claude/commands/github/sync-coordinator.md +0 -301
  155. package/.claude/commands/github/workflow-automation.md +0 -442
  156. package/.claude/commands/hooks/README.md +0 -11
  157. package/.claude/commands/hooks/overview.md +0 -58
  158. package/.claude/commands/hooks/post-edit.md +0 -117
  159. package/.claude/commands/hooks/post-task.md +0 -112
  160. package/.claude/commands/hooks/pre-edit.md +0 -113
  161. package/.claude/commands/hooks/pre-task.md +0 -111
  162. package/.claude/commands/hooks/session-end.md +0 -118
  163. package/.claude/commands/hooks/setup.md +0 -103
  164. package/.claude/commands/monitoring/README.md +0 -9
  165. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  166. package/.claude/commands/monitoring/agents.md +0 -44
  167. package/.claude/commands/monitoring/real-time-view.md +0 -25
  168. package/.claude/commands/monitoring/status.md +0 -46
  169. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  170. package/.claude/commands/optimization/README.md +0 -9
  171. package/.claude/commands/optimization/auto-topology.md +0 -62
  172. package/.claude/commands/optimization/cache-manage.md +0 -25
  173. package/.claude/commands/optimization/parallel-execute.md +0 -25
  174. package/.claude/commands/optimization/parallel-execution.md +0 -50
  175. package/.claude/commands/optimization/topology-optimize.md +0 -25
  176. package/.claude/commands/sparc/analyzer.md +0 -52
  177. package/.claude/commands/sparc/architect.md +0 -53
  178. package/.claude/commands/sparc/ask.md +0 -97
  179. package/.claude/commands/sparc/batch-executor.md +0 -54
  180. package/.claude/commands/sparc/code.md +0 -89
  181. package/.claude/commands/sparc/coder.md +0 -54
  182. package/.claude/commands/sparc/debug.md +0 -83
  183. package/.claude/commands/sparc/debugger.md +0 -54
  184. package/.claude/commands/sparc/designer.md +0 -53
  185. package/.claude/commands/sparc/devops.md +0 -109
  186. package/.claude/commands/sparc/docs-writer.md +0 -80
  187. package/.claude/commands/sparc/documenter.md +0 -54
  188. package/.claude/commands/sparc/innovator.md +0 -54
  189. package/.claude/commands/sparc/integration.md +0 -83
  190. package/.claude/commands/sparc/mcp.md +0 -117
  191. package/.claude/commands/sparc/memory-manager.md +0 -54
  192. package/.claude/commands/sparc/optimizer.md +0 -54
  193. package/.claude/commands/sparc/orchestrator.md +0 -132
  194. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
  195. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
  196. package/.claude/commands/sparc/researcher.md +0 -54
  197. package/.claude/commands/sparc/reviewer.md +0 -54
  198. package/.claude/commands/sparc/security-review.md +0 -80
  199. package/.claude/commands/sparc/sparc-modes.md +0 -174
  200. package/.claude/commands/sparc/sparc.md +0 -111
  201. package/.claude/commands/sparc/spec-pseudocode.md +0 -80
  202. package/.claude/commands/sparc/supabase-admin.md +0 -348
  203. package/.claude/commands/sparc/swarm-coordinator.md +0 -54
  204. package/.claude/commands/sparc/tdd.md +0 -54
  205. package/.claude/commands/sparc/tester.md +0 -54
  206. package/.claude/commands/sparc/tutorial.md +0 -79
  207. package/.claude/commands/sparc/workflow-manager.md +0 -54
  208. package/.claude/helpers/hook-handler.cjs +0 -168
  209. package/.claude/helpers/intelligence.cjs +0 -197
  210. package/.claude/helpers/memory.js +0 -83
  211. package/.claude/helpers/post-commit +0 -16
  212. package/.claude/helpers/pre-commit +0 -26
  213. package/.claude/helpers/router.js +0 -66
  214. package/.claude/helpers/session.js +0 -127
  215. package/.claude/settings.json +0 -250
  216. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  217. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  218. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  219. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  220. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  221. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  222. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  223. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  224. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  225. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  226. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  227. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  228. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  229. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  230. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
  231. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +0 -87
  232. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -10
  233. package/.claude/skills/skill-builder/SKILL.md +0 -910
  234. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  235. package/.claude/skills/stream-chain/SKILL.md +0 -563
  236. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  237. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  238. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  239. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  240. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  241. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  242. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  243. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  244. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  245. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  246. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  247. package/.claude/skills/verification-quality/SKILL.md +0 -649
  248. package/.claude/statusline.mjs +0 -109
  249. package/.claude/statusline.sh +0 -375
  250. package/.claude-flow/CAPABILITIES.md +0 -403
  251. package/.claude-flow/config.yaml +0 -43
  252. package/.claude-flow/metrics/learning.json +0 -17
  253. package/.claude-flow/metrics/swarm-activity.json +0 -18
  254. package/.claude-flow/metrics/v3-progress.json +0 -26
  255. package/.claude-flow/security/audit-status.json +0 -8
  256. package/.mcp.json +0 -20
  257. package/AGENTS.md +0 -145
  258. package/CLAUDE.md +0 -188
package/README.md CHANGED
@@ -1,115 +1,91 @@
1
1
  # claude-flow-guidance-implementation
2
2
 
3
- Reusable implementation kit for wiring `@claude-flow/guidance` into any repo with:
4
- - guidance runtime scripts
3
+ NPM-first implementation kit for wiring `@claude-flow/guidance` into any repository.
4
+
5
+ It installs a reusable guidance control plane with:
5
6
  - Claude Code hook bridge
7
+ - Codex lifecycle bridge
8
+ - guidance runtime scripts
6
9
  - autopilot promotion loop (`CLAUDE.local.md` -> `CLAUDE.md`)
7
- - verification runbook and docs
8
-
9
- ## What this repo provides
10
-
11
- - A reusable scaffold under `scaffold/`:
12
- - `.claude/helpers/hook-handler.cjs`
13
- - `scripts/guidance-*.js`
14
- - `src/guidance/*.js`
15
- - docs
16
- - An installer CLI:
17
- - `cf-guidance-impl install --target <repo>`
18
- - `cf-guidance-impl verify --target <repo>`
19
- - JSON merge logic for:
20
- - `package.json` scripts + dependencies
21
- - `.claude/settings.json` env + hooks
22
- - `.agents/config.toml` Codex bridge section
23
- - `AGENTS.md` Codex lifecycle usage section
10
+ - verification tooling
24
11
 
25
- ## Quickstart
12
+ ## Install and run
13
+
14
+ Use directly from npm (no clone required):
26
15
 
27
16
  ```bash
28
- # clone this toolkit
29
- cd ~/source
30
- git clone https://github.com/sparkling/claude-flow-guidance-implementation.git
31
- cd claude-flow-guidance-implementation
17
+ npx --yes -p claude-flow-guidance-implementation cf-guidance-impl init --target ~/source/my-project --install-deps
18
+ ```
32
19
 
33
- # initialize + wire another repo (runs `claude-flow init --dual`, install, verify)
34
- node bin/cf-guidance-impl.mjs init --target ~/source/my-project --install-deps
20
+ Or install as a dev dependency:
35
21
 
36
- # verify the wiring
37
- node bin/cf-guidance-impl.mjs verify --target ~/source/my-project
22
+ ```bash
23
+ npm i -D claude-flow-guidance-implementation
24
+ npx cf-guidance-impl init --target ~/source/my-project --install-deps
38
25
  ```
39
26
 
40
- Init command options:
41
- - `--no-dual`: run `claude-flow init` without `--dual`
42
- - `--skip-cf-init`: skip `claude-flow init` and only apply toolkit wiring
43
- - `--no-verify`: skip post-install verification
27
+ ## Quickstart
44
28
 
45
- ## Integration modes for other repos
29
+ ```bash
30
+ # 1) initialize and wire a target repo
31
+ npx --yes -p claude-flow-guidance-implementation cf-guidance-impl init --target ~/source/my-project --install-deps
46
32
 
47
- ## 1) Central toolkit mode (recommended)
48
- Keep this repo as a shared toolkit and run installer into target repos:
33
+ # 2) verify wiring
34
+ npx --yes -p claude-flow-guidance-implementation cf-guidance-impl verify --target ~/source/my-project
35
+ ```
36
+
37
+ ## CLI commands
49
38
 
50
39
  ```bash
51
- node ~/source/claude-flow-guidance-implementation/bin/cf-guidance-impl.mjs init --target ~/source/repo-a --install-deps
52
- node ~/source/claude-flow-guidance-implementation/bin/cf-guidance-impl.mjs init --target ~/source/repo-b --install-deps
40
+ cf-guidance-impl init --target <repoPath> [--force] [--install-deps] [--no-dual] [--skip-cf-init] [--no-verify]
41
+ cf-guidance-impl install --target <repoPath> [--force] [--install-deps]
42
+ cf-guidance-impl verify --target <repoPath>
53
43
  ```
54
44
 
55
- ## 2) Submodule mode
56
- Add this repo as a submodule in each project and invoke the installer from there.
57
-
58
- ## 3) Copy mode
59
- Copy `scaffold/` manually and merge settings/scripts manually.
45
+ ## What `init` does
60
46
 
61
- ## What gets wired in the target repo
47
+ `cf-guidance-impl init` performs:
48
+ 1. `npx @claude-flow/cli@latest init --dual` in target repo (unless `--skip-cf-init`)
49
+ 2. installs scaffold runtime files (`scripts/`, `src/guidance/`, `.claude/helpers/hook-handler.cjs`, docs)
50
+ 3. merges target `package.json` scripts + guidance deps
51
+ 4. merges `.claude/settings.json` env and hook blocks
52
+ 5. appends Codex bridge sections to `.agents/config.toml` and `AGENTS.md`
53
+ 6. creates `CLAUDE.local.md` stub and updates `.gitignore`
54
+ 7. verifies wiring (unless `--no-verify`)
62
55
 
63
- - Hook flow: `PreToolUse`/`PostToolUse`/`SessionStart`/`SessionEnd`
64
- - Guidance events: `pre-command`, `pre-edit`, `pre-task`, `post-edit`, `post-task`, `session-end`
65
- - Codex lifecycle bridge: `scripts/guidance-codex-bridge.js`
66
- - Background session-end autopilot launch
67
- - NPM wrappers:
68
- - `guidance:analyze`, `guidance:status`, `guidance:all`
69
- - `guidance:optimize`, `guidance:ab-benchmark`
70
- - `guidance:scaffold`
71
- - `guidance:autopilot:once`, `guidance:autopilot:daemon`
72
- - `guidance:codex:status`
73
- - `guidance:codex:pre-command`, `guidance:codex:pre-edit`, `guidance:codex:pre-task`
74
- - `guidance:codex:post-edit`, `guidance:codex:post-task`
75
- - `guidance:codex:session-start`, `guidance:codex:session-end`
56
+ ## Codex lifecycle integration
76
57
 
77
- ## Codex integration runbook
58
+ After installation, these scripts are available in the target repo:
78
59
 
79
60
  ```bash
80
- # initialize lifecycle context
81
61
  npm run guidance:codex:session-start
82
-
83
- # gate the task and operations
84
62
  npm run guidance:codex:pre-task -- --task-id task-123 --description "Implement feature X"
85
63
  npm run guidance:codex:pre-command -- --task-id task-123 --command "git status"
86
64
  npm run guidance:codex:pre-edit -- --task-id task-123 --file src/example.ts --operation modify
87
-
88
- # record completion
89
65
  npm run guidance:codex:post-edit -- --task-id task-123 --file src/example.ts
90
66
  npm run guidance:codex:post-task -- --task-id task-123 --status completed --description "Implement feature X"
91
67
  npm run guidance:codex:session-end -- --task-id task-123
92
68
  ```
93
69
 
94
- Validation:
70
+ Validation smoke check:
71
+
95
72
  ```bash
96
73
  npm run guidance:codex:status
97
74
  npm run guidance:codex:pre-task -- --task-id smoke-1 --description "smoke" --skip-cf-hooks
98
75
  ```
99
76
 
100
- Expected output is JSON:
101
- - `handler.ok: true` means local bridge + hook-handler path passed.
102
- - `claudeFlowHook.ok: true` means secondary `@claude-flow/cli` hook invocation passed.
77
+ Expected JSON output:
78
+ - `handler.ok: true` -> local bridge + hook-handler path succeeded
79
+ - `claudeFlowHook.ok: true` -> secondary `@claude-flow/cli` hook invocation succeeded
103
80
 
104
- ## Swarm commands
81
+ ## Notes
105
82
 
106
- ```bash
107
- npm run swarm:init
108
- npm run swarm:route
109
- ```
83
+ - Target repo config is merged, not replaced.
84
+ - Default local guidance file is `CLAUDE.local.md` (gitignored).
85
+ - Advanced reference docs are installed into target `docs/`.
110
86
 
111
- ## Notes
87
+ ## Links
112
88
 
113
- - Existing target repo config is merged, not replaced.
114
- - `CLAUDE.local.md` is created if missing and added to `.gitignore`.
115
- - The scaffold includes docs that explain operational details.
89
+ - GitHub: https://github.com/sparkling/claude-flow-guidance-implementation
90
+ - Issues: https://github.com/sparkling/claude-flow-guidance-implementation/issues
91
+ - Package: https://www.npmjs.com/package/claude-flow-guidance-implementation
package/package.json CHANGED
@@ -1,9 +1,25 @@
1
1
  {
2
2
  "name": "claude-flow-guidance-implementation",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Reusable guidance control-plane implementation kit for wiring @claude-flow/guidance into any repo",
5
5
  "type": "module",
6
6
  "private": false,
7
+ "author": "Sparkling Ideas <henrik@sparklingideas.co.uk>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/sparkling/claude-flow-guidance-implementation.git"
11
+ },
12
+ "homepage": "https://github.com/sparkling/claude-flow-guidance-implementation#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/sparkling/claude-flow-guidance-implementation/issues"
15
+ },
16
+ "files": [
17
+ "bin",
18
+ "src",
19
+ "scaffold",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
7
23
  "bin": {
8
24
  "cf-guidance-impl": "bin/cf-guidance-impl.mjs"
9
25
  },
@@ -15,6 +31,9 @@
15
31
  "keywords": [
16
32
  "claude-flow",
17
33
  "guidance",
34
+ "codex",
35
+ "claude-md",
36
+ "agentic",
18
37
  "hooks",
19
38
  "claude-code",
20
39
  "automation"
package/.agents/README.md DELETED
@@ -1,38 +0,0 @@
1
- # .agents Directory
2
-
3
- This directory contains agent configuration and skills for OpenAI Codex CLI.
4
-
5
- ## Structure
6
-
7
- ```
8
- .agents/
9
- config.toml # Main configuration file
10
- skills/ # Skill definitions
11
- skill-name/
12
- SKILL.md # Skill instructions
13
- scripts/ # Optional scripts
14
- docs/ # Optional documentation
15
- README.md # This file
16
- ```
17
-
18
- ## Configuration
19
-
20
- The `config.toml` file controls:
21
- - Model selection
22
- - Approval policies
23
- - Sandbox modes
24
- - MCP server connections
25
- - Skills configuration
26
-
27
- ## Skills
28
-
29
- Skills are invoked using `$skill-name` syntax. Each skill has:
30
- - YAML frontmatter with metadata
31
- - Trigger and skip conditions
32
- - Commands and examples
33
-
34
- ## Documentation
35
-
36
- - Main instructions: `AGENTS.md` (project root)
37
- - Local overrides: `.codex/AGENTS.override.md` (gitignored)
38
- - Claude Flow: https://github.com/ruvnet/claude-flow
@@ -1,298 +0,0 @@
1
- # =============================================================================
2
- # Claude Flow V3 - Codex Configuration
3
- # =============================================================================
4
- # Generated by: @claude-flow/codex
5
- # Documentation: https://github.com/ruvnet/claude-flow
6
- #
7
- # This file configures the Codex CLI for Claude Flow integration.
8
- # Place in .agents/config.toml (project) or .codex/config.toml (user).
9
- # =============================================================================
10
-
11
- # =============================================================================
12
- # Core Settings
13
- # =============================================================================
14
-
15
- # Model selection - the AI model to use for code generation
16
- # Options: gpt-5.3-codex, gpt-4o, claude-sonnet, claude-opus
17
- model = "gpt-5.3-codex"
18
-
19
- # Approval policy determines when human approval is required
20
- # - untrusted: Always require approval
21
- # - on-failure: Require approval only after failures
22
- # - on-request: Require approval for significant changes
23
- # - never: Auto-approve all actions (use with caution)
24
- approval_policy = "on-request"
25
-
26
- # Sandbox mode controls file system access
27
- # - read-only: Can only read files, no modifications
28
- # - workspace-write: Can write within workspace directory
29
- # - danger-full-access: Full file system access (dangerous)
30
- sandbox_mode = "workspace-write"
31
-
32
- # Web search enables internet access for research
33
- # - disabled: No web access
34
- # - cached: Use cached results when available
35
- # - live: Always fetch fresh results
36
- web_search = "cached"
37
-
38
- # =============================================================================
39
- # Project Documentation
40
- # =============================================================================
41
-
42
- # Maximum bytes to read from AGENTS.md files
43
- project_doc_max_bytes = 65536
44
-
45
- # Fallback filenames if AGENTS.md not found
46
- project_doc_fallback_filenames = [
47
- "AGENTS.md",
48
- "TEAM_GUIDE.md",
49
- ".agents.md"
50
- ]
51
-
52
- # =============================================================================
53
- # Features
54
- # =============================================================================
55
-
56
- [features]
57
- # Enable child AGENTS.md guidance
58
- child_agents_md = true
59
-
60
- # Cache shell environment for faster repeated commands
61
- shell_snapshot = true
62
-
63
- # Smart approvals based on request context
64
- request_rule = true
65
-
66
- # Enable remote compaction for large histories
67
- remote_compaction = true
68
-
69
- # =============================================================================
70
- # MCP Servers
71
- # =============================================================================
72
-
73
- [mcp_servers.claude-flow]
74
- command = "npx"
75
- args = ["-y", "@claude-flow/cli@latest"]
76
- enabled = true
77
- tool_timeout_sec = 120
78
-
79
- # =============================================================================
80
- # Skills Configuration
81
- # =============================================================================
82
-
83
- [[skills.config]]
84
- path = ".agents/skills/swarm-orchestration"
85
- enabled = true
86
-
87
- [[skills.config]]
88
- path = ".agents/skills/memory-management"
89
- enabled = true
90
-
91
- [[skills.config]]
92
- path = ".agents/skills/sparc-methodology"
93
- enabled = true
94
-
95
- [[skills.config]]
96
- path = ".agents/skills/security-audit"
97
- enabled = true
98
-
99
- # =============================================================================
100
- # Profiles
101
- # =============================================================================
102
-
103
- # Development profile - more permissive for local work
104
- [profiles.dev]
105
- approval_policy = "never"
106
- sandbox_mode = "danger-full-access"
107
- web_search = "live"
108
-
109
- # Safe profile - maximum restrictions
110
- [profiles.safe]
111
- approval_policy = "untrusted"
112
- sandbox_mode = "read-only"
113
- web_search = "disabled"
114
-
115
- # CI profile - for automated pipelines
116
- [profiles.ci]
117
- approval_policy = "never"
118
- sandbox_mode = "workspace-write"
119
- web_search = "cached"
120
-
121
- # =============================================================================
122
- # History
123
- # =============================================================================
124
-
125
- [history]
126
- # Save all session transcripts
127
- persistence = "save-all"
128
-
129
- # =============================================================================
130
- # Shell Environment
131
- # =============================================================================
132
-
133
- [shell_environment_policy]
134
- # Inherit environment variables
135
- inherit = "core"
136
-
137
- # Exclude sensitive variables
138
- exclude = ["*_KEY", "*_SECRET", "*_TOKEN", "*_PASSWORD"]
139
-
140
- # =============================================================================
141
- # Sandbox Workspace Write Settings
142
- # =============================================================================
143
-
144
- [sandbox_workspace_write]
145
- # Additional writable paths beyond workspace
146
- writable_roots = []
147
-
148
- # Allow network access
149
- network_access = true
150
-
151
- # Exclude temp directories
152
- exclude_slash_tmp = false
153
-
154
- # =============================================================================
155
- # Security Settings
156
- # =============================================================================
157
-
158
- [security]
159
- # Enable input validation for all user inputs
160
- input_validation = true
161
-
162
- # Prevent directory traversal attacks
163
- path_traversal_prevention = true
164
-
165
- # Scan for hardcoded secrets
166
- secret_scanning = true
167
-
168
- # Scan dependencies for known CVEs
169
- cve_scanning = true
170
-
171
- # Maximum file size for operations (bytes)
172
- max_file_size = 10485760
173
-
174
- # Allowed file extensions (empty = allow all)
175
- allowed_extensions = []
176
-
177
- # Blocked file patterns (regex)
178
- blocked_patterns = ["\\.env$", "credentials\\.json$", "\\.pem$", "\\.key$"]
179
-
180
- # =============================================================================
181
- # Performance Settings
182
- # =============================================================================
183
-
184
- [performance]
185
- # Maximum concurrent agents
186
- max_agents = 8
187
-
188
- # Task timeout in seconds
189
- task_timeout = 300
190
-
191
- # Memory limit per agent
192
- memory_limit = "512MB"
193
-
194
- # Enable response caching
195
- cache_enabled = true
196
-
197
- # Cache TTL in seconds
198
- cache_ttl = 3600
199
-
200
- # Enable parallel task execution
201
- parallel_execution = true
202
-
203
- # =============================================================================
204
- # Logging Settings
205
- # =============================================================================
206
-
207
- [logging]
208
- # Log level: debug, info, warn, error
209
- level = "info"
210
-
211
- # Log format: json, text, pretty
212
- format = "pretty"
213
-
214
- # Log destination: stdout, file, both
215
- destination = "stdout"
216
-
217
- # =============================================================================
218
- # Neural Intelligence Settings
219
- # =============================================================================
220
-
221
- [neural]
222
- # Enable SONA (Self-Optimizing Neural Architecture)
223
- sona_enabled = true
224
-
225
- # Enable HNSW vector search
226
- hnsw_enabled = true
227
-
228
- # HNSW index parameters
229
- hnsw_m = 16
230
- hnsw_ef_construction = 200
231
- hnsw_ef_search = 100
232
-
233
- # Enable pattern learning
234
- pattern_learning = true
235
-
236
- # Learning rate for neural adaptation
237
- learning_rate = 0.01
238
-
239
- # =============================================================================
240
- # Swarm Orchestration Settings
241
- # =============================================================================
242
-
243
- [swarm]
244
- # Default topology: hierarchical, mesh, ring, star
245
- default_topology = "hierarchical"
246
-
247
- # Default strategy: balanced, specialized, adaptive
248
- default_strategy = "specialized"
249
-
250
- # Consensus algorithm: raft, byzantine, gossip
251
- consensus = "raft"
252
-
253
- # Enable anti-drift measures
254
- anti_drift = true
255
-
256
- # Checkpoint interval (tasks)
257
- checkpoint_interval = 10
258
-
259
- # =============================================================================
260
- # Hooks Configuration
261
- # =============================================================================
262
-
263
- [hooks]
264
- # Enable lifecycle hooks
265
- enabled = true
266
-
267
- # Pre-task hook
268
- pre_task = true
269
-
270
- # Post-task hook (for learning)
271
- post_task = true
272
-
273
- # Enable neural training on post-edit
274
- train_on_edit = true
275
-
276
- # =============================================================================
277
- # Background Workers
278
- # =============================================================================
279
-
280
- [workers]
281
- # Enable background workers
282
- enabled = true
283
-
284
- # Worker configuration
285
- [workers.audit]
286
- enabled = true
287
- priority = "critical"
288
- interval = 300
289
-
290
- [workers.optimize]
291
- enabled = true
292
- priority = "high"
293
- interval = 600
294
-
295
- [workers.consolidate]
296
- enabled = true
297
- priority = "low"
298
- interval = 1800
@@ -1,126 +0,0 @@
1
- ---
2
- name: memory-management
3
- description: >
4
- AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management.
5
- Use when: need to store successful patterns, searching for similar solutions, semantic lookup of past work, learning from previous tasks, sharing knowledge between agents, building knowledge base.
6
- Skip when: no learning needed, ephemeral one-off tasks, external data sources available, read-only exploration.
7
- ---
8
-
9
- # Memory Management Skill
10
-
11
- ## Purpose
12
- AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management.
13
-
14
- ## When to Trigger
15
- - need to store successful patterns
16
- - searching for similar solutions
17
- - semantic lookup of past work
18
- - learning from previous tasks
19
- - sharing knowledge between agents
20
- - building knowledge base
21
-
22
- ## When to Skip
23
- - no learning needed
24
- - ephemeral one-off tasks
25
- - external data sources available
26
- - read-only exploration
27
-
28
- ## Commands
29
-
30
- ### Store Pattern
31
- Store a pattern or knowledge item in memory
32
-
33
- ```bash
34
- npx @claude-flow/cli memory store --key "[key]" --value "[value]" --namespace patterns
35
- ```
36
-
37
- **Example:**
38
- ```bash
39
- npx @claude-flow/cli memory store --key "auth-jwt-pattern" --value "JWT validation with refresh tokens" --namespace patterns
40
- ```
41
-
42
- ### Semantic Search
43
- Search memory using semantic similarity
44
-
45
- ```bash
46
- npx @claude-flow/cli memory search --query "[search terms]" --limit 10
47
- ```
48
-
49
- **Example:**
50
- ```bash
51
- npx @claude-flow/cli memory search --query "authentication best practices" --limit 5
52
- ```
53
-
54
- ### Retrieve Entry
55
- Retrieve a specific memory entry by key
56
-
57
- ```bash
58
- npx @claude-flow/cli memory get --key "[key]" --namespace [namespace]
59
- ```
60
-
61
- **Example:**
62
- ```bash
63
- npx @claude-flow/cli memory get --key "auth-jwt-pattern" --namespace patterns
64
- ```
65
-
66
- ### List Entries
67
- List all entries in a namespace
68
-
69
- ```bash
70
- npx @claude-flow/cli memory list --namespace [namespace]
71
- ```
72
-
73
- **Example:**
74
- ```bash
75
- npx @claude-flow/cli memory list --namespace patterns --limit 20
76
- ```
77
-
78
- ### Delete Entry
79
- Delete a memory entry
80
-
81
- ```bash
82
- npx @claude-flow/cli memory delete --key "[key]" --namespace [namespace]
83
- ```
84
-
85
- ### Initialize HNSW Index
86
- Initialize HNSW vector search index
87
-
88
- ```bash
89
- npx @claude-flow/cli memory init --enable-hnsw
90
- ```
91
-
92
- ### Memory Stats
93
- Show memory usage statistics
94
-
95
- ```bash
96
- npx @claude-flow/cli memory stats
97
- ```
98
-
99
- ### Export Memory
100
- Export memory to JSON
101
-
102
- ```bash
103
- npx @claude-flow/cli memory export --output memory-backup.json
104
- ```
105
-
106
-
107
- ## Scripts
108
-
109
- | Script | Path | Description |
110
- |--------|------|-------------|
111
- | `memory-backup` | `.agents/scripts/memory-backup.sh` | Backup memory to external storage |
112
- | `memory-consolidate` | `.agents/scripts/memory-consolidate.sh` | Consolidate and optimize memory |
113
-
114
-
115
- ## References
116
-
117
- | Document | Path | Description |
118
- |----------|------|-------------|
119
- | `HNSW Guide` | `docs/hnsw.md` | HNSW vector search configuration |
120
- | `Memory Schema` | `docs/memory-schema.md` | Memory namespace and schema reference |
121
-
122
- ## Best Practices
123
- 1. Check memory for existing patterns before starting
124
- 2. Use hierarchical topology for coordination
125
- 3. Store successful patterns after completion
126
- 4. Document any new learnings
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
- # Memory Management - Backup Script
3
- # Export memory to backup file
4
-
5
- set -e
6
-
7
- BACKUP_DIR="${BACKUP_DIR:-./.backups}"
8
- TIMESTAMP=$(date +%Y%m%d_%H%M%S)
9
- BACKUP_FILE="${BACKUP_DIR}/memory_${TIMESTAMP}.json"
10
-
11
- mkdir -p "$BACKUP_DIR"
12
-
13
- echo "Backing up memory to $BACKUP_FILE..."
14
- npx @claude-flow/cli memory export --output "$BACKUP_FILE"
15
-
16
- echo "Backup complete: $BACKUP_FILE"
@@ -1,11 +0,0 @@
1
- #!/bin/bash
2
- # Memory Management - Consolidate Script
3
- # Optimize and consolidate memory
4
-
5
- set -e
6
-
7
- echo "Running memory consolidation..."
8
- npx @claude-flow/cli hooks worker dispatch --trigger consolidate
9
-
10
- echo "Memory consolidation complete"
11
- npx @claude-flow/cli memory stats