@softspark/ai-toolkit 1.0.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 (327) hide show
  1. package/AGENTS.md +412 -0
  2. package/CHANGELOG.md +68 -0
  3. package/LICENSE +21 -0
  4. package/README.md +632 -0
  5. package/action.yml +53 -0
  6. package/app/.claude-plugin/plugin.json +44 -0
  7. package/app/ARCHITECTURE.md +306 -0
  8. package/app/CLAUDE.md.template +23 -0
  9. package/app/agents/ai-engineer.md +128 -0
  10. package/app/agents/backend-specialist.md +193 -0
  11. package/app/agents/business-intelligence.md +54 -0
  12. package/app/agents/chaos-monkey.md +67 -0
  13. package/app/agents/chief-of-staff.md +51 -0
  14. package/app/agents/code-archaeologist.md +127 -0
  15. package/app/agents/code-reviewer.md +184 -0
  16. package/app/agents/command-expert.md +131 -0
  17. package/app/agents/data-analyst.md +205 -0
  18. package/app/agents/data-scientist.md +151 -0
  19. package/app/agents/database-architect.md +317 -0
  20. package/app/agents/debugger.md +238 -0
  21. package/app/agents/devops-implementer.md +194 -0
  22. package/app/agents/documenter.md +364 -0
  23. package/app/agents/explorer-agent.md +145 -0
  24. package/app/agents/fact-checker.md +172 -0
  25. package/app/agents/frontend-specialist.md +209 -0
  26. package/app/agents/game-developer.md +216 -0
  27. package/app/agents/incident-responder.md +226 -0
  28. package/app/agents/infrastructure-architect.md +127 -0
  29. package/app/agents/infrastructure-validator.md +247 -0
  30. package/app/agents/llm-ops-engineer.md +237 -0
  31. package/app/agents/mcp-expert.md +228 -0
  32. package/app/agents/mcp-server-architect.md +195 -0
  33. package/app/agents/mcp-testing-engineer.md +292 -0
  34. package/app/agents/meta-architect.md +58 -0
  35. package/app/agents/ml-engineer.md +136 -0
  36. package/app/agents/mobile-developer.md +190 -0
  37. package/app/agents/night-watchman.md +55 -0
  38. package/app/agents/nlp-engineer.md +154 -0
  39. package/app/agents/orchestrator.md +437 -0
  40. package/app/agents/performance-optimizer.md +254 -0
  41. package/app/agents/predictive-analyst.md +57 -0
  42. package/app/agents/product-manager.md +194 -0
  43. package/app/agents/project-planner.md +287 -0
  44. package/app/agents/prompt-engineer.md +103 -0
  45. package/app/agents/qa-automation-engineer.md +182 -0
  46. package/app/agents/rag-engineer.md +201 -0
  47. package/app/agents/research-synthesizer.md +138 -0
  48. package/app/agents/search-specialist.md +101 -0
  49. package/app/agents/security-architect.md +62 -0
  50. package/app/agents/security-auditor.md +293 -0
  51. package/app/agents/seo-specialist.md +111 -0
  52. package/app/agents/system-governor.md +57 -0
  53. package/app/agents/tech-lead.md +62 -0
  54. package/app/agents/technical-researcher.md +103 -0
  55. package/app/agents/test-engineer.md +264 -0
  56. package/app/constitution.md +38 -0
  57. package/app/hooks/_profile-check.sh +11 -0
  58. package/app/hooks/guard-destructive.sh +74 -0
  59. package/app/hooks/guard-path.sh +73 -0
  60. package/app/hooks/post-tool-use.sh +35 -0
  61. package/app/hooks/pre-compact.sh +31 -0
  62. package/app/hooks/quality-check.sh +22 -0
  63. package/app/hooks/quality-gate.sh +49 -0
  64. package/app/hooks/save-session.sh +24 -0
  65. package/app/hooks/session-end.sh +37 -0
  66. package/app/hooks/session-start.sh +29 -0
  67. package/app/hooks/subagent-start.sh +16 -0
  68. package/app/hooks/subagent-stop.sh +16 -0
  69. package/app/hooks/track-usage.sh +50 -0
  70. package/app/hooks/user-prompt-submit.sh +25 -0
  71. package/app/hooks.json +178 -0
  72. package/app/mcp-defaults.json +23 -0
  73. package/app/output-styles/golden-rules.md +43 -0
  74. package/app/plugins/README.md +19 -0
  75. package/app/plugins/csharp-pack/README.md +11 -0
  76. package/app/plugins/csharp-pack/plugin.json +18 -0
  77. package/app/plugins/enterprise-pack/README.md +16 -0
  78. package/app/plugins/enterprise-pack/hooks/output-style.sh +6 -0
  79. package/app/plugins/enterprise-pack/hooks/status-line.sh +8 -0
  80. package/app/plugins/enterprise-pack/plugin.json +24 -0
  81. package/app/plugins/frontend-pack/README.md +14 -0
  82. package/app/plugins/frontend-pack/plugin.json +22 -0
  83. package/app/plugins/java-pack/README.md +11 -0
  84. package/app/plugins/java-pack/plugin.json +18 -0
  85. package/app/plugins/kotlin-pack/README.md +11 -0
  86. package/app/plugins/kotlin-pack/plugin.json +18 -0
  87. package/app/plugins/memory-pack/README.md +24 -0
  88. package/app/plugins/memory-pack/hooks/observation-capture.sh +67 -0
  89. package/app/plugins/memory-pack/hooks/session-summary.sh +71 -0
  90. package/app/plugins/memory-pack/plugin.json +22 -0
  91. package/app/plugins/memory-pack/scripts/init_db.py +81 -0
  92. package/app/plugins/memory-pack/scripts/strip_private.py +22 -0
  93. package/app/plugins/memory-pack/skills/mem-search/SKILL.md +70 -0
  94. package/app/plugins/research-pack/README.md +14 -0
  95. package/app/plugins/research-pack/plugin.json +22 -0
  96. package/app/plugins/ruby-pack/README.md +11 -0
  97. package/app/plugins/ruby-pack/plugin.json +18 -0
  98. package/app/plugins/rust-pack/README.md +11 -0
  99. package/app/plugins/rust-pack/plugin.json +18 -0
  100. package/app/plugins/security-pack/README.md +15 -0
  101. package/app/plugins/security-pack/plugin.json +23 -0
  102. package/app/plugins/swift-pack/README.md +11 -0
  103. package/app/plugins/swift-pack/plugin.json +18 -0
  104. package/app/rules/claude-toolkit-rules.md +21 -0
  105. package/app/rules/git-conventions.md +5 -0
  106. package/app/rules/quality-gates.md +10 -0
  107. package/app/skills/_lib/__init__.py +1 -0
  108. package/app/skills/_lib/detect_utils.py +150 -0
  109. package/app/skills/agent-creator/SKILL.md +82 -0
  110. package/app/skills/analyze/SKILL.md +92 -0
  111. package/app/skills/analyze/scripts/complexity.py +165 -0
  112. package/app/skills/api-patterns/SKILL.md +305 -0
  113. package/app/skills/app-builder/SKILL.md +187 -0
  114. package/app/skills/architecture-audit/SKILL.md +141 -0
  115. package/app/skills/architecture-decision/SKILL.md +55 -0
  116. package/app/skills/architecture-decision/templates/adr-template.md +36 -0
  117. package/app/skills/biz-scan/SKILL.md +30 -0
  118. package/app/skills/briefing/SKILL.md +27 -0
  119. package/app/skills/build/SKILL.md +97 -0
  120. package/app/skills/build/scripts/detect-build.py +151 -0
  121. package/app/skills/chaos/SKILL.md +32 -0
  122. package/app/skills/ci/SKILL.md +77 -0
  123. package/app/skills/ci/scripts/ci-detect.py +135 -0
  124. package/app/skills/ci/templates/github-actions-node.yml +38 -0
  125. package/app/skills/ci/templates/github-actions-python.yml +42 -0
  126. package/app/skills/ci-cd-patterns/SKILL.md +299 -0
  127. package/app/skills/clean-code/SKILL.md +110 -0
  128. package/app/skills/clean-code/reference/dart.md +18 -0
  129. package/app/skills/clean-code/reference/go.md +23 -0
  130. package/app/skills/clean-code/reference/php.md +32 -0
  131. package/app/skills/clean-code/reference/python.md +180 -0
  132. package/app/skills/clean-code/reference/typescript.md +26 -0
  133. package/app/skills/command-creator/SKILL.md +83 -0
  134. package/app/skills/commit/SKILL.md +98 -0
  135. package/app/skills/commit/scripts/pre-commit-check.py +87 -0
  136. package/app/skills/commit/templates/conventional-commit.md +52 -0
  137. package/app/skills/csharp-patterns/SKILL.md +450 -0
  138. package/app/skills/database-patterns/SKILL.md +297 -0
  139. package/app/skills/debug/SKILL.md +154 -0
  140. package/app/skills/debug/scripts/error-parser.py +187 -0
  141. package/app/skills/debugging-tactics/SKILL.md +136 -0
  142. package/app/skills/deploy/SKILL.md +130 -0
  143. package/app/skills/deploy/scripts/pre_deploy_check.py +171 -0
  144. package/app/skills/deploy/templates/deployment-checklist.md +31 -0
  145. package/app/skills/design-an-interface/SKILL.md +105 -0
  146. package/app/skills/design-engineering/SKILL.md +260 -0
  147. package/app/skills/docker-devops/SKILL.md +303 -0
  148. package/app/skills/docs/SKILL.md +145 -0
  149. package/app/skills/docs/scripts/doc-inventory.py +176 -0
  150. package/app/skills/docs/templates/adr-template.md +36 -0
  151. package/app/skills/docs/templates/readme-template.md +67 -0
  152. package/app/skills/documentation-standards/SKILL.md +191 -0
  153. package/app/skills/ecommerce-patterns/SKILL.md +209 -0
  154. package/app/skills/evaluate/SKILL.md +132 -0
  155. package/app/skills/evolve/SKILL.md +27 -0
  156. package/app/skills/explain/SKILL.md +54 -0
  157. package/app/skills/explain/scripts/dependency-graph.py +215 -0
  158. package/app/skills/explore/SKILL.md +112 -0
  159. package/app/skills/explore/scripts/visualize.py +117 -0
  160. package/app/skills/fix/SKILL.md +78 -0
  161. package/app/skills/fix/scripts/error-classifier.py +191 -0
  162. package/app/skills/flutter-patterns/SKILL.md +254 -0
  163. package/app/skills/git-mastery/SKILL.md +70 -0
  164. package/app/skills/grill-me/SKILL.md +38 -0
  165. package/app/skills/health/SKILL.md +91 -0
  166. package/app/skills/health/scripts/health_check.py +162 -0
  167. package/app/skills/hive-mind/SKILL.md +56 -0
  168. package/app/skills/hook-creator/SKILL.md +107 -0
  169. package/app/skills/index/SKILL.md +74 -0
  170. package/app/skills/instinct-review/SKILL.md +77 -0
  171. package/app/skills/java-patterns/SKILL.md +442 -0
  172. package/app/skills/kotlin-patterns/SKILL.md +446 -0
  173. package/app/skills/lint/SKILL.md +103 -0
  174. package/app/skills/lint/scripts/detect-linters.py +112 -0
  175. package/app/skills/mcp-patterns/SKILL.md +270 -0
  176. package/app/skills/mem-search/SKILL.md +70 -0
  177. package/app/skills/migrate/SKILL.md +90 -0
  178. package/app/skills/migrate/scripts/migration-status.py +195 -0
  179. package/app/skills/migration-patterns/SKILL.md +260 -0
  180. package/app/skills/night-watch/SKILL.md +28 -0
  181. package/app/skills/observability-patterns/SKILL.md +203 -0
  182. package/app/skills/onboard/SKILL.md +76 -0
  183. package/app/skills/orchestrate/SKILL.md +86 -0
  184. package/app/skills/panic/SKILL.md +30 -0
  185. package/app/skills/performance-profiling/SKILL.md +59 -0
  186. package/app/skills/plan/SKILL.md +110 -0
  187. package/app/skills/plan/templates/plan-template.md +40 -0
  188. package/app/skills/plan-writing/SKILL.md +201 -0
  189. package/app/skills/plugin-creator/SKILL.md +78 -0
  190. package/app/skills/pr/SKILL.md +129 -0
  191. package/app/skills/pr/scripts/pr-summary.py +175 -0
  192. package/app/skills/prd-to-issues/SKILL.md +108 -0
  193. package/app/skills/prd-to-plan/SKILL.md +120 -0
  194. package/app/skills/predict/SKILL.md +30 -0
  195. package/app/skills/qa-session/SKILL.md +110 -0
  196. package/app/skills/rag-patterns/SKILL.md +203 -0
  197. package/app/skills/refactor/SKILL.md +124 -0
  198. package/app/skills/refactor/scripts/refactor-scan.py +210 -0
  199. package/app/skills/refactor-plan/SKILL.md +112 -0
  200. package/app/skills/repeat/SKILL.md +149 -0
  201. package/app/skills/research-mastery/SKILL.md +56 -0
  202. package/app/skills/review/SKILL.md +141 -0
  203. package/app/skills/review/scripts/diff-analyzer.py +170 -0
  204. package/app/skills/rollback/SKILL.md +87 -0
  205. package/app/skills/rollback/scripts/rollback_info.py +149 -0
  206. package/app/skills/ruby-patterns/SKILL.md +454 -0
  207. package/app/skills/rust-patterns/SKILL.md +446 -0
  208. package/app/skills/search/SKILL.md +64 -0
  209. package/app/skills/security-patterns/SKILL.md +91 -0
  210. package/app/skills/security-patterns/reference/authentication.md +37 -0
  211. package/app/skills/security-patterns/reference/authorization.md +22 -0
  212. package/app/skills/security-patterns/reference/input-validation.md +30 -0
  213. package/app/skills/security-patterns/reference/oauth-csrf-audit.md +131 -0
  214. package/app/skills/skill-creator/SKILL.md +154 -0
  215. package/app/skills/skill-creator/templates/dashboard/index.html +130 -0
  216. package/app/skills/skill-creator/templates/reasoning-engine/assets/example.json +12 -0
  217. package/app/skills/skill-creator/templates/reasoning-engine/search.py +110 -0
  218. package/app/skills/subagent-development/SKILL.md +225 -0
  219. package/app/skills/subagent-development/reference/code-quality-reviewer-prompt.md +145 -0
  220. package/app/skills/subagent-development/reference/implementer-prompt.md +118 -0
  221. package/app/skills/subagent-development/reference/spec-reviewer-prompt.md +100 -0
  222. package/app/skills/swarm/SKILL.md +81 -0
  223. package/app/skills/swift-patterns/SKILL.md +500 -0
  224. package/app/skills/tdd/SKILL.md +174 -0
  225. package/app/skills/tdd/reference/deep-modules.md +32 -0
  226. package/app/skills/tdd/reference/interface-design.md +32 -0
  227. package/app/skills/tdd/reference/mocking.md +52 -0
  228. package/app/skills/tdd/reference/refactoring.md +10 -0
  229. package/app/skills/tdd/reference/tests.md +59 -0
  230. package/app/skills/teams/SKILL.md +101 -0
  231. package/app/skills/test/SKILL.md +107 -0
  232. package/app/skills/test/scripts/detect-runner.py +113 -0
  233. package/app/skills/testing-patterns/SKILL.md +73 -0
  234. package/app/skills/testing-patterns/reference/flutter-testing.md +33 -0
  235. package/app/skills/testing-patterns/reference/go-testing.md +52 -0
  236. package/app/skills/testing-patterns/reference/php-phpunit.md +39 -0
  237. package/app/skills/testing-patterns/reference/python-pytest.md +228 -0
  238. package/app/skills/testing-patterns/reference/typescript-vitest.md +50 -0
  239. package/app/skills/triage-issue/SKILL.md +120 -0
  240. package/app/skills/typescript-patterns/SKILL.md +256 -0
  241. package/app/skills/ubiquitous-language/SKILL.md +74 -0
  242. package/app/skills/verification-before-completion/SKILL.md +108 -0
  243. package/app/skills/workflow/SKILL.md +250 -0
  244. package/app/skills/write-a-prd/SKILL.md +129 -0
  245. package/app/skills/write-a-prd/reference/visual-companion.md +78 -0
  246. package/app/skills/write-a-prd/scripts/frame-template.html +111 -0
  247. package/app/skills/write-a-prd/scripts/visual-server.cjs +79 -0
  248. package/app/templates/skill/generator/SKILL.md.template +40 -0
  249. package/app/templates/skill/knowledge/SKILL.md.template +52 -0
  250. package/app/templates/skill/linter/SKILL.md.template +34 -0
  251. package/app/templates/skill/reviewer/SKILL.md.template +51 -0
  252. package/app/templates/skill/workflow/SKILL.md.template +49 -0
  253. package/benchmarks/README.md +111 -0
  254. package/benchmarks/ecosystem-dashboard.json +148 -0
  255. package/benchmarks/ecosystem-harvest.json +148 -0
  256. package/benchmarks/results.json +38 -0
  257. package/benchmarks/run.py +351 -0
  258. package/bin/ai-toolkit.js +345 -0
  259. package/kb/best-practices/README.md +11 -0
  260. package/kb/howto/README.md +11 -0
  261. package/kb/procedures/maintenance-sop.md +306 -0
  262. package/kb/reference/agents-catalog.md +124 -0
  263. package/kb/reference/anti-pattern-registry-format.md +221 -0
  264. package/kb/reference/architecture-overview.md +232 -0
  265. package/kb/reference/benchmark-config.md +62 -0
  266. package/kb/reference/ci-integration.md +66 -0
  267. package/kb/reference/claude-ecosystem-benchmark-snapshot.md +80 -0
  268. package/kb/reference/claude-ecosystem-expansion-foundations.md +102 -0
  269. package/kb/reference/commands-catalog.md +21 -0
  270. package/kb/reference/distribution-model.md +63 -0
  271. package/kb/reference/global-install-model.md +56 -0
  272. package/kb/reference/hierarchical-override-pattern.md +200 -0
  273. package/kb/reference/hooks-catalog.md +306 -0
  274. package/kb/reference/integrations.md +88 -0
  275. package/kb/reference/language-packs.md +52 -0
  276. package/kb/reference/merge-friendly-install-model.md +58 -0
  277. package/kb/reference/plugin-pack-conventions.md +151 -0
  278. package/kb/reference/quick-wins-implementation-summary.md +70 -0
  279. package/kb/reference/skill-templates.md +50 -0
  280. package/kb/reference/skills-catalog.md +215 -0
  281. package/kb/reference/skills-unification.md +57 -0
  282. package/kb/reference/stats.md +69 -0
  283. package/kb/reference/sync.md +76 -0
  284. package/kb/troubleshooting/README.md +11 -0
  285. package/llms-full.txt +3068 -0
  286. package/llms.txt +39 -0
  287. package/package.json +75 -0
  288. package/scripts/_common.py +160 -0
  289. package/scripts/add_rule.py +50 -0
  290. package/scripts/benchmark_config.py +127 -0
  291. package/scripts/benchmark_ecosystem.py +288 -0
  292. package/scripts/check_deps.py +260 -0
  293. package/scripts/create_skill.py +118 -0
  294. package/scripts/doctor.py +504 -0
  295. package/scripts/eject.py +113 -0
  296. package/scripts/emission.py +256 -0
  297. package/scripts/evaluate_skills.py +260 -0
  298. package/scripts/frontmatter.py +58 -0
  299. package/scripts/generate_agents_md.py +91 -0
  300. package/scripts/generate_aider_conf.py +51 -0
  301. package/scripts/generate_cline.py +35 -0
  302. package/scripts/generate_copilot.py +30 -0
  303. package/scripts/generate_cursor_rules.py +35 -0
  304. package/scripts/generate_gemini.py +28 -0
  305. package/scripts/generate_llms_txt.py +164 -0
  306. package/scripts/generate_roo_modes.py +80 -0
  307. package/scripts/generate_windsurf.py +35 -0
  308. package/scripts/generator_base.py +140 -0
  309. package/scripts/harvest_ecosystem.py +50 -0
  310. package/scripts/inject_rule_cli.py +101 -0
  311. package/scripts/inject_section_cli.py +47 -0
  312. package/scripts/injection.py +180 -0
  313. package/scripts/install.py +236 -0
  314. package/scripts/install_git_hooks.py +71 -0
  315. package/scripts/install_steps/__init__.py +5 -0
  316. package/scripts/install_steps/ai_tools.py +261 -0
  317. package/scripts/install_steps/hooks.py +90 -0
  318. package/scripts/install_steps/markers.py +79 -0
  319. package/scripts/install_steps/symlinks.py +87 -0
  320. package/scripts/merge-hooks.py +192 -0
  321. package/scripts/plugin.py +642 -0
  322. package/scripts/plugin_schema.py +138 -0
  323. package/scripts/remove_rule.py +58 -0
  324. package/scripts/stats.py +81 -0
  325. package/scripts/sync.py +215 -0
  326. package/scripts/uninstall.py +292 -0
  327. package/scripts/validate.py +700 -0
@@ -0,0 +1,124 @@
1
+ ---
2
+ title: "AI Toolkit - Agents Catalog"
3
+ category: reference
4
+ service: ai-toolkit
5
+ tags: [agents, catalog, roles, ai-development]
6
+ version: "2.0.0"
7
+ created: "2026-03-23"
8
+ last_updated: "2026-03-25"
9
+ description: "Complete catalog of 47 specialized agents with roles, models, and use cases."
10
+ ---
11
+
12
+ # Agents Catalog (47 agents)
13
+
14
+ ## By Category
15
+
16
+ ### Orchestration & Planning (4)
17
+
18
+ | Agent | Model | Use Case |
19
+ |-------|-------|----------|
20
+ | **orchestrator** | opus | Multi-agent coordination, 3+ agents per task |
21
+ | **project-planner** | opus | Task breakdown, dependency graphs, file structure |
22
+ | **product-manager** | opus | Requirements, user stories, acceptance criteria, backlog prioritization |
23
+ | **tech-lead** | opus | Code quality authority, architecture patterns |
24
+
25
+ ### Development (5)
26
+
27
+ | Agent | Model | Use Case |
28
+ |-------|-------|----------|
29
+ | **backend-specialist** | opus | Node.js, Python, PHP, FastAPI, APIs |
30
+ | **frontend-specialist** | opus | React, Next.js, Vue, Nuxt, Tailwind |
31
+ | **mobile-developer** | opus | React Native, Flutter, native iOS/Android |
32
+ | **game-developer** | opus | Unity, Godot, Unreal, Phaser, Three.js |
33
+ | **database-architect** | opus | Schema design, migrations, query optimization, operations |
34
+
35
+ ### AI/ML (7)
36
+
37
+ | Agent | Model | Use Case |
38
+ |-------|-------|----------|
39
+ | **ai-engineer** | opus | LLM integration, vector databases, RAG, agent orchestration |
40
+ | **ml-engineer** | opus | Model training, MLOps, TensorFlow, PyTorch |
41
+ | **nlp-engineer** | opus | NLP pipelines, NER, text classification, transformers |
42
+ | **data-scientist** | opus | Statistics, visualization, EDA, hypothesis testing |
43
+ | **data-analyst** | sonnet | SQL, analytics, reporting, dashboards |
44
+ | **prompt-engineer** | opus | Prompt design, chain-of-thought, few-shot, optimization |
45
+ | **rag-engineer** | opus | RAG pipelines, document indexing, retrieval optimization |
46
+
47
+ ### Quality & Security (6)
48
+
49
+ | Agent | Model | Use Case |
50
+ |-------|-------|----------|
51
+ | **code-reviewer** | opus | Code review, standards, quality audit |
52
+ | **test-engineer** | opus | Test strategy, TDD, unit/integration/E2E tests |
53
+ | **qa-automation-engineer** | opus | Playwright, Cypress, API testing, performance testing |
54
+ | **security-auditor** | opus | OWASP, CVE analysis, pen testing, vulnerability assessment |
55
+ | **security-architect** | opus | Threat modeling, secure design, AuthN/AuthZ |
56
+ | **system-governor** | opus | Constitution guardian, validates changes, VETO power |
57
+
58
+ ### Infrastructure & DevOps (6)
59
+
60
+ | Agent | Model | Use Case |
61
+ |-------|-------|----------|
62
+ | **devops-implementer** | opus | Terraform, Ansible, Docker, Kubernetes, CI/CD |
63
+ | **infrastructure-architect** | opus | System design, architecture notes, trade-off analysis |
64
+ | **infrastructure-validator** | sonnet | Deployment verification, health checks, rollback |
65
+ | **incident-responder** | sonnet | P1-P4 incidents, emergency fixes, postmortem |
66
+ | **performance-optimizer** | opus | Profiling, bottleneck analysis, latency, scaling |
67
+ | **llm-ops-engineer** | opus | LLM caching, fallback, cost optimization, observability |
68
+
69
+ ### Research & Documentation (6)
70
+
71
+ | Agent | Model | Use Case |
72
+ |-------|-------|----------|
73
+ | **explorer-agent** | sonnet | Codebase discovery (READ-ONLY, never writes) |
74
+ | **research-synthesizer** | opus | Research coordination, synthesis, report generation |
75
+ | **technical-researcher** | opus | Deep technical investigation, feasibility studies |
76
+ | **search-specialist** | sonnet | Search optimization, relevance ranking |
77
+ | **fact-checker** | sonnet | Claim verification, source validation |
78
+ | **documenter** | sonnet | Documentation, KB management, SOPs, API docs, tutorials |
79
+
80
+ ### MCP (3)
81
+
82
+ | Agent | Model | Use Case |
83
+ |-------|-------|----------|
84
+ | **mcp-expert** | opus | MCP protocol expertise, client configuration |
85
+ | **mcp-server-architect** | opus | MCP server design, JSON-RPC, tool definitions |
86
+ | **mcp-testing-engineer** | sonnet | MCP protocol compliance, transport testing |
87
+
88
+ ### Management & Evolution (4)
89
+
90
+ | Agent | Model | Use Case |
91
+ |-------|-------|----------|
92
+ | **chief-of-staff** | sonnet | Executive summaries, daily briefings, noise reduction |
93
+ | **meta-architect** | opus | Self-optimization, agent definition updates |
94
+ | **predictive-analyst** | sonnet | Impact prediction, regression forecasting |
95
+ | **business-intelligence** | sonnet | Opportunity discovery, KPI gaps, value creation |
96
+
97
+ ### Autonomous (2)
98
+
99
+ | Agent | Model | Use Case |
100
+ |-------|-------|----------|
101
+ | **night-watchman** | sonnet | Autonomous maintenance: dependency updates, dead code |
102
+ | **chaos-monkey** | opus | Resilience testing: fault injection, failure verification |
103
+
104
+ ### Specialist (4)
105
+
106
+ | Agent | Model | Use Case |
107
+ |-------|-------|----------|
108
+ | **debugger** | opus | Root cause analysis, stack traces, intermittent failures |
109
+ | **code-archaeologist** | sonnet | Legacy code investigation, technical debt |
110
+ | **command-expert** | sonnet | CLI commands, bash scripting, build scripts |
111
+ | **seo-specialist** | sonnet | SEO optimization, meta tags, Core Web Vitals |
112
+
113
+ ## Agent Selection Matrix
114
+
115
+ | Task Type | Primary | Supporting | Validation |
116
+ |-----------|---------|------------|------------|
117
+ | New Feature | backend/frontend-specialist | test-engineer | code-reviewer |
118
+ | Bug Fix | debugger | backend/frontend | test-engineer |
119
+ | Performance | performance-optimizer | database-architect | infrastructure-validator |
120
+ | Security | security-auditor | security-architect | code-reviewer |
121
+ | Architecture | infrastructure-architect | devops-implementer | security-auditor |
122
+ | Documentation | documenter | explorer-agent | tech-lead |
123
+ | AI/ML | ai-engineer | ml-engineer | rag-engineer |
124
+ | Research | research-synthesizer | technical-researcher | fact-checker |
@@ -0,0 +1,221 @@
1
+ ---
2
+ title: "Anti-Pattern Registry Format"
3
+ category: reference
4
+ service: ai-toolkit
5
+ description: "Structured JSON format for anti-patterns with severity, auto-fixability, and conflict rules. Used by domain skills with reasoning engines."
6
+ tags: [anti-patterns, skills, reasoning-engine, format]
7
+ created: 2026-04-01
8
+ last_updated: 2026-04-01
9
+ ---
10
+
11
+ # Anti-Pattern Registry Format
12
+
13
+ ## Overview
14
+
15
+ The anti-pattern registry is a structured JSON format used by domain skills that
16
+ employ reasoning engines. It provides a machine-readable catalog of known
17
+ anti-patterns with severity levels, auto-fix capabilities, and conflict rules.
18
+
19
+ ## When to Use
20
+
21
+ Use structured JSON registries (this format) when:
22
+
23
+ - The skill catalogs **more than 50 items** across **more than 3 compatibility
24
+ dimensions** (e.g., domain, severity, language, framework).
25
+ - Items have relationships (conflicts, prerequisites, alternatives) that must be
26
+ queryable at runtime.
27
+ - The reasoning engine (`search.py`) needs to filter, score, and exclude
28
+ conflicting entries programmatically.
29
+
30
+ Use Markdown tables when:
31
+
32
+ - Fewer than 50 items with 3 or fewer dimensions.
33
+ - No inter-item relationships.
34
+ - Human readability is the only consumer.
35
+
36
+ ## JSON Schema
37
+
38
+ Each entry in the registry follows this schema:
39
+
40
+ ```json
41
+ {
42
+ "id": "string (required)",
43
+ "name": "string (required)",
44
+ "domain": "string (required)",
45
+ "description": "string (required)",
46
+ "pattern": "string (optional)",
47
+ "severity": "string (required)",
48
+ "auto_fixable": "boolean (required)",
49
+ "conflicts_with": ["string (optional)"],
50
+ "remediation": "string (required)",
51
+ "tags": ["string (optional)"]
52
+ }
53
+ ```
54
+
55
+ ### Field Definitions
56
+
57
+ #### `id` (required)
58
+
59
+ Unique identifier in kebab-case. Must be globally unique across all registry
60
+ files within the same assets directory.
61
+
62
+ ```
63
+ "id": "n-plus-one-query"
64
+ ```
65
+
66
+ #### `name` (required)
67
+
68
+ Human-readable display name. Used in reports and dashboards.
69
+
70
+ ```
71
+ "name": "N+1 Query Problem"
72
+ ```
73
+
74
+ #### `domain` (required)
75
+
76
+ The skill domain this anti-pattern belongs to. Used for filtering when a
77
+ reasoning engine serves multiple domains.
78
+
79
+ Valid domains include: `security`, `database`, `api`, `architecture`,
80
+ `performance`, `testing`, `general`. Skills may define additional domains as
81
+ needed.
82
+
83
+ ```
84
+ "domain": "database"
85
+ ```
86
+
87
+ #### `description` (required)
88
+
89
+ Clear explanation of what this anti-pattern is and why it is problematic. Should
90
+ be actionable -- a developer reading this should understand the risk.
91
+
92
+ ```
93
+ "description": "Executing one query per item in a loop instead of a single batch query. Causes O(n) database round-trips where O(1) is possible."
94
+ ```
95
+
96
+ #### `pattern` (optional)
97
+
98
+ A regex pattern for automated detection in source code. When present, tooling
99
+ can scan codebases for occurrences. Omit if the anti-pattern is architectural
100
+ or cannot be detected via regex.
101
+
102
+ ```
103
+ "pattern": "for\\s+.*\\sin\\s+.*:\\s*\\n\\s+.*\\.objects\\.get"
104
+ ```
105
+
106
+ #### `severity` (required)
107
+
108
+ Impact level. Must be one of:
109
+
110
+ | Value | Meaning |
111
+ |-------|---------|
112
+ | `critical` | Causes security vulnerabilities, data loss, or production outages. Must fix before merge. |
113
+ | `important` | Degrades performance, maintainability, or reliability significantly. Should fix in current sprint. |
114
+ | `suggestion` | Improvement opportunity. Fix when convenient or during refactoring. |
115
+
116
+ ```
117
+ "severity": "important"
118
+ ```
119
+
120
+ #### `auto_fixable` (required)
121
+
122
+ Boolean indicating whether tooling can automatically remediate this
123
+ anti-pattern. When `true`, the reasoning engine or a companion script can
124
+ generate a fix.
125
+
126
+ ```
127
+ "auto_fixable": true
128
+ ```
129
+
130
+ #### `conflicts_with` (optional)
131
+
132
+ List of anti-pattern IDs that conflict with this entry. The reasoning engine
133
+ uses this for mutual exclusion -- if one pattern is selected/detected, the
134
+ conflicting ones are filtered out of results.
135
+
136
+ This prevents contradictory advice (e.g., "use eager loading" and "use lazy
137
+ loading" simultaneously).
138
+
139
+ ```
140
+ "conflicts_with": ["eager-load-everything"]
141
+ ```
142
+
143
+ #### `remediation` (required)
144
+
145
+ Concrete instructions for fixing the anti-pattern. Should include a code
146
+ example or reference to a known-good pattern when possible.
147
+
148
+ ```
149
+ "remediation": "Replace loop queries with select_related() or prefetch_related() for Django, or use JOIN/eager loading in your ORM."
150
+ ```
151
+
152
+ #### `tags` (optional)
153
+
154
+ Freeform tags for cross-cutting search. Useful for filtering by technology,
155
+ language, or concern that does not map to a single domain.
156
+
157
+ ```
158
+ "tags": ["orm", "django", "sqlalchemy", "performance"]
159
+ ```
160
+
161
+ ## Complete Example
162
+
163
+ ```json
164
+ [
165
+ {
166
+ "id": "n-plus-one-query",
167
+ "name": "N+1 Query Problem",
168
+ "domain": "database",
169
+ "description": "Executing one query per item in a loop instead of a single batch query. Causes O(n) database round-trips where O(1) is possible.",
170
+ "pattern": "for\\s+.*\\sin\\s+.*:\\s*\\n\\s+.*\\.objects\\.get",
171
+ "severity": "important",
172
+ "auto_fixable": false,
173
+ "conflicts_with": [],
174
+ "remediation": "Replace loop queries with select_related() or prefetch_related() for Django, or use JOIN/eager loading in your ORM.",
175
+ "tags": ["orm", "django", "sqlalchemy", "performance"]
176
+ },
177
+ {
178
+ "id": "hardcoded-secrets",
179
+ "name": "Hardcoded Secrets",
180
+ "domain": "security",
181
+ "description": "API keys, passwords, or tokens embedded directly in source code. Exposed in version control history even after removal.",
182
+ "pattern": "(api_key|secret|password|token)\\s*=\\s*[\"'][^\"']+[\"']",
183
+ "severity": "critical",
184
+ "auto_fixable": true,
185
+ "conflicts_with": [],
186
+ "remediation": "Move secrets to environment variables or a secrets manager (AWS SSM, Vault, dotenv for local). Reference via os.environ or settings module.",
187
+ "tags": ["secrets", "env", "vault", "ci"]
188
+ }
189
+ ]
190
+ ```
191
+
192
+ ## File Organization
193
+
194
+ Registry files live in the `assets/` directory alongside the reasoning engine:
195
+
196
+ ```
197
+ templates/reasoning-engine/
198
+ search.py # Reasoning engine
199
+ assets/
200
+ example.json # Template/example entries
201
+ security.json # Security anti-patterns
202
+ database.json # Database anti-patterns
203
+ api.json # API anti-patterns
204
+ ```
205
+
206
+ Each file is a JSON array. The reasoning engine loads and merges all `*.json`
207
+ files from `assets/` at startup. Keep files organized by domain to avoid merge
208
+ conflicts and improve discoverability.
209
+
210
+ ## Integration with Reasoning Engine
211
+
212
+ The `search.py` reasoning engine uses registry entries as follows:
213
+
214
+ 1. **Load**: All JSON files in `assets/` are loaded and merged into a flat list.
215
+ 2. **Match**: User query is tokenized and scored against all fields.
216
+ 3. **Filter**: `conflicts_with` entries are excluded based on already-selected
217
+ items via `filter_anti_patterns()`.
218
+ 4. **Return**: Top results are returned as JSON to stdout.
219
+
220
+ Skills that use this pattern should document the `--domain` flag to scope
221
+ searches to their specific domain.
@@ -0,0 +1,232 @@
1
+ ---
2
+ title: "AI Toolkit - Architecture Overview"
3
+ category: reference
4
+ service: ai-toolkit
5
+ tags: [architecture, overview, design, structure]
6
+ version: "1.0.0"
7
+ created: "2026-03-23"
8
+ last_updated: "2026-04-02"
9
+ description: "Architecture of ai-toolkit: directory layout, global install model, skill tiers, and integration with projects."
10
+ ---
11
+
12
+ # AI Toolkit Architecture
13
+
14
+ ## Purpose
15
+
16
+ Shared, project-agnostic AI development toolkit for Claude Code (and compatible assistants like Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, and Aider). Provides 47 specialized agents, 85 skills (slash commands + knowledge), expanded lifecycle hooks, and experimental opt-in plugin packs that teams can adopt separately from the default global install.
17
+
18
+ ## Design Principles
19
+
20
+ 1. **Global install** — one `~/.claude/` install works for all projects; no per-project setup beyond `init`
21
+ 2. **Merge-friendly** — per-file symlinks, JSON merge, marker injection; user content never overwritten
22
+ 3. **Composable** — agents reference skills; skills invoke agents; hooks validate all work
23
+ 4. **Multi-language** — hooks and skills support Python, TypeScript, PHP, Dart, Go
24
+ 5. **Cost-optimized** — simpler agents run on `sonnet`, complex reasoning on `opus`
25
+
26
+ ## Directory Structure
27
+
28
+ ```
29
+ ai-toolkit/
30
+ bin/
31
+ ai-toolkit.js # CLI entry point (install, init, add-rule, ...)
32
+ app/ # All toolkit components
33
+ agents/ # 47 agent definitions (.md + YAML frontmatter)
34
+ skills/ # 85 skills: task, hybrid, knowledge
35
+ rules/ # Rules auto-injected into ~/.claude/CLAUDE.md
36
+ hooks/ # Hook scripts (copied to ~/.ai-toolkit/hooks/)
37
+ hooks.json # Hook definitions (merged into ~/.claude/settings.json)
38
+ constitution.md # Immutable safety rules, 5 articles (marker-injected)
39
+ ARCHITECTURE.md # System architecture reference (marker-injected)
40
+ CLAUDE.md.template # Template for project CLAUDE.md (used by init)
41
+ settings.local.json.template
42
+ .claude-plugin/
43
+ plugin.json # Official plugin manifest
44
+ plugins/ # Experimental opt-in plugin packs + optional modules
45
+ scripts/ # All scripts
46
+ install.py # Global installer → ~/.claude/ (--local for project-local setup)
47
+ uninstall.py # Removes toolkit components from ~/.claude/
48
+ inject_rule_cli.py # Injects a rule into CLAUDE.md (delegates to inject_section_cli.py)
49
+ inject_section_cli.py # Marker-based content injection (canonical implementation)
50
+ _common.py # Shared helper for generators (frontmatter, agents/skills emission)
51
+ merge-hooks.py # JSON merge for hooks into settings.json (inject/strip modes)
52
+ validate.py # Toolkit integrity check
53
+ evaluate_skills.py # Skill quality report
54
+ generate_agents_md.py # Regenerates AGENTS.md
55
+ generate_cursor_rules.py # Generates .cursorrules (sources _common.py)
56
+ generate_windsurf.py # Generates .windsurfrules (sources _common.py)
57
+ generate_copilot.py # Generates .github/copilot-instructions.md (sources _common.py)
58
+ generate_gemini.py # Generates GEMINI.md (sources _common.py)
59
+ generate_cline.py # Generates .clinerules (sources _common.py)
60
+ generate_roo_modes.py # Generates .roomodes
61
+ generate_aider_conf.py # Generates .aider.conf.yml
62
+ generate_llms_txt.py # Generates llms.txt
63
+ install_git_hooks.py # Installs fallback pre-commit hook
64
+ plugin.py # Plugin pack management (install, remove, list, status)
65
+ benchmark_ecosystem.py # Generates ecosystem benchmark snapshot
66
+ harvest_ecosystem.py # Writes machine-readable ecosystem harvest JSON
67
+ tests/ # Bats test suite
68
+ benchmarks/ # Benchmark tasks + results
69
+ kb/ # Knowledge base
70
+ reference/ # Catalogs, architecture, usage guides
71
+ procedures/ # SOPs (install, maintenance)
72
+ reference/ # architecture, operating models, and usage guides
73
+ ```
74
+
75
+ ## Install Model
76
+
77
+ All components use merge-friendly strategies — user content is never overwritten.
78
+
79
+ ```
80
+ Machine (global) Project (local)
81
+ ────────────────────────────────────────── ──────────────────────────────────────
82
+ ~/.claude/ ~/.ai-toolkit/
83
+ agents/*.md → per-file symlinks rules/ ← registered rules
84
+ skills/*/ → per-dir symlinks hooks/ ← hook scripts (copied)
85
+ settings.json ← hooks merged here
86
+ constitution.md ← marker injection my-project/
87
+ ARCHITECTURE.md ← marker injection CLAUDE.md ← project rules
88
+ CLAUDE.md ← marker injection (rules) .claude/
89
+ settings.local.json ← MCP, perms
90
+ constitution.md ← marker injection
91
+ ```
92
+
93
+ | Component | Strategy | Collision handling |
94
+ |-----------|----------|-------------------|
95
+ | `agents/*.md` | Per-file symlinks | User file with same name wins (toolkit skipped) |
96
+ | `skills/*/` | Per-directory symlinks | User dir with same name wins (toolkit skipped) |
97
+ | `settings.json` hooks | JSON merge via `merge-hooks.py` | User hooks + settings preserved, toolkit entries tagged with `_source` |
98
+ | `constitution.md` | Marker injection via `inject_section_cli.py` | User content outside `<!-- TOOLKIT:* -->` markers untouched |
99
+ | `ARCHITECTURE.md` | Marker injection via `inject_section_cli.py` | Same as above |
100
+ | `CLAUDE.md` | Marker injection via `inject_rule_cli.py` | Same as above |
101
+
102
+ **`ai-toolkit install`** — run once per machine, merges toolkit into `~/.claude/`. Auto-upgrades old whole-directory symlinks.
103
+
104
+ **`ai-toolkit update`** — re-apply after `npm install -g @softspark/ai-toolkit@latest` or after `add-rule` / `remove-rule`. Same as `install` but semantically correct for update flows.
105
+
106
+ **`ai-toolkit install --local`** (or `update --local`) — run per project, creates `CLAUDE.md` template + `.claude/settings.local.json` (only if missing, initialized with MCP defaults), and injects `constitution.md` + Copilot + Cline + Roo Code + Aider configs into local `.claude/` (preserves existing user content). Installs `--local` git hooks as a fallback for quality gates. Hooks are global-only — not merged into project settings.
107
+
108
+ ## CLI Commands
109
+
110
+ | Command | Target | What it does |
111
+ |---------|--------|-------------|
112
+ | `install` | `~/.claude/` | First-time: per-file symlinks + JSON merge + marker injection + rules |
113
+ | `install --local` | `./` | Also set up project-local: `CLAUDE.md` + `settings.local.json` + constitution + Copilot + Cline + Roo + Aider + Git Hooks (hooks stay global-only) |
114
+ | `update` | `~/.claude/` | Re-apply after npm update or after add-rule/remove-rule |
115
+ | `update --local` | `./` | Re-apply + refresh project-local configs |
116
+ | `uninstall` | `~/.claude/` | Strips toolkit components (preserves user content) |
117
+ | `add-rule <file>` | `~/.ai-toolkit/rules/` | Register rule — auto-applied on every `update` |
118
+ | `remove-rule <name>` | `~/.ai-toolkit/rules/` + `~/.claude/CLAUDE.md` | Unregister rule and remove its block |
119
+ | `validate` | toolkit | Integrity check |
120
+ | `doctor` | toolkit | Install health, hooks, benchmark freshness, and artifact drift diagnostics |
121
+ | `benchmark-ecosystem` | toolkit | Benchmark snapshot for official Claude Code and external ecosystem repos |
122
+ | `evaluate` | toolkit | Skill quality report |
123
+ | `cursor-rules` | `./` | Generates `.cursorrules` |
124
+ | `windsurf-rules` | `./` | Generates `.windsurfrules` |
125
+ | `copilot-instructions` | `./` | Generates `.github/copilot-instructions.md` |
126
+ | `gemini-md` | `./` | Generates `GEMINI.md` |
127
+ | `cline-rules` | `./` | Generates `.clinerules` |
128
+ | `roo-modes` | `./` | Generates `.roomodes` |
129
+ | `aider-conf` | `./` | Generates `.aider.conf.yml` |
130
+ | `agents-md` | toolkit | Regenerates `AGENTS.md` |
131
+ | `llms-txt` | `./` | Generates `llms.txt` |
132
+ | `generate-all` | `./` | Generates all platform configs at once |
133
+
134
+ ## Skill Tiers
135
+
136
+ Three tiers determine how to approach a task:
137
+
138
+ | Tier | Skills | When to use |
139
+ |------|--------|-------------|
140
+ | **1 — Quick single-agent** | `/debug`, `/review`, `/refactor`, `/analyze`, `/docs`, `/plan`, `/explain` | One concern, one file area, fast |
141
+ | **2 — Multi-agent workflow** | `/workflow <type>` | Cross-cutting task with a known pattern |
142
+ | **3 — Custom parallelism** | `/orchestrate`, `/swarm` | No predefined workflow matches |
143
+
144
+ ### `/workflow` types (15)
145
+
146
+ | Type | Use case |
147
+ |------|----------|
148
+ | `feature-development` | New feature, full stack |
149
+ | `backend-feature` | Backend only: API + logic + tests |
150
+ | `frontend-feature` | UI component + state + tests |
151
+ | `api-design` | New API endpoint design → implement → document |
152
+ | `database-evolution` | Schema change + migration + code update |
153
+ | `test-coverage` | Boost test coverage for a module |
154
+ | `security-audit` | Multi-vector security assessment |
155
+ | `codebase-onboarding` | Understand unfamiliar codebase (read-only) |
156
+ | `spike` | Time-boxed technical research → architecture note |
157
+ | `debugging` | Bug spanning multiple layers |
158
+ | `incident-response` | Production down |
159
+ | `performance-optimization` | Degradation >50% |
160
+ | `infrastructure-change` | Docker, CI/CD, infra |
161
+ | `application-deploy` | Deploy |
162
+ | `proactive-troubleshooting` | Warning / trend |
163
+
164
+ ## Skill Classification
165
+
166
+ | Type | Field | Invocation | Count |
167
+ |------|-------|-----------|-------|
168
+ | Task | `disable-model-invocation: true` | User via `/skill` only | 27 |
169
+ | Hybrid | (neither) | User via `/skill` + agent knowledge | 27 |
170
+ | Knowledge | `user-invocable: false` | Claude auto-loads | 31 |
171
+
172
+ ## Multi-Agent Execution
173
+
174
+ Skills that spawn real parallel agents use:
175
+ - `agent: <name>` — delegates to a specialized agent persona
176
+ - `context: fork` — runs in isolated forked context
177
+ - `Agent` tool — spawns subagents in parallel within the agent's response
178
+
179
+ `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` must be set for Agent Teams (tmux-based) support.
180
+
181
+ ## Component Relationships
182
+
183
+ ```
184
+ Skills (/review, /deploy, /debug, ...)
185
+
186
+
187
+ Agents (code-reviewer, debugger, devops-implementer, ...)
188
+
189
+ ├── load: knowledge skills (clean-code, typescript-patterns, ...)
190
+
191
+ ├── validated by: hooks in settings.json (SessionStart, PreToolUse, UserPromptSubmit, PostToolUse, Stop, TaskCompleted, TeammateIdle, SubagentStart, SubagentStop, PreCompact, SessionEnd)
192
+
193
+ └── constrained by: constitution.md (5 safety articles)
194
+ ```
195
+
196
+ ## Quality Hooks
197
+
198
+ | Hook | Trigger | Script | Action |
199
+ |------|---------|--------|--------|
200
+ | SessionStart | Session start + compact | `session-start.sh` | MANDATORY rules reminder + session context + instincts |
201
+ | Notification | Claude waiting for input | *(inline)* | macOS desktop notification |
202
+ | PreToolUse | Before Bash | `guard-destructive.sh` | Block destructive commands |
203
+ | PreToolUse | Before file ops (Bash, Read, Edit, Write, MultiEdit, Glob, Grep, NotebookEdit, mcp\_filesystem) | `guard-path.sh` | Block wrong-user path hallucination |
204
+ | UserPromptSubmit | Before user prompt execution | `user-prompt-submit.sh` | Prompt governance reminder |
205
+ | PostToolUse | After edit/write tools | `post-tool-use.sh` | Lightweight validation reminders |
206
+ | Stop | After response | `quality-check.sh` | Multi-language lint |
207
+ | Stop | After response | `save-session.sh` | Persist session context |
208
+ | TaskCompleted | Agent Teams: task done | `quality-gate.sh` | Block completion on errors |
209
+ | TeammateIdle | Agent Teams: idle | *(inline)* | Completeness reminder |
210
+ | SubagentStart | Subagent spawn | `subagent-start.sh` | Scope reminder for subagents |
211
+ | SubagentStop | Subagent completion | `subagent-stop.sh` | Handoff checklist for subagents |
212
+ | PreCompact | Before compaction | `pre-compact.sh` | Save context before compaction |
213
+ | SessionEnd | Session end | `session-end.sh` | Persist handoff note for the next session |
214
+
215
+ Scripts at `~/.ai-toolkit/hooks/`. See [hooks-catalog.md](hooks-catalog.md) for details.
216
+
217
+ ## Constitution (5 Articles)
218
+
219
+ | Article | Key Rule |
220
+ |---------|----------|
221
+ | I Safety First | No data loss, no blind execution, max 3 loop iterations |
222
+ | II Hierarchy of Truth | KB is source of truth, research protocol mandatory |
223
+ | III Operational Integrity | Green tests = Done, logs are evidence |
224
+ | IV Self-Preservation | Constitution is read-only, kill switch via system-governor |
225
+ | V Resource Governance | No destructive commands without confirmation |
226
+
227
+ ## Agent Model Tiers
228
+
229
+ | Model | Purpose | Count |
230
+ |-------|---------|-------|
231
+ | opus | Complex reasoning, code generation, security | 32 |
232
+ | sonnet | Documentation, analysis, pattern-following | 15 |
@@ -0,0 +1,62 @@
1
+ ---
2
+ title: "AI Toolkit - Config Benchmark"
3
+ category: reference
4
+ service: ai-toolkit
5
+ tags: [benchmark, config, comparison, coverage]
6
+ version: "1.0.0"
7
+ created: "2026-03-29"
8
+ last_updated: "2026-03-29"
9
+ description: "Compare your installed ai-toolkit config vs toolkit defaults vs ecosystem competition."
10
+ ---
11
+
12
+ # Config Benchmark
13
+
14
+ ## Usage
15
+
16
+ ```bash
17
+ ai-toolkit benchmark --my-config
18
+ ```
19
+
20
+ ## What It Shows
21
+
22
+ 1. **Your Configuration** — counts of installed agents, skills, hooks in `~/.claude/`
23
+ 2. **Toolkit Totals** — counts of available assets in the toolkit package
24
+ 3. **Coverage** — percentage of toolkit assets you have installed
25
+ 4. **Missing Components** — up to 10 agents and skills not yet installed
26
+ 5. **Ecosystem Comparison** — your config vs public Claude Code ecosystem repos
27
+
28
+ ## Output Example
29
+
30
+ ```
31
+ AI Toolkit Config Benchmark
32
+ ========================
33
+
34
+ ## Your Configuration (~/.claude/)
35
+ Agents: 47
36
+ Skills: 80
37
+ Hooks: 12
38
+
39
+ ## Toolkit Totals
40
+ Agents: 47
41
+ Skills: 80
42
+ Hooks: 12
43
+
44
+ ## Coverage
45
+ Agents: 100% (47 / 47)
46
+ Skills: 100% (80 / 80)
47
+ Hooks: 100% (12 / 12)
48
+
49
+ ## Ecosystem Comparison
50
+ Repo Agents Skills Hooks
51
+ --------------------------------------------------------------
52
+ Your config 47 80 12
53
+ --------------------------------------------------------------
54
+ anthropics/claude-code 15 10 5
55
+ affaan-m/everything-claude-code 152 397 2
56
+ ```
57
+
58
+ ## Data Sources
59
+
60
+ - User config: `~/.claude/agents/`, `~/.claude/skills/`, `~/.ai-toolkit/hooks/`
61
+ - Toolkit: `app/agents/`, `app/skills/`, `app/hooks/`
62
+ - Ecosystem: `benchmarks/ecosystem-dashboard.json`