@chankov/agent-skills 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/.claude/commands/build.md +18 -0
  2. package/.claude/commands/code-simplify.md +22 -0
  3. package/.claude/commands/design-agent.md +14 -0
  4. package/.claude/commands/doctor.md +13 -0
  5. package/.claude/commands/plan.md +16 -0
  6. package/.claude/commands/prime.md +22 -0
  7. package/.claude/commands/review.md +16 -0
  8. package/.claude/commands/setup.md +19 -0
  9. package/.claude/commands/ship.md +17 -0
  10. package/.claude/commands/spec.md +15 -0
  11. package/.claude/commands/test.md +19 -0
  12. package/.opencode/commands/as-build.md +17 -0
  13. package/.opencode/commands/as-code-simplify.md +16 -0
  14. package/.opencode/commands/as-design-agent.md +15 -0
  15. package/.opencode/commands/as-doctor.md +11 -0
  16. package/.opencode/commands/as-plan.md +16 -0
  17. package/.opencode/commands/as-prime.md +22 -0
  18. package/.opencode/commands/as-review.md +15 -0
  19. package/.opencode/commands/as-setup.md +11 -0
  20. package/.opencode/commands/as-ship.md +16 -0
  21. package/.opencode/commands/as-spec.md +16 -0
  22. package/.opencode/commands/as-test.md +21 -0
  23. package/.pi/agents/agent-chain.yaml +49 -0
  24. package/.pi/agents/bowser.md +19 -0
  25. package/.pi/agents/pi-pi/agent-expert.md +98 -0
  26. package/.pi/agents/pi-pi/cli-expert.md +41 -0
  27. package/.pi/agents/pi-pi/config-expert.md +63 -0
  28. package/.pi/agents/pi-pi/ext-expert.md +43 -0
  29. package/.pi/agents/pi-pi/keybinding-expert.md +134 -0
  30. package/.pi/agents/pi-pi/pi-orchestrator.md +57 -0
  31. package/.pi/agents/pi-pi/prompt-expert.md +70 -0
  32. package/.pi/agents/pi-pi/skill-expert.md +42 -0
  33. package/.pi/agents/pi-pi/theme-expert.md +40 -0
  34. package/.pi/agents/pi-pi/tui-expert.md +85 -0
  35. package/.pi/agents/teams.yaml +31 -0
  36. package/.pi/damage-control-rules.yaml +278 -0
  37. package/.pi/extensions/chrome-devtools-mcp/README.md +39 -0
  38. package/.pi/extensions/chrome-devtools-mcp/index.ts +61 -0
  39. package/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  40. package/.pi/extensions/compact-and-continue/README.md +42 -0
  41. package/.pi/extensions/compact-and-continue/index.ts +120 -0
  42. package/.pi/extensions/compact-and-continue/package.json +6 -0
  43. package/.pi/extensions/mcp-bridge/README.md +46 -0
  44. package/.pi/extensions/mcp-bridge/index.ts +206 -0
  45. package/.pi/extensions/mcp-bridge/package.json +6 -0
  46. package/.pi/extensions/package-lock.json +1143 -0
  47. package/.pi/extensions/package.json +9 -0
  48. package/.pi/harnesses/agent-chain/README.md +37 -0
  49. package/.pi/harnesses/agent-chain/index.ts +795 -0
  50. package/.pi/harnesses/agent-chain/package.json +6 -0
  51. package/.pi/harnesses/agent-team/README.md +38 -0
  52. package/.pi/harnesses/agent-team/index.ts +732 -0
  53. package/.pi/harnesses/agent-team/package.json +6 -0
  54. package/.pi/harnesses/coms/README.md +36 -0
  55. package/.pi/harnesses/coms/index.ts +1595 -0
  56. package/.pi/harnesses/coms/package.json +6 -0
  57. package/.pi/harnesses/coms-net/README.md +46 -0
  58. package/.pi/harnesses/coms-net/index.ts +1637 -0
  59. package/.pi/harnesses/coms-net/package.json +6 -0
  60. package/.pi/harnesses/damage-control/README.md +38 -0
  61. package/.pi/harnesses/damage-control/index.ts +207 -0
  62. package/.pi/harnesses/damage-control/package.json +6 -0
  63. package/.pi/harnesses/damage-control-continue/README.md +37 -0
  64. package/.pi/harnesses/damage-control-continue/index.ts +234 -0
  65. package/.pi/harnesses/damage-control-continue/package.json +6 -0
  66. package/.pi/harnesses/minimal/README.md +27 -0
  67. package/.pi/harnesses/minimal/index.ts +32 -0
  68. package/.pi/harnesses/minimal/package.json +6 -0
  69. package/.pi/harnesses/package-lock.json +35 -0
  70. package/.pi/harnesses/package.json +9 -0
  71. package/.pi/harnesses/pi-pi/README.md +39 -0
  72. package/.pi/harnesses/pi-pi/index.ts +631 -0
  73. package/.pi/harnesses/pi-pi/package.json +6 -0
  74. package/.pi/harnesses/purpose-gate/README.md +27 -0
  75. package/.pi/harnesses/purpose-gate/index.ts +82 -0
  76. package/.pi/harnesses/purpose-gate/package.json +6 -0
  77. package/.pi/harnesses/session-replay/README.md +28 -0
  78. package/.pi/harnesses/session-replay/index.ts +214 -0
  79. package/.pi/harnesses/session-replay/package.json +6 -0
  80. package/.pi/harnesses/subagent-widget/README.md +36 -0
  81. package/.pi/harnesses/subagent-widget/index.ts +479 -0
  82. package/.pi/harnesses/subagent-widget/package.json +6 -0
  83. package/.pi/harnesses/system-select/README.md +39 -0
  84. package/.pi/harnesses/system-select/index.ts +165 -0
  85. package/.pi/harnesses/system-select/package.json +6 -0
  86. package/.pi/harnesses/tilldone/README.md +35 -0
  87. package/.pi/harnesses/tilldone/index.ts +724 -0
  88. package/.pi/harnesses/tilldone/package.json +6 -0
  89. package/.pi/harnesses/tool-counter/README.md +31 -0
  90. package/.pi/harnesses/tool-counter/index.ts +100 -0
  91. package/.pi/harnesses/tool-counter/package.json +6 -0
  92. package/.pi/harnesses/tool-counter-widget/README.md +27 -0
  93. package/.pi/harnesses/tool-counter-widget/index.ts +66 -0
  94. package/.pi/harnesses/tool-counter-widget/package.json +6 -0
  95. package/.pi/prompts/build.md +24 -0
  96. package/.pi/prompts/code-simplify.md +22 -0
  97. package/.pi/prompts/doctor.md +13 -0
  98. package/.pi/prompts/plan.md +16 -0
  99. package/.pi/prompts/review.md +16 -0
  100. package/.pi/prompts/setup.md +19 -0
  101. package/.pi/prompts/ship.md +17 -0
  102. package/.pi/prompts/spec.md +15 -0
  103. package/.pi/prompts/test.md +19 -0
  104. package/.pi/skills/bowser/SKILL.md +114 -0
  105. package/.versions/0.1.0/.claude/commands/build.md +18 -0
  106. package/.versions/0.1.0/.claude/commands/code-simplify.md +22 -0
  107. package/.versions/0.1.0/.claude/commands/design-agent.md +14 -0
  108. package/.versions/0.1.0/.claude/commands/doctor.md +13 -0
  109. package/.versions/0.1.0/.claude/commands/plan.md +16 -0
  110. package/.versions/0.1.0/.claude/commands/prime.md +22 -0
  111. package/.versions/0.1.0/.claude/commands/review.md +16 -0
  112. package/.versions/0.1.0/.claude/commands/setup.md +19 -0
  113. package/.versions/0.1.0/.claude/commands/ship.md +17 -0
  114. package/.versions/0.1.0/.claude/commands/spec.md +15 -0
  115. package/.versions/0.1.0/.claude/commands/test.md +19 -0
  116. package/.versions/0.1.0/.opencode/commands/as-build.md +17 -0
  117. package/.versions/0.1.0/.opencode/commands/as-code-simplify.md +16 -0
  118. package/.versions/0.1.0/.opencode/commands/as-design-agent.md +15 -0
  119. package/.versions/0.1.0/.opencode/commands/as-doctor.md +11 -0
  120. package/.versions/0.1.0/.opencode/commands/as-plan.md +16 -0
  121. package/.versions/0.1.0/.opencode/commands/as-prime.md +22 -0
  122. package/.versions/0.1.0/.opencode/commands/as-review.md +15 -0
  123. package/.versions/0.1.0/.opencode/commands/as-setup.md +11 -0
  124. package/.versions/0.1.0/.opencode/commands/as-ship.md +16 -0
  125. package/.versions/0.1.0/.opencode/commands/as-spec.md +16 -0
  126. package/.versions/0.1.0/.opencode/commands/as-test.md +21 -0
  127. package/.versions/0.1.0/.pi/agents/agent-chain.yaml +49 -0
  128. package/.versions/0.1.0/.pi/agents/bowser.md +19 -0
  129. package/.versions/0.1.0/.pi/agents/pi-pi/agent-expert.md +98 -0
  130. package/.versions/0.1.0/.pi/agents/pi-pi/cli-expert.md +41 -0
  131. package/.versions/0.1.0/.pi/agents/pi-pi/config-expert.md +63 -0
  132. package/.versions/0.1.0/.pi/agents/pi-pi/ext-expert.md +43 -0
  133. package/.versions/0.1.0/.pi/agents/pi-pi/keybinding-expert.md +134 -0
  134. package/.versions/0.1.0/.pi/agents/pi-pi/pi-orchestrator.md +57 -0
  135. package/.versions/0.1.0/.pi/agents/pi-pi/prompt-expert.md +70 -0
  136. package/.versions/0.1.0/.pi/agents/pi-pi/skill-expert.md +42 -0
  137. package/.versions/0.1.0/.pi/agents/pi-pi/theme-expert.md +40 -0
  138. package/.versions/0.1.0/.pi/agents/pi-pi/tui-expert.md +85 -0
  139. package/.versions/0.1.0/.pi/agents/teams.yaml +31 -0
  140. package/.versions/0.1.0/.pi/damage-control-rules.yaml +278 -0
  141. package/.versions/0.1.0/.pi/extensions/chrome-devtools-mcp/README.md +39 -0
  142. package/.versions/0.1.0/.pi/extensions/chrome-devtools-mcp/index.ts +61 -0
  143. package/.versions/0.1.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  144. package/.versions/0.1.0/.pi/extensions/compact-and-continue/README.md +42 -0
  145. package/.versions/0.1.0/.pi/extensions/compact-and-continue/index.ts +120 -0
  146. package/.versions/0.1.0/.pi/extensions/compact-and-continue/package.json +6 -0
  147. package/.versions/0.1.0/.pi/extensions/mcp-bridge/README.md +46 -0
  148. package/.versions/0.1.0/.pi/extensions/mcp-bridge/index.ts +206 -0
  149. package/.versions/0.1.0/.pi/extensions/mcp-bridge/package.json +6 -0
  150. package/.versions/0.1.0/.pi/extensions/package-lock.json +1143 -0
  151. package/.versions/0.1.0/.pi/extensions/package.json +9 -0
  152. package/.versions/0.1.0/.pi/harnesses/agent-chain/README.md +37 -0
  153. package/.versions/0.1.0/.pi/harnesses/agent-chain/index.ts +795 -0
  154. package/.versions/0.1.0/.pi/harnesses/agent-chain/package.json +6 -0
  155. package/.versions/0.1.0/.pi/harnesses/agent-team/README.md +38 -0
  156. package/.versions/0.1.0/.pi/harnesses/agent-team/index.ts +732 -0
  157. package/.versions/0.1.0/.pi/harnesses/agent-team/package.json +6 -0
  158. package/.versions/0.1.0/.pi/harnesses/coms/README.md +36 -0
  159. package/.versions/0.1.0/.pi/harnesses/coms/index.ts +1595 -0
  160. package/.versions/0.1.0/.pi/harnesses/coms/package.json +6 -0
  161. package/.versions/0.1.0/.pi/harnesses/coms-net/README.md +46 -0
  162. package/.versions/0.1.0/.pi/harnesses/coms-net/index.ts +1637 -0
  163. package/.versions/0.1.0/.pi/harnesses/coms-net/package.json +6 -0
  164. package/.versions/0.1.0/.pi/harnesses/damage-control/README.md +38 -0
  165. package/.versions/0.1.0/.pi/harnesses/damage-control/index.ts +207 -0
  166. package/.versions/0.1.0/.pi/harnesses/damage-control/package.json +6 -0
  167. package/.versions/0.1.0/.pi/harnesses/damage-control-continue/README.md +37 -0
  168. package/.versions/0.1.0/.pi/harnesses/damage-control-continue/index.ts +234 -0
  169. package/.versions/0.1.0/.pi/harnesses/damage-control-continue/package.json +6 -0
  170. package/.versions/0.1.0/.pi/harnesses/minimal/README.md +27 -0
  171. package/.versions/0.1.0/.pi/harnesses/minimal/index.ts +32 -0
  172. package/.versions/0.1.0/.pi/harnesses/minimal/package.json +6 -0
  173. package/.versions/0.1.0/.pi/harnesses/package-lock.json +35 -0
  174. package/.versions/0.1.0/.pi/harnesses/package.json +9 -0
  175. package/.versions/0.1.0/.pi/harnesses/pi-pi/README.md +39 -0
  176. package/.versions/0.1.0/.pi/harnesses/pi-pi/index.ts +631 -0
  177. package/.versions/0.1.0/.pi/harnesses/pi-pi/package.json +6 -0
  178. package/.versions/0.1.0/.pi/harnesses/purpose-gate/README.md +27 -0
  179. package/.versions/0.1.0/.pi/harnesses/purpose-gate/index.ts +82 -0
  180. package/.versions/0.1.0/.pi/harnesses/purpose-gate/package.json +6 -0
  181. package/.versions/0.1.0/.pi/harnesses/session-replay/README.md +28 -0
  182. package/.versions/0.1.0/.pi/harnesses/session-replay/index.ts +214 -0
  183. package/.versions/0.1.0/.pi/harnesses/session-replay/package.json +6 -0
  184. package/.versions/0.1.0/.pi/harnesses/subagent-widget/README.md +36 -0
  185. package/.versions/0.1.0/.pi/harnesses/subagent-widget/index.ts +479 -0
  186. package/.versions/0.1.0/.pi/harnesses/subagent-widget/package.json +6 -0
  187. package/.versions/0.1.0/.pi/harnesses/system-select/README.md +39 -0
  188. package/.versions/0.1.0/.pi/harnesses/system-select/index.ts +165 -0
  189. package/.versions/0.1.0/.pi/harnesses/system-select/package.json +6 -0
  190. package/.versions/0.1.0/.pi/harnesses/tilldone/README.md +35 -0
  191. package/.versions/0.1.0/.pi/harnesses/tilldone/index.ts +724 -0
  192. package/.versions/0.1.0/.pi/harnesses/tilldone/package.json +6 -0
  193. package/.versions/0.1.0/.pi/harnesses/tool-counter/README.md +31 -0
  194. package/.versions/0.1.0/.pi/harnesses/tool-counter/index.ts +100 -0
  195. package/.versions/0.1.0/.pi/harnesses/tool-counter/package.json +6 -0
  196. package/.versions/0.1.0/.pi/harnesses/tool-counter-widget/README.md +27 -0
  197. package/.versions/0.1.0/.pi/harnesses/tool-counter-widget/index.ts +66 -0
  198. package/.versions/0.1.0/.pi/harnesses/tool-counter-widget/package.json +6 -0
  199. package/.versions/0.1.0/.pi/prompts/build.md +24 -0
  200. package/.versions/0.1.0/.pi/prompts/code-simplify.md +22 -0
  201. package/.versions/0.1.0/.pi/prompts/doctor.md +13 -0
  202. package/.versions/0.1.0/.pi/prompts/plan.md +16 -0
  203. package/.versions/0.1.0/.pi/prompts/review.md +16 -0
  204. package/.versions/0.1.0/.pi/prompts/setup.md +19 -0
  205. package/.versions/0.1.0/.pi/prompts/ship.md +17 -0
  206. package/.versions/0.1.0/.pi/prompts/spec.md +15 -0
  207. package/.versions/0.1.0/.pi/prompts/test.md +19 -0
  208. package/.versions/0.1.0/.pi/skills/bowser/SKILL.md +114 -0
  209. package/.versions/0.1.0/.version +1 -0
  210. package/.versions/0.1.0/agents/builder.md +6 -0
  211. package/.versions/0.1.0/agents/code-reviewer.md +93 -0
  212. package/.versions/0.1.0/agents/documenter.md +6 -0
  213. package/.versions/0.1.0/agents/plan-reviewer.md +22 -0
  214. package/.versions/0.1.0/agents/planner.md +6 -0
  215. package/.versions/0.1.0/agents/scout.md +6 -0
  216. package/.versions/0.1.0/agents/security-auditor.md +97 -0
  217. package/.versions/0.1.0/agents/test-engineer.md +89 -0
  218. package/.versions/0.1.0/hooks/SIMPLIFY-IGNORE.md +90 -0
  219. package/.versions/0.1.0/hooks/hooks.json +14 -0
  220. package/.versions/0.1.0/hooks/session-start.sh +20 -0
  221. package/.versions/0.1.0/hooks/simplify-ignore-test.sh +247 -0
  222. package/.versions/0.1.0/hooks/simplify-ignore.sh +302 -0
  223. package/.versions/0.1.0/references/accessibility-checklist.md +159 -0
  224. package/.versions/0.1.0/references/performance-checklist.md +121 -0
  225. package/.versions/0.1.0/references/prompting-patterns.md +380 -0
  226. package/.versions/0.1.0/references/security-checklist.md +134 -0
  227. package/.versions/0.1.0/references/testing-patterns.md +236 -0
  228. package/.versions/0.1.0/skills/api-and-interface-design/SKILL.md +294 -0
  229. package/.versions/0.1.0/skills/browser-testing-with-devtools/SKILL.md +335 -0
  230. package/.versions/0.1.0/skills/ci-cd-and-automation/SKILL.md +390 -0
  231. package/.versions/0.1.0/skills/code-review-and-quality/SKILL.md +347 -0
  232. package/.versions/0.1.0/skills/code-simplification/SKILL.md +331 -0
  233. package/.versions/0.1.0/skills/context-engineering/SKILL.md +291 -0
  234. package/.versions/0.1.0/skills/debugging-and-error-recovery/SKILL.md +300 -0
  235. package/.versions/0.1.0/skills/deprecation-and-migration/SKILL.md +206 -0
  236. package/.versions/0.1.0/skills/designing-agents/SKILL.md +394 -0
  237. package/.versions/0.1.0/skills/designing-agents/pi-harness-authoring.md +213 -0
  238. package/.versions/0.1.0/skills/documentation-and-adrs/SKILL.md +278 -0
  239. package/.versions/0.1.0/skills/frontend-ui-engineering/SKILL.md +322 -0
  240. package/.versions/0.1.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
  241. package/.versions/0.1.0/skills/guided-workspace-setup/SKILL.md +293 -0
  242. package/.versions/0.1.0/skills/idea-refine/SKILL.md +178 -0
  243. package/.versions/0.1.0/skills/idea-refine/examples.md +238 -0
  244. package/.versions/0.1.0/skills/idea-refine/frameworks.md +99 -0
  245. package/.versions/0.1.0/skills/idea-refine/refinement-criteria.md +113 -0
  246. package/.versions/0.1.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
  247. package/.versions/0.1.0/skills/incremental-implementation/SKILL.md +279 -0
  248. package/.versions/0.1.0/skills/performance-optimization/SKILL.md +350 -0
  249. package/.versions/0.1.0/skills/planning-and-task-breakdown/SKILL.md +237 -0
  250. package/.versions/0.1.0/skills/security-and-hardening/SKILL.md +349 -0
  251. package/.versions/0.1.0/skills/shipping-and-launch/SKILL.md +309 -0
  252. package/.versions/0.1.0/skills/source-driven-development/SKILL.md +194 -0
  253. package/.versions/0.1.0/skills/spec-driven-development/SKILL.md +237 -0
  254. package/.versions/0.1.0/skills/test-driven-development/SKILL.md +379 -0
  255. package/.versions/0.1.0/skills/using-agent-skills/SKILL.md +176 -0
  256. package/CHANGELOG.md +14 -0
  257. package/LICENSE +21 -0
  258. package/README.md +359 -0
  259. package/agents/builder.md +6 -0
  260. package/agents/code-reviewer.md +93 -0
  261. package/agents/documenter.md +6 -0
  262. package/agents/plan-reviewer.md +22 -0
  263. package/agents/planner.md +6 -0
  264. package/agents/scout.md +6 -0
  265. package/agents/security-auditor.md +97 -0
  266. package/agents/test-engineer.md +89 -0
  267. package/bin/cli.js +375 -0
  268. package/bin/lib/detect-agent.js +37 -0
  269. package/bin/lib/doctor.js +209 -0
  270. package/bin/snapshot-version.js +71 -0
  271. package/docs/agent-skills-setup.md +187 -0
  272. package/docs/copilot-setup.md +94 -0
  273. package/docs/cursor-setup.md +67 -0
  274. package/docs/gemini-cli-setup.md +113 -0
  275. package/docs/getting-started.md +162 -0
  276. package/docs/npm-install.md +169 -0
  277. package/docs/opencode-setup.md +241 -0
  278. package/docs/pi-extensions.md +163 -0
  279. package/docs/pi-setup.md +416 -0
  280. package/docs/skill-anatomy.md +129 -0
  281. package/docs/windsurf-setup.md +48 -0
  282. package/hooks/SIMPLIFY-IGNORE.md +90 -0
  283. package/hooks/hooks.json +14 -0
  284. package/hooks/session-start.sh +20 -0
  285. package/hooks/simplify-ignore-test.sh +247 -0
  286. package/hooks/simplify-ignore.sh +302 -0
  287. package/package.json +86 -0
  288. package/references/accessibility-checklist.md +159 -0
  289. package/references/performance-checklist.md +121 -0
  290. package/references/prompting-patterns.md +380 -0
  291. package/references/security-checklist.md +134 -0
  292. package/references/testing-patterns.md +236 -0
  293. package/skills/api-and-interface-design/SKILL.md +294 -0
  294. package/skills/browser-testing-with-devtools/SKILL.md +335 -0
  295. package/skills/ci-cd-and-automation/SKILL.md +390 -0
  296. package/skills/code-review-and-quality/SKILL.md +347 -0
  297. package/skills/code-simplification/SKILL.md +331 -0
  298. package/skills/context-engineering/SKILL.md +291 -0
  299. package/skills/debugging-and-error-recovery/SKILL.md +300 -0
  300. package/skills/deprecation-and-migration/SKILL.md +206 -0
  301. package/skills/designing-agents/SKILL.md +394 -0
  302. package/skills/designing-agents/pi-harness-authoring.md +213 -0
  303. package/skills/documentation-and-adrs/SKILL.md +278 -0
  304. package/skills/frontend-ui-engineering/SKILL.md +322 -0
  305. package/skills/git-workflow-and-versioning/SKILL.md +316 -0
  306. package/skills/guided-workspace-setup/SKILL.md +293 -0
  307. package/skills/idea-refine/SKILL.md +178 -0
  308. package/skills/idea-refine/examples.md +238 -0
  309. package/skills/idea-refine/frameworks.md +99 -0
  310. package/skills/idea-refine/refinement-criteria.md +113 -0
  311. package/skills/idea-refine/scripts/idea-refine.sh +15 -0
  312. package/skills/incremental-implementation/SKILL.md +279 -0
  313. package/skills/performance-optimization/SKILL.md +350 -0
  314. package/skills/planning-and-task-breakdown/SKILL.md +237 -0
  315. package/skills/security-and-hardening/SKILL.md +349 -0
  316. package/skills/shipping-and-launch/SKILL.md +309 -0
  317. package/skills/source-driven-development/SKILL.md +194 -0
  318. package/skills/spec-driven-development/SKILL.md +237 -0
  319. package/skills/test-driven-development/SKILL.md +379 -0
  320. package/skills/using-agent-skills/SKILL.md +176 -0
@@ -0,0 +1,113 @@
1
+ # Using agent-skills with Gemini CLI
2
+
3
+ ## Setup
4
+
5
+ ### Option 1: Install as Skills (Recommended)
6
+
7
+ Gemini CLI has a native skills system that auto-discovers `SKILL.md` files in `.gemini/skills/` or `.agents/skills/` directories. Each skill activates on demand when it matches your task.
8
+
9
+ **Install from the repo:**
10
+
11
+ ```bash
12
+ gemini skills install https://github.com/chankov/agent-skills.git --path skills
13
+ ```
14
+
15
+ **Or install from a local clone:**
16
+
17
+ ```bash
18
+ git clone https://github.com/chankov/agent-skills.git
19
+ gemini skills install /path/to/agent-skills/skills/
20
+ ```
21
+
22
+ **Install for a specific workspace only:**
23
+
24
+ ```bash
25
+ gemini skills install /path/to/agent-skills/skills/ --scope workspace
26
+ ```
27
+
28
+ Skills installed at workspace scope go into `.gemini/skills/` (or `.agents/skills/`). User-level skills go into `~/.gemini/skills/`.
29
+
30
+ Once installed, verify with:
31
+
32
+ ```
33
+ /skills list
34
+ ```
35
+
36
+ Gemini CLI injects skill names and descriptions into the prompt automatically. When it recognizes a matching task, it asks permission to activate the skill before loading its full instructions.
37
+
38
+ ### Option 2: GEMINI.md (Persistent Context)
39
+
40
+ For skills you want always loaded as persistent project context (rather than on-demand activation), add them to your project's `GEMINI.md`:
41
+
42
+ ```bash
43
+ # Create GEMINI.md with core skills as persistent context
44
+ cat /path/to/agent-skills/skills/incremental-implementation/SKILL.md > GEMINI.md
45
+ echo -e "\n---\n" >> GEMINI.md
46
+ cat /path/to/agent-skills/skills/code-review-and-quality/SKILL.md >> GEMINI.md
47
+ ```
48
+
49
+ You can also modularize by importing from separate files:
50
+
51
+ ```markdown
52
+ # Project Instructions
53
+
54
+ @skills/test-driven-development/SKILL.md
55
+ @skills/incremental-implementation/SKILL.md
56
+ ```
57
+
58
+ Use `/memory show` to verify loaded context, and `/memory reload` to refresh after changes.
59
+
60
+ > **Skills vs GEMINI.md:** Skills are on-demand expertise that activate only when relevant, keeping your context window clean. GEMINI.md provides persistent context loaded for every prompt. Use skills for phase-specific workflows and GEMINI.md for always-on project conventions.
61
+
62
+ ## Recommended Configuration
63
+
64
+ ### Always-On (GEMINI.md)
65
+
66
+ Add these as persistent context for every session:
67
+
68
+ - `incremental-implementation` — Build in small verifiable slices
69
+ - `code-review-and-quality` — Five-axis review
70
+
71
+ ### On-Demand (Skills)
72
+
73
+ Install these as skills so they activate only when relevant:
74
+
75
+ - `test-driven-development` — Activates when implementing logic or fixing bugs
76
+ - `spec-driven-development` — Activates when starting a new project or feature
77
+ - `frontend-ui-engineering` — Activates when building UI
78
+ - `security-and-hardening` — Activates during security reviews
79
+ - `performance-optimization` — Activates during performance work
80
+
81
+ ## Advanced Configuration
82
+
83
+ ### MCP Integration
84
+
85
+ Many skills in this pack leverage [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) tools to interact with the environment. For example:
86
+
87
+ - `browser-testing-with-devtools` uses the `chrome-devtools` MCP extension.
88
+ - `performance-optimization` can benefit from performance-related MCP tools.
89
+
90
+ To enable these, ensure you have the relevant MCP extensions installed in your Gemini CLI configuration (`~/.gemini/config.json`).
91
+
92
+ ### Session Hooks
93
+
94
+ Gemini CLI supports session lifecycle hooks. You can use these to automatically inject context or run validation scripts at the start of a session.
95
+
96
+ To replicate the `agent-skills` experience from other tools, you can configure a `SessionStart` hook that reminds you of the available skills or loads a meta-skill.
97
+
98
+ ### Explicit Context Loading
99
+
100
+ You can explicitly load any skill into your current session by referencing it with the `@` symbol in your prompt:
101
+
102
+ ```markdown
103
+ Use the @skills/test-driven-development/SKILL.md skill to implement this fix.
104
+ ```
105
+
106
+ This is useful when you want to ensure a specific workflow is followed without waiting for auto-discovery.
107
+
108
+ ## Usage Tips
109
+
110
+ 1. **Prefer skills over GEMINI.md** — Skills activate on demand and keep your context window focused. Only put skills in GEMINI.md if you want them always loaded.
111
+ 2. **Skill descriptions matter** — Each SKILL.md has a `description` field in its frontmatter that tells agents when to activate it. The descriptions in this repo are optimized for auto-discovery across all supported tools (Claude Code, Gemini CLI, etc.) by clearly stating both *what* the skill does and *when* it should be triggered.
112
+ 3. **Use agents for review** — Copy `agents/code-reviewer.md` content when requesting structured code reviews. The full persona set lives in `agents/`: `code-reviewer`, `test-engineer`, `security-auditor`, `planner`, `plan-reviewer`, `builder`, `scout`, `documenter`. Read-only personas (`code-reviewer`, `security-auditor`, `planner`, `plan-reviewer`, `scout`) declare `tools: read,bash,grep,find,ls` and refuse to write.
113
+ 4. **Combine with references** — Reference checklists from `references/` when working on specific quality areas like testing or performance.
@@ -0,0 +1,162 @@
1
+ # Getting Started with agent-skills
2
+
3
+ agent-skills works with any AI coding agent that accepts Markdown instructions. This guide covers the universal approach. For tool-specific setup, see the dedicated guides.
4
+
5
+ ## How Skills Work
6
+
7
+ Each skill is a Markdown file (`SKILL.md`) that describes a specific engineering workflow. When loaded into an agent's context, the agent follows the workflow — including verification steps, anti-patterns to avoid, and exit criteria.
8
+
9
+ **Skills are not reference docs.** They're step-by-step processes the agent follows.
10
+
11
+ ## Install path — which one fits you?
12
+
13
+ | Audience | Path | Why |
14
+ |---|---|---|
15
+ | **Most users** — you want to use the skills in your projects | `npx @chankov/agent-skills init` | One command; semver updates; cross-platform; no source dir to babysit. See [docs/npm-install.md](npm-install.md). |
16
+ | **Claude Code users** — you live in Claude Code and want plugin-managed updates | `/plugin marketplace add chankov/agent-skills` | Best UX inside Claude Code; marketplace handles the lifecycle. |
17
+ | **Skill authors / contributors** — you want to edit the skills and have changes flow into every connected workspace | `git clone` + `symlink` mode in `/setup` | Edit-in-place; every connected workspace sees the change instantly. |
18
+
19
+ All three converge on the same `guided-workspace-setup` skill — they only differ in how the source files reach your workspace. None is being deprecated.
20
+
21
+ ## Quick Start (Any Agent)
22
+
23
+ ### 1. Clone the repository
24
+
25
+ ```bash
26
+ git clone https://github.com/chankov/agent-skills.git
27
+ ```
28
+
29
+ > Skip this step if you installed via npm — the package contents are already
30
+ > in `node_modules/agent-skills/`. Use that path wherever this guide refers to
31
+ > "the agent-skills repo."
32
+
33
+ ### 2. Choose a skill
34
+
35
+ Browse the `skills/` directory. Each subdirectory contains a `SKILL.md` with:
36
+ - **When to use** — triggers that indicate this skill applies
37
+ - **Process** — step-by-step workflow
38
+ - **Verification** — how to confirm the work is done
39
+ - **Common rationalizations** — excuses the agent might use to skip steps
40
+ - **Red flags** — signs the skill is being violated
41
+
42
+ ### 3. Load the skill into your agent
43
+
44
+ Copy the relevant `SKILL.md` content into your agent's system prompt, rules file, or conversation. The most common approaches:
45
+
46
+ **System prompt:** Paste the skill content at the start of the session.
47
+
48
+ **Rules file:** Add skill content to your project's rules file (CLAUDE.md, .cursorrules, etc.).
49
+
50
+ **Conversation:** Reference the skill when giving instructions: "Follow the test-driven-development process for this change."
51
+
52
+ ### 4. Use the meta-skill for discovery
53
+
54
+ Start with the `using-agent-skills` skill loaded. It contains a flowchart that maps task types to the appropriate skill.
55
+
56
+ ## Recommended Setup
57
+
58
+ ### Minimal (Start here)
59
+
60
+ Load three essential skills into your rules file:
61
+
62
+ 1. **spec-driven-development** — For defining what to build
63
+ 2. **test-driven-development** — For proving it works
64
+ 3. **code-review-and-quality** — For verifying quality before merge
65
+
66
+ These three cover the most critical quality gaps in AI-assisted development.
67
+
68
+ ### Full Lifecycle
69
+
70
+ For comprehensive coverage, load skills by phase:
71
+
72
+ ```
73
+ Starting a project: spec-driven-development → planning-and-task-breakdown
74
+ During development: incremental-implementation + test-driven-development
75
+ Before merge: code-review-and-quality + security-and-hardening
76
+ Before deploy: shipping-and-launch
77
+ ```
78
+
79
+ ### Context-Aware Loading
80
+
81
+ Don't load all skills at once — it wastes context. Load skills relevant to the current task:
82
+
83
+ - Working on UI? Load `frontend-ui-engineering`
84
+ - Debugging? Load `debugging-and-error-recovery`
85
+ - Setting up CI? Load `ci-cd-and-automation`
86
+
87
+ ## Skill Anatomy
88
+
89
+ Every skill follows the same structure:
90
+
91
+ ```
92
+ YAML frontmatter (name, description)
93
+ ├── Overview — What this skill does
94
+ ├── When to Use — Triggers and conditions
95
+ ├── Core Process — Step-by-step workflow
96
+ ├── Examples — Code samples and patterns
97
+ ├── Common Rationalizations — Excuses and rebuttals
98
+ ├── Red Flags — Signs the skill is being violated
99
+ └── Verification — Exit criteria checklist
100
+ ```
101
+
102
+ See [skill-anatomy.md](skill-anatomy.md) for the full specification.
103
+
104
+ ## Using Agents
105
+
106
+ The `agents/` directory contains pre-configured agent personas:
107
+
108
+ | Agent | Purpose |
109
+ |-------|---------|
110
+ | `code-reviewer.md` | Five-axis code review (read-only) |
111
+ | `test-engineer.md` | Test strategy and writing |
112
+ | `security-auditor.md` | Vulnerability detection (read-only) |
113
+ | `planner.md` | Numbered implementation plans (read-only) |
114
+ | `plan-reviewer.md` | Critiques and validates plans (read-only) |
115
+ | `builder.md` | Implements an approved plan |
116
+ | `scout.md` | Fast codebase recon (read-only) |
117
+ | `documenter.md` | READMEs and inline docs |
118
+
119
+ Load an agent definition when you need specialized review. For example, ask your coding agent to "review this change using the code-reviewer agent persona" and provide the agent definition.
120
+
121
+ ## Using Commands
122
+
123
+ The `.claude/commands/` directory contains slash commands for Claude Code:
124
+
125
+ | Command | Skill Invoked |
126
+ |---------|---------------|
127
+ | `/setup` | guided-workspace-setup |
128
+ | `/spec` | spec-driven-development |
129
+ | `/plan` | planning-and-task-breakdown |
130
+ | `/build` | incremental-implementation + test-driven-development |
131
+ | `/test` | test-driven-development |
132
+ | `/review` | code-review-and-quality |
133
+ | `/ship` | shipping-and-launch |
134
+
135
+ ## Using References
136
+
137
+ The `references/` directory contains supplementary checklists:
138
+
139
+ | Reference | Use With |
140
+ |-----------|----------|
141
+ | `testing-patterns.md` | test-driven-development |
142
+ | `performance-checklist.md` | performance-optimization |
143
+ | `security-checklist.md` | security-and-hardening |
144
+ | `accessibility-checklist.md` | frontend-ui-engineering |
145
+
146
+ Load a reference when you need detailed patterns beyond what the skill covers.
147
+
148
+ ## Spec and task artifacts
149
+
150
+ The `/spec` and `/plan` commands create working artifacts (`SPEC.md`, `tasks/plan.md`, `tasks/todo.md`). Treat them as **living documents** while the work is in progress:
151
+
152
+ - Keep them in version control during development so the human and the agent have a shared source of truth.
153
+ - Update them when scope or decisions change.
154
+ - If your repo doesn’t want these files long‑term, delete them before merge or add the folder to `.gitignore` — the workflow doesn’t require them to be permanent.
155
+
156
+ ## Tips
157
+
158
+ 1. **Start with spec-driven-development** for any non-trivial work
159
+ 2. **Always load test-driven-development** when writing code
160
+ 3. **Don't skip verification steps** — they're the whole point
161
+ 4. **Load skills selectively** — more context isn't always better
162
+ 5. **Use the agents for review** — different perspectives catch different issues
@@ -0,0 +1,169 @@
1
+ # npm install path
2
+
3
+ The `@chankov/agent-skills` package ships every skill, persona, slash command,
4
+ and pi extension as installable content, plus a thin CLI that hands off to the
5
+ LLM-driven `guided-workspace-setup` skill. The CLI never writes installable
6
+ artifacts on its own — that decision (and the conversation around it) belongs
7
+ to the coding agent.
8
+
9
+ ## Package name vs CLI name
10
+
11
+ | | Name |
12
+ |---|---|
13
+ | **npm package** (use this for `npm install` and the first `npx`) | `@chankov/agent-skills` |
14
+ | **CLI binary** (the command the package ships) | `agent-skills` |
15
+
16
+ The package is published under the `@chankov` npm scope to guarantee identity —
17
+ only [Nikolay Chankov](https://www.npmjs.com/~chankov) can publish to that
18
+ scope. The CLI binary stays the short name `agent-skills` because that's what
19
+ goes on `PATH` after install.
20
+
21
+ So:
22
+
23
+ - First time / one-shot: `npx @chankov/agent-skills <cmd>` — npx resolves the
24
+ scoped package and runs its bin.
25
+ - After a project / global install: `npx agent-skills <cmd>` works too,
26
+ because the bin is named `agent-skills`.
27
+
28
+ ## Quick start
29
+
30
+ ```bash
31
+ # In the workspace you want to configure:
32
+ npx @chankov/agent-skills init
33
+ # Then open your coding agent in this directory and run:
34
+ # /setup
35
+ ```
36
+
37
+ That's it. `npx` fetches the package, the CLI detects your coding agent and
38
+ prints the next-step command, and `/setup` runs the full guided install
39
+ inside your agent.
40
+
41
+ ## Commands
42
+
43
+ ### `npx @chankov/agent-skills init`
44
+
45
+ Materializes the package and hands off to `/setup`.
46
+
47
+ | Flag | Default | Purpose |
48
+ |------|---------|---------|
49
+ | `--agent <claude-code\|opencode\|pi>` | auto-detect | Skip the agent prompt |
50
+ | `--method <copy\|symlink>` | `copy` | Default install method passed to the skill |
51
+ | `--workspace <path>` | `cwd` | Target workspace |
52
+ | `--launch` | off | Shell into the coding agent after init (best effort) |
53
+
54
+ ```bash
55
+ npx @chankov/agent-skills init --agent claude-code
56
+ npx @chankov/agent-skills init --workspace ~/projects/foo --method symlink
57
+ ```
58
+
59
+ ### `npx @chankov/agent-skills doctor`
60
+
61
+ Deterministic preflight scan — walks every install-target directory, lists
62
+ broken symlinks and stale persona references, and offers fixes. Same scan
63
+ that `/doctor` runs inside the agent.
64
+
65
+ | Flag | Default | Purpose |
66
+ |------|---------|---------|
67
+ | `--workspace <path>` | `cwd` | Target workspace |
68
+ | `--dry-run` | off | Show findings; do not apply |
69
+ | `--yes` / `-y` | off | Apply all suggested fixes without prompting |
70
+
71
+ ```bash
72
+ npx @chankov/agent-skills doctor --workspace ~/projects/foo --dry-run
73
+ npx @chankov/agent-skills doctor -y
74
+ ```
75
+
76
+ ### `npx @chankov/agent-skills update`
77
+
78
+ Reads the workspace's `.ai/agent-skills-setup.md`, compares the recorded
79
+ package version against the installed package version, and prints the next
80
+ step. The actual diff-aware refresh runs inside the coding agent via
81
+ `/setup`.
82
+
83
+ ```bash
84
+ # Upgrade the package itself first, then check the delta:
85
+ npm install -g @chankov/agent-skills@latest
86
+ npx agent-skills update --workspace .
87
+ # Then open your agent and run /setup to review per-artifact diffs.
88
+ ```
89
+
90
+ ## Versioning
91
+
92
+ The package follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
93
+
94
+ | Change | Bump |
95
+ |---|---|
96
+ | Skill removed, renamed, or its documented workflow changes; persona retired; command removed; install-record schema breakage | **major** |
97
+ | New skill, new persona, new command, new option in an existing skill | **minor** |
98
+ | Wording fix, doctor scan improvement, CLI bug fix | **patch** |
99
+
100
+ ### Pinning
101
+
102
+ To pin a workspace to a specific version, install the package as a project
103
+ dependency instead of using `npx`:
104
+
105
+ ```bash
106
+ npm install --save-dev @chankov/agent-skills@1.4.2
107
+ npx agent-skills init # resolves to the pinned 1.4.2
108
+ ```
109
+
110
+ Or pin globally:
111
+
112
+ ```bash
113
+ npm install -g @chankov/agent-skills@1.4.2
114
+ ```
115
+
116
+ ### What "update" actually changes
117
+
118
+ The package update is just `npm`'s usual upgrade. The interesting part runs
119
+ inside the agent: `guided-workspace-setup` reads the `version:` line from
120
+ `.ai/agent-skills-setup.md`, computes the delta against the current package
121
+ version, and surfaces per-artifact `Status` based on a three-way diff:
122
+
123
+ | Status | Means |
124
+ |---|---|
125
+ | `installed · upgrade available` | Source changed upstream; user copy still matches the old source → clean refresh |
126
+ | `installed · conflicting upgrade` | Source changed upstream AND user modified the copy → three-way diff shown, write requires explicit consent |
127
+ | `installed · removed upstream` | Artifact gone in the new version → proposed for deletion (subject to the removal-scope rule) |
128
+ | `not installed · new in this version` | New artifact added in the new version → offered, marked `★` if recommended |
129
+
130
+ The diff is sourced from `.versions/<recorded-version>/` inside the package —
131
+ a snapshot the release pipeline writes for every published version.
132
+
133
+ ## Other install paths
134
+
135
+ npm is the recommended path for most users. The other two stay supported:
136
+
137
+ - **[Claude Code plugin marketplace](../README.md#quick-start)** — best UX
138
+ inside Claude Code. Same skills, marketplace-managed updates.
139
+ - **Git clone + symlinks** — best for skill authors and contributors. Clone
140
+ the repo, run `/setup` from there, choose `symlink` in Step 8. Updates
141
+ flow through `git pull`. Symlinks need Developer Mode on Windows.
142
+
143
+ All three paths converge on the same `guided-workspace-setup` skill — the
144
+ difference is only in how the source files reach the workspace.
145
+
146
+ ## CI usage
147
+
148
+ `npx @chankov/agent-skills init` is interactive by default (it prompts for
149
+ the agent when detection is ambiguous). For CI, pass `--agent` explicitly:
150
+
151
+ ```bash
152
+ npx --yes @chankov/agent-skills@latest init --agent claude-code --method copy --workspace .
153
+ ```
154
+
155
+ `doctor` accepts `--yes` for non-interactive repair. Note that the
156
+ LLM-driven `/setup` flow is not CI-runnable by design — confirmation gates
157
+ exist precisely so a human approves every write.
158
+
159
+ ## Troubleshooting
160
+
161
+ - **"Could not auto-detect your coding agent."** Pass `--agent` or run
162
+ `init` from a workspace that already has one of `.claude/`, `.opencode/`,
163
+ or `.pi/`.
164
+ - **`update` says "no install record".** Run `init` once first; the install
165
+ record is what `update` reads.
166
+ - **The version-aware menu shows `(snapshot missing)`.** The recorded version
167
+ is older than the snapshot retention in this package. The skill falls back
168
+ to "treat installed copy as canonical" — refresh manually if you want to
169
+ reset the baseline.
@@ -0,0 +1,241 @@
1
+ # OpenCode Setup
2
+
3
+ This guide explains how to use Agent Skills with OpenCode in a way that closely mirrors the Claude Code experience (automatic skill selection, lifecycle-driven workflows, and strict process enforcement).
4
+
5
+ ## Overview
6
+
7
+ OpenCode supports custom `/commands`, but does not have a native plugin system or automatic skill routing like Claude Code.
8
+
9
+ Instead, we achieve parity through:
10
+
11
+ - A strong system prompt (`AGENTS.md`)
12
+ - The built-in `skill` tool
13
+ - Consistent skill discovery from the `/skills` directory
14
+ - Optional prefixed slash commands from `.opencode/commands/`
15
+
16
+ This creates an **agent-driven workflow** where skills are selected and executed automatically, with optional explicit lifecycle commands when you want them.
17
+
18
+ This integration defaults to an agent-driven approach:
19
+
20
+ - Skills are selected automatically based on intent
21
+ - Workflows are enforced via `AGENTS.md`
22
+ - Manual command invocation is optional, not required
23
+
24
+ This more closely matches how Claude Code behaves in practice, while still allowing explicit OpenCode slash commands.
25
+
26
+ ---
27
+
28
+ ## Installation
29
+
30
+ 1. Clone the repository:
31
+
32
+ ```bash
33
+ git clone https://github.com/chankov/agent-skills.git
34
+ ```
35
+
36
+ 2. Install the global OpenCode configuration.
37
+
38
+ Set `AGENT_SKILLS_DIR` to wherever you cloned the repo (used in the snippets below):
39
+
40
+ ```bash
41
+ export AGENT_SKILLS_DIR="/path/to/agent-skills"
42
+ ```
43
+
44
+ Add the repo's `AGENTS.md` to your global `~/.config/opencode/opencode.json` instructions list (replace `/path/to/agent-skills` with the absolute path on your machine — `~` is not expanded inside JSON):
45
+
46
+ ```json
47
+ {
48
+ "instructions": [
49
+ "/path/to/agent-skills/AGENTS.md"
50
+ ],
51
+ "permission": {
52
+ "skill": {
53
+ "*": "allow"
54
+ }
55
+ }
56
+ }
57
+ ```
58
+
59
+ Link the skills and commands into your global OpenCode config directory. Symlinking individual files (rather than the whole directory) avoids replacing skills or commands you may already have installed from other sources:
60
+
61
+ ```bash
62
+ mkdir -p ~/.config/opencode/skills ~/.config/opencode/commands
63
+
64
+ # Skills: link each skill directory individually.
65
+ for d in "$AGENT_SKILLS_DIR"/skills/*/; do
66
+ ln -s "$d" "$HOME/.config/opencode/skills/$(basename "$d")"
67
+ done
68
+
69
+ # Commands: link each command file individually.
70
+ for f in "$AGENT_SKILLS_DIR"/.opencode/commands/*.md; do
71
+ ln -s "$f" "$HOME/.config/opencode/commands/$(basename "$f")"
72
+ done
73
+ ```
74
+
75
+ > ⚠️ If you already have `~/.config/opencode/skills` or `~/.config/opencode/commands` populated from other sources, do **not** replace the whole directory — use the per-file symlink approach above. The previous `ln -sfn <dir>` shortcut would silently overwrite the existing directory.
76
+
77
+ 3. Restart OpenCode.
78
+
79
+ 4. Open any project in OpenCode.
80
+
81
+ 5. The following Agent Skills assets are now available globally:
82
+
83
+ - `AGENTS.md` instructions from the repo root
84
+ - All skills from `skills/`
85
+ - Optional prefixed slash commands from `.opencode/commands/`
86
+
87
+ ### Optional Slash Commands
88
+
89
+ This repo ships OpenCode-native commands with an `as-` prefix so they are easy to distinguish from other commands:
90
+
91
+ - `/as-spec`
92
+ - `/as-plan`
93
+ - `/as-build`
94
+ - `/as-test`
95
+ - `/as-review`
96
+ - `/as-code-simplify`
97
+ - `/as-ship`
98
+ - `/as-design-agent`
99
+
100
+ These commands are optional shortcuts. The agent can still invoke the correct skills automatically from plain natural-language requests.
101
+
102
+ ---
103
+
104
+ ## How It Works
105
+
106
+ ### 1. Skill Discovery
107
+
108
+ All skills live in:
109
+
110
+ ```
111
+ skills/<skill-name>/SKILL.md
112
+ ```
113
+
114
+ OpenCode agents are instructed (via `AGENTS.md`) to:
115
+
116
+ - Detect when a skill applies
117
+ - Invoke the `skill` tool
118
+ - Follow the skill exactly
119
+
120
+ ### 2. Automatic Skill Invocation
121
+
122
+ The agent evaluates every request and maps it to the appropriate skill.
123
+
124
+ Examples:
125
+
126
+ - "build a feature" → `incremental-implementation` + `test-driven-development`
127
+ - "design a system" → `spec-driven-development`
128
+ - "fix a bug" → `debugging-and-error-recovery`
129
+ - "review this code" → `code-review-and-quality`
130
+
131
+ The user does **not** need to explicitly request skills.
132
+
133
+ ### 3. Lifecycle Mapping
134
+
135
+ The development lifecycle is encoded implicitly via `AGENTS.md` and is also exposed through optional prefixed slash commands. Both routes invoke the same underlying skills:
136
+
137
+ | Lifecycle phase | Claude Code command | OpenCode command | Underlying skill(s) |
138
+ | --------------- | ------------------- | ------------------ | ------------------------------------------------------------- |
139
+ | DEFINE | `/spec` | `/as-spec` | `spec-driven-development` |
140
+ | PLAN | `/plan` | `/as-plan` | `planning-and-task-breakdown` |
141
+ | BUILD | `/build` | `/as-build` | `incremental-implementation` + `test-driven-development` |
142
+ | TEST | `/test` | `/as-test` | `test-driven-development` |
143
+ | VERIFY | — | — | `debugging-and-error-recovery` (implicit on failure) |
144
+ | REVIEW | `/review` | `/as-review` | `code-review-and-quality` |
145
+ | SIMPLIFY | `/code-simplify` | `/as-code-simplify`| `code-simplification` |
146
+ | SHIP | `/ship` | `/as-ship` | `shipping-and-launch` |
147
+ | AUTHOR | `/design-agent` | `/as-design-agent` | `designing-agents` |
148
+
149
+ ---
150
+
151
+ ## Usage Examples
152
+
153
+ ### Example 1: Feature Development
154
+
155
+ User:
156
+ ```
157
+ Add authentication to this app
158
+ ```
159
+
160
+ Agent behavior:
161
+ - Detects feature work
162
+ - Invokes `spec-driven-development`
163
+ - Produces a spec before writing code
164
+ - Moves to planning and implementation skills
165
+
166
+ ---
167
+
168
+ ### Example 2: Bug Fix
169
+
170
+ User:
171
+ ```
172
+ This endpoint is returning 500 errors
173
+ ```
174
+
175
+ Agent behavior:
176
+ - Invokes `debugging-and-error-recovery`
177
+ - Reproduces → localizes → fixes → adds guards
178
+
179
+ ---
180
+
181
+ ### Example 3: Code Review
182
+
183
+ User:
184
+ ```
185
+ Review this PR
186
+ ```
187
+
188
+ Agent behavior:
189
+ - Invokes `code-review-and-quality`
190
+ - Applies structured review (correctness, design, readability, etc.)
191
+
192
+ ---
193
+
194
+ ## Agent Expectations (Critical)
195
+
196
+ For OpenCode to work correctly, the agent must follow these rules:
197
+
198
+ - Always check if a skill applies before acting
199
+ - If a skill applies, it MUST be used
200
+ - Never skip required workflows (spec, plan, test, etc.)
201
+ - Do not jump directly to implementation
202
+
203
+ These rules are enforced via `AGENTS.md`.
204
+
205
+ ---
206
+
207
+ ## Limitations
208
+
209
+ - No plugin system (handled via prompt + structure)
210
+ - Skill invocation depends on model compliance
211
+
212
+ Despite these, the workflow closely matches Claude Code in practice.
213
+
214
+ ---
215
+
216
+ ## Recommended Workflow
217
+
218
+ Just use natural language:
219
+
220
+ - "Design a feature"
221
+ - "Plan this change"
222
+ - "Implement this"
223
+ - "Fix this bug"
224
+ - "Review this"
225
+
226
+ The agent will automatically select and execute the correct skills.
227
+
228
+ If you prefer explicit entry points, use the shipped slash commands such as `/as-spec`, `/as-plan`, or `/as-review`.
229
+
230
+ ---
231
+
232
+ ## Summary
233
+
234
+ OpenCode integration works by combining:
235
+
236
+ - Structured skills (this repo)
237
+ - Strong agent rules (`AGENTS.md`)
238
+ - Automatic skill invocation via reasoning
239
+ - Optional `as-` prefixed slash commands for explicit lifecycle entry points
240
+
241
+ This results in a **production-grade engineering workflow** that works both as an agent-driven system and as an explicit command-driven workflow.