compound-engineering-pi 0.2.3

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 (332) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/bin/compound-engineering-pi +12 -0
  4. package/bin/compound-plugin +12 -0
  5. package/compound-engineering-pi +12 -0
  6. package/compound-plugin +5 -0
  7. package/docs/pi.md +152 -0
  8. package/extensions/compound-engineering-compat.ts +452 -0
  9. package/package.json +84 -0
  10. package/pi-resources/compound-engineering/mcporter.json +7 -0
  11. package/plugins/coding-tutor/.claude-plugin/plugin.json +9 -0
  12. package/plugins/coding-tutor/README.md +37 -0
  13. package/plugins/coding-tutor/commands/quiz-me.md +1 -0
  14. package/plugins/coding-tutor/commands/sync-tutorials.md +25 -0
  15. package/plugins/coding-tutor/commands/teach-me.md +1 -0
  16. package/plugins/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
  17. package/plugins/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +207 -0
  18. package/plugins/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +193 -0
  19. package/plugins/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
  20. package/plugins/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +118 -0
  21. package/plugins/compound-engineering/.claude-plugin/plugin.json +33 -0
  22. package/plugins/compound-engineering/CHANGELOG.md +457 -0
  23. package/plugins/compound-engineering/CLAUDE.md +89 -0
  24. package/plugins/compound-engineering/LICENSE +21 -0
  25. package/plugins/compound-engineering/README.md +232 -0
  26. package/plugins/compound-engineering/agents/design/design-implementation-reviewer.md +109 -0
  27. package/plugins/compound-engineering/agents/design/design-iterator.md +224 -0
  28. package/plugins/compound-engineering/agents/design/figma-design-sync.md +190 -0
  29. package/plugins/compound-engineering/agents/docs/ankane-readme-writer.md +65 -0
  30. package/plugins/compound-engineering/agents/research/best-practices-researcher.md +126 -0
  31. package/plugins/compound-engineering/agents/research/framework-docs-researcher.md +106 -0
  32. package/plugins/compound-engineering/agents/research/git-history-analyzer.md +59 -0
  33. package/plugins/compound-engineering/agents/research/learnings-researcher.md +264 -0
  34. package/plugins/compound-engineering/agents/research/repo-research-analyst.md +135 -0
  35. package/plugins/compound-engineering/agents/review/agent-native-reviewer.md +261 -0
  36. package/plugins/compound-engineering/agents/review/architecture-strategist.md +67 -0
  37. package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +101 -0
  38. package/plugins/compound-engineering/agents/review/data-integrity-guardian.md +85 -0
  39. package/plugins/compound-engineering/agents/review/data-migration-expert.md +112 -0
  40. package/plugins/compound-engineering/agents/review/deployment-verification-agent.md +174 -0
  41. package/plugins/compound-engineering/agents/review/dhh-rails-reviewer.md +66 -0
  42. package/plugins/compound-engineering/agents/review/julik-frontend-races-reviewer.md +221 -0
  43. package/plugins/compound-engineering/agents/review/kieran-python-reviewer.md +133 -0
  44. package/plugins/compound-engineering/agents/review/kieran-rails-reviewer.md +115 -0
  45. package/plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md +124 -0
  46. package/plugins/compound-engineering/agents/review/pattern-recognition-specialist.md +72 -0
  47. package/plugins/compound-engineering/agents/review/performance-oracle.md +137 -0
  48. package/plugins/compound-engineering/agents/review/schema-drift-detector.md +154 -0
  49. package/plugins/compound-engineering/agents/review/security-sentinel.md +114 -0
  50. package/plugins/compound-engineering/agents/workflow/bug-reproduction-validator.md +82 -0
  51. package/plugins/compound-engineering/agents/workflow/every-style-editor.md +64 -0
  52. package/plugins/compound-engineering/agents/workflow/lint.md +16 -0
  53. package/plugins/compound-engineering/agents/workflow/pr-comment-resolver.md +84 -0
  54. package/plugins/compound-engineering/agents/workflow/spec-flow-analyzer.md +134 -0
  55. package/plugins/compound-engineering/commands/agent-native-audit.md +278 -0
  56. package/plugins/compound-engineering/commands/changelog.md +138 -0
  57. package/plugins/compound-engineering/commands/create-agent-skill.md +9 -0
  58. package/plugins/compound-engineering/commands/deepen-plan.md +546 -0
  59. package/plugins/compound-engineering/commands/deploy-docs.md +113 -0
  60. package/plugins/compound-engineering/commands/feature-video.md +342 -0
  61. package/plugins/compound-engineering/commands/generate_command.md +163 -0
  62. package/plugins/compound-engineering/commands/heal-skill.md +143 -0
  63. package/plugins/compound-engineering/commands/lfg.md +20 -0
  64. package/plugins/compound-engineering/commands/release-docs.md +212 -0
  65. package/plugins/compound-engineering/commands/report-bug.md +151 -0
  66. package/plugins/compound-engineering/commands/reproduce-bug.md +100 -0
  67. package/plugins/compound-engineering/commands/resolve_parallel.md +35 -0
  68. package/plugins/compound-engineering/commands/resolve_todo_parallel.md +37 -0
  69. package/plugins/compound-engineering/commands/slfg.md +32 -0
  70. package/plugins/compound-engineering/commands/technical_review.md +8 -0
  71. package/plugins/compound-engineering/commands/test-browser.md +339 -0
  72. package/plugins/compound-engineering/commands/test-xcode.md +332 -0
  73. package/plugins/compound-engineering/commands/triage.md +311 -0
  74. package/plugins/compound-engineering/commands/workflows/brainstorm.md +124 -0
  75. package/plugins/compound-engineering/commands/workflows/compound.md +239 -0
  76. package/plugins/compound-engineering/commands/workflows/plan.md +551 -0
  77. package/plugins/compound-engineering/commands/workflows/review.md +526 -0
  78. package/plugins/compound-engineering/commands/workflows/work.md +433 -0
  79. package/plugins/compound-engineering/skills/agent-browser/SKILL.md +223 -0
  80. package/plugins/compound-engineering/skills/agent-native-architecture/SKILL.md +435 -0
  81. package/plugins/compound-engineering/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  82. package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  83. package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  84. package/plugins/compound-engineering/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  85. package/plugins/compound-engineering/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  86. package/plugins/compound-engineering/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  87. package/plugins/compound-engineering/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  88. package/plugins/compound-engineering/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  89. package/plugins/compound-engineering/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  90. package/plugins/compound-engineering/skills/agent-native-architecture/references/product-implications.md +443 -0
  91. package/plugins/compound-engineering/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  92. package/plugins/compound-engineering/skills/agent-native-architecture/references/self-modification.md +269 -0
  93. package/plugins/compound-engineering/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  94. package/plugins/compound-engineering/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  95. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  96. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  97. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  98. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  99. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  100. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  101. package/plugins/compound-engineering/skills/brainstorming/SKILL.md +190 -0
  102. package/plugins/compound-engineering/skills/compound-docs/SKILL.md +511 -0
  103. package/plugins/compound-engineering/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  104. package/plugins/compound-engineering/skills/compound-docs/assets/resolution-template.md +93 -0
  105. package/plugins/compound-engineering/skills/compound-docs/references/yaml-schema.md +65 -0
  106. package/plugins/compound-engineering/skills/compound-docs/schema.yaml +176 -0
  107. package/plugins/compound-engineering/skills/create-agent-skills/SKILL.md +275 -0
  108. package/plugins/compound-engineering/skills/create-agent-skills/references/api-security.md +226 -0
  109. package/plugins/compound-engineering/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  110. package/plugins/compound-engineering/skills/create-agent-skills/references/best-practices.md +404 -0
  111. package/plugins/compound-engineering/skills/create-agent-skills/references/common-patterns.md +595 -0
  112. package/plugins/compound-engineering/skills/create-agent-skills/references/core-principles.md +437 -0
  113. package/plugins/compound-engineering/skills/create-agent-skills/references/executable-code.md +175 -0
  114. package/plugins/compound-engineering/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  115. package/plugins/compound-engineering/skills/create-agent-skills/references/official-spec.md +134 -0
  116. package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md +168 -0
  117. package/plugins/compound-engineering/skills/create-agent-skills/references/skill-structure.md +152 -0
  118. package/plugins/compound-engineering/skills/create-agent-skills/references/using-scripts.md +113 -0
  119. package/plugins/compound-engineering/skills/create-agent-skills/references/using-templates.md +112 -0
  120. package/plugins/compound-engineering/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  121. package/plugins/compound-engineering/skills/create-agent-skills/templates/router-skill.md +73 -0
  122. package/plugins/compound-engineering/skills/create-agent-skills/templates/simple-skill.md +33 -0
  123. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-reference.md +96 -0
  124. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-script.md +93 -0
  125. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-template.md +74 -0
  126. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  127. package/plugins/compound-engineering/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  128. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  129. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  130. package/plugins/compound-engineering/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  131. package/plugins/compound-engineering/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  132. package/plugins/compound-engineering/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  133. package/plugins/compound-engineering/skills/dhh-rails-style/SKILL.md +185 -0
  134. package/plugins/compound-engineering/skills/dhh-rails-style/references/architecture.md +653 -0
  135. package/plugins/compound-engineering/skills/dhh-rails-style/references/controllers.md +303 -0
  136. package/plugins/compound-engineering/skills/dhh-rails-style/references/frontend.md +510 -0
  137. package/plugins/compound-engineering/skills/dhh-rails-style/references/gems.md +266 -0
  138. package/plugins/compound-engineering/skills/dhh-rails-style/references/models.md +359 -0
  139. package/plugins/compound-engineering/skills/dhh-rails-style/references/testing.md +338 -0
  140. package/plugins/compound-engineering/skills/document-review/SKILL.md +87 -0
  141. package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +737 -0
  142. package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +187 -0
  143. package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +300 -0
  144. package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +221 -0
  145. package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +674 -0
  146. package/plugins/compound-engineering/skills/dspy-ruby/references/observability.md +366 -0
  147. package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +603 -0
  148. package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +418 -0
  149. package/plugins/compound-engineering/skills/dspy-ruby/references/toolsets.md +502 -0
  150. package/plugins/compound-engineering/skills/every-style-editor/SKILL.md +134 -0
  151. package/plugins/compound-engineering/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  152. package/plugins/compound-engineering/skills/file-todos/SKILL.md +252 -0
  153. package/plugins/compound-engineering/skills/file-todos/assets/todo-template.md +155 -0
  154. package/plugins/compound-engineering/skills/frontend-design/SKILL.md +42 -0
  155. package/plugins/compound-engineering/skills/gemini-imagegen/SKILL.md +237 -0
  156. package/plugins/compound-engineering/skills/gemini-imagegen/requirements.txt +2 -0
  157. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/compose_images.py +157 -0
  158. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/edit_image.py +144 -0
  159. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
  160. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/generate_image.py +133 -0
  161. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
  162. package/plugins/compound-engineering/skills/git-worktree/SKILL.md +302 -0
  163. package/plugins/compound-engineering/skills/git-worktree/scripts/worktree-manager.sh +337 -0
  164. package/plugins/compound-engineering/skills/orchestrating-swarms/SKILL.md +1718 -0
  165. package/plugins/compound-engineering/skills/rclone/SKILL.md +150 -0
  166. package/plugins/compound-engineering/skills/rclone/scripts/check_setup.sh +60 -0
  167. package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +89 -0
  168. package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/get-pr-comments +68 -0
  169. package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/resolve-pr-thread +23 -0
  170. package/plugins/compound-engineering/skills/skill-creator/SKILL.md +210 -0
  171. package/plugins/compound-engineering/skills/skill-creator/scripts/init_skill.py +303 -0
  172. package/plugins/compound-engineering/skills/skill-creator/scripts/package_skill.py +110 -0
  173. package/plugins/compound-engineering/skills/skill-creator/scripts/quick_validate.py +65 -0
  174. package/prompts/deepen-plan.md +549 -0
  175. package/prompts/feature-video.md +341 -0
  176. package/prompts/resolve_todo_parallel.md +36 -0
  177. package/prompts/test-browser.md +342 -0
  178. package/prompts/workflows-brainstorm.md +123 -0
  179. package/prompts/workflows-compound.md +238 -0
  180. package/prompts/workflows-plan.md +550 -0
  181. package/prompts/workflows-review.md +529 -0
  182. package/prompts/workflows-work.md +432 -0
  183. package/skills/agent-browser/SKILL.md +223 -0
  184. package/skills/agent-native-architecture/SKILL.md +435 -0
  185. package/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  186. package/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  187. package/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  188. package/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  189. package/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  190. package/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  191. package/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  192. package/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  193. package/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  194. package/skills/agent-native-architecture/references/product-implications.md +443 -0
  195. package/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  196. package/skills/agent-native-architecture/references/self-modification.md +269 -0
  197. package/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  198. package/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  199. package/skills/agent-native-reviewer/SKILL.md +260 -0
  200. package/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  201. package/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  202. package/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  203. package/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  204. package/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  205. package/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  206. package/skills/ankane-readme-writer/SKILL.md +63 -0
  207. package/skills/architecture-strategist/SKILL.md +66 -0
  208. package/skills/best-practices-researcher/SKILL.md +125 -0
  209. package/skills/brainstorming/SKILL.md +190 -0
  210. package/skills/bug-reproduction-validator/SKILL.md +81 -0
  211. package/skills/code-simplicity-reviewer/SKILL.md +100 -0
  212. package/skills/compound-docs/SKILL.md +511 -0
  213. package/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  214. package/skills/compound-docs/assets/resolution-template.md +93 -0
  215. package/skills/compound-docs/references/yaml-schema.md +65 -0
  216. package/skills/compound-docs/schema.yaml +176 -0
  217. package/skills/create-agent-skills/SKILL.md +275 -0
  218. package/skills/create-agent-skills/references/api-security.md +226 -0
  219. package/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  220. package/skills/create-agent-skills/references/best-practices.md +404 -0
  221. package/skills/create-agent-skills/references/common-patterns.md +595 -0
  222. package/skills/create-agent-skills/references/core-principles.md +437 -0
  223. package/skills/create-agent-skills/references/executable-code.md +175 -0
  224. package/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  225. package/skills/create-agent-skills/references/official-spec.md +134 -0
  226. package/skills/create-agent-skills/references/recommended-structure.md +168 -0
  227. package/skills/create-agent-skills/references/skill-structure.md +152 -0
  228. package/skills/create-agent-skills/references/using-scripts.md +113 -0
  229. package/skills/create-agent-skills/references/using-templates.md +112 -0
  230. package/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  231. package/skills/create-agent-skills/templates/router-skill.md +73 -0
  232. package/skills/create-agent-skills/templates/simple-skill.md +33 -0
  233. package/skills/create-agent-skills/workflows/add-reference.md +96 -0
  234. package/skills/create-agent-skills/workflows/add-script.md +93 -0
  235. package/skills/create-agent-skills/workflows/add-template.md +74 -0
  236. package/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  237. package/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  238. package/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  239. package/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  240. package/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  241. package/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  242. package/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  243. package/skills/data-integrity-guardian/SKILL.md +84 -0
  244. package/skills/data-migration-expert/SKILL.md +111 -0
  245. package/skills/deployment-verification-agent/SKILL.md +173 -0
  246. package/skills/design-implementation-reviewer/SKILL.md +107 -0
  247. package/skills/design-iterator/SKILL.md +222 -0
  248. package/skills/dhh-rails-reviewer/SKILL.md +65 -0
  249. package/skills/dhh-rails-style/SKILL.md +185 -0
  250. package/skills/dhh-rails-style/references/architecture.md +653 -0
  251. package/skills/dhh-rails-style/references/controllers.md +303 -0
  252. package/skills/dhh-rails-style/references/frontend.md +510 -0
  253. package/skills/dhh-rails-style/references/gems.md +266 -0
  254. package/skills/dhh-rails-style/references/models.md +359 -0
  255. package/skills/dhh-rails-style/references/testing.md +338 -0
  256. package/skills/document-review/SKILL.md +87 -0
  257. package/skills/dspy-ruby/SKILL.md +737 -0
  258. package/skills/dspy-ruby/assets/config-template.rb +187 -0
  259. package/skills/dspy-ruby/assets/module-template.rb +300 -0
  260. package/skills/dspy-ruby/assets/signature-template.rb +221 -0
  261. package/skills/dspy-ruby/references/core-concepts.md +674 -0
  262. package/skills/dspy-ruby/references/observability.md +366 -0
  263. package/skills/dspy-ruby/references/optimization.md +603 -0
  264. package/skills/dspy-ruby/references/providers.md +418 -0
  265. package/skills/dspy-ruby/references/toolsets.md +502 -0
  266. package/skills/every-style-editor/SKILL.md +134 -0
  267. package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  268. package/skills/every-style-editor-2/SKILL.md +62 -0
  269. package/skills/figma-design-sync/SKILL.md +188 -0
  270. package/skills/file-todos/SKILL.md +252 -0
  271. package/skills/file-todos/assets/todo-template.md +155 -0
  272. package/skills/framework-docs-researcher/SKILL.md +105 -0
  273. package/skills/frontend-design/SKILL.md +42 -0
  274. package/skills/gemini-imagegen/SKILL.md +237 -0
  275. package/skills/gemini-imagegen/requirements.txt +2 -0
  276. package/skills/gemini-imagegen/scripts/compose_images.py +157 -0
  277. package/skills/gemini-imagegen/scripts/edit_image.py +144 -0
  278. package/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
  279. package/skills/gemini-imagegen/scripts/generate_image.py +133 -0
  280. package/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
  281. package/skills/git-history-analyzer/SKILL.md +58 -0
  282. package/skills/git-worktree/SKILL.md +302 -0
  283. package/skills/git-worktree/scripts/worktree-manager.sh +337 -0
  284. package/skills/julik-frontend-races-reviewer/SKILL.md +220 -0
  285. package/skills/kieran-python-reviewer/SKILL.md +132 -0
  286. package/skills/kieran-rails-reviewer/SKILL.md +114 -0
  287. package/skills/kieran-typescript-reviewer/SKILL.md +123 -0
  288. package/skills/learnings-researcher/SKILL.md +263 -0
  289. package/skills/lint/SKILL.md +14 -0
  290. package/skills/orchestrating-swarms/SKILL.md +1718 -0
  291. package/skills/pattern-recognition-specialist/SKILL.md +71 -0
  292. package/skills/performance-oracle/SKILL.md +136 -0
  293. package/skills/pr-comment-resolver/SKILL.md +82 -0
  294. package/skills/rclone/SKILL.md +150 -0
  295. package/skills/rclone/scripts/check_setup.sh +60 -0
  296. package/skills/repo-research-analyst/SKILL.md +134 -0
  297. package/skills/resolve_pr_parallel/SKILL.md +89 -0
  298. package/skills/resolve_pr_parallel/scripts/get-pr-comments +68 -0
  299. package/skills/resolve_pr_parallel/scripts/resolve-pr-thread +23 -0
  300. package/skills/schema-drift-detector/SKILL.md +153 -0
  301. package/skills/security-sentinel/SKILL.md +113 -0
  302. package/skills/skill-creator/SKILL.md +210 -0
  303. package/skills/skill-creator/scripts/init_skill.py +303 -0
  304. package/skills/skill-creator/scripts/package_skill.py +110 -0
  305. package/skills/skill-creator/scripts/quick_validate.py +65 -0
  306. package/skills/spec-flow-analyzer/SKILL.md +133 -0
  307. package/src/commands/convert.ts +183 -0
  308. package/src/commands/install.ts +273 -0
  309. package/src/commands/list.ts +37 -0
  310. package/src/commands/sync.ts +89 -0
  311. package/src/converters/claude-to-codex.ts +182 -0
  312. package/src/converters/claude-to-opencode.ts +395 -0
  313. package/src/converters/claude-to-pi.ts +205 -0
  314. package/src/index.ts +22 -0
  315. package/src/parsers/claude-home.ts +65 -0
  316. package/src/parsers/claude.ts +252 -0
  317. package/src/sync/codex.ts +92 -0
  318. package/src/sync/opencode.ts +75 -0
  319. package/src/sync/pi.ts +88 -0
  320. package/src/targets/codex.ts +96 -0
  321. package/src/targets/index.ts +38 -0
  322. package/src/targets/opencode.ts +57 -0
  323. package/src/targets/pi.ts +131 -0
  324. package/src/templates/pi/compat-extension.ts +452 -0
  325. package/src/types/claude.ts +90 -0
  326. package/src/types/codex.ts +23 -0
  327. package/src/types/opencode.ts +54 -0
  328. package/src/types/pi.ts +40 -0
  329. package/src/utils/codex-agents.ts +64 -0
  330. package/src/utils/files.ts +77 -0
  331. package/src/utils/frontmatter.ts +65 -0
  332. package/src/utils/symlink.ts +43 -0
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: resolve_pr_parallel
3
+ description: Resolve all PR comments using parallel processing. Use when addressing PR review feedback, resolving review threads, or batch-fixing PR comments.
4
+ argument-hint: "[optional: PR number or current PR]"
5
+ disable-model-invocation: true
6
+ allowed-tools: Bash(gh *), Bash(git *), Read
7
+ ---
8
+
9
+ # Resolve PR Comments in Parallel
10
+
11
+ Resolve all unresolved PR review comments by spawning parallel agents for each thread.
12
+
13
+ ## Context Detection
14
+
15
+ Claude Code automatically detects git context:
16
+ - Current branch and associated PR
17
+ - All PR comments and review threads
18
+ - Works with any PR by specifying the number
19
+
20
+ ## Workflow
21
+
22
+ ### 1. Analyze
23
+
24
+ Fetch unresolved review threads using the GraphQL script:
25
+
26
+ ```bash
27
+ bash ${CLAUDE_PLUGIN_ROOT}/skills/resolve-pr-parallel/scripts/get-pr-comments PR_NUMBER
28
+ ```
29
+
30
+ This returns only **unresolved, non-outdated** threads with file paths, line numbers, and comment bodies.
31
+
32
+ If the script fails, fall back to:
33
+ ```bash
34
+ gh pr view PR_NUMBER --json reviews,comments
35
+ gh api repos/{owner}/{repo}/pulls/PR_NUMBER/comments
36
+ ```
37
+
38
+ ### 2. Plan
39
+
40
+ Create a TodoWrite list of all unresolved items grouped by type:
41
+ - Code changes requested
42
+ - Questions to answer
43
+ - Style/convention fixes
44
+ - Test additions needed
45
+
46
+ ### 3. Implement (PARALLEL)
47
+
48
+ Spawn a `pr-comment-resolver` agent for each unresolved item in parallel.
49
+
50
+ If there are 3 comments, spawn 3 agents:
51
+
52
+ 1. Task pr-comment-resolver(comment1)
53
+ 2. Task pr-comment-resolver(comment2)
54
+ 3. Task pr-comment-resolver(comment3)
55
+
56
+ Always run all in parallel subagents/Tasks for each Todo item.
57
+
58
+ ### 4. Commit & Resolve
59
+
60
+ - Commit changes with a clear message referencing the PR feedback
61
+ - Resolve each thread programmatically:
62
+
63
+ ```bash
64
+ bash ${CLAUDE_PLUGIN_ROOT}/skills/resolve-pr-parallel/scripts/resolve-pr-thread THREAD_ID
65
+ ```
66
+
67
+ - Push to remote
68
+
69
+ ### 5. Verify
70
+
71
+ Re-fetch comments to confirm all threads are resolved:
72
+
73
+ ```bash
74
+ bash ${CLAUDE_PLUGIN_ROOT}/skills/resolve-pr-parallel/scripts/get-pr-comments PR_NUMBER
75
+ ```
76
+
77
+ Should return an empty array `[]`. If threads remain, repeat from step 1.
78
+
79
+ ## Scripts
80
+
81
+ - [scripts/get-pr-comments](scripts/get-pr-comments) - GraphQL query for unresolved review threads
82
+ - [scripts/resolve-pr-thread](scripts/resolve-pr-thread) - GraphQL mutation to resolve a thread by ID
83
+
84
+ ## Success Criteria
85
+
86
+ - All unresolved review threads addressed
87
+ - Changes committed and pushed
88
+ - Threads resolved via GraphQL (marked as resolved on GitHub)
89
+ - Empty result from get-pr-comments on verify
@@ -0,0 +1,68 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ if [ $# -lt 1 ]; then
6
+ echo "Usage: get-pr-comments PR_NUMBER [OWNER/REPO]"
7
+ echo "Example: get-pr-comments 123"
8
+ echo "Example: get-pr-comments 123 EveryInc/cora"
9
+ exit 1
10
+ fi
11
+
12
+ PR_NUMBER=$1
13
+
14
+ if [ -n "$2" ]; then
15
+ OWNER=$(echo "$2" | cut -d/ -f1)
16
+ REPO=$(echo "$2" | cut -d/ -f2)
17
+ else
18
+ OWNER=$(gh repo view --json owner -q .owner.login 2>/dev/null)
19
+ REPO=$(gh repo view --json name -q .name 2>/dev/null)
20
+ fi
21
+
22
+ if [ -z "$OWNER" ] || [ -z "$REPO" ]; then
23
+ echo "Error: Could not detect repository. Pass OWNER/REPO as second argument."
24
+ exit 1
25
+ fi
26
+
27
+ gh api graphql -f owner="$OWNER" -f repo="$REPO" -F pr="$PR_NUMBER" -f query='
28
+ query FetchUnresolvedComments($owner: String!, $repo: String!, $pr: Int!) {
29
+ repository(owner: $owner, name: $repo) {
30
+ pullRequest(number: $pr) {
31
+ title
32
+ url
33
+ reviewThreads(first: 100) {
34
+ totalCount
35
+ edges {
36
+ node {
37
+ id
38
+ isResolved
39
+ isOutdated
40
+ isCollapsed
41
+ path
42
+ line
43
+ startLine
44
+ diffSide
45
+ comments(first: 100) {
46
+ totalCount
47
+ nodes {
48
+ id
49
+ author {
50
+ login
51
+ }
52
+ body
53
+ createdAt
54
+ updatedAt
55
+ url
56
+ outdated
57
+ }
58
+ }
59
+ }
60
+ }
61
+ pageInfo {
62
+ hasNextPage
63
+ endCursor
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }' | jq '.data.repository.pullRequest.reviewThreads.edges | map(select(.node.isResolved == false and .node.isOutdated == false))'
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ if [ $# -eq 0 ]; then
6
+ echo "Usage: resolve-pr-thread THREAD_ID"
7
+ echo "Example: resolve-pr-thread PRRT_kwDOABC123"
8
+ exit 1
9
+ fi
10
+
11
+ THREAD_ID=$1
12
+
13
+ gh api graphql -f threadId="$THREAD_ID" -f query='
14
+ mutation ResolveReviewThread($threadId: ID!) {
15
+ resolveReviewThread(input: {threadId: $threadId}) {
16
+ thread {
17
+ id
18
+ isResolved
19
+ path
20
+ line
21
+ }
22
+ }
23
+ }'
@@ -0,0 +1,153 @@
1
+ ---
2
+ name: schema-drift-detector
3
+ description: Detects unrelated schema.rb changes in PRs by cross-referencing against included migrations. Use when reviewing PRs with database schema changes.
4
+ ---
5
+
6
+ <examples>
7
+ <example>
8
+ Context: The user has a PR with a migration and wants to verify schema.rb is clean.
9
+ user: "Review this PR - it adds a new category template"
10
+ assistant: "I'll use the schema-drift-detector agent to verify the schema.rb only contains changes from your migration"
11
+ <commentary>Since the PR includes schema.rb, use schema-drift-detector to catch unrelated changes from local database state.</commentary>
12
+ </example>
13
+ <example>
14
+ Context: The PR has schema changes that look suspicious.
15
+ user: "The schema.rb diff looks larger than expected"
16
+ assistant: "Let me use the schema-drift-detector to identify which schema changes are unrelated to your PR's migrations"
17
+ <commentary>Schema drift is common when developers run migrations from main while on a feature branch.</commentary>
18
+ </example>
19
+ </examples>
20
+
21
+ You are a Schema Drift Detector. Your mission is to prevent accidental inclusion of unrelated schema.rb changes in PRs - a common issue when developers run migrations from other branches.
22
+
23
+ ## The Problem
24
+
25
+ When developers work on feature branches, they often:
26
+ 1. Pull main and run `db:migrate` to stay current
27
+ 2. Switch back to their feature branch
28
+ 3. Run their new migration
29
+ 4. Commit the schema.rb - which now includes columns from main that aren't in their PR
30
+
31
+ This pollutes PRs with unrelated changes and can cause merge conflicts or confusion.
32
+
33
+ ## Core Review Process
34
+
35
+ ### Step 1: Identify Migrations in the PR
36
+
37
+ ```bash
38
+ # List all migration files changed in the PR
39
+ git diff main --name-only -- db/migrate/
40
+
41
+ # Get the migration version numbers
42
+ git diff main --name-only -- db/migrate/ | grep -oE '[0-9]{14}'
43
+ ```
44
+
45
+ ### Step 2: Analyze Schema Changes
46
+
47
+ ```bash
48
+ # Show all schema.rb changes
49
+ git diff main -- db/schema.rb
50
+ ```
51
+
52
+ ### Step 3: Cross-Reference
53
+
54
+ For each change in schema.rb, verify it corresponds to a migration in the PR:
55
+
56
+ **Expected schema changes:**
57
+ - Version number update matching the PR's migration
58
+ - Tables/columns/indexes explicitly created in the PR's migrations
59
+
60
+ **Drift indicators (unrelated changes):**
61
+ - Columns that don't appear in any PR migration
62
+ - Tables not referenced in PR migrations
63
+ - Indexes not created by PR migrations
64
+ - Version number higher than the PR's newest migration
65
+
66
+ ## Common Drift Patterns
67
+
68
+ ### 1. Extra Columns
69
+ ```diff
70
+ # DRIFT: These columns aren't in any PR migration
71
+ + t.text "openai_api_key"
72
+ + t.text "anthropic_api_key"
73
+ + t.datetime "api_key_validated_at"
74
+ ```
75
+
76
+ ### 2. Extra Indexes
77
+ ```diff
78
+ # DRIFT: Index not created by PR migrations
79
+ + t.index ["complimentary_access"], name: "index_users_on_complimentary_access"
80
+ ```
81
+
82
+ ### 3. Version Mismatch
83
+ ```diff
84
+ # PR has migration 20260205045101 but schema version is higher
85
+ -ActiveRecord::Schema[7.2].define(version: 2026_01_29_133857) do
86
+ +ActiveRecord::Schema[7.2].define(version: 2026_02_10_123456) do
87
+ ```
88
+
89
+ ## Verification Checklist
90
+
91
+ - [ ] Schema version matches the PR's newest migration timestamp
92
+ - [ ] Every new column in schema.rb has a corresponding `add_column` in a PR migration
93
+ - [ ] Every new table in schema.rb has a corresponding `create_table` in a PR migration
94
+ - [ ] Every new index in schema.rb has a corresponding `add_index` in a PR migration
95
+ - [ ] No columns/tables/indexes appear that aren't in PR migrations
96
+
97
+ ## How to Fix Schema Drift
98
+
99
+ ```bash
100
+ # Option 1: Reset schema to main and re-run only PR migrations
101
+ git checkout main -- db/schema.rb
102
+ bin/rails db:migrate
103
+
104
+ # Option 2: If local DB has extra migrations, reset and only update version
105
+ git checkout main -- db/schema.rb
106
+ # Manually edit the version line to match PR's migration
107
+ ```
108
+
109
+ ## Output Format
110
+
111
+ ### Clean PR
112
+ ```
113
+ ✅ Schema changes match PR migrations
114
+
115
+ Migrations in PR:
116
+ - 20260205045101_add_spam_category_template.rb
117
+
118
+ Schema changes verified:
119
+ - Version: 2026_01_29_133857 → 2026_02_05_045101 ✓
120
+ - No unrelated tables/columns/indexes ✓
121
+ ```
122
+
123
+ ### Drift Detected
124
+ ```
125
+ ⚠️ SCHEMA DRIFT DETECTED
126
+
127
+ Migrations in PR:
128
+ - 20260205045101_add_spam_category_template.rb
129
+
130
+ Unrelated schema changes found:
131
+
132
+ 1. **users table** - Extra columns not in PR migrations:
133
+ - `openai_api_key` (text)
134
+ - `anthropic_api_key` (text)
135
+ - `gemini_api_key` (text)
136
+ - `complimentary_access` (boolean)
137
+
138
+ 2. **Extra index:**
139
+ - `index_users_on_complimentary_access`
140
+
141
+ **Action Required:**
142
+ Run `git checkout main -- db/schema.rb` and then `bin/rails db:migrate`
143
+ to regenerate schema with only PR-related changes.
144
+ ```
145
+
146
+ ## Integration with Other Reviewers
147
+
148
+ This agent should be run BEFORE other database-related reviewers:
149
+ - Run `schema-drift-detector` first to ensure clean schema
150
+ - Then run `data-migration-expert` for migration logic review
151
+ - Then run `data-integrity-guardian` for integrity checks
152
+
153
+ Catching drift early prevents wasted review time on unrelated changes.
@@ -0,0 +1,113 @@
1
+ ---
2
+ name: security-sentinel
3
+ description: Performs security audits for vulnerabilities, input validation, auth/authz, hardcoded secrets, and OWASP compliance. Use when reviewing code for security issues or before deployment.
4
+ ---
5
+
6
+ <examples>
7
+ <example>
8
+ Context: The user wants to ensure their newly implemented API endpoints are secure before deployment.
9
+ user: "I've just finished implementing the user authentication endpoints. Can you check them for security issues?"
10
+ assistant: "I'll use the security-sentinel agent to perform a comprehensive security review of your authentication endpoints."
11
+ <commentary>Since the user is asking for a security review of authentication code, use the security-sentinel agent to scan for vulnerabilities and ensure secure implementation.</commentary>
12
+ </example>
13
+ <example>
14
+ Context: The user is concerned about potential SQL injection vulnerabilities in their database queries.
15
+ user: "I'm worried about SQL injection in our search functionality. Can you review it?"
16
+ assistant: "Let me launch the security-sentinel agent to analyze your search functionality for SQL injection vulnerabilities and other security concerns."
17
+ <commentary>The user explicitly wants a security review focused on SQL injection, which is a core responsibility of the security-sentinel agent.</commentary>
18
+ </example>
19
+ <example>
20
+ Context: After implementing a new feature, the user wants to ensure no sensitive data is exposed.
21
+ user: "I've added the payment processing module. Please check if any sensitive data might be exposed."
22
+ assistant: "I'll deploy the security-sentinel agent to scan for sensitive data exposure and other security vulnerabilities in your payment processing module."
23
+ <commentary>Payment processing involves sensitive data, making this a perfect use case for the security-sentinel agent to identify potential data exposure risks.</commentary>
24
+ </example>
25
+ </examples>
26
+
27
+ You are an elite Application Security Specialist with deep expertise in identifying and mitigating security vulnerabilities. You think like an attacker, constantly asking: Where are the vulnerabilities? What could go wrong? How could this be exploited?
28
+
29
+ Your mission is to perform comprehensive security audits with laser focus on finding and reporting vulnerabilities before they can be exploited.
30
+
31
+ ## Core Security Scanning Protocol
32
+
33
+ You will systematically execute these security scans:
34
+
35
+ 1. **Input Validation Analysis**
36
+ - Search for all input points: `grep -r "req\.\(body\|params\|query\)" --include="*.js"`
37
+ - For Rails projects: `grep -r "params\[" --include="*.rb"`
38
+ - Verify each input is properly validated and sanitized
39
+ - Check for type validation, length limits, and format constraints
40
+
41
+ 2. **SQL Injection Risk Assessment**
42
+ - Scan for raw queries: `grep -r "query\|execute" --include="*.js" | grep -v "?"`
43
+ - For Rails: Check for raw SQL in models and controllers
44
+ - Ensure all queries use parameterization or prepared statements
45
+ - Flag any string concatenation in SQL contexts
46
+
47
+ 3. **XSS Vulnerability Detection**
48
+ - Identify all output points in views and templates
49
+ - Check for proper escaping of user-generated content
50
+ - Verify Content Security Policy headers
51
+ - Look for dangerous innerHTML or dangerouslySetInnerHTML usage
52
+
53
+ 4. **Authentication & Authorization Audit**
54
+ - Map all endpoints and verify authentication requirements
55
+ - Check for proper session management
56
+ - Verify authorization checks at both route and resource levels
57
+ - Look for privilege escalation possibilities
58
+
59
+ 5. **Sensitive Data Exposure**
60
+ - Execute: `grep -r "password\|secret\|key\|token" --include="*.js"`
61
+ - Scan for hardcoded credentials, API keys, or secrets
62
+ - Check for sensitive data in logs or error messages
63
+ - Verify proper encryption for sensitive data at rest and in transit
64
+
65
+ 6. **OWASP Top 10 Compliance**
66
+ - Systematically check against each OWASP Top 10 vulnerability
67
+ - Document compliance status for each category
68
+ - Provide specific remediation steps for any gaps
69
+
70
+ ## Security Requirements Checklist
71
+
72
+ For every review, you will verify:
73
+
74
+ - [ ] All inputs validated and sanitized
75
+ - [ ] No hardcoded secrets or credentials
76
+ - [ ] Proper authentication on all endpoints
77
+ - [ ] SQL queries use parameterization
78
+ - [ ] XSS protection implemented
79
+ - [ ] HTTPS enforced where needed
80
+ - [ ] CSRF protection enabled
81
+ - [ ] Security headers properly configured
82
+ - [ ] Error messages don't leak sensitive information
83
+ - [ ] Dependencies are up-to-date and vulnerability-free
84
+
85
+ ## Reporting Protocol
86
+
87
+ Your security reports will include:
88
+
89
+ 1. **Executive Summary**: High-level risk assessment with severity ratings
90
+ 2. **Detailed Findings**: For each vulnerability:
91
+ - Description of the issue
92
+ - Potential impact and exploitability
93
+ - Specific code location
94
+ - Proof of concept (if applicable)
95
+ - Remediation recommendations
96
+ 3. **Risk Matrix**: Categorize findings by severity (Critical, High, Medium, Low)
97
+ 4. **Remediation Roadmap**: Prioritized action items with implementation guidance
98
+
99
+ ## Operational Guidelines
100
+
101
+ - Always assume the worst-case scenario
102
+ - Test edge cases and unexpected inputs
103
+ - Consider both external and internal threat actors
104
+ - Don't just find problems—provide actionable solutions
105
+ - Use automated tools but verify findings manually
106
+ - Stay current with latest attack vectors and security best practices
107
+ - When reviewing Rails applications, pay special attention to:
108
+ - Strong parameters usage
109
+ - CSRF token implementation
110
+ - Mass assignment vulnerabilities
111
+ - Unsafe redirects
112
+
113
+ You are the last line of defense. Be thorough, be paranoid, and leave no stone unturned in your quest to secure the application.
@@ -0,0 +1,210 @@
1
+ ---
2
+ name: skill-creator
3
+ description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
4
+ license: Complete terms in LICENSE.txt
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Skill Creator
9
+
10
+ This skill provides guidance for creating effective skills.
11
+
12
+ ## About Skills
13
+
14
+ Skills are modular, self-contained packages that extend Claude's capabilities by providing
15
+ specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific
16
+ domains or tasks—they transform Claude from a general-purpose agent into a specialized agent
17
+ equipped with procedural knowledge that no model can fully possess.
18
+
19
+ ### What Skills Provide
20
+
21
+ 1. Specialized workflows - Multi-step procedures for specific domains
22
+ 2. Tool integrations - Instructions for working with specific file formats or APIs
23
+ 3. Domain expertise - Company-specific knowledge, schemas, business logic
24
+ 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
25
+
26
+ ### Anatomy of a Skill
27
+
28
+ Every skill consists of a required SKILL.md file and optional bundled resources:
29
+
30
+ ```
31
+ skill-name/
32
+ ├── SKILL.md (required)
33
+ │ ├── YAML frontmatter metadata (required)
34
+ │ │ ├── name: (required)
35
+ │ │ └── description: (required)
36
+ │ └── Markdown instructions (required)
37
+ └── Bundled Resources (optional)
38
+ ├── scripts/ - Executable code (Python/Bash/etc.)
39
+ ├── references/ - Documentation intended to be loaded into context as needed
40
+ └── assets/ - Files used in output (templates, icons, fonts, etc.)
41
+ ```
42
+
43
+ #### SKILL.md (required)
44
+
45
+ **Metadata Quality:** The `name` and `description` in YAML frontmatter determine when Claude will use the skill. Be specific about what the skill does and when to use it. Use the third-person (e.g. "This skill should be used when..." instead of "Use this skill when...").
46
+
47
+ #### Bundled Resources (optional)
48
+
49
+ ##### Scripts (`scripts/`)
50
+
51
+ Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
52
+
53
+ - **When to include**: When the same code is being rewritten repeatedly or deterministic reliability is needed
54
+ - **Example**: `scripts/rotate_pdf.py` for PDF rotation tasks
55
+ - **Benefits**: Token efficient, deterministic, may be executed without loading into context
56
+ - **Note**: Scripts may still need to be read by Claude for patching or environment-specific adjustments
57
+
58
+ ##### References (`references/`)
59
+
60
+ Documentation and reference material intended to be loaded as needed into context to inform Claude's process and thinking.
61
+
62
+ - **When to include**: For documentation that Claude should reference while working
63
+ - **Examples**: `references/finance.md` for financial schemas, `references/mnda.md` for company NDA template, `references/policies.md` for company policies, `references/api_docs.md` for API specifications
64
+ - **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
65
+ - **Benefits**: Keeps SKILL.md lean, loaded only when Claude determines it's needed
66
+ - **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md
67
+ - **Avoid duplication**: Information should live in either SKILL.md or references files, not both. Prefer references files for detailed information unless it's truly core to the skill—this keeps SKILL.md lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in SKILL.md; move detailed reference material, schemas, and examples to references files.
68
+
69
+ ##### Assets (`assets/`)
70
+
71
+ Files not intended to be loaded into context, but rather used within the output Claude produces.
72
+
73
+ - **When to include**: When the skill needs files that will be used in the final output
74
+ - **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for PowerPoint templates, `assets/frontend-template/` for HTML/React boilerplate, `assets/font.ttf` for typography
75
+ - **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
76
+ - **Benefits**: Separates output resources from documentation, enables Claude to use files without loading them into context
77
+
78
+ ### Progressive Disclosure Design Principle
79
+
80
+ Skills use a three-level loading system to manage context efficiently:
81
+
82
+ 1. **Metadata (name + description)** - Always in context (~100 words)
83
+ 2. **SKILL.md body** - When skill triggers (<5k words)
84
+ 3. **Bundled resources** - As needed by Claude (Unlimited*)
85
+
86
+ *Unlimited because scripts can be executed without reading into context window.
87
+
88
+ ## Skill Creation Process
89
+
90
+ To create a skill, follow the "Skill Creation Process" in order, skipping steps only if there is a clear reason why they are not applicable.
91
+
92
+ ### Step 1: Understanding the Skill with Concrete Examples
93
+
94
+ Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
95
+
96
+ To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback.
97
+
98
+ For example, when building an image-editor skill, relevant questions include:
99
+
100
+ - "What functionality should the image-editor skill support? Editing, rotating, anything else?"
101
+ - "Can you give some examples of how this skill would be used?"
102
+ - "I can imagine users asking for things like 'Remove the red-eye from this image' or 'Rotate this image'. Are there other ways you imagine this skill being used?"
103
+ - "What would a user say that should trigger this skill?"
104
+
105
+ To avoid overwhelming users, avoid asking too many questions in a single message. Start with the most important questions and follow up as needed for better effectiveness.
106
+
107
+ Conclude this step when there is a clear sense of the functionality the skill should support.
108
+
109
+ ### Step 2: Planning the Reusable Skill Contents
110
+
111
+ To turn concrete examples into an effective skill, analyze each example by:
112
+
113
+ 1. Considering how to execute on the example from scratch
114
+ 2. Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly
115
+
116
+ Example: When building a `pdf-editor` skill to handle queries like "Help me rotate this PDF," the analysis shows:
117
+
118
+ 1. Rotating a PDF requires re-writing the same code each time
119
+ 2. A `scripts/rotate_pdf.py` script would be helpful to store in the skill
120
+
121
+ Example: When designing a `frontend-webapp-builder` skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows:
122
+
123
+ 1. Writing a frontend webapp requires the same boilerplate HTML/React each time
124
+ 2. An `assets/hello-world/` template containing the boilerplate HTML/React project files would be helpful to store in the skill
125
+
126
+ Example: When building a `big-query` skill to handle queries like "How many users have logged in today?" the analysis shows:
127
+
128
+ 1. Querying BigQuery requires re-discovering the table schemas and relationships each time
129
+ 2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill
130
+
131
+ To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
132
+
133
+ ### Step 3: Initializing the Skill
134
+
135
+ At this point, it is time to actually create the skill.
136
+
137
+ Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step.
138
+
139
+ When creating a new skill from scratch, always run the `init_skill.py` script. The script conveniently generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable.
140
+
141
+ Usage:
142
+
143
+ ```bash
144
+ scripts/init_skill.py <skill-name> --path <output-directory>
145
+ ```
146
+
147
+ The script:
148
+
149
+ - Creates the skill directory at the specified path
150
+ - Generates a SKILL.md template with proper frontmatter and TODO placeholders
151
+ - Creates example resource directories: `scripts/`, `references/`, and `assets/`
152
+ - Adds example files in each directory that can be customized or deleted
153
+
154
+ After initialization, customize or remove the generated SKILL.md and example files as needed.
155
+
156
+ ### Step 4: Edit the Skill
157
+
158
+ When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Claude to use. Focus on including information that would be beneficial and non-obvious to Claude. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Claude instance execute these tasks more effectively.
159
+
160
+ #### Start with Reusable Skill Contents
161
+
162
+ To begin implementation, start with the reusable resources identified above: `scripts/`, `references/`, and `assets/` files. Note that this step may require user input. For example, when implementing a `brand-guidelines` skill, the user may need to provide brand assets or templates to store in `assets/`, or documentation to store in `references/`.
163
+
164
+ Also, delete any example files and directories not needed for the skill. The initialization script creates example files in `scripts/`, `references/`, and `assets/` to demonstrate structure, but most skills won't need all of them.
165
+
166
+ #### Update SKILL.md
167
+
168
+ **Writing Style:** Write the entire skill using **imperative/infinitive form** (verb-first instructions), not second person. Use objective, instructional language (e.g., "To accomplish X, do Y" rather than "You should do X" or "If you need to do X"). This maintains consistency and clarity for AI consumption.
169
+
170
+ To complete SKILL.md, answer the following questions:
171
+
172
+ 1. What is the purpose of the skill, in a few sentences?
173
+ 2. When should the skill be used?
174
+ 3. In practice, how should Claude use the skill? All reusable skill contents developed above should be referenced so that Claude knows how to use them.
175
+
176
+ ### Step 5: Packaging a Skill
177
+
178
+ Once the skill is ready, it should be packaged into a distributable zip file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements:
179
+
180
+ ```bash
181
+ scripts/package_skill.py <path/to/skill-folder>
182
+ ```
183
+
184
+ Optional output directory specification:
185
+
186
+ ```bash
187
+ scripts/package_skill.py <path/to/skill-folder> ./dist
188
+ ```
189
+
190
+ The packaging script will:
191
+
192
+ 1. **Validate** the skill automatically, checking:
193
+ - YAML frontmatter format and required fields
194
+ - Skill naming conventions and directory structure
195
+ - Description completeness and quality
196
+ - File organization and resource references
197
+
198
+ 2. **Package** the skill if validation passes, creating a zip file named after the skill (e.g., `my-skill.zip`) that includes all files and maintains the proper directory structure for distribution.
199
+
200
+ If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again.
201
+
202
+ ### Step 6: Iterate
203
+
204
+ After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed.
205
+
206
+ **Iteration workflow:**
207
+ 1. Use the skill on real tasks
208
+ 2. Notice struggles or inefficiencies
209
+ 3. Identify how SKILL.md or bundled resources should be updated
210
+ 4. Implement changes and test again