@chankov/agent-skills 0.1.0 → 0.3.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 (328) hide show
  1. package/.claude/commands/{doctor.md → doctor-agent-skills.md} +1 -1
  2. package/.pi/extensions/agent-skills-update-check/README.md +58 -0
  3. package/.pi/extensions/agent-skills-update-check/index.ts +161 -0
  4. package/.pi/extensions/agent-skills-update-check/package.json +6 -0
  5. package/.pi/prompts/{doctor.md → doctor-agent-skills.md} +1 -1
  6. package/.versions/0.2.0/.claude/commands/build.md +18 -0
  7. package/.versions/0.2.0/.claude/commands/code-simplify.md +22 -0
  8. package/.versions/0.2.0/.claude/commands/design-agent.md +14 -0
  9. package/.versions/0.2.0/.claude/commands/doctor-agent-skills.md +13 -0
  10. package/.versions/0.2.0/.claude/commands/plan.md +16 -0
  11. package/.versions/0.2.0/.claude/commands/prime.md +22 -0
  12. package/.versions/0.2.0/.claude/commands/review.md +16 -0
  13. package/.versions/0.2.0/.claude/commands/setup-agent-skills.md +19 -0
  14. package/.versions/0.2.0/.claude/commands/ship.md +17 -0
  15. package/.versions/0.2.0/.claude/commands/spec.md +15 -0
  16. package/.versions/0.2.0/.claude/commands/test.md +19 -0
  17. package/.versions/0.2.0/.opencode/commands/as-build.md +17 -0
  18. package/.versions/0.2.0/.opencode/commands/as-code-simplify.md +16 -0
  19. package/.versions/0.2.0/.opencode/commands/as-design-agent.md +15 -0
  20. package/.versions/0.2.0/.opencode/commands/as-doctor-agent-skills.md +11 -0
  21. package/.versions/0.2.0/.opencode/commands/as-plan.md +16 -0
  22. package/.versions/0.2.0/.opencode/commands/as-prime.md +22 -0
  23. package/.versions/0.2.0/.opencode/commands/as-review.md +15 -0
  24. package/.versions/0.2.0/.opencode/commands/as-setup-agent-skills.md +11 -0
  25. package/.versions/0.2.0/.opencode/commands/as-ship.md +16 -0
  26. package/.versions/0.2.0/.opencode/commands/as-spec.md +16 -0
  27. package/.versions/0.2.0/.opencode/commands/as-test.md +21 -0
  28. package/.versions/0.2.0/.pi/agents/agent-chain.yaml +49 -0
  29. package/.versions/0.2.0/.pi/agents/bowser.md +19 -0
  30. package/.versions/0.2.0/.pi/agents/pi-pi/agent-expert.md +98 -0
  31. package/.versions/0.2.0/.pi/agents/pi-pi/cli-expert.md +41 -0
  32. package/.versions/0.2.0/.pi/agents/pi-pi/config-expert.md +63 -0
  33. package/.versions/0.2.0/.pi/agents/pi-pi/ext-expert.md +43 -0
  34. package/.versions/0.2.0/.pi/agents/pi-pi/keybinding-expert.md +134 -0
  35. package/.versions/0.2.0/.pi/agents/pi-pi/pi-orchestrator.md +57 -0
  36. package/.versions/0.2.0/.pi/agents/pi-pi/prompt-expert.md +70 -0
  37. package/.versions/0.2.0/.pi/agents/pi-pi/skill-expert.md +42 -0
  38. package/.versions/0.2.0/.pi/agents/pi-pi/theme-expert.md +40 -0
  39. package/.versions/0.2.0/.pi/agents/pi-pi/tui-expert.md +85 -0
  40. package/.versions/0.2.0/.pi/agents/teams.yaml +31 -0
  41. package/.versions/0.2.0/.pi/damage-control-rules.yaml +278 -0
  42. package/.versions/0.2.0/.pi/extensions/agent-skills-update-check/README.md +58 -0
  43. package/.versions/0.2.0/.pi/extensions/agent-skills-update-check/index.ts +161 -0
  44. package/.versions/0.2.0/.pi/extensions/agent-skills-update-check/package.json +6 -0
  45. package/.versions/0.2.0/.pi/extensions/chrome-devtools-mcp/README.md +39 -0
  46. package/.versions/0.2.0/.pi/extensions/chrome-devtools-mcp/index.ts +61 -0
  47. package/.versions/0.2.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  48. package/.versions/0.2.0/.pi/extensions/compact-and-continue/README.md +42 -0
  49. package/.versions/0.2.0/.pi/extensions/compact-and-continue/index.ts +120 -0
  50. package/.versions/0.2.0/.pi/extensions/compact-and-continue/package.json +6 -0
  51. package/.versions/0.2.0/.pi/extensions/mcp-bridge/README.md +46 -0
  52. package/.versions/0.2.0/.pi/extensions/mcp-bridge/index.ts +206 -0
  53. package/.versions/0.2.0/.pi/extensions/mcp-bridge/package.json +6 -0
  54. package/.versions/0.2.0/.pi/extensions/package-lock.json +1143 -0
  55. package/.versions/0.2.0/.pi/extensions/package.json +9 -0
  56. package/.versions/0.2.0/.pi/harnesses/agent-chain/README.md +37 -0
  57. package/.versions/0.2.0/.pi/harnesses/agent-chain/index.ts +795 -0
  58. package/.versions/0.2.0/.pi/harnesses/agent-chain/package.json +6 -0
  59. package/.versions/0.2.0/.pi/harnesses/agent-team/README.md +38 -0
  60. package/.versions/0.2.0/.pi/harnesses/agent-team/index.ts +732 -0
  61. package/.versions/0.2.0/.pi/harnesses/agent-team/package.json +6 -0
  62. package/.versions/0.2.0/.pi/harnesses/coms/README.md +36 -0
  63. package/.versions/0.2.0/.pi/harnesses/coms/index.ts +1595 -0
  64. package/.versions/0.2.0/.pi/harnesses/coms/package.json +6 -0
  65. package/.versions/0.2.0/.pi/harnesses/coms-net/README.md +46 -0
  66. package/.versions/0.2.0/.pi/harnesses/coms-net/index.ts +1637 -0
  67. package/.versions/0.2.0/.pi/harnesses/coms-net/package.json +6 -0
  68. package/.versions/0.2.0/.pi/harnesses/damage-control/README.md +38 -0
  69. package/.versions/0.2.0/.pi/harnesses/damage-control/index.ts +207 -0
  70. package/.versions/0.2.0/.pi/harnesses/damage-control/package.json +6 -0
  71. package/.versions/0.2.0/.pi/harnesses/damage-control-continue/README.md +37 -0
  72. package/.versions/0.2.0/.pi/harnesses/damage-control-continue/index.ts +234 -0
  73. package/.versions/0.2.0/.pi/harnesses/damage-control-continue/package.json +6 -0
  74. package/.versions/0.2.0/.pi/harnesses/minimal/README.md +27 -0
  75. package/.versions/0.2.0/.pi/harnesses/minimal/index.ts +32 -0
  76. package/.versions/0.2.0/.pi/harnesses/minimal/package.json +6 -0
  77. package/.versions/0.2.0/.pi/harnesses/package-lock.json +35 -0
  78. package/.versions/0.2.0/.pi/harnesses/package.json +9 -0
  79. package/.versions/0.2.0/.pi/harnesses/pi-pi/README.md +39 -0
  80. package/.versions/0.2.0/.pi/harnesses/pi-pi/index.ts +631 -0
  81. package/.versions/0.2.0/.pi/harnesses/pi-pi/package.json +6 -0
  82. package/.versions/0.2.0/.pi/harnesses/purpose-gate/README.md +27 -0
  83. package/.versions/0.2.0/.pi/harnesses/purpose-gate/index.ts +82 -0
  84. package/.versions/0.2.0/.pi/harnesses/purpose-gate/package.json +6 -0
  85. package/.versions/0.2.0/.pi/harnesses/session-replay/README.md +28 -0
  86. package/.versions/0.2.0/.pi/harnesses/session-replay/index.ts +214 -0
  87. package/.versions/0.2.0/.pi/harnesses/session-replay/package.json +6 -0
  88. package/.versions/0.2.0/.pi/harnesses/subagent-widget/README.md +36 -0
  89. package/.versions/0.2.0/.pi/harnesses/subagent-widget/index.ts +479 -0
  90. package/.versions/0.2.0/.pi/harnesses/subagent-widget/package.json +6 -0
  91. package/.versions/0.2.0/.pi/harnesses/system-select/README.md +39 -0
  92. package/.versions/0.2.0/.pi/harnesses/system-select/index.ts +165 -0
  93. package/.versions/0.2.0/.pi/harnesses/system-select/package.json +6 -0
  94. package/.versions/0.2.0/.pi/harnesses/tilldone/README.md +35 -0
  95. package/.versions/0.2.0/.pi/harnesses/tilldone/index.ts +724 -0
  96. package/.versions/0.2.0/.pi/harnesses/tilldone/package.json +6 -0
  97. package/.versions/0.2.0/.pi/harnesses/tool-counter/README.md +31 -0
  98. package/.versions/0.2.0/.pi/harnesses/tool-counter/index.ts +100 -0
  99. package/.versions/0.2.0/.pi/harnesses/tool-counter/package.json +6 -0
  100. package/.versions/0.2.0/.pi/harnesses/tool-counter-widget/README.md +27 -0
  101. package/.versions/0.2.0/.pi/harnesses/tool-counter-widget/index.ts +66 -0
  102. package/.versions/0.2.0/.pi/harnesses/tool-counter-widget/package.json +6 -0
  103. package/.versions/0.2.0/.pi/prompts/build.md +24 -0
  104. package/.versions/0.2.0/.pi/prompts/code-simplify.md +22 -0
  105. package/.versions/0.2.0/.pi/prompts/doctor-agent-skills.md +13 -0
  106. package/.versions/0.2.0/.pi/prompts/plan.md +16 -0
  107. package/.versions/0.2.0/.pi/prompts/review.md +16 -0
  108. package/.versions/0.2.0/.pi/prompts/setup-agent-skills.md +19 -0
  109. package/.versions/0.2.0/.pi/prompts/ship.md +17 -0
  110. package/.versions/0.2.0/.pi/prompts/spec.md +15 -0
  111. package/.versions/0.2.0/.pi/prompts/test.md +19 -0
  112. package/.versions/0.2.0/.pi/skills/bowser/SKILL.md +114 -0
  113. package/.versions/0.2.0/.version +1 -0
  114. package/.versions/0.2.0/agents/builder.md +6 -0
  115. package/.versions/0.2.0/agents/code-reviewer.md +93 -0
  116. package/.versions/0.2.0/agents/documenter.md +6 -0
  117. package/.versions/0.2.0/agents/plan-reviewer.md +22 -0
  118. package/.versions/0.2.0/agents/planner.md +6 -0
  119. package/.versions/0.2.0/agents/scout.md +6 -0
  120. package/.versions/0.2.0/agents/security-auditor.md +97 -0
  121. package/.versions/0.2.0/agents/test-engineer.md +89 -0
  122. package/.versions/0.2.0/hooks/SIMPLIFY-IGNORE.md +90 -0
  123. package/.versions/0.2.0/hooks/hooks.json +14 -0
  124. package/.versions/0.2.0/hooks/session-start.sh +74 -0
  125. package/.versions/0.2.0/hooks/simplify-ignore-test.sh +247 -0
  126. package/.versions/0.2.0/hooks/simplify-ignore.sh +302 -0
  127. package/.versions/0.2.0/references/accessibility-checklist.md +159 -0
  128. package/.versions/0.2.0/references/performance-checklist.md +121 -0
  129. package/.versions/0.2.0/references/prompting-patterns.md +380 -0
  130. package/.versions/0.2.0/references/security-checklist.md +134 -0
  131. package/.versions/0.2.0/references/testing-patterns.md +236 -0
  132. package/.versions/0.2.0/skills/api-and-interface-design/SKILL.md +294 -0
  133. package/.versions/0.2.0/skills/browser-testing-with-devtools/SKILL.md +335 -0
  134. package/.versions/0.2.0/skills/ci-cd-and-automation/SKILL.md +390 -0
  135. package/.versions/0.2.0/skills/code-review-and-quality/SKILL.md +347 -0
  136. package/.versions/0.2.0/skills/code-simplification/SKILL.md +331 -0
  137. package/.versions/0.2.0/skills/context-engineering/SKILL.md +291 -0
  138. package/.versions/0.2.0/skills/debugging-and-error-recovery/SKILL.md +300 -0
  139. package/.versions/0.2.0/skills/deprecation-and-migration/SKILL.md +206 -0
  140. package/.versions/0.2.0/skills/designing-agents/SKILL.md +394 -0
  141. package/.versions/0.2.0/skills/designing-agents/pi-harness-authoring.md +213 -0
  142. package/.versions/0.2.0/skills/documentation-and-adrs/SKILL.md +278 -0
  143. package/.versions/0.2.0/skills/frontend-ui-engineering/SKILL.md +322 -0
  144. package/.versions/0.2.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
  145. package/.versions/0.2.0/skills/guided-workspace-setup/SKILL.md +331 -0
  146. package/.versions/0.2.0/skills/idea-refine/SKILL.md +178 -0
  147. package/.versions/0.2.0/skills/idea-refine/examples.md +238 -0
  148. package/.versions/0.2.0/skills/idea-refine/frameworks.md +99 -0
  149. package/.versions/0.2.0/skills/idea-refine/refinement-criteria.md +113 -0
  150. package/.versions/0.2.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
  151. package/.versions/0.2.0/skills/incremental-implementation/SKILL.md +279 -0
  152. package/.versions/0.2.0/skills/performance-optimization/SKILL.md +350 -0
  153. package/.versions/0.2.0/skills/planning-and-task-breakdown/SKILL.md +237 -0
  154. package/.versions/0.2.0/skills/security-and-hardening/SKILL.md +349 -0
  155. package/.versions/0.2.0/skills/shipping-and-launch/SKILL.md +309 -0
  156. package/.versions/0.2.0/skills/source-driven-development/SKILL.md +194 -0
  157. package/.versions/0.2.0/skills/spec-driven-development/SKILL.md +237 -0
  158. package/.versions/0.2.0/skills/test-driven-development/SKILL.md +379 -0
  159. package/.versions/0.2.0/skills/using-agent-skills/SKILL.md +176 -0
  160. package/.versions/0.3.0/.claude/commands/build.md +18 -0
  161. package/.versions/0.3.0/.claude/commands/code-simplify.md +22 -0
  162. package/.versions/0.3.0/.claude/commands/design-agent.md +14 -0
  163. package/.versions/0.3.0/.claude/commands/doctor-agent-skills.md +13 -0
  164. package/.versions/0.3.0/.claude/commands/plan.md +16 -0
  165. package/.versions/0.3.0/.claude/commands/prime.md +22 -0
  166. package/.versions/0.3.0/.claude/commands/review.md +16 -0
  167. package/.versions/0.3.0/.claude/commands/setup-agent-skills.md +19 -0
  168. package/.versions/0.3.0/.claude/commands/ship.md +17 -0
  169. package/.versions/0.3.0/.claude/commands/spec.md +15 -0
  170. package/.versions/0.3.0/.claude/commands/test.md +19 -0
  171. package/.versions/0.3.0/.opencode/commands/as-build.md +17 -0
  172. package/.versions/0.3.0/.opencode/commands/as-code-simplify.md +16 -0
  173. package/.versions/0.3.0/.opencode/commands/as-design-agent.md +15 -0
  174. package/.versions/0.3.0/.opencode/commands/as-doctor-agent-skills.md +11 -0
  175. package/.versions/0.3.0/.opencode/commands/as-plan.md +16 -0
  176. package/.versions/0.3.0/.opencode/commands/as-prime.md +22 -0
  177. package/.versions/0.3.0/.opencode/commands/as-review.md +15 -0
  178. package/.versions/0.3.0/.opencode/commands/as-setup-agent-skills.md +11 -0
  179. package/.versions/0.3.0/.opencode/commands/as-ship.md +16 -0
  180. package/.versions/0.3.0/.opencode/commands/as-spec.md +16 -0
  181. package/.versions/0.3.0/.opencode/commands/as-test.md +21 -0
  182. package/.versions/0.3.0/.pi/agents/agent-chain.yaml +49 -0
  183. package/.versions/0.3.0/.pi/agents/bowser.md +19 -0
  184. package/.versions/0.3.0/.pi/agents/pi-pi/agent-expert.md +98 -0
  185. package/.versions/0.3.0/.pi/agents/pi-pi/cli-expert.md +41 -0
  186. package/.versions/0.3.0/.pi/agents/pi-pi/config-expert.md +63 -0
  187. package/.versions/0.3.0/.pi/agents/pi-pi/ext-expert.md +43 -0
  188. package/.versions/0.3.0/.pi/agents/pi-pi/keybinding-expert.md +134 -0
  189. package/.versions/0.3.0/.pi/agents/pi-pi/pi-orchestrator.md +57 -0
  190. package/.versions/0.3.0/.pi/agents/pi-pi/prompt-expert.md +70 -0
  191. package/.versions/0.3.0/.pi/agents/pi-pi/skill-expert.md +42 -0
  192. package/.versions/0.3.0/.pi/agents/pi-pi/theme-expert.md +40 -0
  193. package/.versions/0.3.0/.pi/agents/pi-pi/tui-expert.md +85 -0
  194. package/.versions/0.3.0/.pi/agents/teams.yaml +31 -0
  195. package/.versions/0.3.0/.pi/damage-control-rules.yaml +278 -0
  196. package/.versions/0.3.0/.pi/extensions/agent-skills-update-check/README.md +58 -0
  197. package/.versions/0.3.0/.pi/extensions/agent-skills-update-check/index.ts +161 -0
  198. package/.versions/0.3.0/.pi/extensions/agent-skills-update-check/package.json +6 -0
  199. package/.versions/0.3.0/.pi/extensions/chrome-devtools-mcp/README.md +39 -0
  200. package/.versions/0.3.0/.pi/extensions/chrome-devtools-mcp/index.ts +61 -0
  201. package/.versions/0.3.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  202. package/.versions/0.3.0/.pi/extensions/compact-and-continue/README.md +42 -0
  203. package/.versions/0.3.0/.pi/extensions/compact-and-continue/index.ts +120 -0
  204. package/.versions/0.3.0/.pi/extensions/compact-and-continue/package.json +6 -0
  205. package/.versions/0.3.0/.pi/extensions/mcp-bridge/README.md +46 -0
  206. package/.versions/0.3.0/.pi/extensions/mcp-bridge/index.ts +206 -0
  207. package/.versions/0.3.0/.pi/extensions/mcp-bridge/package.json +6 -0
  208. package/.versions/0.3.0/.pi/extensions/package-lock.json +1143 -0
  209. package/.versions/0.3.0/.pi/extensions/package.json +9 -0
  210. package/.versions/0.3.0/.pi/harnesses/agent-chain/README.md +37 -0
  211. package/.versions/0.3.0/.pi/harnesses/agent-chain/index.ts +795 -0
  212. package/.versions/0.3.0/.pi/harnesses/agent-chain/package.json +6 -0
  213. package/.versions/0.3.0/.pi/harnesses/agent-team/README.md +38 -0
  214. package/.versions/0.3.0/.pi/harnesses/agent-team/index.ts +732 -0
  215. package/.versions/0.3.0/.pi/harnesses/agent-team/package.json +6 -0
  216. package/.versions/0.3.0/.pi/harnesses/coms/README.md +36 -0
  217. package/.versions/0.3.0/.pi/harnesses/coms/index.ts +1595 -0
  218. package/.versions/0.3.0/.pi/harnesses/coms/package.json +6 -0
  219. package/.versions/0.3.0/.pi/harnesses/coms-net/README.md +46 -0
  220. package/.versions/0.3.0/.pi/harnesses/coms-net/index.ts +1637 -0
  221. package/.versions/0.3.0/.pi/harnesses/coms-net/package.json +6 -0
  222. package/.versions/0.3.0/.pi/harnesses/damage-control/README.md +38 -0
  223. package/.versions/0.3.0/.pi/harnesses/damage-control/index.ts +207 -0
  224. package/.versions/0.3.0/.pi/harnesses/damage-control/package.json +6 -0
  225. package/.versions/0.3.0/.pi/harnesses/damage-control-continue/README.md +37 -0
  226. package/.versions/0.3.0/.pi/harnesses/damage-control-continue/index.ts +234 -0
  227. package/.versions/0.3.0/.pi/harnesses/damage-control-continue/package.json +6 -0
  228. package/.versions/0.3.0/.pi/harnesses/minimal/README.md +27 -0
  229. package/.versions/0.3.0/.pi/harnesses/minimal/index.ts +32 -0
  230. package/.versions/0.3.0/.pi/harnesses/minimal/package.json +6 -0
  231. package/.versions/0.3.0/.pi/harnesses/package-lock.json +35 -0
  232. package/.versions/0.3.0/.pi/harnesses/package.json +9 -0
  233. package/.versions/0.3.0/.pi/harnesses/pi-pi/README.md +39 -0
  234. package/.versions/0.3.0/.pi/harnesses/pi-pi/index.ts +631 -0
  235. package/.versions/0.3.0/.pi/harnesses/pi-pi/package.json +6 -0
  236. package/.versions/0.3.0/.pi/harnesses/purpose-gate/README.md +27 -0
  237. package/.versions/0.3.0/.pi/harnesses/purpose-gate/index.ts +82 -0
  238. package/.versions/0.3.0/.pi/harnesses/purpose-gate/package.json +6 -0
  239. package/.versions/0.3.0/.pi/harnesses/session-replay/README.md +28 -0
  240. package/.versions/0.3.0/.pi/harnesses/session-replay/index.ts +214 -0
  241. package/.versions/0.3.0/.pi/harnesses/session-replay/package.json +6 -0
  242. package/.versions/0.3.0/.pi/harnesses/subagent-widget/README.md +36 -0
  243. package/.versions/0.3.0/.pi/harnesses/subagent-widget/index.ts +479 -0
  244. package/.versions/0.3.0/.pi/harnesses/subagent-widget/package.json +6 -0
  245. package/.versions/0.3.0/.pi/harnesses/system-select/README.md +39 -0
  246. package/.versions/0.3.0/.pi/harnesses/system-select/index.ts +165 -0
  247. package/.versions/0.3.0/.pi/harnesses/system-select/package.json +6 -0
  248. package/.versions/0.3.0/.pi/harnesses/tilldone/README.md +35 -0
  249. package/.versions/0.3.0/.pi/harnesses/tilldone/index.ts +724 -0
  250. package/.versions/0.3.0/.pi/harnesses/tilldone/package.json +6 -0
  251. package/.versions/0.3.0/.pi/harnesses/tool-counter/README.md +31 -0
  252. package/.versions/0.3.0/.pi/harnesses/tool-counter/index.ts +100 -0
  253. package/.versions/0.3.0/.pi/harnesses/tool-counter/package.json +6 -0
  254. package/.versions/0.3.0/.pi/harnesses/tool-counter-widget/README.md +27 -0
  255. package/.versions/0.3.0/.pi/harnesses/tool-counter-widget/index.ts +66 -0
  256. package/.versions/0.3.0/.pi/harnesses/tool-counter-widget/package.json +6 -0
  257. package/.versions/0.3.0/.pi/prompts/build.md +24 -0
  258. package/.versions/0.3.0/.pi/prompts/code-simplify.md +22 -0
  259. package/.versions/0.3.0/.pi/prompts/doctor-agent-skills.md +13 -0
  260. package/.versions/0.3.0/.pi/prompts/plan.md +16 -0
  261. package/.versions/0.3.0/.pi/prompts/review.md +16 -0
  262. package/.versions/0.3.0/.pi/prompts/setup-agent-skills.md +19 -0
  263. package/.versions/0.3.0/.pi/prompts/ship.md +17 -0
  264. package/.versions/0.3.0/.pi/prompts/spec.md +15 -0
  265. package/.versions/0.3.0/.pi/prompts/test.md +19 -0
  266. package/.versions/0.3.0/.pi/skills/bowser/SKILL.md +114 -0
  267. package/.versions/0.3.0/.version +1 -0
  268. package/.versions/0.3.0/agents/builder.md +6 -0
  269. package/.versions/0.3.0/agents/code-reviewer.md +93 -0
  270. package/.versions/0.3.0/agents/documenter.md +6 -0
  271. package/.versions/0.3.0/agents/plan-reviewer.md +22 -0
  272. package/.versions/0.3.0/agents/planner.md +6 -0
  273. package/.versions/0.3.0/agents/scout.md +6 -0
  274. package/.versions/0.3.0/agents/security-auditor.md +97 -0
  275. package/.versions/0.3.0/agents/test-engineer.md +89 -0
  276. package/.versions/0.3.0/hooks/SIMPLIFY-IGNORE.md +90 -0
  277. package/.versions/0.3.0/hooks/hooks.json +14 -0
  278. package/.versions/0.3.0/hooks/session-start.sh +74 -0
  279. package/.versions/0.3.0/hooks/simplify-ignore-test.sh +247 -0
  280. package/.versions/0.3.0/hooks/simplify-ignore.sh +302 -0
  281. package/.versions/0.3.0/references/accessibility-checklist.md +159 -0
  282. package/.versions/0.3.0/references/performance-checklist.md +121 -0
  283. package/.versions/0.3.0/references/prompting-patterns.md +380 -0
  284. package/.versions/0.3.0/references/security-checklist.md +134 -0
  285. package/.versions/0.3.0/references/testing-patterns.md +236 -0
  286. package/.versions/0.3.0/skills/api-and-interface-design/SKILL.md +294 -0
  287. package/.versions/0.3.0/skills/browser-testing-with-devtools/SKILL.md +335 -0
  288. package/.versions/0.3.0/skills/ci-cd-and-automation/SKILL.md +390 -0
  289. package/.versions/0.3.0/skills/code-review-and-quality/SKILL.md +347 -0
  290. package/.versions/0.3.0/skills/code-simplification/SKILL.md +331 -0
  291. package/.versions/0.3.0/skills/context-engineering/SKILL.md +291 -0
  292. package/.versions/0.3.0/skills/debugging-and-error-recovery/SKILL.md +300 -0
  293. package/.versions/0.3.0/skills/deprecation-and-migration/SKILL.md +206 -0
  294. package/.versions/0.3.0/skills/designing-agents/SKILL.md +394 -0
  295. package/.versions/0.3.0/skills/designing-agents/pi-harness-authoring.md +213 -0
  296. package/.versions/0.3.0/skills/documentation-and-adrs/SKILL.md +278 -0
  297. package/.versions/0.3.0/skills/frontend-ui-engineering/SKILL.md +322 -0
  298. package/.versions/0.3.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
  299. package/.versions/0.3.0/skills/guided-workspace-setup/SKILL.md +331 -0
  300. package/.versions/0.3.0/skills/idea-refine/SKILL.md +178 -0
  301. package/.versions/0.3.0/skills/idea-refine/examples.md +238 -0
  302. package/.versions/0.3.0/skills/idea-refine/frameworks.md +99 -0
  303. package/.versions/0.3.0/skills/idea-refine/refinement-criteria.md +113 -0
  304. package/.versions/0.3.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
  305. package/.versions/0.3.0/skills/incremental-implementation/SKILL.md +279 -0
  306. package/.versions/0.3.0/skills/performance-optimization/SKILL.md +350 -0
  307. package/.versions/0.3.0/skills/planning-and-task-breakdown/SKILL.md +237 -0
  308. package/.versions/0.3.0/skills/security-and-hardening/SKILL.md +349 -0
  309. package/.versions/0.3.0/skills/shipping-and-launch/SKILL.md +309 -0
  310. package/.versions/0.3.0/skills/source-driven-development/SKILL.md +194 -0
  311. package/.versions/0.3.0/skills/spec-driven-development/SKILL.md +237 -0
  312. package/.versions/0.3.0/skills/test-driven-development/SKILL.md +379 -0
  313. package/.versions/0.3.0/skills/using-agent-skills/SKILL.md +176 -0
  314. package/CHANGELOG.md +108 -0
  315. package/README.md +5 -5
  316. package/bin/cli.js +133 -22
  317. package/bin/lib/bootstrap.js +254 -0
  318. package/bin/lib/doctor.js +1 -1
  319. package/bin/lib/update-notifier.js +195 -0
  320. package/docs/getting-started.md +2 -2
  321. package/docs/npm-install.md +91 -8
  322. package/hooks/session-start.sh +66 -12
  323. package/package.json +1 -1
  324. package/skills/guided-workspace-setup/SKILL.md +41 -3
  325. /package/.claude/commands/{setup.md → setup-agent-skills.md} +0 -0
  326. /package/.opencode/commands/{as-doctor.md → as-doctor-agent-skills.md} +0 -0
  327. /package/.opencode/commands/{as-setup.md → as-setup-agent-skills.md} +0 -0
  328. /package/.pi/prompts/{setup.md → setup-agent-skills.md} +0 -0
@@ -0,0 +1,380 @@
1
+ # Prompting Patterns Reference
2
+
3
+ Consolidated prompt-engineering best practices for authoring instructions that coding agents will follow. Use alongside the `designing-agents`, `context-engineering`, and `using-agent-skills` skills, and consult this file before finalizing any agent persona, slash command, skill, pi harness, or rule file.
4
+
5
+ ## How to Use This Reference
6
+
7
+ Three primary audiences:
8
+
9
+ 1. **Persona authors** writing files under `agents/` — check sections 1-3, 6, 7, 12 before writing.
10
+ 2. **Skill authors** writing files under `skills/` — check sections 1, 2, 4, 6.4, 7, 12 before writing.
11
+ 3. **Rule-file authors** writing project rules (CLAUDE.md, AGENTS.md, or supplementary rule files) — check sections 1.4, 2, 9, 11, 12.
12
+
13
+ Source attribution key: **[A]** = Anthropic, **[O]** = OpenAI, **[A+O]** = both vendors agree.
14
+
15
+ ## Table of Contents
16
+
17
+ 1. [Structural Foundations](#1-structural-foundations)
18
+ 2. [Clarity and Specificity](#2-clarity-and-specificity)
19
+ 3. [Role and Identity](#3-role-and-identity)
20
+ 4. [Examples (Few-Shot Prompting)](#4-examples-few-shot-prompting)
21
+ 5. [Tool Use and Function Calling](#5-tool-use-and-function-calling)
22
+ 6. [Agentic Behavior](#6-agentic-behavior)
23
+ 7. [Output Control](#7-output-control)
24
+ 8. [Thinking and Reasoning](#8-thinking-and-reasoning)
25
+ 9. [Layered Configuration Architecture](#9-layered-configuration-architecture)
26
+ 10. [Long-Horizon and Multi-Session Workflows](#10-long-horizon-and-multi-session-workflows)
27
+ 11. [Prompt Maintenance and Iteration](#11-prompt-maintenance-and-iteration)
28
+ 12. [Anti-Patterns to Avoid](#12-anti-patterns-to-avoid)
29
+ 13. [Sources](#sources)
30
+
31
+ ---
32
+
33
+ ## 1. Structural Foundations
34
+
35
+ ### 1.1 Use a Clear, Hierarchical Section Layout [A+O]
36
+
37
+ Structure prompts and rules with labeled sections using Markdown headers or XML tags. A recommended template:
38
+
39
+ ```
40
+ # Role and Objective
41
+ # Instructions
42
+ ## Sub-categories
43
+ # Constraints
44
+ # Output Format
45
+ # Examples
46
+ ```
47
+
48
+ - **[O]** Models trained on instruction-following (GPT-4.1+, Claude 4+) follow instructions more literally. Clear section labels help the model locate and apply the right rules at the right time.
49
+ - **[A]** Use numbered lists or bullet points when order or completeness matters.
50
+
51
+ ### 1.2 Use XML Tags for Structured Sections [A+O]
52
+
53
+ - **[A]** XML tags are the preferred delimiter for separating instructions, context, examples, and variable inputs. Use consistent, descriptive tag names (`<instructions>`, `<context>`, `<constraints>`). Nest tags when content has natural hierarchy.
54
+ - **[O]** Use XML tags for nested examples and metadata-tagged documents. Use Markdown for prose sections.
55
+ - **[A+O]** Avoid JSON for large document collections — both vendors report performance degradation.
56
+
57
+ ### 1.3 Instruction Placement Strategy [O]
58
+
59
+ For long-context prompts (20K+ tokens), place critical instructions at both the beginning **and** end of the prompt (the "sandwich" approach). This yields the best retrieval and adherence rates.
60
+
61
+ ### 1.4 Put Data Above Instructions [A]
62
+
63
+ Place longform data (documents, code, reference material) at the top of the prompt, with instructions and queries at the end. Anthropic testing showed up to 30% improved response quality.
64
+
65
+ ### 1.5 Later Instructions Take Priority [O]
66
+
67
+ In GPT-4.1+, when instructions conflict, the model prioritizes instructions appearing later. Use this to create a natural override hierarchy — put the most specific or important rules last.
68
+
69
+ ---
70
+
71
+ ## 2. Clarity and Specificity
72
+
73
+ ### 2.1 Be Explicit, Not Implicit [A+O]
74
+
75
+ Treat the model like a brilliant but new team member who lacks context on your norms. Specify everything explicitly.
76
+
77
+ - **[A]** Golden rule: show your prompt to a colleague with minimal context. If they would be confused, the model will be too.
78
+ - **[O]** Newer models do exactly what you say. A single clarifying sentence can redirect behavior, but omissions lead to undesired output.
79
+ - **[A+O]** Instead of "write clean code," specify: "Use descriptive variable names. Extract repeated logic into helpers. Add JSDoc to exported functions."
80
+
81
+ ### 2.2 Tell the Model What TO DO, Not What NOT to Do [A]
82
+
83
+ Positive instructions are more effective than prohibitions.
84
+
85
+ - Instead of: "Do not use markdown"
86
+ - Write: "Your response should be composed of smoothly flowing prose paragraphs."
87
+
88
+ ### 2.3 Explain WHY Behind Rules [A]
89
+
90
+ Providing motivation behind instructions helps the model generalize correctly and handle edge cases better.
91
+
92
+ - Instead of: "NEVER use ellipses"
93
+ - Write: "Never use ellipses because the response will be read aloud by a text-to-speech engine that cannot pronounce them."
94
+ - Instead of: "Always use absolute paths"
95
+ - Write: "Use absolute paths because the working directory resets between shell calls, so relative paths will break."
96
+
97
+ ### 2.4 Eliminate Contradictions [O]
98
+
99
+ Thoroughly review prompts for ambiguities and contradictions. Reasoning models (o1/o3, Claude extended thinking) expend tokens trying to reconcile conflicting directives rather than ignoring them.
100
+
101
+ - Example conflict: "Be concise" + "Err on the side of completeness."
102
+ - Resolution: "Default to concise responses (2-5 sentences). Provide detailed responses only when the change spans more than 3 files or the user explicitly requests detail."
103
+
104
+ ### 2.5 Remove Unnecessary Emphasis Patterns [A+O]
105
+
106
+ - **[O]** Avoid ALL-CAPS emphasis and reward/punishment language. These are unnecessary for modern models (GPT-4.1+) and can be counterproductive.
107
+ - **[A]** Replace "CRITICAL: You MUST use this tool when..." with normal language like "Use this tool when..." Claude 4+ models are significantly more responsive to the system prompt; aggressive language causes overtriggering.
108
+
109
+ ---
110
+
111
+ ## 3. Role and Identity
112
+
113
+ ### 3.1 Set a Role [A+O]
114
+
115
+ - **[A]** Set a role in the system prompt to focus behavior and tone. Even a single sentence makes a difference.
116
+ - **[O]** Frame coding agents as an autonomous senior pair-programmer who gathers context, plans, implements, tests, and refines without waiting for intermediate prompts.
117
+
118
+ ### 3.2 Scale Role Complexity to Task [A]
119
+
120
+ For simple tasks, a one-line role suffices. For complex agent systems, describe the persona's expertise, priorities, and behavioral constraints in detail.
121
+
122
+ ---
123
+
124
+ ## 4. Examples (Few-Shot Prompting)
125
+
126
+ ### 4.1 Include Relevant Examples [A+O]
127
+
128
+ - **[A]** Include 3-5 well-crafted examples to steer output format, tone, and structure. Wrap examples in `<example>` tags so the model distinguishes them from instructions.
129
+ - **[O]** Combine few-shot examples into a concise YAML-style or bulleted block. Place them in a dedicated `# Examples` section.
130
+
131
+ ### 4.2 Example Quality Requirements [A]
132
+
133
+ Good examples must be:
134
+ - **Relevant** — mirror your actual use case closely.
135
+ - **Diverse** — cover edge cases to prevent unintended pattern-matching.
136
+ - **Structured** — wrapped in tags to distinguish from instructions.
137
+
138
+ ### 4.3 Reasoning Models Need Fewer Examples [O]
139
+
140
+ For reasoning models (o1/o3), use zero-shot or at most one example. Multiple examples constrain internal reasoning rather than helping it.
141
+
142
+ ### 4.4 Show Reasoning Patterns in Examples [A]
143
+
144
+ Include `<thinking>` tags inside few-shot examples to demonstrate desired reasoning patterns. The model will generalize that reasoning style.
145
+
146
+ ---
147
+
148
+ ## 5. Tool Use and Function Calling
149
+
150
+ ### 5.1 Use Native API Tool Definitions [O]
151
+
152
+ Use the API-native `tools` field rather than manually injecting tool descriptions into prompt text. OpenAI testing showed 2% performance gain.
153
+
154
+ ### 5.2 Tool Description Best Practices [A+O]
155
+
156
+ - **[A+O]** Use clear, semantically meaningful tool names.
157
+ - **[O]** Include "when to use" and "when not to use" guidance.
158
+ - **[O]** Add a safety valve: "If insufficient information to call the tool, ask the user."
159
+ - **[A]** Use normal language instead of aggressive prompting. Replace "Default to using [tool]" with "Use [tool] when it would enhance your understanding of the problem."
160
+
161
+ ### 5.3 Enable Parallel Tool Calls [A+O]
162
+
163
+ - **[A+O]** Explicitly prompt for parallel tool execution when calls are independent.
164
+ - **[A]** Recommended phrasing: "If you intend to call multiple tools and there are no dependencies between the tool calls, make all independent calls in parallel. If some calls depend on previous results, do NOT call them in parallel."
165
+ - **[O]** "Think first before any tool call and decide all needed files upfront. Batch everything together."
166
+
167
+ ### 5.4 Prefer Dedicated Tools Over Shell [A+O]
168
+
169
+ - **[A]** Use Read instead of cat, Edit instead of sed, Grep instead of grep.
170
+ - **[O]** Use apply_patch, read_file, semantic_search as defaults. Only invoke the shell when no specialized tool exists.
171
+
172
+ ### 5.5 Add Tools Incrementally [O]
173
+
174
+ Start with 1-2 tools that eliminate current manual loops. Adding too many tools at once confuses tool selection and increases incorrect calls.
175
+
176
+ ---
177
+
178
+ ## 6. Agentic Behavior
179
+
180
+ ### 6.1 The Three Critical Agent Instructions [O]
181
+
182
+ Anchor every coding agent prompt with:
183
+
184
+ 1. **Persistence:** "Keep going until the user's query is completely resolved. Only terminate when you are sure the problem is solved."
185
+ 2. **Tool utilization:** "If you are not sure about file content or codebase structure, use your tools to read files. Do NOT guess or make up an answer."
186
+ 3. **Planning:** Require explicit reasoning steps before tool calls rather than silent tool-call chains.
187
+
188
+ OpenAI testing showed these three instructions boosted SWE-bench scores by ~20%.
189
+
190
+ ### 6.2 Provide Clear Completion Criteria [O]
191
+
192
+ Every task prompt should include a "Done When" section. Example: "Done when: all existing tests pass, the new endpoint returns the correct schema, and no TypeScript errors remain."
193
+
194
+ ### 6.3 Investigate Before Answering [A]
195
+
196
+ Never speculate about code you have not opened. If the user references a specific file, read it before answering. Give grounded, hallucination-free answers.
197
+
198
+ ### 6.4 Prevent Overengineering [A]
199
+
200
+ Explicitly instruct:
201
+ - Do not add features, refactor code, or make "improvements" beyond what was asked.
202
+ - Do not add docstrings, comments, or type annotations to code you did not change.
203
+ - Do not add error handling for scenarios that cannot happen. Only validate at system boundaries.
204
+ - Do not create helpers or utilities for one-time operations.
205
+
206
+ ### 6.5 Prevent Test-Focused Hard-Coding [A]
207
+
208
+ "Implement solutions that work correctly for all valid inputs, not just the test cases. Do not hard-code values. Tests verify correctness — they do not define the solution."
209
+
210
+ ### 6.6 Balance Autonomy and Safety [A+O]
211
+
212
+ - **[A]** Consider reversibility and blast radius. Take local, reversible actions freely. Confirm before destructive operations (deleting files, force-pushing, dropping tables).
213
+ - **[O]** Start restrictive, widen permissions based on observed needs. Do not grant full permissions before understanding workflows.
214
+
215
+ ### 6.7 Subagent Orchestration [A]
216
+
217
+ Use subagents when tasks can run in parallel, require isolated context, or involve independent workstreams. For simple tasks, single-file edits, or tasks requiring context continuity, work directly.
218
+
219
+ ### 6.8 Require Verification Loop [O]
220
+
221
+ Include a verification loop in agent workflows:
222
+ 1. Write or update tests for changes.
223
+ 2. Run relevant test suites.
224
+ 3. Execute lint, formatting, and type checks.
225
+ 4. Confirm final behavior matches requirements.
226
+ 5. Review diffs for bugs, regressions, or risky patterns.
227
+
228
+ ---
229
+
230
+ ## 7. Output Control
231
+
232
+ ### 7.1 Scale Output to Change Size [O]
233
+
234
+ - Tiny changes (10 lines or fewer): 2-5 sentences, 0-1 short snippet.
235
+ - Medium changes: 6 bullets or fewer, 1-2 snippets (8 lines max each).
236
+ - Large changes: Summarize per file with 1-2 bullets; avoid inlining code.
237
+
238
+ ### 7.2 Reference Files, Don't Reproduce Code [O]
239
+
240
+ Reference file paths instead of showing large code blocks. Show code only when necessary to clarify intent.
241
+
242
+ ### 7.3 Suppress Unnecessary Output [O]
243
+
244
+ Omit build/lint/test logs unless explicitly requested or they reveal blocking errors. Report outcomes, not processes.
245
+
246
+ ### 7.4 Control Format via Prompt Style [A]
247
+
248
+ Match your prompt formatting to desired output formatting. If your prompt is markdown-heavy, the output will be too. Remove markdown from your prompt if you want prose output.
249
+
250
+ ### 7.5 Eliminate Preambles [A]
251
+
252
+ Use direct instructions: "Respond directly without preamble. Do not start with phrases like 'Here is...', 'Based on...', etc."
253
+
254
+ ---
255
+
256
+ ## 8. Thinking and Reasoning
257
+
258
+ ### 8.1 Use Adaptive Thinking [A]
259
+
260
+ Prefer adaptive thinking (`thinking: {type: "adaptive"}`) with the `effort` parameter instead of manual `budget_tokens`. Claude dynamically decides when and how much to think.
261
+
262
+ ### 8.2 Reasoning Effort as a Tuning Knob [A+O]
263
+
264
+ - **[A]** `low` for high-volume, `medium` for most apps, `high` for complex coding, `max` for hardest problems.
265
+ - **[O]** Lower reasoning effort with better prompts can match higher reasoning effort with poor prompts.
266
+
267
+ ### 8.3 Prefer General Instructions Over Prescriptive Steps [A]
268
+
269
+ "Think thoroughly" often produces better reasoning than a hand-written step-by-step plan. Let the model organize its own thinking.
270
+
271
+ ### 8.4 Ask the Model to Self-Check [A]
272
+
273
+ "Before you finish, verify your answer against [test criteria]." This catches errors reliably, especially for coding and math.
274
+
275
+ ### 8.5 Reasoning Models Need Simpler Prompts [O]
276
+
277
+ Do NOT use chain-of-thought instructions ("think step by step") with reasoning models (o1/o3). They generate internal CoT; external prompting conflicts with it and can degrade performance.
278
+
279
+ ---
280
+
281
+ ## 9. Layered Configuration Architecture
282
+
283
+ ### 9.1 Structure Guidance in Layers [O]
284
+
285
+ Build a layered configuration system:
286
+ 1. **Task prompt** — immediate goal, context, constraints, done-when.
287
+ 2. **Rules files** (CLAUDE.md / AGENTS.md) — durable, reusable rules for the repository.
288
+ 3. **Configuration files** — model choice, reasoning effort, sandbox mode.
289
+ 4. **Tools** — external system integrations.
290
+ 5. **Skills** — packaged repeatable workflows.
291
+
292
+ ### 9.2 Keep Rules Files Concise [A+O]
293
+
294
+ - **[O]** "A short, accurate rules file is more useful than a long file full of vague rules." Add rules only after noticing repeated mistakes.
295
+ - **[A]** Keep the always-loaded core small. Load domain and task rules only when the current task needs them.
296
+
297
+ ### 9.3 Hierarchical Override Strategy [O]
298
+
299
+ Use a three-layer override hierarchy (global → repository → subdirectory). General rules are inherited; specific directories can override them.
300
+
301
+ ---
302
+
303
+ ## 10. Long-Horizon and Multi-Session Workflows
304
+
305
+ ### 10.1 Context Persistence [A]
306
+
307
+ Tell the model about context compaction: "Your context window will be automatically compacted as it approaches its limit. Do not stop tasks early due to token budget concerns. Save progress and state to memory before the context window refreshes."
308
+
309
+ ### 10.2 State Management [A]
310
+
311
+ - Use structured JSON for state data (test results, task status).
312
+ - Use freeform text for progress notes.
313
+ - Use git for state tracking across sessions.
314
+ - Create setup scripts to prevent repeated work when continuing from a fresh context.
315
+
316
+ ### 10.3 Resuming Fresh Context Windows [A]
317
+
318
+ Be prescriptive about how the model should resume: "Review progress files, test status, and git logs. Run a fundamental integration test before implementing new features."
319
+
320
+ ---
321
+
322
+ ## 11. Prompt Maintenance and Iteration
323
+
324
+ ### 11.1 Start Minimal, Add Rules for Observed Failures [A+O]
325
+
326
+ - **[O]** Start with the smallest prompt that passes evaluations. Add blocks only when they fix a measured failure mode.
327
+ - **[A]** Dial back anti-laziness prompting. Prompts designed for older models may cause overtriggering on newer ones.
328
+
329
+ ### 11.2 Use the Model as Its Own Optimizer [O]
330
+
331
+ When a prompt underperforms, ask the model to diagnose root causes and propose surgical revisions. Focus on clarifying conflicts and tightening vague rules rather than full rewrites.
332
+
333
+ ### 11.3 Build Evaluations Before Changing Prompts [O]
334
+
335
+ Build evaluation systems to measure prompt behavior before deploying changes. Pin production applications to specific model snapshots. Run evaluations every time you publish prompt changes.
336
+
337
+ ### 11.4 Audit for Model Generation Changes [A]
338
+
339
+ When upgrading to a new model generation:
340
+ - Replace blanket defaults with targeted instructions.
341
+ - Remove aggressive "If in doubt, use [tool]" prompting.
342
+ - Test for overtriggering and overengineering.
343
+ - Adjust emphasis patterns (remove ALL-CAPS, reward/punishment language).
344
+
345
+ ---
346
+
347
+ ## 12. Anti-Patterns to Avoid [A+O]
348
+
349
+ | Anti-Pattern | Source | Fix |
350
+ |---|---|---|
351
+ | Overloading prompts with durable rules | O | Move to rules files or repository docs |
352
+ | No build/test feedback to agent | O | Include verification loop |
353
+ | Skipping planning on complex tasks | O | Use plan mode or require explicit planning |
354
+ | ALL-CAPS and reward language | A+O | Use structured formatting instead |
355
+ | Contradictory instructions | O | Audit and resolve before deployment |
356
+ | Aggressive tool prompting ("MUST use") | A | Use normal language ("Use this when...") |
357
+ | Many few-shot examples for reasoning models | O | Use zero-shot or one example max |
358
+ | Not explaining WHY behind rules | A | Add motivation to help generalization |
359
+ | Telling model what NOT to do | A | Reframe as positive instructions |
360
+ | One thread per project instead of per task | O | One thread per coherent unit of work |
361
+ | Forcing tool calls without sufficient info | O | Add "ask the user" safety valve |
362
+ | Sample phrases repeated verbatim | O | Instruct variation explicitly |
363
+
364
+ ---
365
+
366
+ ## Sources
367
+
368
+ ### Anthropic
369
+ - [Claude Prompting Best Practices](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview) (consolidated guide)
370
+ - [Prompt Caching](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching)
371
+ - [Extended Thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking)
372
+
373
+ ### OpenAI
374
+ - [GPT-4.1 Prompting Guide](https://developers.openai.com/cookbook/examples/gpt4-1_prompting_guide/)
375
+ - [GPT-5 Prompting Guide](https://developers.openai.com/cookbook/examples/gpt-5/gpt-5_prompting_guide/)
376
+ - [GPT-5.1 Prompting Guide](https://developers.openai.com/cookbook/examples/gpt-5/gpt-5-1_prompting_guide/)
377
+ - [Codex Prompting Guide](https://developers.openai.com/cookbook/examples/gpt-5/codex_prompting_guide/)
378
+ - [Codex Best Practices](https://developers.openai.com/codex/learn/best-practices/)
379
+ - [Prompt Engineering Guide](https://developers.openai.com/api/docs/guides/prompt-engineering/)
380
+ - [Reasoning Models Guide](https://platform.openai.com/docs/guides/reasoning)
@@ -0,0 +1,134 @@
1
+ # Security Checklist
2
+
3
+ Quick reference for web application security. Use alongside the `security-and-hardening` skill.
4
+
5
+ ## Table of Contents
6
+
7
+ - [Pre-Commit Checks](#pre-commit-checks)
8
+ - [Authentication](#authentication)
9
+ - [Authorization](#authorization)
10
+ - [Input Validation](#input-validation)
11
+ - [Security Headers](#security-headers)
12
+ - [CORS Configuration](#cors-configuration)
13
+ - [Data Protection](#data-protection)
14
+ - [Dependency Security](#dependency-security)
15
+ - [Error Handling](#error-handling)
16
+ - [OWASP Top 10 Quick Reference](#owasp-top-10-quick-reference)
17
+
18
+ ## Pre-Commit Checks
19
+
20
+ - [ ] No secrets in code (`git diff --cached | grep -i "password\|secret\|api_key\|token"`)
21
+ - [ ] `.gitignore` covers: `.env`, `.env.local`, `*.pem`, `*.key`
22
+ - [ ] `.env.example` uses placeholder values (not real secrets)
23
+
24
+ ## Authentication
25
+
26
+ - [ ] Passwords hashed with bcrypt (≥12 rounds), scrypt, or argon2
27
+ - [ ] Session cookies: `httpOnly`, `secure`, `sameSite: 'lax'`
28
+ - [ ] Session expiration configured (reasonable max-age)
29
+ - [ ] Rate limiting on login endpoint (≤10 attempts per 15 minutes)
30
+ - [ ] Password reset tokens: time-limited (≤1 hour), single-use
31
+ - [ ] Account lockout after repeated failures (optional, with notification)
32
+ - [ ] MFA supported for sensitive operations (optional but recommended)
33
+
34
+ ## Authorization
35
+
36
+ - [ ] Every protected endpoint checks authentication
37
+ - [ ] Every resource access checks ownership/role (prevents IDOR)
38
+ - [ ] Admin endpoints require admin role verification
39
+ - [ ] API keys scoped to minimum necessary permissions
40
+ - [ ] JWT tokens validated (signature, expiration, issuer)
41
+
42
+ ## Input Validation
43
+
44
+ - [ ] All user input validated at system boundaries (API routes, form handlers)
45
+ - [ ] Validation uses allowlists (not denylists)
46
+ - [ ] String lengths constrained (min/max)
47
+ - [ ] Numeric ranges validated
48
+ - [ ] Email, URL, and date formats validated with proper libraries
49
+ - [ ] File uploads: type restricted, size limited, content verified
50
+ - [ ] SQL queries parameterized (no string concatenation)
51
+ - [ ] HTML output encoded (use framework auto-escaping)
52
+ - [ ] URLs validated before redirect (prevent open redirect)
53
+
54
+ ## Security Headers
55
+
56
+ ```
57
+ Content-Security-Policy: default-src 'self'; script-src 'self'
58
+ Strict-Transport-Security: max-age=31536000; includeSubDomains
59
+ X-Content-Type-Options: nosniff
60
+ X-Frame-Options: DENY
61
+ X-XSS-Protection: 0 (disabled, rely on CSP)
62
+ Referrer-Policy: strict-origin-when-cross-origin
63
+ Permissions-Policy: camera=(), microphone=(), geolocation=()
64
+ ```
65
+
66
+ ## CORS Configuration
67
+
68
+ ```typescript
69
+ // Restrictive (recommended)
70
+ cors({
71
+ origin: ['https://yourdomain.com', 'https://app.yourdomain.com'],
72
+ credentials: true,
73
+ methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
74
+ allowedHeaders: ['Content-Type', 'Authorization'],
75
+ })
76
+
77
+ // NEVER use in production:
78
+ cors({ origin: '*' }) // Allows any origin
79
+ ```
80
+
81
+ ## Data Protection
82
+
83
+ - [ ] Sensitive fields excluded from API responses (`passwordHash`, `resetToken`, etc.)
84
+ - [ ] Sensitive data not logged (passwords, tokens, full CC numbers)
85
+ - [ ] PII encrypted at rest (if required by regulation)
86
+ - [ ] HTTPS for all external communication
87
+ - [ ] Database backups encrypted
88
+
89
+ ## Dependency Security
90
+
91
+ ```bash
92
+ # Audit dependencies
93
+ npm audit
94
+
95
+ # Fix automatically where possible
96
+ npm audit fix
97
+
98
+ # Check for critical vulnerabilities
99
+ npm audit --audit-level=critical
100
+
101
+ # Keep dependencies updated
102
+ npx npm-check-updates
103
+ ```
104
+
105
+ ## Error Handling
106
+
107
+ ```typescript
108
+ // Production: generic error, no internals
109
+ res.status(500).json({
110
+ error: { code: 'INTERNAL_ERROR', message: 'Something went wrong' }
111
+ });
112
+
113
+ // NEVER in production:
114
+ res.status(500).json({
115
+ error: err.message,
116
+ stack: err.stack, // Exposes internals
117
+ query: err.sql, // Exposes database details
118
+ });
119
+ ```
120
+
121
+ ## OWASP Top 10 Quick Reference
122
+
123
+ | # | Vulnerability | Prevention |
124
+ |---|---|---|
125
+ | 1 | Broken Access Control | Auth checks on every endpoint, ownership verification |
126
+ | 2 | Cryptographic Failures | HTTPS, strong hashing, no secrets in code |
127
+ | 3 | Injection | Parameterized queries, input validation |
128
+ | 4 | Insecure Design | Threat modeling, spec-driven development |
129
+ | 5 | Security Misconfiguration | Security headers, minimal permissions, audit deps |
130
+ | 6 | Vulnerable Components | `npm audit`, keep deps updated, minimal deps |
131
+ | 7 | Auth Failures | Strong passwords, rate limiting, session management |
132
+ | 8 | Data Integrity Failures | Verify updates/dependencies, signed artifacts |
133
+ | 9 | Logging Failures | Log security events, don't log secrets |
134
+ | 10 | SSRF | Validate/allowlist URLs, restrict outbound requests |