agent-toolkit-cli 1.11.0__py3-none-win_amd64.whl

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 (438) hide show
  1. agent_toolkit/__init__.py +4 -0
  2. agent_toolkit/__main__.py +5 -0
  3. agent_toolkit/_paths.py +145 -0
  4. agent_toolkit/bin/.gitkeep +0 -0
  5. agent_toolkit/bin/agent-toolkit.exe +0 -0
  6. agent_toolkit/cli/__init__.py +0 -0
  7. agent_toolkit/cli/__main__.py +5 -0
  8. agent_toolkit/cli/build.py +278 -0
  9. agent_toolkit/cli/completion.py +297 -0
  10. agent_toolkit/cli/context_budget.py +455 -0
  11. agent_toolkit/cli/devcompanion.py +923 -0
  12. agent_toolkit/cli/devcompanion_queue.py +235 -0
  13. agent_toolkit/cli/diff.py +176 -0
  14. agent_toolkit/cli/doctor.py +1052 -0
  15. agent_toolkit/cli/insights.py +771 -0
  16. agent_toolkit/cli/install.py +706 -0
  17. agent_toolkit/cli/main.py +171 -0
  18. agent_toolkit/cli/mcp.py +537 -0
  19. agent_toolkit/cli/memory.py +739 -0
  20. agent_toolkit/cli/plugin.py +224 -0
  21. agent_toolkit/cli/project.py +459 -0
  22. agent_toolkit/cli/release.py +178 -0
  23. agent_toolkit/cli/skills.py +461 -0
  24. agent_toolkit/cli/uninstall.py +166 -0
  25. agent_toolkit/cli/update.py +298 -0
  26. agent_toolkit/cli/workspace.py +1713 -0
  27. agent_toolkit/compiler/hook_registry.py +110 -0
  28. agent_toolkit/compiler/loader.py +338 -0
  29. agent_toolkit/compiler/mcp_registry.py +87 -0
  30. agent_toolkit/compiler/model.py +182 -0
  31. agent_toolkit/compiler/provenance.py +140 -0
  32. agent_toolkit/compiler/registry_emit.py +263 -0
  33. agent_toolkit/compiler/target_registry.py +122 -0
  34. agent_toolkit/compiler/targets/__init__.py +1 -0
  35. agent_toolkit/compiler/targets/agent_plugins.py +160 -0
  36. agent_toolkit/compiler/targets/base.py +229 -0
  37. agent_toolkit/compiler/targets/claude_code.py +241 -0
  38. agent_toolkit/compiler/targets/codex.py +261 -0
  39. agent_toolkit/compiler/targets/copilot.py +275 -0
  40. agent_toolkit/compiler/targets/cursor.py +207 -0
  41. agent_toolkit/compiler/targets/gemini_cli.py +213 -0
  42. agent_toolkit/compiler/targets/muse_code.py +113 -0
  43. agent_toolkit/compiler/targets/opencode.py +204 -0
  44. agent_toolkit/compiler/targets/pi.py +263 -0
  45. agent_toolkit/compiler/targets/windsurf.py +267 -0
  46. agent_toolkit/compiler/tool_mapping.py +83 -0
  47. agent_toolkit/data/.gitignore +4 -0
  48. agent_toolkit/data/__init__.py +1 -0
  49. agent_toolkit/data/agents/agentic-security-reviewer/AGENT.md +60 -0
  50. agent_toolkit/data/agents/architect/AGENT.md +30 -0
  51. agent_toolkit/data/agents/assistant/AGENT.md +59 -0
  52. agent_toolkit/data/agents/build-error-resolver/AGENT.md +30 -0
  53. agent_toolkit/data/agents/client-workflow-bootstrap/AGENT.md +60 -0
  54. agent_toolkit/data/agents/code-reviewer/AGENT.md +49 -0
  55. agent_toolkit/data/agents/database-reviewer/AGENT.md +44 -0
  56. agent_toolkit/data/agents/docs-lookup/AGENT.md +28 -0
  57. agent_toolkit/data/agents/e2e-runner/AGENT.md +38 -0
  58. agent_toolkit/data/agents/performance-optimizer/AGENT.md +52 -0
  59. agent_toolkit/data/agents/planner/AGENT.md +41 -0
  60. agent_toolkit/data/agents/refactor-cleaner/AGENT.md +43 -0
  61. agent_toolkit/data/agents/reference-lookup/AGENT.md +33 -0
  62. agent_toolkit/data/agents/security-reviewer/AGENT.md +47 -0
  63. agent_toolkit/data/agents/tdd-guide/AGENT.md +58 -0
  64. agent_toolkit/data/agents/tech-assistant/AGENT.md +11 -0
  65. agent_toolkit/data/agents/typescript-reviewer/AGENT.md +61 -0
  66. agent_toolkit/data/capabilities/hooks/README.md +6 -0
  67. agent_toolkit/data/capabilities/hooks/pre-commit-validate.yaml +26 -0
  68. agent_toolkit/data/capabilities/hooks/scripts/pre-commit-validate.sh +41 -0
  69. agent_toolkit/data/capabilities/hooks/scripts/session-start-context.sh +11 -0
  70. agent_toolkit/data/capabilities/hooks/session-start-context.yaml +23 -0
  71. agent_toolkit/data/capabilities/targets/registry.yaml +90 -0
  72. agent_toolkit/data/capabilities/upstream.lock +118 -0
  73. agent_toolkit/data/catalogs/agent-catalog.yaml +81 -0
  74. agent_toolkit/data/catalogs/loop-catalog.yaml +55 -0
  75. agent_toolkit/data/catalogs/skill-catalog.yaml +520 -0
  76. agent_toolkit/data/catalogs/skills-layout.json +391 -0
  77. agent_toolkit/data/distributions/products.yaml +190 -0
  78. agent_toolkit/data/distributions/targets/claude-code.yaml +47 -0
  79. agent_toolkit/data/distributions/targets/cursor.yaml +42 -0
  80. agent_toolkit/data/distributions/targets/opencode.yaml +55 -0
  81. agent_toolkit/data/loops/changelog-drafter/loop.yaml +40 -0
  82. agent_toolkit/data/loops/ci-sweeper/loop.yaml +53 -0
  83. agent_toolkit/data/loops/daily-triage/loop.yaml +47 -0
  84. agent_toolkit/data/loops/dep-sweeper/loop.yaml +46 -0
  85. agent_toolkit/data/loops/issue-triage/loop.yaml +40 -0
  86. agent_toolkit/data/loops/oss-daily-briefing/loop.yaml +65 -0
  87. agent_toolkit/data/loops/oss-pr-monitor/loop.yaml +86 -0
  88. agent_toolkit/data/loops/oss-triage/loop.yaml +67 -0
  89. agent_toolkit/data/loops/post-merge-cleanup/loop.yaml +44 -0
  90. agent_toolkit/data/loops/pr-babysitter/loop.yaml +46 -0
  91. agent_toolkit/data/mcp/registry/chrome-devtools.yaml +61 -0
  92. agent_toolkit/data/mcp/registry/clickup.yaml +48 -0
  93. agent_toolkit/data/mcp/registry/figma.yaml +44 -0
  94. agent_toolkit/data/mcp/registry/github.yaml +52 -0
  95. agent_toolkit/data/mcp/registry/linear.yaml +47 -0
  96. agent_toolkit/data/mcp/registry/notion.yaml +48 -0
  97. agent_toolkit/data/mcp/registry/slack.yaml +46 -0
  98. agent_toolkit/data/mcp/templates/chrome-devtools/README.md +57 -0
  99. agent_toolkit/data/mcp/templates/chrome-devtools/config.template.json +6 -0
  100. agent_toolkit/data/mcp/templates/clickup/README.md +45 -0
  101. agent_toolkit/data/mcp/templates/clickup/config.template.json +8 -0
  102. agent_toolkit/data/mcp/templates/clickup/wrapper.sh +23 -0
  103. agent_toolkit/data/mcp/templates/figma/README.md +54 -0
  104. agent_toolkit/data/mcp/templates/figma/config.template.json +9 -0
  105. agent_toolkit/data/mcp/templates/github/README.md +16 -0
  106. agent_toolkit/data/mcp/templates/github/config.template.json +15 -0
  107. agent_toolkit/data/mcp/templates/github/wrapper.sh +6 -0
  108. agent_toolkit/data/mcp/templates/linear/README.md +49 -0
  109. agent_toolkit/data/mcp/templates/linear/config.template.json +10 -0
  110. agent_toolkit/data/mcp/templates/notion/README.md +7 -0
  111. agent_toolkit/data/mcp/templates/notion/config.template.json +8 -0
  112. agent_toolkit/data/mcp/templates/notion/wrapper.sh +23 -0
  113. agent_toolkit/data/mcp/templates/slack/README.md +8 -0
  114. agent_toolkit/data/mcp/templates/slack/config.template.json +9 -0
  115. agent_toolkit/data/mcp/templates/slack/wrapper.sh +23 -0
  116. agent_toolkit/data/packs/README.md +66 -0
  117. agent_toolkit/data/packs/agentic-security/README.md +19 -0
  118. agent_toolkit/data/packs/agentic-security/config.yaml +25 -0
  119. agent_toolkit/data/packs/architecture/README.md +22 -0
  120. agent_toolkit/data/packs/architecture/config.yaml +27 -0
  121. agent_toolkit/data/packs/code-quality/README.md +19 -0
  122. agent_toolkit/data/packs/code-quality/config.yaml +21 -0
  123. agent_toolkit/data/packs/delivery-discipline/README.md +19 -0
  124. agent_toolkit/data/packs/delivery-discipline/config.yaml +42 -0
  125. agent_toolkit/data/packs/design-engineering/README.md +19 -0
  126. agent_toolkit/data/packs/design-engineering/config.yaml +41 -0
  127. agent_toolkit/data/packs/engineering-workflow/README.md +21 -0
  128. agent_toolkit/data/packs/engineering-workflow/config.yaml +57 -0
  129. agent_toolkit/data/packs/oss-maintenance/README.md +245 -0
  130. agent_toolkit/data/packs/oss-maintenance/config.yaml +75 -0
  131. agent_toolkit/data/profiles/claude-code/CLAUDE.md +110 -0
  132. agent_toolkit/data/profiles/claude-code/agents/assistant.md +59 -0
  133. agent_toolkit/data/profiles/claude-code/agents/build-error-resolver.md +30 -0
  134. agent_toolkit/data/profiles/claude-code/agents/client-workflow-bootstrap.md +60 -0
  135. agent_toolkit/data/profiles/claude-code/agents/contribution-planner.md +39 -0
  136. agent_toolkit/data/profiles/claude-code/agents/database-reviewer.md +44 -0
  137. agent_toolkit/data/profiles/claude-code/agents/docs-lookup.md +28 -0
  138. agent_toolkit/data/profiles/claude-code/agents/e2e-runner.md +38 -0
  139. agent_toolkit/data/profiles/claude-code/agents/performance-optimizer.md +52 -0
  140. agent_toolkit/data/profiles/claude-code/agents/planner.md +41 -0
  141. agent_toolkit/data/profiles/claude-code/agents/refactor-cleaner.md +43 -0
  142. agent_toolkit/data/profiles/claude-code/agents/reference-lookup.md +33 -0
  143. agent_toolkit/data/profiles/claude-code/agents/security-reviewer.md +47 -0
  144. agent_toolkit/data/profiles/claude-code/agents/tdd-guide.md +58 -0
  145. agent_toolkit/data/profiles/claude-code/agents/typescript-reviewer.md +61 -0
  146. agent_toolkit/data/profiles/claude-code/settings.json +86 -0
  147. agent_toolkit/data/profiles/copilot/copilot-instructions.md +15 -0
  148. agent_toolkit/data/profiles/cursor/README.md +33 -0
  149. agent_toolkit/data/profiles/cursor/rules/architect.mdc +23 -0
  150. agent_toolkit/data/profiles/cursor/rules/assistant.mdc +61 -0
  151. agent_toolkit/data/profiles/cursor/rules/build-error-resolver.mdc +20 -0
  152. agent_toolkit/data/profiles/cursor/rules/code-reviewer.mdc +21 -0
  153. agent_toolkit/data/profiles/cursor/rules/database-reviewer.mdc +29 -0
  154. agent_toolkit/data/profiles/cursor/rules/docs-lookup.mdc +15 -0
  155. agent_toolkit/data/profiles/cursor/rules/e2e-runner.mdc +30 -0
  156. agent_toolkit/data/profiles/cursor/rules/performance-optimizer.mdc +27 -0
  157. agent_toolkit/data/profiles/cursor/rules/planner.mdc +28 -0
  158. agent_toolkit/data/profiles/cursor/rules/refactor-cleaner.mdc +26 -0
  159. agent_toolkit/data/profiles/cursor/rules/reference-lookup.mdc +20 -0
  160. agent_toolkit/data/profiles/cursor/rules/security-reviewer.mdc +20 -0
  161. agent_toolkit/data/profiles/cursor/rules/tdd-guide.mdc +26 -0
  162. agent_toolkit/data/profiles/cursor/rules/typescript-reviewer.mdc +28 -0
  163. agent_toolkit/data/profiles/muse-code/README.md +35 -0
  164. agent_toolkit/data/profiles/opencode/README.md +44 -0
  165. agent_toolkit/data/profiles/opencode/agents/architect.md +30 -0
  166. agent_toolkit/data/profiles/opencode/agents/assistant.md +96 -0
  167. agent_toolkit/data/profiles/opencode/agents/build-error-resolver.md +31 -0
  168. agent_toolkit/data/profiles/opencode/agents/client-workflow-bootstrap.md +66 -0
  169. agent_toolkit/data/profiles/opencode/agents/code-reviewer.md +47 -0
  170. agent_toolkit/data/profiles/opencode/agents/contribution-planner.md +44 -0
  171. agent_toolkit/data/profiles/opencode/agents/database-reviewer.md +43 -0
  172. agent_toolkit/data/profiles/opencode/agents/docs-lookup.md +28 -0
  173. agent_toolkit/data/profiles/opencode/agents/e2e-runner.md +33 -0
  174. agent_toolkit/data/profiles/opencode/agents/performance-optimizer.md +34 -0
  175. agent_toolkit/data/profiles/opencode/agents/planner.md +27 -0
  176. agent_toolkit/data/profiles/opencode/agents/refactor-cleaner.md +27 -0
  177. agent_toolkit/data/profiles/opencode/agents/reference-lookup.md +27 -0
  178. agent_toolkit/data/profiles/opencode/agents/security-reviewer.md +27 -0
  179. agent_toolkit/data/profiles/opencode/agents/tdd-guide.md +27 -0
  180. agent_toolkit/data/profiles/opencode/agents/typescript-reviewer.md +30 -0
  181. agent_toolkit/data/profiles/opencode/opencode.json +3 -0
  182. agent_toolkit/data/profiles/pi/skills/architect/skill.md +5 -0
  183. agent_toolkit/data/profiles/pi/skills/assistant/skill.md +3 -0
  184. agent_toolkit/data/profiles/pi/skills/code-reviewer/skill.md +5 -0
  185. agent_toolkit/data/profiles/pi/skills/planner/skill.md +3 -0
  186. agent_toolkit/data/profiles/pi/skills/security-reviewer/skill.md +3 -0
  187. agent_toolkit/data/profiles/windsurf/memories/global_rules.md +114 -0
  188. agent_toolkit/data/profiles/windsurf/rules/architect.mdc +23 -0
  189. agent_toolkit/data/profiles/windsurf/rules/assistant.mdc +61 -0
  190. agent_toolkit/data/profiles/windsurf/rules/build-error-resolver.mdc +20 -0
  191. agent_toolkit/data/profiles/windsurf/rules/code-reviewer.mdc +21 -0
  192. agent_toolkit/data/profiles/windsurf/rules/database-reviewer.mdc +29 -0
  193. agent_toolkit/data/profiles/windsurf/rules/docs-lookup.mdc +15 -0
  194. agent_toolkit/data/profiles/windsurf/rules/e2e-runner.mdc +30 -0
  195. agent_toolkit/data/profiles/windsurf/rules/performance-optimizer.mdc +27 -0
  196. agent_toolkit/data/profiles/windsurf/rules/planner.mdc +28 -0
  197. agent_toolkit/data/profiles/windsurf/rules/refactor-cleaner.mdc +26 -0
  198. agent_toolkit/data/profiles/windsurf/rules/reference-lookup.mdc +20 -0
  199. agent_toolkit/data/profiles/windsurf/rules/security-reviewer.mdc +20 -0
  200. agent_toolkit/data/profiles/windsurf/rules/tdd-guide.mdc +26 -0
  201. agent_toolkit/data/profiles/windsurf/rules/typescript-reviewer.mdc +28 -0
  202. agent_toolkit/data/skills/accessibility/review/SKILL.md +116 -0
  203. agent_toolkit/data/skills/accessibility/review/references/a11y-checklist.md +25 -0
  204. agent_toolkit/data/skills/accessibility/review/references/a11y-findings-template.md +56 -0
  205. agent_toolkit/data/skills/accessibility/review/references/research.md +47 -0
  206. agent_toolkit/data/skills/agentic-security/mcp-audit/SKILL.md +116 -0
  207. agent_toolkit/data/skills/agentic-security/mcp-audit/references/mcp-audit-template.md +51 -0
  208. agent_toolkit/data/skills/agentic-security/owasp-agentic-review/SKILL.md +73 -0
  209. agent_toolkit/data/skills/agentic-security/owasp-agentic-review/references/owasp-agentic-template.md +32 -0
  210. agent_toolkit/data/skills/agentic-security/supply-chain-audit/SKILL.md +142 -0
  211. agent_toolkit/data/skills/agentic-security/threat-modeling/SKILL.md +100 -0
  212. agent_toolkit/data/skills/agentic-security/threat-modeling/references/threat-model-template.md +55 -0
  213. agent_toolkit/data/skills/architecture/c4-model/SKILL.md +49 -0
  214. agent_toolkit/data/skills/cloud/aws-well-architected-review/SKILL.md +37 -0
  215. agent_toolkit/data/skills/cloud/cloud-design-patterns/SKILL.md +38 -0
  216. agent_toolkit/data/skills/core/assistant/SKILL.md +216 -0
  217. agent_toolkit/data/skills/core/assistant/references/AGENTS_TEMPLATE.md +0 -0
  218. agent_toolkit/data/skills/core/assistant/references/ORCHESTRATION.md +0 -0
  219. agent_toolkit/data/skills/core/assistant/references/REPO_INSPECTION.md +0 -0
  220. agent_toolkit/data/skills/core/dev-companion/SKILL.md +65 -0
  221. agent_toolkit/data/skills/core/dev-companion/references/LOOP_GUARDRAILS.md +0 -0
  222. agent_toolkit/data/skills/core/onboarding/SKILL.md +122 -0
  223. agent_toolkit/data/skills/core/output-handshake/SKILL.md +26 -0
  224. agent_toolkit/data/skills/core/pr-fallback/SKILL.md +35 -0
  225. agent_toolkit/data/skills/core/pr-fallback/references/pr-body-default.md +0 -0
  226. agent_toolkit/data/skills/core/project/SKILL.md +89 -0
  227. agent_toolkit/data/skills/core/workspace/SKILL.md +103 -0
  228. agent_toolkit/data/skills/core/workspace-knowledge-sync/SKILL.md +140 -0
  229. agent_toolkit/data/skills/data/dbt-validation/SKILL.md +41 -0
  230. agent_toolkit/data/skills/data/snowflake-validation/SKILL.md +38 -0
  231. agent_toolkit/data/skills/delivery/adr/SKILL.md +56 -0
  232. agent_toolkit/data/skills/delivery/adr/references/default-template.md +35 -0
  233. agent_toolkit/data/skills/delivery/adr/references/example-001-graphql-adoption.md +66 -0
  234. agent_toolkit/data/skills/delivery/agreement/SKILL.md +24 -0
  235. agent_toolkit/data/skills/delivery/agreement/references/default-template.md +17 -0
  236. agent_toolkit/data/skills/delivery/agreement/references/example-api-versioning.md +29 -0
  237. agent_toolkit/data/skills/delivery/bug/SKILL.md +26 -0
  238. agent_toolkit/data/skills/delivery/bug/references/default-template.md +26 -0
  239. agent_toolkit/data/skills/delivery/bug/references/example-search-filter-bug.md +58 -0
  240. agent_toolkit/data/skills/delivery/decision-log/SKILL.md +28 -0
  241. agent_toolkit/data/skills/delivery/decision-log/references/default-template.md +17 -0
  242. agent_toolkit/data/skills/delivery/decision-log/references/example-repository-pattern.md +27 -0
  243. agent_toolkit/data/skills/delivery/development-workflow/SKILL.md +34 -0
  244. agent_toolkit/data/skills/delivery/development-workflow/references/default-workflow-checklist.md +44 -0
  245. agent_toolkit/data/skills/delivery/epic/SKILL.md +22 -0
  246. agent_toolkit/data/skills/delivery/epic/references/default-template.md +26 -0
  247. agent_toolkit/data/skills/delivery/epic/references/example-unified-dashboard.md +40 -0
  248. agent_toolkit/data/skills/delivery/incident/SKILL.md +24 -0
  249. agent_toolkit/data/skills/delivery/incident/references/default-template.md +29 -0
  250. agent_toolkit/data/skills/delivery/incident/references/example-payment-outage.md +62 -0
  251. agent_toolkit/data/skills/delivery/management-unit-assessment/SKILL.md +104 -0
  252. agent_toolkit/data/skills/delivery/management-unit-assessment/references/default-template.md +24 -0
  253. agent_toolkit/data/skills/delivery/management-unit-assessment/references/example-team-assessment.md +126 -0
  254. agent_toolkit/data/skills/delivery/meeting-minutes/SKILL.md +25 -0
  255. agent_toolkit/data/skills/delivery/meeting-minutes/references/default-template.md +22 -0
  256. agent_toolkit/data/skills/delivery/meeting-minutes/references/example-weekly-sync.md +72 -0
  257. agent_toolkit/data/skills/delivery/planning/SKILL.md +31 -0
  258. agent_toolkit/data/skills/delivery/planning/references/default-template.md +25 -0
  259. agent_toolkit/data/skills/delivery/planning/references/example-sprint-planning.md +62 -0
  260. agent_toolkit/data/skills/delivery/prd/SKILL.md +46 -0
  261. agent_toolkit/data/skills/delivery/prd/references/default-template.md +31 -0
  262. agent_toolkit/data/skills/delivery/prd/references/example-unified-api.md +71 -0
  263. agent_toolkit/data/skills/delivery/project-assessment/SKILL.md +90 -0
  264. agent_toolkit/data/skills/delivery/project-assessment/references/default-template.md +26 -0
  265. agent_toolkit/data/skills/delivery/project-assessment/references/example-platform-assessment.md +122 -0
  266. agent_toolkit/data/skills/delivery/project-assessment-evidence/SKILL.md +88 -0
  267. agent_toolkit/data/skills/delivery/project-assessment-evidence/references/default-template.md +24 -0
  268. agent_toolkit/data/skills/delivery/project-assessment-evidence/references/example-evidence-map.md +46 -0
  269. agent_toolkit/data/skills/delivery/spike/SKILL.md +24 -0
  270. agent_toolkit/data/skills/delivery/spike/references/default-template.md +29 -0
  271. agent_toolkit/data/skills/delivery/spike/references/example-graphql-federation.md +79 -0
  272. agent_toolkit/data/skills/delivery/task/SKILL.md +21 -0
  273. agent_toolkit/data/skills/delivery/task/references/default-template.md +21 -0
  274. agent_toolkit/data/skills/delivery/task/references/example-nav-system.md +33 -0
  275. agent_toolkit/data/skills/delivery/technical-unit-assessment/SKILL.md +58 -0
  276. agent_toolkit/data/skills/delivery/technical-unit-assessment/references/default-template.md +26 -0
  277. agent_toolkit/data/skills/delivery/technical-unit-assessment/references/example-frontend-assessment.md +112 -0
  278. agent_toolkit/data/skills/delivery/technical-unit-assessment/references/indicator-groups.md +65 -0
  279. agent_toolkit/data/skills/delivery/trd/SKILL.md +49 -0
  280. agent_toolkit/data/skills/delivery/trd/references/default-template.md +31 -0
  281. agent_toolkit/data/skills/delivery/trd/references/example-api-migration.md +122 -0
  282. agent_toolkit/data/skills/delivery/user-story/SKILL.md +21 -0
  283. agent_toolkit/data/skills/delivery/user-story/references/default-template.md +21 -0
  284. agent_toolkit/data/skills/delivery/user-story/references/example-advanced-filtering.md +37 -0
  285. agent_toolkit/data/skills/delivery/work-item/SKILL.md +31 -0
  286. agent_toolkit/data/skills/delivery/work-item/references/default-template.md +21 -0
  287. agent_toolkit/data/skills/delivery/work-item/references/example-routing-dashboard.md +23 -0
  288. agent_toolkit/data/skills/delivery/workflow-client-bootstrap/SKILL.md +148 -0
  289. agent_toolkit/data/skills/delivery/workflow-client-bootstrap/questions.yaml +165 -0
  290. agent_toolkit/data/skills/delivery/workflow-generic-project/SKILL.md +79 -0
  291. agent_toolkit/data/skills/design/design-assessment/SKILL.md +150 -0
  292. agent_toolkit/data/skills/design/design-assessment/references/design-scorecard-template.md +78 -0
  293. agent_toolkit/data/skills/design/design-improvement/SKILL.md +167 -0
  294. agent_toolkit/data/skills/design/design-improvement/references/improvement-plan-template.md +113 -0
  295. agent_toolkit/data/skills/design/figma/LICENSE.txt +2 -0
  296. agent_toolkit/data/skills/design/figma/NOTICE.txt +25 -0
  297. agent_toolkit/data/skills/design/figma/SKILL.md +98 -0
  298. agent_toolkit/data/skills/design/figma/references/figma-mcp-config.md +82 -0
  299. agent_toolkit/data/skills/design/figma/references/figma-tools-and-prompts.md +34 -0
  300. agent_toolkit/data/skills/design/figma-code-connect-components/LICENSE.txt +2 -0
  301. agent_toolkit/data/skills/design/figma-code-connect-components/NOTICE.txt +18 -0
  302. agent_toolkit/data/skills/design/figma-code-connect-components/SKILL.md +354 -0
  303. agent_toolkit/data/skills/design/figma-code-connect-components/references/mapping-checklist.md +7 -0
  304. agent_toolkit/data/skills/design/figma-code-connect-components/scripts/normalize_node_id.py +25 -0
  305. agent_toolkit/data/skills/design/figma-create-design-system-rules/LICENSE.txt +2 -0
  306. agent_toolkit/data/skills/design/figma-create-design-system-rules/NOTICE.txt +19 -0
  307. agent_toolkit/data/skills/design/figma-create-design-system-rules/SKILL.md +554 -0
  308. agent_toolkit/data/skills/design/figma-create-design-system-rules/references/rule-template.md +15 -0
  309. agent_toolkit/data/skills/design/figma-create-design-system-rules/scripts/check_agents_md.sh +9 -0
  310. agent_toolkit/data/skills/design/figma-create-new-file/LICENSE.txt +2 -0
  311. agent_toolkit/data/skills/design/figma-create-new-file/NOTICE.txt +17 -0
  312. agent_toolkit/data/skills/design/figma-create-new-file/SKILL.md +72 -0
  313. agent_toolkit/data/skills/design/figma-implement-design/LICENSE.txt +2 -0
  314. agent_toolkit/data/skills/design/figma-implement-design/NOTICE.txt +19 -0
  315. agent_toolkit/data/skills/design/figma-implement-design/SKILL.md +268 -0
  316. agent_toolkit/data/skills/design/frontend-design/LICENSE.txt +177 -0
  317. agent_toolkit/data/skills/design/frontend-design/SKILL.md +82 -0
  318. agent_toolkit/data/skills/design/frontend-design/UPSTREAM.md +14 -0
  319. agent_toolkit/data/skills/design/frontend-design-review/LICENSE +21 -0
  320. agent_toolkit/data/skills/design/frontend-design-review/SKILL.md +194 -0
  321. agent_toolkit/data/skills/design/frontend-design-review/references/pattern-examples.md +21 -0
  322. agent_toolkit/data/skills/design/frontend-design-review/references/quick-checklist.md +38 -0
  323. agent_toolkit/data/skills/design/frontend-design-review/references/review-output-format.md +68 -0
  324. agent_toolkit/data/skills/design/frontend-design-review/references/review-type-modifiers.md +31 -0
  325. agent_toolkit/data/skills/design/web-design-guidelines/SKILL.md +78 -0
  326. agent_toolkit/data/skills/design/web-design-guidelines/references/LICENSE +21 -0
  327. agent_toolkit/data/skills/design/web-design-guidelines/references/web-interface-guidelines.md +180 -0
  328. agent_toolkit/data/skills/forge/gh-address-comments/LICENSE.txt +202 -0
  329. agent_toolkit/data/skills/forge/gh-address-comments/NOTICE.txt +20 -0
  330. agent_toolkit/data/skills/forge/gh-address-comments/SKILL.md +72 -0
  331. agent_toolkit/data/skills/forge/gh-address-comments/scripts/fetch_comments.py +239 -0
  332. agent_toolkit/data/skills/forge/gh-contribution-planner/SKILL.md +160 -0
  333. agent_toolkit/data/skills/forge/gh-contribution-planner/scripts/inspect_contributions.py +818 -0
  334. agent_toolkit/data/skills/forge/gh-fix-ci/LICENSE.txt +201 -0
  335. agent_toolkit/data/skills/forge/gh-fix-ci/NOTICE.txt +20 -0
  336. agent_toolkit/data/skills/forge/gh-fix-ci/SKILL.md +74 -0
  337. agent_toolkit/data/skills/forge/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
  338. agent_toolkit/data/skills/forge/github-cli-workflow/SKILL.md +49 -0
  339. agent_toolkit/data/skills/forge/gitlab-cli-workflow/SKILL.md +44 -0
  340. agent_toolkit/data/skills/forge/workflow-client-bootstrap/SKILL.md +14 -0
  341. agent_toolkit/data/skills/forge/workflow-generic-project/SKILL.md +14 -0
  342. agent_toolkit/data/skills/forge/worktree/SKILL.md +113 -0
  343. agent_toolkit/data/skills/integrations/clickup-cli/SKILL.md +78 -0
  344. agent_toolkit/data/skills/integrations/clickup-cli/references/docs-management.md +57 -0
  345. agent_toolkit/data/skills/integrations/clickup-cli/references/task-management.md +131 -0
  346. agent_toolkit/data/skills/integrations/clickup-cli/references/time-tracking.md +38 -0
  347. agent_toolkit/data/skills/integrations/linear/LICENSE.txt +202 -0
  348. agent_toolkit/data/skills/integrations/linear/NOTICE.txt +23 -0
  349. agent_toolkit/data/skills/integrations/linear/SKILL.md +134 -0
  350. agent_toolkit/data/skills/integrations/mcp/SKILL.md +88 -0
  351. agent_toolkit/data/skills/integrations/slack-assistant/SKILL.md +138 -0
  352. agent_toolkit/data/skills/integrations/slack-cli/SKILL.md +109 -0
  353. agent_toolkit/data/skills/integrations/slack-cli/references/INSTALLATION.md +42 -0
  354. agent_toolkit/data/skills/loops/loop-runner/SKILL.md +92 -0
  355. agent_toolkit/data/skills/ops/docs-generator/SKILL.md +120 -0
  356. agent_toolkit/data/skills/ops/llm-cost-advisor/SKILL.md +87 -0
  357. agent_toolkit/data/skills/ops/swarm/SKILL.md +108 -0
  358. agent_toolkit/data/skills/ops/swarm-handoff/SKILL.md +112 -0
  359. agent_toolkit/data/skills/ops/swarm-observer/SKILL.md +102 -0
  360. agent_toolkit/data/skills/ops/triage/SKILL.md +119 -0
  361. agent_toolkit/data/skills/quality/codeql/SKILL.md +106 -0
  362. agent_toolkit/data/skills/quality/codeql/references/codeql-queries.md +43 -0
  363. agent_toolkit/data/skills/quality/megalinter/SKILL.md +162 -0
  364. agent_toolkit/data/skills/quality/megalinter/references/megalinter-images.md +36 -0
  365. agent_toolkit/data/skills/quality/megalinter/references/megalinter-license.md +41 -0
  366. agent_toolkit/data/skills/quality/megalinter/references/megalinter-targets.md +66 -0
  367. agent_toolkit/data/skills/tooling/chrome-devtools/SKILL.md +146 -0
  368. agent_toolkit/data/skills/tooling/herdr/SKILL.md +109 -0
  369. agent_toolkit/data/skills/tooling/inventory/SKILL.md +81 -0
  370. agent_toolkit/data/skills/tooling/jupyter-notebook/LICENSE.txt +201 -0
  371. agent_toolkit/data/skills/tooling/jupyter-notebook/NOTICE.txt +27 -0
  372. agent_toolkit/data/skills/tooling/jupyter-notebook/SKILL.md +145 -0
  373. agent_toolkit/data/skills/tooling/jupyter-notebook/assets/experiment-template.ipynb +117 -0
  374. agent_toolkit/data/skills/tooling/jupyter-notebook/assets/tutorial-template.ipynb +115 -0
  375. agent_toolkit/data/skills/tooling/jupyter-notebook/references/experiment-patterns.md +10 -0
  376. agent_toolkit/data/skills/tooling/jupyter-notebook/references/notebook-structure.md +17 -0
  377. agent_toolkit/data/skills/tooling/jupyter-notebook/references/quality-checklist.md +11 -0
  378. agent_toolkit/data/skills/tooling/jupyter-notebook/references/tutorial-patterns.md +9 -0
  379. agent_toolkit/data/skills/tooling/jupyter-notebook/scripts/new_notebook.py +132 -0
  380. agent_toolkit/data/skills/tooling/mermaid/SKILL.md +36 -0
  381. agent_toolkit/data/skills/tooling/playwright-cli/LICENSE.txt +201 -0
  382. agent_toolkit/data/skills/tooling/playwright-cli/NOTICE.txt +29 -0
  383. agent_toolkit/data/skills/tooling/playwright-cli/SKILL.md +154 -0
  384. agent_toolkit/data/skills/tooling/playwright-cli/references/cli.md +116 -0
  385. agent_toolkit/data/skills/tooling/playwright-cli/references/workflows.md +98 -0
  386. agent_toolkit/data/skills/tooling/playwright-cli/scripts/executable_playwright_cli.sh +25 -0
  387. agent_toolkit/data_cache.py +79 -0
  388. agent_toolkit/data_sync.py +144 -0
  389. agent_toolkit/installer/__init__.py +0 -0
  390. agent_toolkit/installer/merge.py +59 -0
  391. agent_toolkit/installer/receipt.py +89 -0
  392. agent_toolkit/installer/sources.py +92 -0
  393. agent_toolkit/installer/tracking.py +63 -0
  394. agent_toolkit/launcher.py +69 -0
  395. agent_toolkit/loop/__init__.py +0 -0
  396. agent_toolkit/loop/budget.py +107 -0
  397. agent_toolkit/loop/gh_gate.py +923 -0
  398. agent_toolkit/loop/loop-gh-gate +923 -0
  399. agent_toolkit/loop/pack.py +65 -0
  400. agent_toolkit/loop/runner.py +2722 -0
  401. agent_toolkit/runner/__init__.py +0 -0
  402. agent_toolkit/runner/dispatcher.py +163 -0
  403. agent_toolkit/runner/policy.py +356 -0
  404. agent_toolkit/runner/providers/__init__.py +21 -0
  405. agent_toolkit/runner/providers/anthropic_provider.py +109 -0
  406. agent_toolkit/runner/providers/base.py +53 -0
  407. agent_toolkit/runner/providers/ollama_provider.py +108 -0
  408. agent_toolkit/runner/providers/openai_provider.py +103 -0
  409. agent_toolkit/runner/providers/opencode_provider.py +127 -0
  410. agent_toolkit/swarm/__init__.py +5 -0
  411. agent_toolkit/swarm/approvals.py +121 -0
  412. agent_toolkit/swarm/backends/__init__.py +596 -0
  413. agent_toolkit/swarm/budget.py +83 -0
  414. agent_toolkit/swarm/cli.py +2448 -0
  415. agent_toolkit/swarm/config.py +351 -0
  416. agent_toolkit/swarm/handoff.py +174 -0
  417. agent_toolkit/swarm/models.py +230 -0
  418. agent_toolkit/swarm/prompts.py +177 -0
  419. agent_toolkit/swarm/recipes.py +304 -0
  420. agent_toolkit/swarm/runner.py +267 -0
  421. agent_toolkit/swarm/state.py +93 -0
  422. agent_toolkit/swarm/store.py +148 -0
  423. agent_toolkit/swarm/worktree.py +105 -0
  424. agent_toolkit/templates/workspace/.gitignore +19 -0
  425. agent_toolkit/templates/workspace/AGENTS.md +82 -0
  426. agent_toolkit/templates/workspace/knowledge/README.md +22 -0
  427. agent_toolkit/templates/workspace/knowledge/learnings/general.md +3 -0
  428. agent_toolkit/templates/workspace/knowledge/todos/pending.md +7 -0
  429. agent_toolkit/templates/workspace/packs/README.md +24 -0
  430. agent_toolkit/templates/workspace/personas/architect.md +12 -0
  431. agent_toolkit/templates/workspace/personas/implementer.md +12 -0
  432. agent_toolkit/templates/workspace/personas/researcher.md +12 -0
  433. agent_toolkit/templates/workspace/personas/reviewer.md +12 -0
  434. agent_toolkit_cli-1.11.0.dist-info/METADATA +363 -0
  435. agent_toolkit_cli-1.11.0.dist-info/RECORD +438 -0
  436. agent_toolkit_cli-1.11.0.dist-info/WHEEL +4 -0
  437. agent_toolkit_cli-1.11.0.dist-info/entry_points.txt +4 -0
  438. agent_toolkit_cli-1.11.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: docs-generator
3
+ description: 'WHAT — Generate or update documentation from code: README.md from repo structure, CHANGELOG.md
4
+ from git history, API reference from OpenAPI/GraphQL schemas, and AGENTS.md starters for new projects.'
5
+ origin:
6
+ type: first-party
7
+ metadata:
8
+ author: ulises-jeremias
9
+ version: '1.0'
10
+ tags:
11
+ - docs
12
+ - readme
13
+ - changelog
14
+ - api-reference
15
+ - agents
16
+ ---
17
+ # Docs Generator (WHAT)
18
+
19
+ Generate or refresh documentation from the actual code, schema, and git history.
20
+ Never invent — always derive from evidence in the repo.
21
+
22
+ ## When to use
23
+
24
+ - README is missing, stale, or doesn't reflect the current stack
25
+ - CHANGELOG needs to be generated from merged PRs or git log
26
+ - API spec (OpenAPI/GraphQL) exists but human-readable docs don't
27
+ - New repo needs an AGENTS.md to onboard AI assistants
28
+
29
+ ## Out of scope
30
+
31
+ - Does NOT write code — documentation only
32
+ - Does NOT commit or push — delegate to **`github-cli-workflow`**
33
+ - Does NOT update external systems (Confluence, Notion) — use their respective skills
34
+
35
+ ## Workflow
36
+
37
+ ### README.md generation
38
+
39
+ 1. Inspect repo: `package.json` / `pyproject.toml` / `Cargo.toml` for name, description, stack
40
+ 2. Read `Makefile` / `justfile` / `package.json scripts` for commands
41
+ 3. Read `.github/workflows/` for CI structure
42
+ 4. Draft README with: Purpose, Stack, Prerequisites, Quick Start, Development, Testing, Contributing
43
+ 5. Apply **`output-handshake`** before writing
44
+
45
+ ### CHANGELOG.md generation
46
+
47
+ ```bash
48
+ # Conventional commits format
49
+ git log --oneline --no-merges --pretty="format:%h %s" $(git describe --tags --abbrev=0)..HEAD
50
+
51
+ # Group by type: feat / fix / docs / chore / refactor / perf / test
52
+ # Format: ## [Unreleased] with subsections per type
53
+ ```
54
+
55
+ Draft changelog section and ask user to confirm version before finalizing.
56
+
57
+ ### API reference generation
58
+
59
+ - OpenAPI spec → readable endpoint table with params, responses, auth
60
+ - GraphQL schema → type reference with fields and descriptions
61
+ - Always note the spec version and date in the generated doc
62
+
63
+ ### AGENTS.md starter
64
+
65
+ Use the template from `~/.local/share//skills-catalog.yaml` patterns:
66
+
67
+ - Purpose and stack
68
+ - Repository inspection order
69
+ - What AI assistants may and must not do
70
+ - Key commands (build, test, lint)
71
+ - Links to key docs
72
+
73
+ ## Inline Documentation (why, not what) — per `addyosmani/agent-skills` `documentation-and-adrs` 2026-08-12 diff `docs/research/diff-394-documentation-and-adrs.md`
74
+
75
+ Comment the *why*, not the *what*:
76
+
77
+ ```typescript
78
+ // BAD: Restates the code
79
+ // Increment counter by 1
80
+ counter += 1;
81
+
82
+ // GOOD: Explains non-obvious intent
83
+ // Rate limit uses a sliding window — reset counter at window boundary,
84
+ // not on a fixed schedule, to prevent burst attacks at window edges
85
+ if (now - windowStart > WINDOW_SIZE_MS) {
86
+ counter = 0;
87
+ windowStart = now;
88
+ }
89
+ ```
90
+
91
+ * **When NOT to comment:** self-explanatory code (`calculateTotal` reduce), week-old `TODO`s (do it now), commented-out code (delete — git has history).
92
+ * **Document Known Gotchas inline** where they matter:
93
+ ```typescript
94
+ /**
95
+ * IMPORTANT: Must be called before first render — after hydration causes FOUC
96
+ * (theme context not available during SSR). See ADR-003.
97
+ */
98
+ export function initializeTheme(theme: Theme): void { ... }
99
+ ```
100
+
101
+ **Do not invent docs from thin air** — derive from code/specs/git history (this skill) vs ADR *why* (via `adr` skill). `personas/` (HOW agent thinks) vs `skills/` (HOW task executes) preserved — see `docs/CONCEPTS.md`.
102
+
103
+ ## Verification (after documenting)
104
+
105
+ * [ ] ADRs exist for all significant decisions, README covers quick start/commands/architecture (link ADRs), API docs have types, gotchas inline, no commented-out code, `CLAUDE.md`/`AGENTS.md` current.
106
+ * Rationalizations table — "code is self-documenting" (reality: code shows what, not why/alternatives), "docs when API stabilizes" (doc is first test of design), "ADRs are overhead" (10-min ADR prevents 2-hour debate).
107
+
108
+ ## Anti-patterns
109
+
110
+ - Do not guess stack or commands — read from actual config files
111
+ - Do not generate CHANGELOG from unstaged changes
112
+ - Do not overwrite existing README without showing diff first
113
+
114
+ ## Delegates to
115
+
116
+ | Need | Skill |
117
+ |------|-------|
118
+ | Push and create PR with generated docs | **`github-cli-workflow`** |
119
+ | Confirm output destination | **`output-handshake`** |
120
+ | Repo discovery | **`assistant`** |
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: llm-cost-advisor
3
+ description: WHAT — Recommend the most cost-effective LLM provider for a given task type. Shows estimated
4
+ cost per run across available providers and integrates with devcompanion llm-status to show what is
5
+ actually available.
6
+ origin:
7
+ type: first-party
8
+ metadata:
9
+ author: ulises-jeremias
10
+ version: '1.0'
11
+ tags:
12
+ - llm
13
+ - cost
14
+ - provider
15
+ - optimization
16
+ ---
17
+ # LLM Cost Advisor (WHAT)
18
+
19
+ Recommend the right provider for the task at hand — balancing quality, cost, and privacy.
20
+
21
+ ## When to use
22
+
23
+ - User asks "which model should I use for X?"
24
+ - Before scheduling expensive loops (pr-babysitter, ci-sweeper)
25
+ - When dev-companion jobs are unexpectedly expensive
26
+ - When choosing between local and cloud providers for sensitive work
27
+
28
+ ## Out of scope
29
+
30
+ - Does NOT configure providers — that's done via env vars and `loadenv`
31
+ - Does NOT run LLM calls — it advises, the runner executes
32
+
33
+ ## Workflow
34
+
35
+ **Step 1 — Check available providers:**
36
+
37
+ ```bash
38
+ devcompanion llm-status
39
+ ```
40
+
41
+ **Step 2 — Classify the task:**
42
+
43
+ | Task type | Recommended tier | Why |
44
+ |-----------|-----------------|-----|
45
+ | Interactive code review, planning, debugging | Claude Sonnet / GPT-4o | Reasoning quality matters |
46
+ | Batch labeling, summarization, triage | Claude Haiku / GPT-4o-mini | High volume, lower stakes |
47
+ | Private/sensitive codebase work | Ollama or OpenCode | Stays local, zero cost |
48
+ | Loop L1 (observation only) | Haiku / GPT-4o-mini | Low stakes, runs daily |
49
+ | Loop L2 (PR creation) | Sonnet | Creates external artifacts |
50
+ | Loop L3 (unattended) | Sonnet + verifier | Autonomous — quality critical |
51
+
52
+ **Step 3 — Show cost estimate:**
53
+
54
+ | Provider | Model | Est. per run | Monthly (1/day) | Monthly (96/day) |
55
+ |----------|-------|-------------|-----------------|-----------------|
56
+ | Anthropic | claude-3-5-sonnet | ~$0.05 | ~$1.50 | ~$144 |
57
+ | Anthropic | claude-3-haiku | ~$0.005 | ~$0.15 | ~$14.40 |
58
+ | OpenAI | gpt-4o | ~$0.04 | ~$1.20 | ~$115 |
59
+ | OpenAI | gpt-4o-mini | ~$0.003 | ~$0.09 | ~$8.64 |
60
+ | Ollama | (local) | $0 | $0 | $0 |
61
+ | OpenCode | (local) | $0 | $0 | $0 |
62
+
63
+ *Estimates based on ~2K input + ~1K output tokens per typical run.*
64
+
65
+ **Step 4 — Recommend with reasoning:**
66
+
67
+ Give a clear recommendation: "For daily CNA issue triage (L1, observation only), use
68
+ claude-3-haiku — ~$0.15/month vs $1.50/month for Sonnet, with no quality difference
69
+ for labeling and summarization tasks."
70
+
71
+ ## Budget gate reminder
72
+
73
+ If the user is setting up loops, remind them to add `limits.max_cost_usd` to their job
74
+ definitions to enable the runner's hard budget enforcement:
75
+
76
+ ```json
77
+ "limits": {
78
+ "timeout_sec": 300,
79
+ "max_cost_usd": 0.50
80
+ }
81
+ ```
82
+
83
+ ## Anti-patterns
84
+
85
+ - Do not recommend cloud providers for repos marked confidential — suggest Ollama/OpenCode
86
+ - Do not recommend Haiku for L3 unattended loops — quality failures cascade
87
+ - Do not skip the `llm-status` check — recommend only available providers
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: swarm
3
+ description: Launch an Agent Toolkit swarm from a natural language request using agent-toolkit swarm CLI
4
+ with Herdr/tmux eager windows and file handoffs.
5
+ origin:
6
+ type: first-party
7
+ metadata:
8
+ author: ulises-jeremias
9
+ version: '1.0'
10
+ tags:
11
+ - swarm
12
+ - herdr
13
+ - tmux
14
+ - orchestration
15
+ - multi-agent
16
+ ---
17
+ # Swarm
18
+
19
+ Launch a production Agent Toolkit swarm from any natural language request via the `agent-toolkit swarm` CLI. Herdr is the default UI for an excellent interactive experience; tmux is the isolated fallback.
20
+
21
+ ## When to use
22
+
23
+ - User says "launch a swarm", "start a swarm", "swarm this task", or describes parallel/team work that benefits from multiple agents.
24
+ - Any task that mentions swarm, pair/team/full, Herdr, tmux, or worktree-per-writer.
25
+ - User wants to reuse an existing swarm run for a new request (same windows, new handoff).
26
+
27
+ ## Prerequisites
28
+
29
+ - `agent-toolkit` installed and on PATH (`agent-toolkit swarm doctor` should pass).
30
+ - For Herdr: `herdr` CLI installed (`herdr --version`); Herdr daemon running.
31
+ - For tmux: `tmux` installed; isolated socket is `agent-toolkit-swarm-<run-id>`.
32
+ - Run inside a Git repo (or pass `--workspace /path/to/repo`).
33
+ - Optional: `~/.config/agent-toolkit/swarm.yaml` for model-profile mapping (`economy` → `opencode/mimo-v2.5-free`, `balanced` → provider default).
34
+
35
+ ## Workflow
36
+
37
+ ### 1. Inspect intent
38
+
39
+ Extract from the user prompt:
40
+ - **Task**: free-form objective (if missing, start swarm ready for interactive input).
41
+ - **Recipe**: `pair` (2 roles: implementer→reviewer, fast), `team` (implementer→reviewer→integrator), `full` (large, 5+ roles). Default `pair` unless task needs more.
42
+ - **Runner**: `opencode` (default, free models) or `claude` (Anthropic). Respect `--runner` if user names it.
43
+ - **Model profile**: `economy` (`opencode/mimo-v2.5-free`) or `balanced` (provider default). Default `balanced`.
44
+ - **UI**: `herdr` (default) or `tmux` (isolated). Respect `--ui` if given.
45
+
46
+ ### 2. Check health
47
+
48
+ ```bash
49
+ agent-toolkit swarm doctor
50
+ agent-toolkit swarm recipes
51
+ ```
52
+
53
+ If doctor fails, report diagnostics and fix `herdr`/`tmux`/runner availability before launching.
54
+
55
+ ### 3. Launch
56
+
57
+ Always use the CLI; never fabricate `state.json` or backend state.
58
+
59
+ ```bash
60
+ # Herdr (preferred) — eager windows, shell-aware (detects $SHELL/zsh), attach by default
61
+ agent-toolkit swarm start --recipe pair --ui herdr --runner opencode --model-profile balanced --attach "task"
62
+
63
+ # Tmux (fallback) — isolated socket
64
+ agent-toolkit swarm start --recipe team --ui tmux --runner claude --model-profile economy --attach "task"
65
+
66
+ # Headless / no prompt — starts swarm ready, no initial task
67
+ agent-toolkit swarm start --recipe pair --ui herdr --runner opencode --model-profile balanced --attach
68
+
69
+ # Reuse same run/windows for a new request
70
+ agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact "artifacts/new-task.md" --run-id <run-id>
71
+ ```
72
+
73
+ Flags: `--json` for machine output, `--no-attach` for CI/script mode, `--workspace / -C <path>` to target a different repo.
74
+
75
+ Eager UX (automatic):
76
+ - Every role gets a window/tab immediately with `Waiting for handoff: <pred> -> <role> | role: <role> | run: <run_id>` and `agent_waiting` trace.
77
+ - Implementer is focused on start; agents start lazily on handoff/file trigger.
78
+ - Shell is detected (`$SHELL` → `pwd.getpwuid` → `/usr/bin/zsh` fallback); commands run as `<shell> -lc`.
79
+
80
+ ### 4. Monitor and handoff
81
+
82
+ ```bash
83
+ agent-toolkit swarm status --run-id <run-id>
84
+ agent-toolkit swarm handoffs --run-id <run-id>
85
+ agent-toolkit swarm logs --run-id <run-id> --follow
86
+ agent-toolkit swarm task next --role reviewer --run-id <run-id>
87
+ agent-toolkit swarm task complete --run-id <run-id> --task-id <id>
88
+ agent-toolkit swarm attach --run-id <run-id>
89
+ ```
90
+
91
+ File handoff: `artifacts/` → `handoff create --type artifact --from X --to Y --artifact <path>`. When `handoff create` targets an `active` handoff's `to == from_role`, that handoff auto-completes (`auto:true`) and the next agent is provisioned with its worktree/tab.
92
+
93
+ ### 5. Reuse windows
94
+
95
+ Same run can handle sequential requests: send a new artifact handoff to the implementer; the chain re-triggers. Only create a new run when isolated branch/worktree is needed.
96
+
97
+ ## Boundaries
98
+
99
+ - Never write ` .agent-toolkit/swarm/runs/<run-id>/state.json` or `herdr`/`tmux` state by hand; the CLI owns it.
100
+ - For large outputs, keep details in the skill; do not dump full `state.json` in chat unless asked.
101
+
102
+ ## Delegates to
103
+
104
+ | Need | Skill |
105
+ |------|-------|
106
+ | Push and create PR with swarm output | `github-cli-workflow` |
107
+ | Confirm output destination | `output-handshake` |
108
+ | Repo discovery | `assistant` |
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: swarm-handoff
3
+ description: Create artifact/commit file handoffs for Agent Toolkit swarms with worktree-per-writer, branch,
4
+ and promotion integration.
5
+ origin:
6
+ type: first-party
7
+ metadata:
8
+ author: ulises-jeremias
9
+ version: '1.0'
10
+ tags:
11
+ - swarm
12
+ - handoff
13
+ - worktree
14
+ - artifact
15
+ - promotion
16
+ ---
17
+ # Swarm Handoff
18
+
19
+ Create correct file handoffs between swarm roles so work moves via **Git + filesystem**, not chat copy. Every writer gets an isolated worktree/branch; the filesystem `state.json` is authoritative.
20
+
21
+ ## When to use
22
+
23
+ - The swarm needs to move work: implementer → reviewer → integrator (or any `from -> to`).
24
+ - User asks to "hand off", "delegate", "send artifact", or "promote".
25
+ - After `swarm-observer` diagnoses a stuck `active` handoff.
26
+
27
+ ## Prerequisites
28
+
29
+ - Run exists: `.agent-toolkit/swarm/runs/<run-id>/state.json`.
30
+ - Artifact file lives under the repo (prefer `artifacts/`). For `commit` type, commit/branch must exist locally.
31
+ - Know `from` and `to` roles from the recipe (`pair`: implementer→reviewer; `team`: implementer→reviewer→integrator).
32
+
33
+ ## Workflow
34
+
35
+ ### 1. Prepare the artifact (file handoff is preferred)
36
+
37
+ ```bash
38
+ # Artifact — by convention in artifacts/
39
+ mkdir -p artifacts
40
+ cat > artifacts/<name>.md <<'EOF'
41
+ # Context for <to>
42
+ - What was implemented and why
43
+ - Files changed and how to verify
44
+ - Risks / open questions
45
+ EOF
46
+ git add artifacts/<name>.md # optional, but keeps history
47
+
48
+ # Commit handoff — use when work is already committed
49
+ git log --oneline -n 5
50
+ git branch --show-current
51
+ ```
52
+
53
+ ### 2. Create the handoff (CLI owns state)
54
+
55
+ ```bash
56
+ # Artifact handoff — triggers auto-provision of <to>'s worktree/tab + agent
57
+ agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact artifacts/cna-ideas.md --run-id <run-id>
58
+
59
+ # Commit handoff
60
+ agent-toolkit swarm handoff create --type commit --from reviewer --to integrator --commit <sha> --branch <branch> --run-id <run-id>
61
+
62
+ # Auto behavior:
63
+ # - If an active handoff exists where to == from_role, it auto-completes (auto:true) and trace records handoff_completed.
64
+ # - Next role gets eager window (Waiting for handoff: <from> -> <to>) replaced by real prompt: export AGENT_TOOLKIT_SWARM_RUN_ID/RUN_DIR/REPO SWARMFORGE_ROLE + cd worktree && exec <runner> "$(cat prompt)"
65
+ ```
66
+
67
+ Verify:
68
+
69
+ ```bash
70
+ agent-toolkit swarm handoffs --run-id <run-id> --json | jq '.[] | {id,from,to,status,artifact,commit,auto}'
71
+ agent-toolkit swarm status --run-id <run-id> --json | jq '.trace | last'
72
+ # Expect: handoff create logs, worktree path, and runner exec with $(cat prompt)
73
+ ```
74
+
75
+ ### 3. Worktree-per-writer notes
76
+
77
+ - Writer roles get an isolated Git worktree (`git worktree add <path> <branch>`). The prompt is `export AGENT_TOOLKIT_SWARM_RUN_ID/... && cd <worktree> && <runner>`.
78
+ - Backend-neutral: `store.py` + `config.py` resolve repo root via `git rev-parse --git-common-dir` (handles `.git` file in worktrees). Do not bypass with manual `state.json` edits.
79
+ - Shell for `pane run` / `tmux` exec uses `_user_shell()` (`$SHELL`/`/usr/bin/zsh` fallback) as `<shell> -lc`.
80
+
81
+ ### 4. Promote after verification
82
+
83
+ ```bash
84
+ # After reviewer/integrator approves
85
+ agent-toolkit swarm promote --run-id <run-id> --handoff-id <id>
86
+ # or for the latest completed artifact:
87
+ agent-toolkit swarm promote --run-id <run-id>
88
+
89
+ # Then delegate push/PR
90
+ # (use github-cli-workflow skill for branch push + draft PR)
91
+ ```
92
+
93
+ ### 5. Reuse pattern
94
+
95
+ Same run can be reused for sequential requests — just create a new `implementer -> reviewer` artifact handoff on the same `run-id`. Eager windows stay; only the chain retriggers. Create a new run only for isolated branching.
96
+
97
+ ## Boundaries
98
+
99
+ - Never copy artifact content via chat `echo` — use the file path in `--artifact`.
100
+ - Never write `state.json` directly; always via `handoff create` / `task complete`.
101
+ - For `commit` type, always pass `--commit` and `--branch`; the store validates `validate_commit_exists`.
102
+ - Keep `artifacts/` in Git so `herdr`/`tmux` runners can read it from their worktree.
103
+
104
+ ## Delegates to
105
+
106
+ | Need | Skill |
107
+ |------|-------|
108
+ | Launch the swarm before handoffs | `swarm` |
109
+ | Diagnose stuck or orphaned handoffs | `swarm-observer` |
110
+ | Verify code before promotion | `code-reviewer`, `security-reviewer`, `tdd-guide` |
111
+ | Push branch and create PR | `github-cli-workflow` |
112
+ | Generate docs from handoff output | `output-handshake`, `docs-generator` |
@@ -0,0 +1,102 @@
1
+ ---
2
+ name: swarm-observer
3
+ description: Observe, diagnose, and recover Agent Toolkit swarm runs via status, handoffs, logs, and attach
4
+ with worktree and shell awareness.
5
+ origin:
6
+ type: first-party
7
+ metadata:
8
+ author: ulises-jeremias
9
+ version: '1.0'
10
+ tags:
11
+ - swarm
12
+ - observer
13
+ - herdr
14
+ - tmux
15
+ - handoff
16
+ - worktree
17
+ ---
18
+ # Swarm Observer
19
+
20
+ Monitor any `agent-toolkit swarm` run, diagnose stuck handoffs or backend drift, and recover without losing windows. Works for both **Herdr** (tabs) and **tmux** (isolated socket `agent-toolkit-swarm-<run-id>`). Integrates with swarm's eager-window model (every role starts as `Waiting for handoff: <pred> -> <role>` with `agent_waiting` trace).
21
+
22
+ ## When to use
23
+
24
+ - A swarm was launched and the user asks "is it done?", "what's the status?", "show logs", or "attach".
25
+ - A handoff has been `active` for >5m (`955be6f6e2c...` pattern) or `worktree_failed`.
26
+ - Herdr shows extra workspaces (`w7-wA`) for `headless` runs — the `get_backend("headless")` fallback case.
27
+ - User wants to reuse the same run for a new request and needs to know if windows are still alive.
28
+
29
+ ## Prerequisites
30
+
31
+ - Run lives under `.agent-toolkit/swarm/runs/<run-id>/state.json` (filesystem is authoritative).
32
+ - Know `run-id` (`20260807T...-xxxxxx`) from `swarm start --json` or `swarm list --json`.
33
+ - Shell is detected (`_user_shell()`: `$SHELL` → `pwd.getpwuid` → `/usr/bin/zsh` fallback, executed as `<shell> -lc`).
34
+
35
+ ## Workflow
36
+
37
+ ### 1. List and pick the run
38
+
39
+ ```bash
40
+ agent-toolkit swarm list --json | jq
41
+ agent-toolkit swarm status --run-id <run-id>
42
+ agent-toolkit swarm status --run-id <run-id> --json | jq '.handoffs,.worktrees,.trace'
43
+ ```
44
+
45
+ ### 2. Inspect handoffs and trace
46
+
47
+ ```bash
48
+ agent-toolkit swarm handoffs --run-id <run-id>
49
+ agent-toolkit swarm handoffs --run-id <run-id> --json | jq '.[] | {id,from,to,status,artifact,auto}'
50
+ # Active that should have auto-completed:
51
+ # where to==from_role and handoff create --to == that role -> auto:true
52
+ ```
53
+
54
+ Trace keys to watch: `agent_waiting`, `handoff_completed auto:true`, `worktree_failed`, `headless_fallback`.
55
+
56
+ ### 3. Tail logs and attach
57
+
58
+ ```bash
59
+ agent-toolkit swarm logs --run-id <run-id> --follow
60
+ agent-toolkit swarm logs --run-id <run-id> --role reviewer --follow
61
+ agent-toolkit swarm attach --run-id <run-id> # herdr: workspace focus; tmux: attach -L agent-toolkit-swarm-<run-id>
62
+ herdr workspace list --json 2>&1 | jq '.[] | {id,name,status}'
63
+ tmux -L agent-toolkit-swarm-<run-id> capture-pane -t <window> -p | tail -n 80
64
+ ```
65
+
66
+ ### 4. Diagnose
67
+
68
+ | Symptom | Cause | Fix |
69
+ |---------|-------|-----|
70
+ | `Waiting for handoff: a -> b | role: b` stuck >5m | `active` handoff never `task complete` | `agent-toolkit swarm task next --role b --run-id <run-id>` then `task complete --task-id <id>` or `handoff create --from a --to b ...` which auto-completes `active where to==a` |
71
+ | `worktree_failed` | `find_repo_root` failed (`git rev-parse --git-common-dir` on `.git` file) | Re-run `handoff create` — fixed via `AGENT_TOOLKIT_SWARM_RUN_ID` export + path extract |
72
+ | Extra Herdr workspaces `w7-wA` with `headless` | `get_backend("headless")` returned `HerdrBackend` | Patch `backends/__init__.py` to return headless/noop backend; then `herdr workspace delete <id>` for orphans |
73
+ | Shell shows `bash` while user uses `zsh` | Hardcoded `bash -lc` | Fixed via `_user_shell()` / `_shell_base()` — verify `ps -o comm= -p <pid>` shows `zsh` |
74
+
75
+ ### 5. Recover or reuse
76
+
77
+ ```bash
78
+ # Complete stuck handoff and provision next role (worktree/tab + agent start)
79
+ agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact artifacts/fix.md --run-id <run-id>
80
+
81
+ # Reuse same windows for a new request (no new run needed)
82
+ agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact artifacts/new-task.md --run-id <run-id>
83
+ # Chain re-triggers: implementer -> reviewer -> integrator via file handoffs
84
+
85
+ # Only create a new run when isolated branch is required
86
+ agent-toolkit swarm start --recipe pair --ui herdr --runner opencode --model-profile balanced --attach "new isolated task"
87
+ ```
88
+
89
+ ## Boundaries
90
+
91
+ - Never edit `.agent-toolkit/swarm/runs/<run-id>/state.json` by hand; use `handoff create` / `task complete` / `promote`.
92
+ - Never create new Herdr workspaces for `headless` — fix the backend fallback instead.
93
+ - For tmux, always use isolated socket `-L agent-toolkit-swarm-<run-id>`; never the default server.
94
+
95
+ ## Delegates to
96
+
97
+ | Need | Skill/Command |
98
+ |------|---------------|
99
+ | Show failure snippet before fixing | `swarm-handoff` |
100
+ | Recreate worktree | `agent-toolkit swarm handoff create` (auto-provisions) |
101
+ | Review code produced by swarm | `code-reviewer`, `security-reviewer` |
102
+ | Create PR after promotion | `github-cli-workflow` |
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: triage
3
+ description: Workstation health triage — validate tooling, directory layout, and run doctor with remediation
4
+ suggestions.
5
+ origin:
6
+ type: first-party
7
+ metadata:
8
+ author: ulises-jeremias
9
+ version: '1.1'
10
+ ---
11
+ # Workstation Triage ()
12
+
13
+ Use when the user reports workstation issues, install problems, tool failures, or needs a health check before starting work.
14
+
15
+ ## Prerequisites
16
+
17
+ Run this skill on the **local workstation** where the user is experiencing issues. Do not run it on a remote server unless the user confirms the remote has the setup.
18
+
19
+ Verify `doctor` is installed:
20
+
21
+ ```bash
22
+ command -v doctor
23
+ ```
24
+
25
+ If missing, install via chezmoi (`chezmoi apply`) or direct installation.
26
+
27
+ ## Output modes
28
+
29
+ Use the mode that matches the user's need:
30
+
31
+ | Mode | Command | When to use |
32
+ |------|---------|-------------|
33
+ | **Colored** (default) | `doctor` | Interactive terminal session — human-readable colored output |
34
+ | **Markdown** | `doctor --issue` | GitHub issues, Slack threads, tickets — paste-ready block |
35
+ | **JSON** | `doctor --json` | Automation scripts, CI parsing — single-line machine-readable |
36
+
37
+ ### Markdown output (`--issue`)
38
+
39
+ Always use `doctor --issue` (not the default) when the output will be shared in:
40
+ - GitHub issues or PR comments
41
+ - Slack messages
42
+ - Support tickets
43
+ - Any written async communication
44
+
45
+ ### JSON output (`--json`)
46
+
47
+ Use `doctor --json` only when:
48
+ - A script or automation pipeline needs to parse the result
49
+ - You need a single-line summary for programmatic handling
50
+ - Requires `python3` in PATH
51
+
52
+ ## Profile and check groups
53
+
54
+ The doctor's behavior is controlled by `~/.config//profile.env`. Checks can be selectively enabled/disabled via environment variables:
55
+
56
+ | Variable | Default | Effect |
57
+ |----------|---------|--------|
58
+ | `DOTS_WORKSTATION_DOCTOR_GROUP_CORE` | `true` | Core tools: `git`, `curl`, `wget`, `jq`, `rg`, `fd`, `zsh`, `gh` |
59
+ | `DOTS_WORKSTATION_DOCTOR_GROUP_NODE` | `true` | Node.js: `fnm`, `node` |
60
+ | `DOTS_WORKSTATION_DOCTOR_GROUP_PYTHON` | `true` | Python: `uv`, `python3` |
61
+ | `DOTS_WORKSTATION_DOCTOR_GROUP_DOCKER` | `true` | Docker: `docker` |
62
+ | `DOTS_WORKSTATION_DOCTOR_GROUP_AI` | `true` | LLM API key presence flags (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY) |
63
+ | `DOTS_WORKSTATION_DOCTOR_GROUP_SKILLS_PRODUCTIVITY` | `false` | Optional productivity tool group |
64
+ | `DOTS_WORKSTATION_DOCTOR_SKILL_JIRA` | `false` | JIRA skill integration check |
65
+ | `DOTS_WORKSTATION_DOCTOR_SKILL_CONFLUENCE` | `false` | Confluence skill integration check |
66
+
67
+ > **Note:** Profile variables are read from `~/.config//profile.env`. If the file is missing, defaults apply.
68
+
69
+ ## Directory checks
70
+
71
+ The doctor validates the presence and structure of:
72
+ - `~/.local/share//prompts`
73
+ - `~/.local/share//skills`
74
+ - `~/.local/share//templates`
75
+ - `~/.local/share//mcp/github`
76
+ - `~/.local/share//mcp/clickup`
77
+ - `~/.local/share//mcp/notion`
78
+ - `~/.local/share//mcp/slack`
79
+
80
+ ## Remediation guidance
81
+
82
+ Propose fixes in order of lowest risk first:
83
+
84
+ 1. **Missing directories** → run `chezmoi apply` to bootstrap the full installation
85
+ 2. **Missing commands** → use the respective skill's installation instructions (e.g., `uv` via `curl -LsSf https://astral.sh/uv/install.sh`)
86
+ 3. **Auth failures** → run `gh auth login`, `clickup auth login`, or `glab auth login` as appropriate
87
+ 4. **Profile/group mismatches** → edit `~/.config//profile.env` and run `chezmoi apply`
88
+ 5. **API key missing** → guide user to set the appropriate env var in their shell profile
89
+
90
+ ## Common issues
91
+
92
+ ### doctor exits 1 (NON-COMPLIANT)
93
+
94
+ Run with `--issue` to get the full markdown checklist. Address failures in this order:
95
+ 1. Install any missing core commands
96
+ 2. Run `chezmoi apply` to restore directory structure
97
+ 3. Re-authenticate CLIs (`gh`, `clickup`, `glab`)
98
+ 4. Verify `~/.config//profile.env` matches the intended profile
99
+
100
+ ### doctor --json requires python3
101
+
102
+ If `python3` is not available, fall back to `doctor --issue` and parse the markdown manually.
103
+
104
+ ### doctor: Missing dependency: easyoptions.sh
105
+
106
+ The `easyoptions.sh` library is missing from `~/.local/lib/`. Re-run `chezmoi apply` to restore it, or check if the installation is incomplete.
107
+
108
+ ## Skill boundaries
109
+
110
+ - This skill **does not fix issues automatically** — it diagnoses and proposes remediation steps.
111
+ - This skill **does not modify** `profile.env` or authentication state — user must approve and execute fixes.
112
+ - For **chezmoi-managed configuration issues**, pair with the **`dev-companion`** or direct chezmoi guidance.
113
+ - For **CI/build failures** on a project repo, use **`build-error-resolver`** instead of this skill.
114
+
115
+ ## References
116
+
117
+ - `doctor --help` — full option list
118
+ - `~/.config//profile.env` — check group configuration
119
+ - `~/.local/lib//easy-options/easyoptions.sh` — dependency library