claude-flow-guidance-implementation 0.1.0

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 (275) hide show
  1. package/.agents/README.md +38 -0
  2. package/.agents/config.toml +298 -0
  3. package/.agents/skills/memory-management/SKILL.md +126 -0
  4. package/.agents/skills/memory-management/scripts/memory-backup.sh +16 -0
  5. package/.agents/skills/memory-management/scripts/memory-consolidate.sh +11 -0
  6. package/.agents/skills/security-audit/SKILL.md +135 -0
  7. package/.agents/skills/security-audit/scripts/cve-remediate.sh +16 -0
  8. package/.agents/skills/security-audit/scripts/security-scan.sh +33 -0
  9. package/.agents/skills/sparc-methodology/SKILL.md +118 -0
  10. package/.agents/skills/sparc-methodology/scripts/sparc-init.sh +21 -0
  11. package/.agents/skills/sparc-methodology/scripts/sparc-review.sh +18 -0
  12. package/.agents/skills/swarm-orchestration/SKILL.md +114 -0
  13. package/.agents/skills/swarm-orchestration/scripts/swarm-monitor.sh +8 -0
  14. package/.agents/skills/swarm-orchestration/scripts/swarm-start.sh +14 -0
  15. package/.claude/agents/analysis/analyze-code-quality.md +179 -0
  16. package/.claude/agents/analysis/code-analyzer.md +210 -0
  17. package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
  18. package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
  19. package/.claude/agents/consensus/README.md +253 -0
  20. package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
  21. package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
  22. package/.claude/agents/consensus/gossip-coordinator.md +63 -0
  23. package/.claude/agents/consensus/performance-benchmarker.md +851 -0
  24. package/.claude/agents/consensus/quorum-manager.md +823 -0
  25. package/.claude/agents/consensus/raft-manager.md +63 -0
  26. package/.claude/agents/consensus/security-manager.md +622 -0
  27. package/.claude/agents/core/coder.md +266 -0
  28. package/.claude/agents/core/planner.md +168 -0
  29. package/.claude/agents/core/researcher.md +190 -0
  30. package/.claude/agents/core/reviewer.md +326 -0
  31. package/.claude/agents/core/tester.md +319 -0
  32. package/.claude/agents/custom/test-long-runner.md +44 -0
  33. package/.claude/agents/data/ml/data-ml-model.md +193 -0
  34. package/.claude/agents/development/backend/dev-backend-api.md +142 -0
  35. package/.claude/agents/development/dev-backend-api.md +345 -0
  36. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  37. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  38. package/.claude/agents/dual-mode/README.md +94 -0
  39. package/.claude/agents/dual-mode/codex-coordinator.md +224 -0
  40. package/.claude/agents/dual-mode/codex-worker.md +211 -0
  41. package/.claude/agents/dual-mode/dual-orchestrator.md +291 -0
  42. package/.claude/agents/flow-nexus/app-store.md +88 -0
  43. package/.claude/agents/flow-nexus/authentication.md +69 -0
  44. package/.claude/agents/flow-nexus/challenges.md +81 -0
  45. package/.claude/agents/flow-nexus/neural-network.md +88 -0
  46. package/.claude/agents/flow-nexus/payments.md +83 -0
  47. package/.claude/agents/flow-nexus/sandbox.md +76 -0
  48. package/.claude/agents/flow-nexus/swarm.md +76 -0
  49. package/.claude/agents/flow-nexus/user-tools.md +96 -0
  50. package/.claude/agents/flow-nexus/workflow.md +84 -0
  51. package/.claude/agents/github/code-review-swarm.md +538 -0
  52. package/.claude/agents/github/github-modes.md +173 -0
  53. package/.claude/agents/github/issue-tracker.md +319 -0
  54. package/.claude/agents/github/multi-repo-swarm.md +553 -0
  55. package/.claude/agents/github/pr-manager.md +191 -0
  56. package/.claude/agents/github/project-board-sync.md +509 -0
  57. package/.claude/agents/github/release-manager.md +367 -0
  58. package/.claude/agents/github/release-swarm.md +583 -0
  59. package/.claude/agents/github/repo-architect.md +398 -0
  60. package/.claude/agents/github/swarm-issue.md +573 -0
  61. package/.claude/agents/github/swarm-pr.md +428 -0
  62. package/.claude/agents/github/sync-coordinator.md +452 -0
  63. package/.claude/agents/github/workflow-automation.md +635 -0
  64. package/.claude/agents/goal/agent.md +816 -0
  65. package/.claude/agents/goal/code-goal-planner.md +446 -0
  66. package/.claude/agents/goal/goal-planner.md +168 -0
  67. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
  68. package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
  69. package/.claude/agents/hive-mind/scout-explorer.md +242 -0
  70. package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
  71. package/.claude/agents/hive-mind/worker-specialist.md +217 -0
  72. package/.claude/agents/optimization/README.md +250 -0
  73. package/.claude/agents/optimization/benchmark-suite.md +665 -0
  74. package/.claude/agents/optimization/load-balancer.md +431 -0
  75. package/.claude/agents/optimization/performance-monitor.md +672 -0
  76. package/.claude/agents/optimization/resource-allocator.md +674 -0
  77. package/.claude/agents/optimization/topology-optimizer.md +808 -0
  78. package/.claude/agents/payments/agentic-payments.md +126 -0
  79. package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
  80. package/.claude/agents/sparc/architecture.md +472 -0
  81. package/.claude/agents/sparc/pseudocode.md +318 -0
  82. package/.claude/agents/sparc/refinement.md +525 -0
  83. package/.claude/agents/sparc/specification.md +276 -0
  84. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
  85. package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
  86. package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
  87. package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
  88. package/.claude/agents/sublinear/performance-optimizer.md +368 -0
  89. package/.claude/agents/sublinear/trading-predictor.md +246 -0
  90. package/.claude/agents/swarm/README.md +190 -0
  91. package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  92. package/.claude/agents/swarm/hierarchical-coordinator.md +327 -0
  93. package/.claude/agents/swarm/mesh-coordinator.md +392 -0
  94. package/.claude/agents/templates/automation-smart-agent.md +205 -0
  95. package/.claude/agents/templates/coordinator-swarm-init.md +105 -0
  96. package/.claude/agents/templates/github-pr-manager.md +177 -0
  97. package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  98. package/.claude/agents/templates/memory-coordinator.md +187 -0
  99. package/.claude/agents/templates/migration-plan.md +746 -0
  100. package/.claude/agents/templates/orchestrator-task.md +139 -0
  101. package/.claude/agents/templates/performance-analyzer.md +199 -0
  102. package/.claude/agents/templates/sparc-coordinator.md +183 -0
  103. package/.claude/agents/testing/production-validator.md +395 -0
  104. package/.claude/agents/testing/tdd-london-swarm.md +244 -0
  105. package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  106. package/.claude/agents/testing/validation/production-validator.md +395 -0
  107. package/.claude/agents/v3/database-specialist.yaml +21 -0
  108. package/.claude/agents/v3/index.yaml +17 -0
  109. package/.claude/agents/v3/project-coordinator.yaml +15 -0
  110. package/.claude/agents/v3/python-specialist.yaml +21 -0
  111. package/.claude/agents/v3/test-architect.yaml +20 -0
  112. package/.claude/agents/v3/typescript-specialist.yaml +21 -0
  113. package/.claude/agents/v3/v3-integration-architect.md +346 -0
  114. package/.claude/agents/v3/v3-memory-specialist.md +318 -0
  115. package/.claude/agents/v3/v3-performance-engineer.md +397 -0
  116. package/.claude/agents/v3/v3-queen-coordinator.md +98 -0
  117. package/.claude/agents/v3/v3-security-architect.md +174 -0
  118. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  119. package/.claude/commands/analysis/README.md +9 -0
  120. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  121. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  122. package/.claude/commands/analysis/performance-report.md +25 -0
  123. package/.claude/commands/analysis/token-efficiency.md +45 -0
  124. package/.claude/commands/analysis/token-usage.md +25 -0
  125. package/.claude/commands/automation/README.md +9 -0
  126. package/.claude/commands/automation/auto-agent.md +122 -0
  127. package/.claude/commands/automation/self-healing.md +106 -0
  128. package/.claude/commands/automation/session-memory.md +90 -0
  129. package/.claude/commands/automation/smart-agents.md +73 -0
  130. package/.claude/commands/automation/smart-spawn.md +25 -0
  131. package/.claude/commands/automation/workflow-select.md +25 -0
  132. package/.claude/commands/claude-flow-help.md +103 -0
  133. package/.claude/commands/claude-flow-memory.md +107 -0
  134. package/.claude/commands/claude-flow-swarm.md +205 -0
  135. package/.claude/commands/github/README.md +11 -0
  136. package/.claude/commands/github/code-review-swarm.md +514 -0
  137. package/.claude/commands/github/code-review.md +25 -0
  138. package/.claude/commands/github/github-modes.md +147 -0
  139. package/.claude/commands/github/github-swarm.md +121 -0
  140. package/.claude/commands/github/issue-tracker.md +292 -0
  141. package/.claude/commands/github/issue-triage.md +25 -0
  142. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  143. package/.claude/commands/github/pr-enhance.md +26 -0
  144. package/.claude/commands/github/pr-manager.md +170 -0
  145. package/.claude/commands/github/project-board-sync.md +471 -0
  146. package/.claude/commands/github/release-manager.md +338 -0
  147. package/.claude/commands/github/release-swarm.md +544 -0
  148. package/.claude/commands/github/repo-analyze.md +25 -0
  149. package/.claude/commands/github/repo-architect.md +367 -0
  150. package/.claude/commands/github/swarm-issue.md +482 -0
  151. package/.claude/commands/github/swarm-pr.md +285 -0
  152. package/.claude/commands/github/sync-coordinator.md +301 -0
  153. package/.claude/commands/github/workflow-automation.md +442 -0
  154. package/.claude/commands/hooks/README.md +11 -0
  155. package/.claude/commands/hooks/overview.md +58 -0
  156. package/.claude/commands/hooks/post-edit.md +117 -0
  157. package/.claude/commands/hooks/post-task.md +112 -0
  158. package/.claude/commands/hooks/pre-edit.md +113 -0
  159. package/.claude/commands/hooks/pre-task.md +111 -0
  160. package/.claude/commands/hooks/session-end.md +118 -0
  161. package/.claude/commands/hooks/setup.md +103 -0
  162. package/.claude/commands/monitoring/README.md +9 -0
  163. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  164. package/.claude/commands/monitoring/agents.md +44 -0
  165. package/.claude/commands/monitoring/real-time-view.md +25 -0
  166. package/.claude/commands/monitoring/status.md +46 -0
  167. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  168. package/.claude/commands/optimization/README.md +9 -0
  169. package/.claude/commands/optimization/auto-topology.md +62 -0
  170. package/.claude/commands/optimization/cache-manage.md +25 -0
  171. package/.claude/commands/optimization/parallel-execute.md +25 -0
  172. package/.claude/commands/optimization/parallel-execution.md +50 -0
  173. package/.claude/commands/optimization/topology-optimize.md +25 -0
  174. package/.claude/commands/sparc/analyzer.md +52 -0
  175. package/.claude/commands/sparc/architect.md +53 -0
  176. package/.claude/commands/sparc/ask.md +97 -0
  177. package/.claude/commands/sparc/batch-executor.md +54 -0
  178. package/.claude/commands/sparc/code.md +89 -0
  179. package/.claude/commands/sparc/coder.md +54 -0
  180. package/.claude/commands/sparc/debug.md +83 -0
  181. package/.claude/commands/sparc/debugger.md +54 -0
  182. package/.claude/commands/sparc/designer.md +53 -0
  183. package/.claude/commands/sparc/devops.md +109 -0
  184. package/.claude/commands/sparc/docs-writer.md +80 -0
  185. package/.claude/commands/sparc/documenter.md +54 -0
  186. package/.claude/commands/sparc/innovator.md +54 -0
  187. package/.claude/commands/sparc/integration.md +83 -0
  188. package/.claude/commands/sparc/mcp.md +117 -0
  189. package/.claude/commands/sparc/memory-manager.md +54 -0
  190. package/.claude/commands/sparc/optimizer.md +54 -0
  191. package/.claude/commands/sparc/orchestrator.md +132 -0
  192. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
  193. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
  194. package/.claude/commands/sparc/researcher.md +54 -0
  195. package/.claude/commands/sparc/reviewer.md +54 -0
  196. package/.claude/commands/sparc/security-review.md +80 -0
  197. package/.claude/commands/sparc/sparc-modes.md +174 -0
  198. package/.claude/commands/sparc/sparc.md +111 -0
  199. package/.claude/commands/sparc/spec-pseudocode.md +80 -0
  200. package/.claude/commands/sparc/supabase-admin.md +348 -0
  201. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  202. package/.claude/commands/sparc/tdd.md +54 -0
  203. package/.claude/commands/sparc/tester.md +54 -0
  204. package/.claude/commands/sparc/tutorial.md +79 -0
  205. package/.claude/commands/sparc/workflow-manager.md +54 -0
  206. package/.claude/helpers/hook-handler.cjs +168 -0
  207. package/.claude/helpers/intelligence.cjs +197 -0
  208. package/.claude/helpers/memory.js +83 -0
  209. package/.claude/helpers/post-commit +16 -0
  210. package/.claude/helpers/pre-commit +26 -0
  211. package/.claude/helpers/router.js +66 -0
  212. package/.claude/helpers/session.js +127 -0
  213. package/.claude/settings.json +250 -0
  214. package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
  215. package/.claude/skills/agentdb-learning/SKILL.md +545 -0
  216. package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
  217. package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
  218. package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
  219. package/.claude/skills/github-code-review/SKILL.md +1140 -0
  220. package/.claude/skills/github-multi-repo/SKILL.md +874 -0
  221. package/.claude/skills/github-project-management/SKILL.md +1277 -0
  222. package/.claude/skills/github-release-management/SKILL.md +1081 -0
  223. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
  224. package/.claude/skills/hooks-automation/SKILL.md +1201 -0
  225. package/.claude/skills/pair-programming/SKILL.md +1202 -0
  226. package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
  227. package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
  228. package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
  229. package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +87 -0
  230. package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
  231. package/.claude/skills/skill-builder/SKILL.md +910 -0
  232. package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
  233. package/.claude/skills/stream-chain/SKILL.md +563 -0
  234. package/.claude/skills/swarm-advanced/SKILL.md +973 -0
  235. package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  236. package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
  237. package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
  238. package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
  239. package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
  240. package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
  241. package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
  242. package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
  243. package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
  244. package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
  245. package/.claude/skills/verification-quality/SKILL.md +649 -0
  246. package/.claude/statusline.mjs +109 -0
  247. package/.claude/statusline.sh +375 -0
  248. package/.claude-flow/CAPABILITIES.md +403 -0
  249. package/.claude-flow/config.yaml +43 -0
  250. package/.claude-flow/metrics/learning.json +17 -0
  251. package/.claude-flow/metrics/swarm-activity.json +18 -0
  252. package/.claude-flow/metrics/v3-progress.json +26 -0
  253. package/.claude-flow/security/audit-status.json +8 -0
  254. package/.mcp.json +20 -0
  255. package/AGENTS.md +145 -0
  256. package/CLAUDE.md +188 -0
  257. package/LICENSE +21 -0
  258. package/README.md +115 -0
  259. package/bin/cf-guidance-impl.mjs +74 -0
  260. package/package.json +23 -0
  261. package/scaffold/.claude/helpers/hook-handler.cjs +576 -0
  262. package/scaffold/docs/guidance-control-plane.md +441 -0
  263. package/scaffold/docs/guidance-implementation-guide.md +424 -0
  264. package/scaffold/scripts/analyze-guidance.js +176 -0
  265. package/scaffold/scripts/guidance-ab-benchmark.js +40 -0
  266. package/scaffold/scripts/guidance-autopilot.js +473 -0
  267. package/scaffold/scripts/guidance-codex-bridge.js +337 -0
  268. package/scaffold/scripts/guidance-integrations.js +587 -0
  269. package/scaffold/scripts/guidance-runtime.js +133 -0
  270. package/scaffold/scripts/scaffold-guidance.js +122 -0
  271. package/scaffold/src/guidance/advanced-runtime.js +658 -0
  272. package/scaffold/src/guidance/content-aware-executor.js +70 -0
  273. package/scaffold/src/guidance/phase1-runtime.js +151 -0
  274. package/src/default-settings.mjs +111 -0
  275. package/src/installer.mjs +415 -0
@@ -0,0 +1,38 @@
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
@@ -0,0 +1,298 @@
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
@@ -0,0 +1,126 @@
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
@@ -0,0 +1,16 @@
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"
@@ -0,0 +1,11 @@
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
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: security-audit
3
+ description: >
4
+ Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement.
5
+ Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration.
6
+ Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.
7
+ ---
8
+
9
+ # Security Audit Skill
10
+
11
+ ## Purpose
12
+ Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement.
13
+
14
+ ## When to Trigger
15
+ - authentication implementation
16
+ - authorization logic
17
+ - payment processing
18
+ - user data handling
19
+ - API endpoint creation
20
+ - file upload handling
21
+ - database queries
22
+ - external API integration
23
+
24
+ ## When to Skip
25
+ - read-only operations on public data
26
+ - internal development tooling
27
+ - static documentation
28
+ - styling changes
29
+
30
+ ## Commands
31
+
32
+ ### Full Security Scan
33
+ Run comprehensive security analysis on the codebase
34
+
35
+ ```bash
36
+ npx @claude-flow/cli security scan --depth full
37
+ ```
38
+
39
+ **Example:**
40
+ ```bash
41
+ npx @claude-flow/cli security scan --depth full --output security-report.json
42
+ ```
43
+
44
+ ### Input Validation Check
45
+ Check for input validation issues
46
+
47
+ ```bash
48
+ npx @claude-flow/cli security scan --check input-validation
49
+ ```
50
+
51
+ **Example:**
52
+ ```bash
53
+ npx @claude-flow/cli security scan --check input-validation --path ./src/api
54
+ ```
55
+
56
+ ### Path Traversal Check
57
+ Check for path traversal vulnerabilities
58
+
59
+ ```bash
60
+ npx @claude-flow/cli security scan --check path-traversal
61
+ ```
62
+
63
+ ### SQL Injection Check
64
+ Check for SQL injection vulnerabilities
65
+
66
+ ```bash
67
+ npx @claude-flow/cli security scan --check sql-injection
68
+ ```
69
+
70
+ ### XSS Check
71
+ Check for cross-site scripting vulnerabilities
72
+
73
+ ```bash
74
+ npx @claude-flow/cli security scan --check xss
75
+ ```
76
+
77
+ ### CVE Scan
78
+ Scan dependencies for known CVEs
79
+
80
+ ```bash
81
+ npx @claude-flow/cli security cve --scan
82
+ ```
83
+
84
+ **Example:**
85
+ ```bash
86
+ npx @claude-flow/cli security cve --scan --severity high
87
+ ```
88
+
89
+ ### Security Audit Report
90
+ Generate full security audit report
91
+
92
+ ```bash
93
+ npx @claude-flow/cli security audit --report
94
+ ```
95
+
96
+ **Example:**
97
+ ```bash
98
+ npx @claude-flow/cli security audit --report --format markdown --output SECURITY.md
99
+ ```
100
+
101
+ ### Threat Modeling
102
+ Run threat modeling analysis
103
+
104
+ ```bash
105
+ npx @claude-flow/cli security threats --analyze
106
+ ```
107
+
108
+ ### Validate Secrets
109
+ Check for hardcoded secrets
110
+
111
+ ```bash
112
+ npx @claude-flow/cli security validate --check secrets
113
+ ```
114
+
115
+
116
+ ## Scripts
117
+
118
+ | Script | Path | Description |
119
+ |--------|------|-------------|
120
+ | `security-scan` | `.agents/scripts/security-scan.sh` | Run full security scan pipeline |
121
+ | `cve-remediate` | `.agents/scripts/cve-remediate.sh` | Auto-remediate known CVEs |
122
+
123
+
124
+ ## References
125
+
126
+ | Document | Path | Description |
127
+ |----------|------|-------------|
128
+ | `Security Checklist` | `docs/security-checklist.md` | Security review checklist |
129
+ | `OWASP Guide` | `docs/owasp-top10.md` | OWASP Top 10 mitigation guide |
130
+
131
+ ## Best Practices
132
+ 1. Check memory for existing patterns before starting
133
+ 2. Use hierarchical topology for coordination
134
+ 3. Store successful patterns after completion
135
+ 4. Document any new learnings
@@ -0,0 +1,16 @@
1
+ #!/bin/bash
2
+ # Security Audit - CVE Remediation Script
3
+ # Auto-remediate known CVEs
4
+
5
+ set -e
6
+
7
+ echo "Scanning for CVEs..."
8
+ npx @claude-flow/cli security cve --scan --severity high
9
+
10
+ echo "Attempting auto-remediation..."
11
+ npm audit fix
12
+
13
+ echo "Re-scanning after remediation..."
14
+ npx @claude-flow/cli security cve --scan
15
+
16
+ echo "CVE remediation complete"
@@ -0,0 +1,33 @@
1
+ #!/bin/bash
2
+ # Security Audit - Full Scan Script
3
+ # Run comprehensive security scan pipeline
4
+
5
+ set -e
6
+
7
+ echo "Running full security scan..."
8
+
9
+ # Input validation
10
+ echo "Checking input validation..."
11
+ npx @claude-flow/cli security scan --check input-validation
12
+
13
+ # Path traversal
14
+ echo "Checking path traversal..."
15
+ npx @claude-flow/cli security scan --check path-traversal
16
+
17
+ # SQL injection
18
+ echo "Checking SQL injection..."
19
+ npx @claude-flow/cli security scan --check sql-injection
20
+
21
+ # XSS
22
+ echo "Checking XSS..."
23
+ npx @claude-flow/cli security scan --check xss
24
+
25
+ # Secrets
26
+ echo "Checking for hardcoded secrets..."
27
+ npx @claude-flow/cli security validate --check secrets
28
+
29
+ # CVE scan
30
+ echo "Scanning dependencies for CVEs..."
31
+ npx @claude-flow/cli security cve --scan
32
+
33
+ echo "Security scan complete"