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,106 @@
1
+ ---
2
+ name: codeql
3
+ description: CodeQL operational workflow — discover/config, run/inspect, triage SARIF findings (rule/query ID, source→sink, evidence), remediate, re-validate. Distinguishes broad MegaLinter linting from semantic security analysis.
4
+ origin:
5
+ type: first-party
6
+ ---
7
+
8
+ # CodeQL — Operational Security Analysis Workflow
9
+
10
+ Help coding agents **operate** CodeQL, not just explain syntax. Covers discovery of existing setup, config review, scan execution/inspection, SARIF triage with evidence discipline, remediation, and targeted re-validation.
11
+
12
+ > **Sources:** GitHub Docs Code Scanning with CodeQL (2026-08-12, https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-code-scanning-with-codeql), CodeQL CLI (`github/codeql` MIT, CLI binaries separate), `github/codeql-action` (https://github.com/github/codeql-action), and this repo's `.github/workflows/codeql.yml` (Analyze Python via `codeql-action/init@v4` + `analyze@v4`).
13
+
14
+ **Relationship to MegaLinter:**
15
+ - **MegaLinter:** broad linting/formatting/static quality orchestration (50+ linters, Docker-based, `.mega-linter.yml`, fast feedback on style, config, IaC).
16
+ - **CodeQL:** semantic security analysis / dataflow / vulnerability classes (source→sink taint, e.g., `python/sql-injection`, `js/xss`, SARIF alerts).
17
+ - Neither replaces the other. Composition: `code-quality / secure-delivery → { MegaLinter, CodeQL }` without a giant orchestrator.
18
+
19
+ ## When to use
20
+
21
+ - Repo has or needs CodeQL code scanning (`.github/workflows/codeql.yml`, `codeql-action`, SARIF alerts)
22
+ - Need to triage a CodeQL alert (security tab, SARIF file, CI log) with evidence
23
+ - Need to fix a finding and re-validate
24
+ - Workflow failing (timeout, OOM, build failure for compiled languages, config error)
25
+ - Need custom query / query-pack guidance (when to write vs reuse)
26
+
27
+ ## Modes (one skill, contextual)
28
+
29
+ | Mode | Trigger | What it does |
30
+ |------|---------|--------------|
31
+ | **SETUP / CONFIG REVIEW** | No CodeQL workflow, or outdated `codeql-action` version, or new language to add | Inspect `.github/workflows/codeql.yml`, `languages:`, `queries:`, `paths:`, `paths-ignore:`, schedule, permissions (`security-events: write`); recommend `init@v4`/`analyze@v4` (or `codeql-action` latest), language matrix, `build-mode` for compiled (manual/autobuild/none) |
32
+ | **FINDING TRIAGE** | SARIF file, alert URL, or `Run CodeQL` log with failure | Parse SARIF (`runs[].tool.driver.rules[]`, `runs[].results[]`), map `ruleId` → query help, extract `locations[0].physicalLocation`, `codeFlows` (source→sink), `message.text`, `level`/`category`, `partialFingerprints`; produce evidence table |
33
+ | **REMEDIATION** | Triaged finding with fix needed | Propose minimal fix (sanitize, parameterized query, escape), show diff, reference query docs, note confidence/severity, and how to suppress via `// lgtm[…]` or `codeql-config.yml` only when justified (ask before suppress) |
34
+ | **WORKFLOW TROUBLESHOOTING** | `analyze` job failed, no alerts, or `out of memory` | Check `codeql-action` logs, `AUTOBUILD` vs manual build, `ram:` / `threads:`, `debug: true`, `upload-sarif` fallback, `category` duplication |
35
+ | **CUSTOM QUERY** | Need to detect a repo-specific pattern beyond standard packs | Guide when to reuse `security-and-quality` vs `security-extended` vs write custom QL (pack `codeql/<lang>-queries`), use `codeql pack create` + `codeql query run` locally, test with `codeql test run` |
36
+
37
+ Do not split into separate skills — routing is via the mode table above.
38
+
39
+ ## Workflow (operational loop)
40
+
41
+ ```
42
+ DISCOVER existing CodeQL setup (workflow, languages, queries, schedule)
43
+ ↓
44
+ RUN or INSPECT scan (CI `analyze` job or local `codeql database create` + `codeql database analyze`)
45
+ ↓
46
+ TRIAGE findings (SARIF: ruleId, location, source→sink, evidence, confidence, severity)
47
+ ↓
48
+ PLAN remediation (fix vs suppress vs needs investigation)
49
+ ↓
50
+ IMPLEMENT fix (minimal, preserve semantics)
51
+ ↓
52
+ RE-VALIDATE targeted (re-run that query / re-upload SARIF / re-check alert)
53
+ ↓
54
+ DOCUMENT residual (fixed / suppressed with justification / needs investigation)
55
+ ```
56
+
57
+ 1. **Discover:** `ls .github/workflows/codeql.yml` + `cat` (languages, `on: push/pull_request/schedule`, `permissions`, `strategy.matrix.language` if present). Check GitHub Security tab API (`gh api repos/{owner}/{repo}/code-scanning/alerts`) for open alerts, or `find . -name "*.sarif"` locally.
58
+ 2. **Run / Inspect:**
59
+ - **CI:** Trigger workflow (`gh workflow run codeql.yml`) or watch latest run (`gh run list --workflow=codeql.yml`, `gh run view <id>`, `gh run view <id> --log-failed`). Prefer CI when available (no local DB build needed).
60
+ - **Local (fallback):** `codeql database create --language=python --source-root=. /tmp/codeql-db` (compiled: add `--build-mode` or manual build command), then `codeql database analyze /tmp/codeql-db codeql/python-queries:codeql-suites/python-security-and-quality.qls --format=sarif-latest --output=/tmp/results.sarif`. Use `codeql pack download` for custom packs. Local needs CodeQL CLI installed (`gh codeql` or `codeql` binary, Java for DB).
61
+ 3. **Triage (evidence discipline):**
62
+ - For each `result` in SARIF: extract `ruleId` (e.g., `py/sql-injection`), `message.text`, `locations[0].physicalLocation.artifactLocation.uri` + `region` (line/col), `codeFlows[0].threadFlows[0].locations` (source→sink), `partialFingerprints.primaryLocationLineHash` (stable ID), `properties.severity` / `security-severity`, `level` (error/warning/note).
63
+ - Do not dismiss as false positive without evidence. If source→sink lacks a sanitizer, mark `Needs investigation` and propose confirming with query help link (`https://codeql.github.com/codeql-query-help/python/py-sql-injection`).
64
+ - Table columns: `# | ruleId | location (file:line) | source→sink | code evidence (snippet) | severity/confidence | remediation | validation | status`.
65
+ 4. **Remediate:** Propose minimal fix with diff. For `py/sql-injection`: use parameterized `cursor.execute("SELECT ... WHERE id = %s", (user_id,))` not `f"SELECT ... {user_id}"`. For `js/xss`: escape via `textContent` or DOMPurify. For `java/sql-injection`: use `PreparedStatement`. Ask before adding `// lgtm[py/sql-injection]` or `codeql-config.yml` `query-filters: - exclude: py/sql-injection` — suppress only with justification.
66
+ 5. **Re-validate:** Re-run that single query pack (`codeql database analyze --query-suite=... --sarif-category=python`) or push branch and re-check Security tab alert state (`open` → `fixed` after merge to default branch, or `dismissed` if suppressed). For CI, watch new `analyze` run; for local, `codeql database analyze` with `--rerun`.
67
+ 6. **Document residual:** `fixed` (with commit), `dismissed` (reason + `dismissedReason: false positive` + comment), or `needs investigation` (insufficient evidence, e.g., custom sanitizer not modeled).
68
+
69
+ ## Evidence discipline (per finding)
70
+
71
+ | Field | Required | Example |
72
+ |-------|----------|---------|
73
+ | `ruleId` / `query ID` | Yes | `py/sql-injection`, `java/sql-injection` |
74
+ | `location` | Yes | `src/app.py:42:12` (uri + region) |
75
+ | `source → sink` | Yes when taint query | `request.args.get("id")` (source, line 38) → `cursor.execute(…)` (sink, line 42) via `codeFlows` |
76
+ | `code evidence` | Yes | Snippet `cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")` |
77
+ | `confidence` | Yes | High/Med/Low (from `properties.precision`: `very-high`/`high`/`medium`) |
78
+ | `severity` | Yes | `error` / `warning` + `security-severity: 8.5` |
79
+ | `remediation` | Yes | Parameterized query, or `needs investigation` if sanitizer unknown |
80
+ | `validation` | Yes | `re-ran py/security-and-quality on /tmp/db → 0 results for py/sql-injection` or `CI analyze #123 green` |
81
+
82
+ If evidence insufficient: status `Needs investigation` is valid — do not mark `fixed` or `false positive` without code proof.
83
+
84
+ ## MegaLinter vs CodeQL (documented)
85
+
86
+ | Aspect | MegaLinter | CodeQL |
87
+ |--------|------------|--------|
88
+ | Scope | Broad linting/formatting/IaC (100+ linters, `.mega-linter.yml`) | Semantic security / dataflow (SARIF, `codeql/*` packs) |
89
+ | Runtime | Docker `ghcr.io/oxsecurity/megalinter:v10` via `npx mega-linter-runner` | `github/codeql-action` (init/analyze) or `codeql` CLI + DB |
90
+ | Output | Console + `megalinter-reports/mega-linter-report.json` + logs | SARIF `results.sarif` + GitHub Security alerts |
91
+ | Fix loop | ≤3 bounded (safe auto-fix → targeted re-check) | One finding at a time, re-analyze DB after fix |
92
+ | When to use | Every PR for hygiene | Every push/PR for security, plus scheduled weekly |
93
+
94
+ **Do not duplicate workflows.** When both are needed, run `megalinter-check` for hygiene and `codeql` triage for security; share the same branch but keep SARIF vs linter reports separate.
95
+
96
+ ## Safety
97
+
98
+ - Never auto-suppress a CodeQL alert without user confirmation — suppression hides a security finding.
99
+ - Never push to `main` to fix a CodeQL alert — create branch `codeql/fix-<rule>-<id>`, fix, push, verify `analyze` passes.
100
+ - For custom queries, keep them in `codeql-query-pack/` with `qlpack.yml` and `codeql test` — do not edit `github/codeql` directly.
101
+
102
+ ## References
103
+
104
+ - `references/codeql-queries.md` — curated query packs (`security-and-quality`, `security-extended`, `security-experimental`), per-language `codeql/<lang>-queries` locations, and when to write custom QL
105
+ - GitHub Docs: Code scanning with CodeQL (2026-08-12), CodeQL CLI, `github/codeql-action` (https://github.com/github/codeql-action, MIT), `github/codeql` (MIT, queries)
106
+ - This repo: `.github/workflows/codeql.yml` (Analyze Python, `init@v4` + `analyze@v4`, schedule `0 6 * * 1`)
@@ -0,0 +1,43 @@
1
+ # CodeQL Query Packs — 2026-08-12
2
+
3
+ **Upstream:** `github/codeql` (MIT, https://github.com/github/codeql) — standard QL libraries and queries. Packs per language under `codeql/<lang>-queries` (e.g., `python`, `javascript`, `java`, `go`, `cpp`). Suites: `codeql-suites/<lang>-security-and-quality.qls`, `security-extended.qls`, `security-experimental.qls`.
4
+
5
+ **GitHub Docs (2026-08-12):** CodeQL code scanning for compiled languages (build modes), CodeQL CLI (`codeql database create` / `analyze`), `github/codeql-action` (https://github.com/github/codeql-action, MIT, `init@v4` + `analyze@v4`).
6
+
7
+ ## Curated suites
8
+
9
+ | Suite | What it contains | When to use |
10
+ |-------|------------------|-------------|
11
+ | `security-and-quality` | Security + correctness (precision `very-high`/`high`) | Default for CI — `Analyze Python` in this repo uses `codeql/python-queries:codeql-suites/python-security-and-quality.qls` implicitly via `codeql-action` without custom `queries:` |
12
+ | `security-extended` | Additional security with more false positives (`medium` precision) | When you need broader coverage and can triage |
13
+ | `security-experimental` | Experimental queries | Only for research, not CI gate |
14
+
15
+ **Per-language pack locations (examples):**
16
+ - `codeql/python-queries` — `py/sql-injection`, `py/xss`, `py/path-injection`, etc. Help: https://codeql.github.com/codeql-query-help/python/
17
+ - `codeql/javascript-queries` — `js/sql-injection`, `js/xss`, etc.
18
+ - `codeql/java-queries` — `java/sql-injection`, etc.
19
+ - `codeql/cpp-queries`, `codeql/go-queries`, `codeql/ruby-queries`, `codeql/csharp-queries`
20
+
21
+ ## This repo
22
+
23
+ - `.github/workflows/codeql.yml`: `languages: python` via `github/codeql-action/init@v4` + `analyze@v4`, `on: push[main] + pull_request[main] + schedule 0 6 * * 1`, `permissions: security-events: write`.
24
+ - No custom `queries:` yet — uses default `security-and-quality` pack.
25
+ - To add a language: add to `matrix.language` or separate job with `language: java` + build spec (`autobuild` for Maven/Gradle, manual `mvn package` for custom).
26
+
27
+ ## When to write custom QL
28
+
29
+ - Reuse `security-and-quality` first. Only write custom when you need a repo-specific pattern (e.g., internal sanitizer, framework-specific sink).
30
+ - Create `codeql-query-pack/qlpack.yml`:
31
+ ```yaml
32
+ name: my-org/my-queries
33
+ version: 0.0.1
34
+ dependencies:
35
+ codeql/python-queries: "*"
36
+ ```
37
+ - Write `my-query.ql` with `import python`, `from DataFlow::Node source, sink where ... select sink, "message"`, add `metadata` (`id`, `kind: path-problem`, `severity`, `precision`), help docs.
38
+ - Test: `codeql test run codeql-query-pack/`, then `codeql pack create` + `codeql database analyze --query-suite=my-suite.qls`.
39
+
40
+ ## References
41
+
42
+ - `github/codeql` README (MIT, 2026-08-11), `github/codeql-action` README (MIT)
43
+ - GitHub Docs: Code scanning with CodeQL, CodeQL CLI, CodeQL query help
@@ -0,0 +1,162 @@
1
+ ---
2
+ name: megalinter
3
+ description: MegaLinter coding-agent orchestration — discover config, run/check (CI watch or local Docker), classify findings, apply safe fixes, targeted re-check (bounded 3 iterations), report remaining. Consumes official oxsecurity/megalinter skills externally pinned at v10.0.0.
4
+ origin:
5
+ type: upstream
6
+ sources:
7
+ - id: orchestrator
8
+ repository: oxsecurity/megalinter
9
+ path: skills/megalinter/SKILL.md
10
+ ref: v10.0.0
11
+ commit: 15e5b45552097e318c93de385779ce3b1084052c
12
+ license: AGPL-3.0
13
+ - id: setup
14
+ repository: oxsecurity/megalinter
15
+ path: skills/megalinter-setup/SKILL.md
16
+ ref: v10.0.0
17
+ commit: 15e5b45552097e318c93de385779ce3b1084052c
18
+ license: AGPL-3.0
19
+ - id: check
20
+ repository: oxsecurity/megalinter
21
+ path: skills/megalinter-check/SKILL.md
22
+ ref: v10.0.0
23
+ commit: 15e5b45552097e318c93de385779ce3b1084052c
24
+ license: AGPL-3.0
25
+ - id: fix
26
+ repository: oxsecurity/megalinter
27
+ path: skills/megalinter-fix/SKILL.md
28
+ ref: v10.0.0
29
+ commit: 15e5b45552097e318c93de385779ce3b1084052c
30
+ license: AGPL-3.0
31
+ trust:
32
+ tier: reviewed
33
+ reviewed_at: '2026-08-12'
34
+ reviewed_by: ulises-jeremias
35
+ reviewed_provenance: sha256:a261350125bc434d73807cadb9f4616219e0266369887895f95b076c13e0c95c
36
+ maintenance:
37
+ status: active
38
+ last_activity: '2026-08-08'
39
+ last_checked: '2026-08-12'
40
+ distribution:
41
+ mode: external
42
+ redistribution_allowed: false
43
+ security:
44
+ scripts: false
45
+ shell: true
46
+ network: true
47
+ requires_secrets: false
48
+ mcp: []
49
+ hooks: []
50
+ dangerous_permissions: []
51
+ cve_policy: not-applicable
52
+ ---
53
+
54
+ # MegaLinter — External Pinned Coding-Agent Orchestration
55
+
56
+ Consume **official** MegaLinter coding-agent skills externally pinned, not rewritten.
57
+
58
+ > **Upstream:** `oxsecurity/megalinter` **v10.0.0** (`15e5b45552097e318c93de385779ce3b1084052c`, 2026-08-08) — AGPL-3.0. Skills: `megalinter` (orchestrator), `megalinter-setup`, `megalinter-check`, `megalinter-fix` + sub-agents `megalinter-watcher`/`megalinter-runner`/`megalinter-fixer`. Installed via `npx skills add oxsecurity/megalinter/skills -s '*' -a <agent> -y`. See `references/megalinter-targets.md` for dated evidence (2026-08-12) and `references/megalinter-license.md` for AGPL analysis.
59
+
60
+ **Do not vendor or paraphrase upstream SKILL.md.** This Toolkit capability is a thin, governed declaration → provenance lock → adapter. The workflow below mirrors upstream `megalinter` orchestrator (setup → check → fix → re-check ≤3 iterations) and maps it to Toolkit product/target constraints.
61
+
62
+ ## Installation (external, pinned)
63
+
64
+ ```bash
65
+ # Install or refresh official skills externally (per target)
66
+ npx skills add oxsecurity/megalinter/skills -s '*' -a claude-code -y
67
+ npx skills add oxsecurity/megalinter/skills -s '*' -a cursor -y
68
+ npx skills add oxsecurity/megalinter/skills -s '*' -a github-copilot -y
69
+ npx skills add oxsecurity/megalinter/skills -s '*' -a codex -y
70
+ npx skills add oxsecurity/megalinter/skills -s '*' -a opencode -y
71
+ # Or auto-detect installed agents:
72
+ npx skills add oxsecurity/megalinter/skills -s '*' -y --copy
73
+ ```
74
+
75
+ Verify pin:
76
+ ```bash
77
+ npx skills list | grep megalinter
78
+ # Should show Source: oxsecurity/megalinter — version v10.0.0 / commit 15e5b45
79
+ ```
80
+
81
+ Update: `npx skills update megalinter megalinter-setup megalinter-check megalinter-fix -y` (skills) + refresh sub-agents per `megalinter-setup/agents/INSTALL.md` (copy `.claude/agents/megalinter-*.md` etc.). Do not use bare `npx skills update` (updates unrelated skills).
82
+
83
+ Container/runtime (when running locally):
84
+ ```bash
85
+ npx mega-linter-runner --install --no-prompt --flavor <flavor> --setup-ci <ci> --fix
86
+ # Flavor/version follows MEGALINTER_VERSION in .mega-linter.yml
87
+ # Docker image: ghcr.io/oxsecurity/megalinter:v10 (config digest sha256:939058f3ed31803e12583365e7126eacfb356724bf003fd29e96a93948aa2d33, see references/megalinter-images.md for tag+digest and multi-arch notes)
88
+ # npm runner: mega-linter-runner@10.0.0 (sha512:yQOyD8/MTeZ35MveiE6Stoj0/FgIGkV7jok3VriFI+VP30LouWYlohFWVbaUJm+8/gmwT2NxA6pCcSdFsZ7xkA==)
89
+ ```
90
+
91
+ ## Workflow (mirrors upstream orchestrator, Toolkit-gated)
92
+
93
+ ```
94
+ DISCOVER CONFIG
95
+ ↓
96
+ RUN / CHECK (CI watch preferred; local Docker fallback)
97
+ ↓
98
+ CLASSIFY FINDINGS (blocking ❌ vs non-blocking ⚠️)
99
+ ↓
100
+ SAFE FIXES (auto-fixable first)
101
+ ↓
102
+ TARGETED RE-CHECK (only failing linters/files, parallel ≤4)
103
+ ↓
104
+ bounded iteration ≤3
105
+ ↓
106
+ remaining findings (report, do not force-push default branch)
107
+ ```
108
+
109
+ 1. **Discover config:** Check `.mega-linter.yml` + CI workflow (`.github/workflows/mega-linter.yml` etc.). If missing → delegate to `megalinter-setup` via external skill (always via `npx mega-linter-runner --install` / `--upgrade`, never hand-write `.mega-linter.yml`).
110
+ 2. **Run / Check:** Prefer **CI watch** if a MegaLinter job exists for branch/PR (no Docker needed, no GB download). Else **local** via `npx mega-linter-runner` (requires docker/podman actually responding — probe `timeout 10 docker info`, install/start if missing). Collect per-linter elapsed times and console tips (performance warnings, `[Activation]`, deprecations). Output contract JSON: `{status, linters: [{key, errors, fixable, blocking, files, samples}], slow_linters, tips, job_url?, auto_fix_commit?}`.
111
+ 3. **Classify:** Blocking ❌ (fails job) first, non-blocking ⚠️ (`DISABLE_ERRORS`) mention only.
112
+ 4. **Safe fixes:** For each failing linter, load its fix guide lazily (`linters/<key>.md` via upstream `megalinter-fix`). Order: auto-fixable via `npx mega-linter-runner --linter <KEY> --fix [files]` (if engine available) → manual per-rule fixes (consult rule docs) → web-search rule docs if uncovered → ask user for ambiguous/false-positive. **Never** guess suppression syntax.
113
+ 5. **Safety gating:** Safe deterministic auto-fixes → apply automatically. Ambiguous semantic changes, rule/linter disabling, security suppression → **ask user confirmation**. Disabling hierarchy: inline comment → linter config → `<KEY>_FILTER_REGEX_EXCLUDE` → `<KEY>_DISABLE_ERRORS: true` → `DISABLE_LINTERS` (last resort). Never disable without confirmation. Never commit or push on the default branch — create `megalinter/fix-<topic>` branch first. Never push to the default branch without confirmation. Never `git push --force` (never --force); only exception is amending MegaLinter auto-fix commit `[MegaLinter] Apply linters fixes` with `🤖` prefix via `--force-with-lease` to re-trigger CI (see upstream `megalinter-check` auto-fix handling, with 5 preconditions).
114
+ 6. **Targeted re-check:** After fixes, re-run only previously-failing linters/files in parallel (`npx mega-linter-runner --linter <KEY> -e JSON_REPORTER=true <files>`), capped 4 concurrent. Each run ≤10 min, full run ≤30 min, with orphan-container cleanup after kill.
115
+ 7. **Bounded iteration:** Repeat fix → re-check ≤3 times total. If errors remain, stop and report remaining + recommendation (manual fix, disable rule, disable linter). Relay `slow_linters` performance suggestions (e.g., `ADDITIONAL_EXCLUDED_DIRECTORIES`, `FILTER_REGEX_EXCLUDE`, flavor change) even on green runs — never auto-apply.
116
+
117
+ ## Cross-agent mapping (dated 2026-08-12, sources: megalinter.io/latest/coding-agents/, oxsecurity/megalinter/skills/README.md, agents/INSTALL.md)
118
+
119
+ | Target | MegaLinter official mechanism | Toolkit adapter |
120
+ |--------|-------------------------------|-----------------|
121
+ | **Claude Code** | Agent Skills (`npx skills add ... -a claude-code`) + sub-agents `.claude/agents/megalinter-watcher`/`runner`/`fixer` (model `haiku` for watcher/runner) | Native — install skills + copy sub-agents per `agents/INSTALL.md` |
122
+ | **Cursor** | Skills (`-a cursor`) + custom agents (Cursor supports agent definitions) | Native — same as Claude, target `.cursor` |
123
+ | **GitHub Copilot CLI** | Skills (`-a github-copilot`) + custom agents `.github/agents/` (keep `name`/`description`, drop `tools`/`model` if needed) | Native — install + adapt frontmatter |
124
+ | **OpenCode** | Skills (`-a opencode`) + sub-agents `.opencode/agent/` (`mode: subagent`, translate `tools` map, cheap model) | Native — as above |
125
+ | **Codex** | Skills (`-a codex`) + custom sub-agents (if platform documents `AGENTS.md` sub-agents, mirror Claude pattern; if only `AGENTS.md`, degrade) | Native / fallback — inline if no sub-agent file support |
126
+ | **Muse Code (pi)** | No native skill/sub-agent support documented (as of 2026-08-12) — `npx skills add ... -a pi` not listed; use `--copy` detection or manual | Fallback — sequential inline execution (no sub-agents), same workflow |
127
+ | **Antigravity** | Listed as supported in skills README (`antigravity`) | Native — `npx skills add ... -a antigravity` |
128
+
129
+ **Sub-agent optimization:** When `megalinter-watcher`/`runner`/`fixer` are installed and target supports `Agent`/`Task` tool, delegate CI watch to `megalinter-watcher`, local runs to `megalinter-runner`, and fan out one `megalinter-fixer` per failing linter in parallel. Otherwise degrade gracefully to inline (same steps, sequential).
130
+
131
+ **Fallback:** All targets support sequential inline (no sub-agents) — workflow still completes, just slower and with larger context.
132
+
133
+ ## Safety semantics (Toolkit mapping)
134
+
135
+ | Upstream rule | Toolkit enforcement |
136
+ |---------------|---------------------|
137
+ | Safe auto-fixes only | Auto-fixable linters via `mega-linter-runner --fix` → auto-apply |
138
+ | Ambiguous / false-positive | Ask via `AskUserQuestion`, propose `proposed_disable` but never apply |
139
+ | Disabling linter/rule | Always ask, hierarchy narrowest-first |
140
+ | Default branch mutation | Never commit/push to `main`/`master`; create branch, ask before push |
141
+ | Force-push | Never force-push; never --force; only `--force-with-lease` for amending `[MegaLinter] Apply linters fixes` when 5 preconditions hold (tip is auto-fix, not already 🤖, LOCAL_AHEAD==0, clean tree, not default branch without ask) |
142
+ | Loop bound | ≤3 iterations |
143
+
144
+ ## Dogfooding in this repo
145
+
146
+ This repo already uses MegaLinter:
147
+ - `.mega-linter.yml` (local) — 6 linters, `VALIDATE_ALL_CODEBASE: false`
148
+ - `.github/workflows/mega-linter.yml` (CI) — `oxsecurity/megalinter@v9` (prior), `ENABLE_LINTERS: YAML_YAMLLINT, JSON_JSONLINT, MARKDOWN_MARKDOWNLINT, BASH_SHELLCHECK, PYTHON_RUFF, REPOSITORY_SECRETLINT, REPOSITORY_CHECKOV` (CI-only), `DISABLE_ERRORS` for markdown/ruff/checkov.
149
+
150
+ The coding-agent capability helps:
151
+ - `megalinter-setup` to upgrade `.mega-linter.yml` / CI to v10 (via `npx mega-linter-runner --upgrade --no-prompt` + `ghcr.io` prefix migration) when user asks,
152
+ - `megalinter-check` to watch PR job or run locally (CI preferred to avoid GB download),
153
+ - `megalinter-fix` to fix safe findings.
154
+
155
+ It does **not** force every consumer repo to adopt MegaLinter — setup is opt-in.
156
+
157
+ ## References
158
+
159
+ - `references/megalinter-targets.md` — dated target matrix + install verification (2026-08-12)
160
+ - `references/megalinter-license.md` — AGPL-3.0 analysis (what is redistributed vs referenced, obligations, why external)
161
+ - `references/megalinter-images.md` — Docker tag + digest (`ghcr.io/oxsecurity/megalinter:v10` config digest `sha256:9390...`, npm `mega-linter-runner@10.0.0` integrity) and multi-arch manifest-list notes
162
+ - Upstream: https://megalinter.io/latest/coding-agents/, https://github.com/oxsecurity/megalinter (v10.0.0, 2026-08-08), https://megalinter.io/latest/install-agent-skills/
@@ -0,0 +1,36 @@
1
+ # MegaLinter Images & Runners — 2026-08-12
2
+
3
+ **Release:** `v10.0.0` at `15e5b45552097e318c93de385779ce3b1084052c` (2026-08-08, `gh api repos/oxsecurity/megalinter/releases/tags/v10.0.0`)
4
+
5
+ ## npm runner
6
+
7
+ - Package: `mega-linter-runner@10.0.0`
8
+ - Tarball: `https://registry.npmjs.org/mega-linter-runner/-/mega-linter-runner-10.0.0.tgz`
9
+ - `npm view mega-linter-runner@10.0.0 version` → `10.0.0`
10
+ - `npm view mega-linter-runner dist`:
11
+ ```json
12
+ {
13
+ "shasum": "c9e3977ab8004e66c8417dd6c981198a1897a971",
14
+ "integrity": "sha512-yQOyD8/MTeZ35MveiE6Stoj0/FgIGkV7jok3VriFI+VP30LouWYlohFWVbaUJm+8/gmwT2NxA6pCcSdFsZ7xkA==",
15
+ "unpackedSize": 1538108
16
+ }
17
+ ```
18
+ - Usage: `npx mega-linter-runner --install --no-prompt --flavor <flavor> --setup-ci <ci>` / `--upgrade`; version follows `MEGALINTER_VERSION` in `.mega-linter.yml` (`npx mega-linter-runner@beta` only when `MEGALINTER_VERSION: beta`).
19
+
20
+ ## Docker images
21
+
22
+ - **Registry:** `ghcr.io/oxsecurity/megalinter` (since v9.5.0, Docker Hub `oxsecurity/megalinter` frozen at v9.4.0; `npx mega-linter-runner --upgrade` does NOT rewrite registry prefix — manual migration to `ghcr.io/` required per `megalinter-setup` skill).
23
+ - **Tag:** `v10` (flavor-specific: `ghcr.io/oxsecurity/megalinter-python:v10`, `ghcr.io/oxsecurity/megalinter:v10` for `all`, etc.)
24
+ - **Manifest (2026-08-12):** `docker manifest inspect ghcr.io/oxsecurity/megalinter:v10` → `mediaType: application/vnd.docker.distribution.manifest.v2+json`, `config.digest: sha256:939058f3ed31803e12583365e7126eacfb356724bf003fd29e96a93948aa2d33`, 66 layers, single-arch v2 manifest as of this date.
25
+ - **Multi-arch note:** MegaLinter standalone images `megalinter-only-*` are only multi-arch on `beta` tag until v10; full flavor images are multi-arch via `ghcr.io`. Do **not** pin a platform-specific layer digest (e.g., `linux/amd64` layer sha) — pin the manifest list index digest if pinning digest at all. Per 2026-08-11 review, prefer **tag + verified digest** (`v10` + `sha256:9390...`) for readability + immutability, not digest-only. Test manifest-list handling with `docker buildx imagetools inspect ghcr.io/oxsecurity/megalinter:v10` (shows index vs manifest, platform digests).
26
+
27
+ **Recommendation for Toolkit consumers:**
28
+ - Keep `MEGALINTER_VERSION: v10` in `.mega-linter.yml` (human-readable) and document config digest for verification; do not hardcode digest in CI without testing multi-arch (e.g., `linux/arm64` vs `linux/amd64`).
29
+ - For strict pinning, record both: `version: v10.0.0, digest: sha256:939058f3...` (as in this file), but use tag in `docker run` / `uses: oxsecurity/megalinter@v10` (action, not Docker image).
30
+
31
+ ## Configuration
32
+
33
+ - `.mega-linter.yml` JSON schema: `https://raw.githubusercontent.com/oxsecurity/megalinter/main/megalinter/descriptors/schemas/megalinter-configuration.jsonschema.json`
34
+ - This repo's `.mega-linter.yml` (2026-08-12): 6 linters, `VALIDATE_ALL_CODEBASE: false`, `FILTER_REGEX_EXCLUDE` excludes `.git|node_modules|.venv|skills/...data.csv|profiles/...`.
35
+ - CI `.github/workflows/mega-linter.yml` (pre-v10): `uses: oxsecurity/megalinter@v9` with `ENABLE_LINTERS: YAML_YAMLLINT, JSON_JSONLINT, MARKDOWN_MARKDOWNLINT, BASH_SHELLCHECK, PYTHON_RUFF, REPOSITORY_SECRETLINT, REPOSITORY_CHECKOV` + `DISABLE_ERRORS` for markdown/ruff/checkov.
36
+
@@ -0,0 +1,41 @@
1
+ # MegaLinter License Analysis — 2026-08-12
2
+
3
+ **Upstream:** `oxsecurity/megalinter` — `LICENSE` at repo root is **GNU Affero General Public License v3.0 (AGPL-3.0)**, 34523 bytes, SHA `be3f7b28e564e7dd05eaf59d64adba1a4065ac0e` (`gh api repos/oxsecurity/megalinter --jq .license.spdx_id` → `AGPL-3.0`).
4
+
5
+ **Assets in scope:**
6
+ - `skills/megalinter/SKILL.md`, `skills/megalinter-setup/SKILL.md`, `skills/megalinter-check/SKILL.md`, `skills/megalinter-fix/SKILL.md` — markdown instruction files, each frontmatter `licence: MegaLinter by OX Security, Copyright 2026 - https://megalinter.io/` (not SPDX, but file is part of AGPL repo, so copyrighted work under AGPL unless explicitly exempted — no exemption found; `skills/*/LICENSE` 404 as of 2026-08-12).
7
+ - `skills/megalinter-setup/agents/megalinter-watcher.md`, `megalinter-runner.md`, `megalinter-fixer.md` — same repo, same copyright, same AGPL.
8
+ - `megalinter/linters/*.md` fix guides — generated partially from descriptors via `.automation/build.py` + hand-maintained, also AGPL.
9
+ - `mega-linter-runner` npm package (`mega-linter-runner@10.0.0`, `https://registry.npmjs.org/mega-linter-runner/-/mega-linter-runner-10.0.0.tgz`, integrity `sha512-yQOyD8/...`, shasum `c9e3977ab8004e66c8417dd6c981198a1897a971`) — same AGPL repo, but distributed as npm tarball (still AGPL).
10
+ - Docker images `ghcr.io/oxsecurity/megalinter:v10` (config digest `sha256:939058f3ed31803e12583365e7126eacfb356724bf003fd29e96a93948aa2d33`, manifest v2+json, 66 layers) — built from AGPL repo, image layers are AGPL-derived; using the image as a runtime container (docker run) does not create a derivative of the image in the consumer repo.
11
+
12
+ ## What would vendoring mean?
13
+
14
+ If Agent Toolkit copied the 4 SKILL.md + 3 agent MD files verbatim into `skills/quality/megalinter/` (vendored):
15
+ - Those specific files would be **redistributed** AGPL-licensed copyrighted works inside an MIT-licensed repository.
16
+ - Obligations for those files: preserve copyright notice (`MegaLinter by OX Security`), preserve AGPL license text (include `LICENSE` or notice), offer source (GitHub already does), and the AGPL would apply to those files themselves. The MIT license of the rest of the repo would not automatically become AGPL — this is **aggregation**, not a combined derivative, if the files remain separate and are not compiled/linked into a single program. The MIT files remain MIT.
17
+ - However, the AGPL's "network use is distribution" clause is not triggered by merely storing markdown docs in a repo; it is triggered by running the AGPL program as a network service. The linter Docker image, when run, is a separate AGPL program executed via Docker — not linked into Toolkit code. Using it via `docker run` or `npx mega-linter-runner` is **mere use**, not redistribution of its code inside Toolkit.
18
+ - Still, vendoring would mix licenses in one repo, require per-file license headers, and create maintenance burden (chasing upstream updates). Reviewers must verify each vendored file's license, and CI would need to enforce that the vendored bytes match the locked commit's checksum.
19
+
20
+ ## What does external reference mean?
21
+
22
+ External (chosen):
23
+ - Toolkit does **not** copy upstream SKILL.md bytes into `skills/quality/megalinter/`. The single `skills/quality/megalinter/SKILL.md` in Toolkit is **first-party adapter** (MIT) that *references* the upstream skills via `sources` metadata and documents `npx skills add oxsecurity/megalinter/skills -s '*' -a <agent> -y` as the install step.
24
+ - At install time, the *user's* machine fetches the upstream skills directly from `oxsecurity/megalinter` at the pinned commit `15e5b45` / tag `v10.0.0` via the `skills` CLI. The Toolkit repository itself never contains the AGPL markdown bytes, so it never redistributes them. The user who runs `npx skills add` obtains the AGPL files directly from the AGPL licensor (OX Security) — compliance is between user and OX Security, not mediated by Toolkit.
25
+ - `capabilities/upstream.lock` still records the **resolved commit** (`15e5b45552097e318c93de385779ce3b1084052c`), **per-source content checksums** (`sha256:ffd79b...`, `b1cba...`, `bb8e4...`, `fff520...`) computed from the upstream raw bytes at that commit, and **observed license** `AGPL-3.0`. This provides governance without redistribution.
26
+ - Docker image and npm runner are likewise **referenced**, not vendored: `ghcr.io/oxsecurity/megalinter:v10` is pulled at runtime via Docker, `mega-linter-runner@10.0.0` via npm. No image layers are committed to Toolkit.
27
+
28
+ **Why external is cleanest (avoiding imprecise 'infect' language):**
29
+ - AGPL does not automatically "infect" MIT files in the same repo when they are separate works (aggregation). The imprecise phrase overstates the obligation.
30
+ - The real reason to keep external is **operational simplicity + legal uncertainty avoidance**: (1) no need to ship AGPL `LICENSE` alongside each vendored file and audit each update, (2) no question whether a vendored markdown doc is a "derivative" of the AGPL program, (3) the official `oxsecurity/megalinter` skills remain the maintained source of truth — Toolkit avoids drift from manual copy, and updates are via `npx skills update` + provenance lock bump, not manual file sync.
31
+ - Therefore: `distribution: mode: external, redistribution_allowed: false` in the Toolkit adapter, with provenance lock for governance.
32
+
33
+ ## Evidence
34
+
35
+ - `gh api repos/oxsecurity/megalinter --jq .license.spdx_id` → `AGPL-3.0` (2026-08-12)
36
+ - `curl -sL https://raw.githubusercontent.com/oxsecurity/megalinter/main/LICENSE | head -5` → `GNU AFFERO GENERAL PUBLIC LICENSE`
37
+ - `gh api repos/oxsecurity/megalinter/contents/skills/megalinter --jq .[].name` → `SKILL.md` only, no LICENSE
38
+ - `curl -sL https://raw.githubusercontent.com/oxsecurity/megalinter/15e5b45552097e318c93de385779ce3b1084052c/skills/megalinter/SKILL.md | head -1` → `licence: MegaLinter by OX Security...` (not SPDX)
39
+ - Checksums (2026-08-12): `ffd79b1c...` (orchestrator), `b1cba393...` (setup), `bb8e4759...` (check), `fff5202a...` (fix) — `sha256:` prefixed in lock.
40
+ - Docker: `docker manifest inspect ghcr.io/oxsecurity/megalinter:v10 --verbose` shows config digest `sha256:939058f3ed31803e12583365e7126eacfb356724bf003fd29e96a93948aa2d33` (single-arch v2 manifest as of 2026-08-12; for multi-arch, use `docker buildx imagetools inspect ghcr.io/oxsecurity/megalinter:v10` to see manifest list index digest — prefer retaining `version: v10` tag + digest when pinning, not digest-only, per 2026-08-11 review).
41
+ - npm: `npm view mega-linter-runner@10.0.0 dist.integrity` → `sha512-yQOyD8...`
@@ -0,0 +1,66 @@
1
+ # MegaLinter Target Mapping — Dated 2026-08-12
2
+
3
+ **Upstream sources (2026-08-12):**
4
+ - https://megalinter.io/latest/coding-agents/ (description: "Setup, run and fix MegaLinter errors from Claude Code, Cursor, GitHub Copilot CLI, Codex, Gemini CLI, Antigravity, OpenCode and other coding agents, with token-efficient sub-agents orchestration")
5
+ - https://raw.githubusercontent.com/oxsecurity/megalinter/main/skills/README.md (2026-08-12 snapshot)
6
+ - https://raw.githubusercontent.com/oxsecurity/megalinter/main/skills/megalinter-setup/agents/INSTALL.md (2026-08-12)
7
+ - Git tags: `v10.0.0` at `15e5b45552097e318c93de385779ce3b1084052c` (2026-08-08, `gh api repos/oxsecurity/megalinter/releases/tags/v10.0.0`)
8
+
9
+ ## Official skill names (current)
10
+
11
+ | Skill | Path | Purpose (upstream SKILL.md description) |
12
+ |-------|------|----------------------------------------|
13
+ | `megalinter` | `skills/megalinter/SKILL.md` | Entry point: detects state, orchestrates setup→check→fix loop until clean (≤3 iterations) |
14
+ | `megalinter-setup` | `skills/megalinter-setup/SKILL.md` | Install/upgrade via `npx mega-linter-runner --install/--upgrade`, scaffold custom flavor, install sub-agents |
15
+ | `megalinter-check` | `skills/megalinter-check/SKILL.md` | Collect errors: watch CI job (GitHub/GitLab/Azure/Bitbucket) or run locally via docker/podman, targeted re-check |
16
+ | `megalinter-fix` | `skills/megalinter-fix/SKILL.md` | Fix via per-linter guides, auto-fix first, ask for ambiguous, propose disables |
17
+
18
+ **Installation (official):**
19
+ ```bash
20
+ npx skills add oxsecurity/megalinter/skills -s '*' -a claude-code -y
21
+ # or -a cursor, -a github-copilot, -a codex, -a antigravity, -a opencode, etc.
22
+ npx skills add oxsecurity/megalinter/skills -s '*' -y --copy # auto-detect
23
+ npx skills update megalinter megalinter-setup megalinter-check megalinter-fix -y
24
+ ```
25
+
26
+ **Sub-agents (shipped in `skills/megalinter-setup/agents/`):**
27
+ - `megalinter-watcher` (tools: Read,Grep,Glob,Bash, model: haiku) — watch CI job, return compact JSON, never fixes
28
+ - `megalinter-runner` (Read,Grep,Glob,Bash, haiku) — run locally, digest reports
29
+ - `megalinter-fixer` (Read,Grep,Glob,Edit,Write,Bash,WebFetch,WebSearch) — fix ONE linter, propose disables, never commits
30
+
31
+ Per `agents/INSTALL.md` (2026-08-12):
32
+ - Claude Code: `mkdir -p .claude/agents && cp <skill_dir>/agents/megalinter-*.md .claude/agents/`
33
+ - OpenCode: `.opencode/agent/` with `mode: subagent`, translate `tools` map, cheap model
34
+ - GitHub Copilot: `.github/agents/` keep `name`/`description`, drop `tools`/`model` if needed
35
+ - Codex/other: mirror pattern if platform documents sub-agent files; if only `AGENTS.md`, degrade to inline.
36
+
37
+ ## Supported coding agents (as of 2026-08-12)
38
+
39
+ | Agent | Mechanism | Sub-agents | Evidence |
40
+ |-------|-----------|------------|----------|
41
+ | Claude Code | Skills + `Agent` tool | Yes (watcher/runner/fixer) | skills/README.md + coding-agents page |
42
+ | Cursor | Skills + custom agents | Yes | same |
43
+ | GitHub Copilot CLI | Skills + `.github/agents/` | Yes | agents/INSTALL.md |
44
+ | Codex | Skills + custom agents (if supported) | Conditional | INSTALL.md: "If your platform documents custom agent/subagent definition files, mirror pattern" |
45
+ | OpenCode | Skills + `.opencode/agent/` | Yes | INSTALL.md |
46
+ | Muse CLI | Skills (implied) | Unknown — listed on coding-agents page as supported | megalinter.io/latest/coding-agents/ meta description includes Gemini CLI |
47
+ | Antigravity | Skills (`-a antigravity`) | Unknown — listed in skills README | skills/README.md line: "Cursor CLI, GitHub Copilot CLI, Codex, Antigravity, OpenCode" |
48
+ | Muse Code (pi) | Not listed as supported `-a pi` target (2026-08-12) — use `--copy` auto-detect or manual | No | `npx skills add` docs list supported agents via vercel-labs/skills; `pi` not in that list as of 2026-08-12 |
49
+
50
+ **Fallback:** All targets degrade gracefully to inline sequential execution when sub-agents unavailable — workflow still completes (same ≤3 loop, same safety gates), just slower.
51
+
52
+ ## Verification commands
53
+
54
+ ```bash
55
+ npx skills list | grep megalinter
56
+ # Expect: megalinter, megalinter-setup, megalinter-check, megalinter-fix with Source oxsecurity/megalinter v10.0.0
57
+
58
+ ls .claude/agents/megalinter-*.md # Claude Code sub-agents present after setup
59
+ ls .opencode/agent/megalinter-*.md # OpenCode
60
+ ls .github/agents/megalinter-*.md # Copilot
61
+ ```
62
+
63
+ ## Notes
64
+
65
+ - `licence` field in each upstream SKILL.md: `MegaLinter by OX Security, Copyright 2026 - https://megalinter.io/` — not SPDX, but repo LICENSE is AGPL-3.0 (see megalinter-license.md).
66
+ - First run locally is resource-consuming: Docker image several GB, needs docker/podman responding (`timeout 10 docker info`), ask user before local vs CI (CI preferred).
@@ -0,0 +1,146 @@
1
+ ---
2
+ name: chrome-devtools
3
+ description: Use Chrome DevTools MCP to control and inspect a live Chrome instance for network, console, performance, rendering, and Deep debugging. Pairs with playwright-cli (deterministic interaction/E2E) — complements, not duplicates.
4
+ origin:
5
+ type: first-party
6
+ ---
7
+
8
+ # Chrome DevTools
9
+
10
+ Control and inspect a **live Chrome** browser via the official `ChromeDevTools/chrome-devtools-mcp` (`chrome-devtools-mcp`, Apache-2.0) MCP server. Gives your coding agent the full power of Chrome DevTools for **runtime debugging, network inspection, performance analysis, and rendering diagnostics** — while `playwright-cli` remains the primary tool for deterministic interaction and E2E validation.
11
+
12
+ > **Complementarity:** `playwright-cli` → deterministic `locator/snapshot/assert` workflows, multi-tab, traces, screenshots. `chrome-devtools` → network + console + performance traces + rendering diagnostics + Puppeteer-based reliable automation via DevTools. **Do not** re-implement Playwright flows via DevTools JSON-RPC; pick the right provider per capability (see decision table).
13
+
14
+ ## When to use which provider
15
+
16
+ | Need | Use `playwright-cli` | Use `chrome-devtools` | Either |
17
+ |------|----------------------|-----------------------|--------|
18
+ | Click / fill / navigate deterministically | ✅ locators, `snapshot` → stable `eN` refs, fixtures | — | |
19
+ | Take screenshot of rendered state (verification required before declaring UI good) | ✅ `screenshot` + trace | ✅ `take_screenshot` + rendering inspection | ✅ |
20
+ | Assert E2E condition / generate test | ✅ assertions, `e2e-runner` specs | — | |
21
+ | Inspect DOM / accessibility tree / computed styles | `snapshot` (a11y-aware) limited | ✅ DOM, a11y tree, style inspection | |
22
+ | Network requests / console messages / runtime debugging | limited | ✅ `list_network_requests`, console, source-mapped stack traces | |
23
+ | Performance trace / CrUX field data / insights | — | ✅ `performance_*` tools + CrUX | |
24
+ | Reliable automation that auto-waits | — | ✅ Puppeteer-based `click/type/navigate` via DevTools | |
25
+ | Extract JS-rendered data quickly | ✅ snapshot + CLI loop | | |
26
+
27
+ **Rule for design workflows:** `design-improvement` and `design-assessment` use `playwright-cli` for `implement → run → capture` (primary capture + interaction); pull in `chrome-devtools` when `browser.network / browser.console / browser.performance / browser.runtime-debug` is required. Either MCP alone suffices for degraded mode; together they cover `implement → render → capture → inspect → compare → iterate`.
28
+
29
+ ## Prerequisites
30
+
31
+ - **Node.js LTS** + **npm** + **current stable Chrome** (or Chrome for Testing). Latest Chrome via [Extended Stable](https://chromiumdash.appspot.com/schedule).
32
+ - MCP host: Claude Code / Cursor / Gemini / OpenCode (native `mcpServers`), or bridged via `mcp-remote` — see `mcp/registry/chrome-devtools.yaml` `platforms`.
33
+ - No secrets — DevTools MCP runs a local browser; avoid sharing sensitive page content with the LLM. Prefer `FIGMA_TOKEN`-style isolation: do not commit real URLs with secrets.
34
+
35
+ Check availability:
36
+
37
+ ```bash
38
+ agent-toolkit doctor 2>&1 | grep -i chrome
39
+ npx -y chrome-devtools-mcp@latest --help
40
+ ```
41
+
42
+ ## Installation (MCP)
43
+
44
+ **Claude Code (MCP-only, no plugin):**
45
+
46
+ ```bash
47
+ claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
48
+ ```
49
+
50
+ **Claude Code (plugin + skills, recommended):**
51
+
52
+ ```bash
53
+ /plugin marketplace add ChromeDevTools/chrome-devtools-mcp
54
+ /plugin install chrome-devtools-mcp@chrome-devtools-plugin
55
+ ```
56
+
57
+ Then restart Claude Code and check `/mcp` or `/skills`.
58
+
59
+ **Other hosts (Cline, Gemini, Codex, Copilot):** Use the same `npx -y chrome-devtools-mcp@latest` entry:
60
+
61
+ ```json
62
+ {
63
+ "mcpServers": {
64
+ "chrome-devtools": {
65
+ "command": "npx",
66
+ "args": ["-y", "chrome-devtools-mcp@latest"]
67
+ }
68
+ }
69
+ }
70
+ ```
71
+
72
+ Add flags as needed:
73
+
74
+ - `--slim` — reduced tool count for smaller context
75
+ - `--headless` — run headless (default headed for visual review)
76
+ - `--browser-url=http://127.0.0.1:9222` — attach to an existing Chrome (e.g., Antigravity)
77
+ - `--isolated` — per-session Chrome instance
78
+ - `--no-performance-crux` — disable CrUX field fetch
79
+ - `--no-usage-statistics` — opt out of Google usage stats (or set `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS=1`)
80
+
81
+ See `docs/tool-reference.md` for full flag table and `mcp/templates/chrome-devtools/README.md` for host-specific wiring.
82
+
83
+ ## Core workflows
84
+
85
+ ### 1. Open → interact → inspect → trace
86
+
87
+ ```bash
88
+ # via MCP tool (agent calls tool): navigate, click, take_snapshot, etc.
89
+ # equivalent CLI (no MCP) also available:
90
+ npx -y chrome-devtools-mcp@latest --help
91
+ ```
92
+
93
+ Typical MCP tool sequence:
94
+
95
+ 1. `navigate_page` → open URL
96
+ 2. `take_snapshot` or `take_screenshot` → capture rendered evidence (required before declaring UI good)
97
+ 3. `click` / `fill` / `drag` (Puppeteer-backed, auto-waits)
98
+ 4. `list_console_messages` / `list_network_requests` → runtime diagnostics
99
+ 5. `performance_start_trace` → `performance_stop_trace` → `performance_analyze_insight` → actionable insights + CrUX
100
+ 6. `take_screenshot` at breakpoints/themes (mobile/tablet/desktop, light/dark) for `design-improvement` re-review loop
101
+
102
+ ### 2. Performance debugging
103
+
104
+ Use `performance_start_trace --auto` (optionally `reload`, `metric: webVital`), then `performance_stop_trace`, then `performance_analyze_insight`. Tools send trace CrUX to Google's CrUX API for field vs lab comparison — disable with `--no-performance-crux` if offline-sensitive.
105
+
106
+ ### 3. Network / console triage
107
+
108
+ `list_network_requests` + `get_network_request` (HAR-like), `list_console_messages` with source-mapped stacks. Prefer over `curl` when JS rendering or auth is involved.
109
+
110
+ ## Security boundaries
111
+
112
+ - DevTools MCP exposes **all browser content** to the MCP client — avoid loading pages with secrets, personal data, or internal admin surfaces without explicit scoping; the README warning applies.
113
+ - Treat tool arguments (`url`, `selector`, `script`) as executable-ish — validate inputs, no SSRF via `navigate_page` to internal hosts without approval.
114
+ - Usage stats are enabled by default (Google collects tool success/latency/env). Opt out with `--no-usage-statistics` or env `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS=1`; CI sets `CI=1` automatically disables them. Update checks ping npm registry — disable with `CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1`.
115
+ - Chrome support is limited to Google Chrome / Chrome for Testing — other Chromium forks may misbehave.
116
+ - Respect `security.classification` in skill frontmatter where applicable; DevTools MCP is `read-write` (can modify page) — not `read-only` like Figma.
117
+
118
+ ## Delegation — browser capabilities conceptually
119
+
120
+ Request capabilities, not brands, where practical:
121
+
122
+ | Capability | `playwright-cli` / `e2e-runner` | `chrome-devtools` |
123
+ |------------|-------------------------------|-------------------|
124
+ | `browser.interact` | ✅ deterministic locators/assertions | ✅ Puppeteer-backed (auto-wait) |
125
+ | `browser.capture` | ✅ screenshot/trace/pdf/snapshot | ✅ screenshot + trace |
126
+ | `browser.dom` / `browser.accessibility` | snapshot (a11y) | ✅ DOM + a11y tree + computed styles |
127
+ | `browser.network` / `browser.console` / `browser.performance` | limited | ✅ full |
128
+ | `browser.trace` / `browser.visual-compare` | trace | trace + rendering inspection |
129
+ | `browser.runtime-debug` | — | ✅ DevTools protocol |
130
+
131
+ **Delegation mapping for Toolkit:**
132
+
133
+ - `design-assessment` (A11Y/Responsive/Perf) → requests `browser.capture` + `browser.accessibility` + `browser.performance`
134
+ - `design-improvement` (run → capture → review → fix → re-review) → requests `browser.interact` + `browser.capture` + `browser.visual-compare`
135
+ - `e2e-runner` → requests `browser.assert` (Playwright spec)
136
+
137
+ Either provider alone is valid degraded mode; together they cover the full lifecycle.
138
+
139
+ ## References
140
+
141
+ - `mcp/registry/chrome-devtools.yaml` — provenance (ChromeDevTools/chrome-devtools-mcp, Apache-2.0, npm `chrome-devtools-mcp`), transport `stdio` via `npx`, platforms matrix, security notes
142
+ - `mcp/templates/chrome-devtools/config.template.json` + `README.md` — host wiring
143
+ - `docs/MCP.md` — MCP overview and provider table
144
+ - `tooling/playwright-cli` — deterministic browser automation (complement)
145
+ - `Chrome DevTools MCP docs`: [GitHub ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp), [tool-reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md), [npm chrome-devtools-mcp](https://www.npmjs.com/package/chrome-devtools-mcp)
146
+