ac-framework 1.2.0 → 1.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 (527) hide show
  1. package/LICENSE +8 -4
  2. package/bin/postinstall.js +23 -0
  3. package/framework/.agent/skills/api-design-principles/SKILL.md +528 -0
  4. package/framework/.agent/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  5. package/framework/.agent/skills/api-design-principles/assets/rest-api-template.py +182 -0
  6. package/framework/.agent/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  7. package/framework/.agent/skills/api-design-principles/references/rest-best-practices.md +408 -0
  8. package/framework/.agent/skills/brainstorming/SKILL.md +54 -0
  9. package/framework/.agent/skills/changelog-generator/SKILL.md +104 -0
  10. package/framework/.agent/skills/code-maintainability/SKILL.md +1108 -0
  11. package/framework/.agent/skills/error-handling-patterns/SKILL.md +641 -0
  12. package/framework/.agent/skills/interface-design/SKILL.md +310 -0
  13. package/framework/.agent/skills/interface-design/references/example.md +86 -0
  14. package/framework/.agent/skills/interface-design/references/principles.md +235 -0
  15. package/framework/.agent/skills/interface-design/references/validation.md +48 -0
  16. package/framework/.agent/skills/project-index/SKILL.md +234 -0
  17. package/framework/.agent/skills/project-index/scripts/scan_codebase.py +47 -0
  18. package/framework/.agent/skills/project-index/templates/agent-template.md +18 -0
  19. package/framework/.agent/skills/project-index/templates/skill-template.md +20 -0
  20. package/framework/.agent/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  21. package/framework/.agent/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  22. package/framework/.agent/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  23. package/framework/.agent/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  24. package/framework/.agent/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  25. package/framework/.agent/skills/systematic-debugging/SKILL.md +296 -0
  26. package/framework/.amazonq/skills/api-design-principles/SKILL.md +528 -0
  27. package/framework/.amazonq/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  28. package/framework/.amazonq/skills/api-design-principles/assets/rest-api-template.py +182 -0
  29. package/framework/.amazonq/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  30. package/framework/.amazonq/skills/api-design-principles/references/rest-best-practices.md +408 -0
  31. package/framework/.amazonq/skills/brainstorming/SKILL.md +54 -0
  32. package/framework/.amazonq/skills/changelog-generator/SKILL.md +104 -0
  33. package/framework/.amazonq/skills/code-maintainability/SKILL.md +1108 -0
  34. package/framework/.amazonq/skills/error-handling-patterns/SKILL.md +641 -0
  35. package/framework/.amazonq/skills/interface-design/SKILL.md +310 -0
  36. package/framework/.amazonq/skills/interface-design/references/example.md +86 -0
  37. package/framework/.amazonq/skills/interface-design/references/principles.md +235 -0
  38. package/framework/.amazonq/skills/interface-design/references/validation.md +48 -0
  39. package/framework/.amazonq/skills/project-index/SKILL.md +234 -0
  40. package/framework/.amazonq/skills/project-index/scripts/scan_codebase.py +47 -0
  41. package/framework/.amazonq/skills/project-index/templates/agent-template.md +18 -0
  42. package/framework/.amazonq/skills/project-index/templates/skill-template.md +20 -0
  43. package/framework/.amazonq/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  44. package/framework/.amazonq/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  45. package/framework/.amazonq/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  46. package/framework/.amazonq/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  47. package/framework/.amazonq/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  48. package/framework/.amazonq/skills/systematic-debugging/SKILL.md +296 -0
  49. package/framework/.augment/skills/api-design-principles/SKILL.md +528 -0
  50. package/framework/.augment/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  51. package/framework/.augment/skills/api-design-principles/assets/rest-api-template.py +182 -0
  52. package/framework/.augment/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  53. package/framework/.augment/skills/api-design-principles/references/rest-best-practices.md +408 -0
  54. package/framework/.augment/skills/brainstorming/SKILL.md +54 -0
  55. package/framework/.augment/skills/changelog-generator/SKILL.md +104 -0
  56. package/framework/.augment/skills/code-maintainability/SKILL.md +1108 -0
  57. package/framework/.augment/skills/error-handling-patterns/SKILL.md +641 -0
  58. package/framework/.augment/skills/interface-design/SKILL.md +310 -0
  59. package/framework/.augment/skills/interface-design/references/example.md +86 -0
  60. package/framework/.augment/skills/interface-design/references/principles.md +235 -0
  61. package/framework/.augment/skills/interface-design/references/validation.md +48 -0
  62. package/framework/.augment/skills/project-index/SKILL.md +234 -0
  63. package/framework/.augment/skills/project-index/scripts/scan_codebase.py +47 -0
  64. package/framework/.augment/skills/project-index/templates/agent-template.md +18 -0
  65. package/framework/.augment/skills/project-index/templates/skill-template.md +20 -0
  66. package/framework/.augment/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  67. package/framework/.augment/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  68. package/framework/.augment/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  69. package/framework/.augment/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  70. package/framework/.augment/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  71. package/framework/.augment/skills/systematic-debugging/SKILL.md +296 -0
  72. package/framework/.claude/skills/api-design-principles/SKILL.md +528 -0
  73. package/framework/.claude/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  74. package/framework/.claude/skills/api-design-principles/assets/rest-api-template.py +182 -0
  75. package/framework/.claude/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  76. package/framework/.claude/skills/api-design-principles/references/rest-best-practices.md +408 -0
  77. package/framework/.claude/skills/brainstorming/SKILL.md +54 -0
  78. package/framework/.claude/skills/changelog-generator/SKILL.md +104 -0
  79. package/framework/.claude/skills/code-maintainability/SKILL.md +1108 -0
  80. package/framework/.claude/skills/error-handling-patterns/SKILL.md +641 -0
  81. package/framework/.claude/skills/interface-design/SKILL.md +310 -0
  82. package/framework/.claude/skills/interface-design/references/example.md +86 -0
  83. package/framework/.claude/skills/interface-design/references/principles.md +235 -0
  84. package/framework/.claude/skills/interface-design/references/validation.md +48 -0
  85. package/framework/.claude/skills/project-index/SKILL.md +234 -0
  86. package/framework/.claude/skills/project-index/scripts/scan_codebase.py +47 -0
  87. package/framework/.claude/skills/project-index/templates/agent-template.md +18 -0
  88. package/framework/.claude/skills/project-index/templates/skill-template.md +20 -0
  89. package/framework/.claude/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  90. package/framework/.claude/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  91. package/framework/.claude/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  92. package/framework/.claude/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  93. package/framework/.claude/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  94. package/framework/.claude/skills/systematic-debugging/SKILL.md +296 -0
  95. package/framework/.cline/skills/api-design-principles/SKILL.md +528 -0
  96. package/framework/.cline/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  97. package/framework/.cline/skills/api-design-principles/assets/rest-api-template.py +182 -0
  98. package/framework/.cline/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  99. package/framework/.cline/skills/api-design-principles/references/rest-best-practices.md +408 -0
  100. package/framework/.cline/skills/brainstorming/SKILL.md +54 -0
  101. package/framework/.cline/skills/changelog-generator/SKILL.md +104 -0
  102. package/framework/.cline/skills/code-maintainability/SKILL.md +1108 -0
  103. package/framework/.cline/skills/error-handling-patterns/SKILL.md +641 -0
  104. package/framework/.cline/skills/interface-design/SKILL.md +310 -0
  105. package/framework/.cline/skills/interface-design/references/example.md +86 -0
  106. package/framework/.cline/skills/interface-design/references/principles.md +235 -0
  107. package/framework/.cline/skills/interface-design/references/validation.md +48 -0
  108. package/framework/.cline/skills/project-index/SKILL.md +234 -0
  109. package/framework/.cline/skills/project-index/scripts/scan_codebase.py +47 -0
  110. package/framework/.cline/skills/project-index/templates/agent-template.md +18 -0
  111. package/framework/.cline/skills/project-index/templates/skill-template.md +20 -0
  112. package/framework/.cline/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  113. package/framework/.cline/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  114. package/framework/.cline/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  115. package/framework/.cline/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  116. package/framework/.cline/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  117. package/framework/.cline/skills/systematic-debugging/SKILL.md +296 -0
  118. package/framework/.codebuddy/skills/api-design-principles/SKILL.md +528 -0
  119. package/framework/.codebuddy/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  120. package/framework/.codebuddy/skills/api-design-principles/assets/rest-api-template.py +182 -0
  121. package/framework/.codebuddy/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  122. package/framework/.codebuddy/skills/api-design-principles/references/rest-best-practices.md +408 -0
  123. package/framework/.codebuddy/skills/brainstorming/SKILL.md +54 -0
  124. package/framework/.codebuddy/skills/changelog-generator/SKILL.md +104 -0
  125. package/framework/.codebuddy/skills/code-maintainability/SKILL.md +1108 -0
  126. package/framework/.codebuddy/skills/error-handling-patterns/SKILL.md +641 -0
  127. package/framework/.codebuddy/skills/interface-design/SKILL.md +310 -0
  128. package/framework/.codebuddy/skills/interface-design/references/example.md +86 -0
  129. package/framework/.codebuddy/skills/interface-design/references/principles.md +235 -0
  130. package/framework/.codebuddy/skills/interface-design/references/validation.md +48 -0
  131. package/framework/.codebuddy/skills/project-index/SKILL.md +234 -0
  132. package/framework/.codebuddy/skills/project-index/scripts/scan_codebase.py +47 -0
  133. package/framework/.codebuddy/skills/project-index/templates/agent-template.md +18 -0
  134. package/framework/.codebuddy/skills/project-index/templates/skill-template.md +20 -0
  135. package/framework/.codebuddy/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  136. package/framework/.codebuddy/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  137. package/framework/.codebuddy/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  138. package/framework/.codebuddy/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  139. package/framework/.codebuddy/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  140. package/framework/.codebuddy/skills/systematic-debugging/SKILL.md +296 -0
  141. package/framework/.codex/skills/api-design-principles/SKILL.md +528 -0
  142. package/framework/.codex/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  143. package/framework/.codex/skills/api-design-principles/assets/rest-api-template.py +182 -0
  144. package/framework/.codex/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  145. package/framework/.codex/skills/api-design-principles/references/rest-best-practices.md +408 -0
  146. package/framework/.codex/skills/brainstorming/SKILL.md +54 -0
  147. package/framework/.codex/skills/changelog-generator/SKILL.md +104 -0
  148. package/framework/.codex/skills/code-maintainability/SKILL.md +1108 -0
  149. package/framework/.codex/skills/error-handling-patterns/SKILL.md +641 -0
  150. package/framework/.codex/skills/interface-design/SKILL.md +310 -0
  151. package/framework/.codex/skills/interface-design/references/example.md +86 -0
  152. package/framework/.codex/skills/interface-design/references/principles.md +235 -0
  153. package/framework/.codex/skills/interface-design/references/validation.md +48 -0
  154. package/framework/.codex/skills/project-index/SKILL.md +234 -0
  155. package/framework/.codex/skills/project-index/scripts/scan_codebase.py +47 -0
  156. package/framework/.codex/skills/project-index/templates/agent-template.md +18 -0
  157. package/framework/.codex/skills/project-index/templates/skill-template.md +20 -0
  158. package/framework/.codex/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  159. package/framework/.codex/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  160. package/framework/.codex/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  161. package/framework/.codex/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  162. package/framework/.codex/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  163. package/framework/.codex/skills/systematic-debugging/SKILL.md +296 -0
  164. package/framework/.continue/skills/api-design-principles/SKILL.md +528 -0
  165. package/framework/.continue/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  166. package/framework/.continue/skills/api-design-principles/assets/rest-api-template.py +182 -0
  167. package/framework/.continue/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  168. package/framework/.continue/skills/api-design-principles/references/rest-best-practices.md +408 -0
  169. package/framework/.continue/skills/brainstorming/SKILL.md +54 -0
  170. package/framework/.continue/skills/changelog-generator/SKILL.md +104 -0
  171. package/framework/.continue/skills/code-maintainability/SKILL.md +1108 -0
  172. package/framework/.continue/skills/error-handling-patterns/SKILL.md +641 -0
  173. package/framework/.continue/skills/interface-design/SKILL.md +310 -0
  174. package/framework/.continue/skills/interface-design/references/example.md +86 -0
  175. package/framework/.continue/skills/interface-design/references/principles.md +235 -0
  176. package/framework/.continue/skills/interface-design/references/validation.md +48 -0
  177. package/framework/.continue/skills/project-index/SKILL.md +234 -0
  178. package/framework/.continue/skills/project-index/scripts/scan_codebase.py +47 -0
  179. package/framework/.continue/skills/project-index/templates/agent-template.md +18 -0
  180. package/framework/.continue/skills/project-index/templates/skill-template.md +20 -0
  181. package/framework/.continue/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  182. package/framework/.continue/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  183. package/framework/.continue/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  184. package/framework/.continue/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  185. package/framework/.continue/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  186. package/framework/.continue/skills/systematic-debugging/SKILL.md +296 -0
  187. package/framework/.cospec/skills/api-design-principles/SKILL.md +528 -0
  188. package/framework/.cospec/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  189. package/framework/.cospec/skills/api-design-principles/assets/rest-api-template.py +182 -0
  190. package/framework/.cospec/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  191. package/framework/.cospec/skills/api-design-principles/references/rest-best-practices.md +408 -0
  192. package/framework/.cospec/skills/brainstorming/SKILL.md +54 -0
  193. package/framework/.cospec/skills/changelog-generator/SKILL.md +104 -0
  194. package/framework/.cospec/skills/code-maintainability/SKILL.md +1108 -0
  195. package/framework/.cospec/skills/error-handling-patterns/SKILL.md +641 -0
  196. package/framework/.cospec/skills/interface-design/SKILL.md +310 -0
  197. package/framework/.cospec/skills/interface-design/references/example.md +86 -0
  198. package/framework/.cospec/skills/interface-design/references/principles.md +235 -0
  199. package/framework/.cospec/skills/interface-design/references/validation.md +48 -0
  200. package/framework/.cospec/skills/project-index/SKILL.md +234 -0
  201. package/framework/.cospec/skills/project-index/scripts/scan_codebase.py +47 -0
  202. package/framework/.cospec/skills/project-index/templates/agent-template.md +18 -0
  203. package/framework/.cospec/skills/project-index/templates/skill-template.md +20 -0
  204. package/framework/.cospec/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  205. package/framework/.cospec/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  206. package/framework/.cospec/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  207. package/framework/.cospec/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  208. package/framework/.cospec/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  209. package/framework/.cospec/skills/systematic-debugging/SKILL.md +296 -0
  210. package/framework/.crush/skills/api-design-principles/SKILL.md +528 -0
  211. package/framework/.crush/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  212. package/framework/.crush/skills/api-design-principles/assets/rest-api-template.py +182 -0
  213. package/framework/.crush/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  214. package/framework/.crush/skills/api-design-principles/references/rest-best-practices.md +408 -0
  215. package/framework/.crush/skills/brainstorming/SKILL.md +54 -0
  216. package/framework/.crush/skills/changelog-generator/SKILL.md +104 -0
  217. package/framework/.crush/skills/code-maintainability/SKILL.md +1108 -0
  218. package/framework/.crush/skills/error-handling-patterns/SKILL.md +641 -0
  219. package/framework/.crush/skills/interface-design/SKILL.md +310 -0
  220. package/framework/.crush/skills/interface-design/references/example.md +86 -0
  221. package/framework/.crush/skills/interface-design/references/principles.md +235 -0
  222. package/framework/.crush/skills/interface-design/references/validation.md +48 -0
  223. package/framework/.crush/skills/project-index/SKILL.md +234 -0
  224. package/framework/.crush/skills/project-index/scripts/scan_codebase.py +47 -0
  225. package/framework/.crush/skills/project-index/templates/agent-template.md +18 -0
  226. package/framework/.crush/skills/project-index/templates/skill-template.md +20 -0
  227. package/framework/.crush/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  228. package/framework/.crush/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  229. package/framework/.crush/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  230. package/framework/.crush/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  231. package/framework/.crush/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  232. package/framework/.crush/skills/systematic-debugging/SKILL.md +296 -0
  233. package/framework/.cursor/skills/api-design-principles/SKILL.md +528 -0
  234. package/framework/.cursor/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  235. package/framework/.cursor/skills/api-design-principles/assets/rest-api-template.py +182 -0
  236. package/framework/.cursor/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  237. package/framework/.cursor/skills/api-design-principles/references/rest-best-practices.md +408 -0
  238. package/framework/.cursor/skills/brainstorming/SKILL.md +54 -0
  239. package/framework/.cursor/skills/changelog-generator/SKILL.md +104 -0
  240. package/framework/.cursor/skills/code-maintainability/SKILL.md +1108 -0
  241. package/framework/.cursor/skills/error-handling-patterns/SKILL.md +641 -0
  242. package/framework/.cursor/skills/interface-design/SKILL.md +310 -0
  243. package/framework/.cursor/skills/interface-design/references/example.md +86 -0
  244. package/framework/.cursor/skills/interface-design/references/principles.md +235 -0
  245. package/framework/.cursor/skills/interface-design/references/validation.md +48 -0
  246. package/framework/.cursor/skills/project-index/SKILL.md +234 -0
  247. package/framework/.cursor/skills/project-index/scripts/scan_codebase.py +47 -0
  248. package/framework/.cursor/skills/project-index/templates/agent-template.md +18 -0
  249. package/framework/.cursor/skills/project-index/templates/skill-template.md +20 -0
  250. package/framework/.cursor/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  251. package/framework/.cursor/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  252. package/framework/.cursor/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  253. package/framework/.cursor/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  254. package/framework/.cursor/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  255. package/framework/.cursor/skills/systematic-debugging/SKILL.md +296 -0
  256. package/framework/.factory/skills/api-design-principles/SKILL.md +528 -0
  257. package/framework/.factory/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  258. package/framework/.factory/skills/api-design-principles/assets/rest-api-template.py +182 -0
  259. package/framework/.factory/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  260. package/framework/.factory/skills/api-design-principles/references/rest-best-practices.md +408 -0
  261. package/framework/.factory/skills/brainstorming/SKILL.md +54 -0
  262. package/framework/.factory/skills/changelog-generator/SKILL.md +104 -0
  263. package/framework/.factory/skills/code-maintainability/SKILL.md +1108 -0
  264. package/framework/.factory/skills/error-handling-patterns/SKILL.md +641 -0
  265. package/framework/.factory/skills/interface-design/SKILL.md +310 -0
  266. package/framework/.factory/skills/interface-design/references/example.md +86 -0
  267. package/framework/.factory/skills/interface-design/references/principles.md +235 -0
  268. package/framework/.factory/skills/interface-design/references/validation.md +48 -0
  269. package/framework/.factory/skills/project-index/SKILL.md +234 -0
  270. package/framework/.factory/skills/project-index/scripts/scan_codebase.py +47 -0
  271. package/framework/.factory/skills/project-index/templates/agent-template.md +18 -0
  272. package/framework/.factory/skills/project-index/templates/skill-template.md +20 -0
  273. package/framework/.factory/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  274. package/framework/.factory/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  275. package/framework/.factory/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  276. package/framework/.factory/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  277. package/framework/.factory/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  278. package/framework/.factory/skills/systematic-debugging/SKILL.md +296 -0
  279. package/framework/.gemini/skills/api-design-principles/SKILL.md +528 -0
  280. package/framework/.gemini/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  281. package/framework/.gemini/skills/api-design-principles/assets/rest-api-template.py +182 -0
  282. package/framework/.gemini/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  283. package/framework/.gemini/skills/api-design-principles/references/rest-best-practices.md +408 -0
  284. package/framework/.gemini/skills/brainstorming/SKILL.md +54 -0
  285. package/framework/.gemini/skills/changelog-generator/SKILL.md +104 -0
  286. package/framework/.gemini/skills/code-maintainability/SKILL.md +1108 -0
  287. package/framework/.gemini/skills/error-handling-patterns/SKILL.md +641 -0
  288. package/framework/.gemini/skills/interface-design/SKILL.md +310 -0
  289. package/framework/.gemini/skills/interface-design/references/example.md +86 -0
  290. package/framework/.gemini/skills/interface-design/references/principles.md +235 -0
  291. package/framework/.gemini/skills/interface-design/references/validation.md +48 -0
  292. package/framework/.gemini/skills/project-index/SKILL.md +234 -0
  293. package/framework/.gemini/skills/project-index/scripts/scan_codebase.py +47 -0
  294. package/framework/.gemini/skills/project-index/templates/agent-template.md +18 -0
  295. package/framework/.gemini/skills/project-index/templates/skill-template.md +20 -0
  296. package/framework/.gemini/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  297. package/framework/.gemini/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  298. package/framework/.gemini/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  299. package/framework/.gemini/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  300. package/framework/.gemini/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  301. package/framework/.gemini/skills/systematic-debugging/SKILL.md +296 -0
  302. package/framework/.github/skills/api-design-principles/SKILL.md +528 -0
  303. package/framework/.github/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  304. package/framework/.github/skills/api-design-principles/assets/rest-api-template.py +182 -0
  305. package/framework/.github/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  306. package/framework/.github/skills/api-design-principles/references/rest-best-practices.md +408 -0
  307. package/framework/.github/skills/brainstorming/SKILL.md +54 -0
  308. package/framework/.github/skills/changelog-generator/SKILL.md +104 -0
  309. package/framework/.github/skills/code-maintainability/SKILL.md +1108 -0
  310. package/framework/.github/skills/error-handling-patterns/SKILL.md +641 -0
  311. package/framework/.github/skills/interface-design/SKILL.md +310 -0
  312. package/framework/.github/skills/interface-design/references/example.md +86 -0
  313. package/framework/.github/skills/interface-design/references/principles.md +235 -0
  314. package/framework/.github/skills/interface-design/references/validation.md +48 -0
  315. package/framework/.github/skills/project-index/SKILL.md +234 -0
  316. package/framework/.github/skills/project-index/scripts/scan_codebase.py +47 -0
  317. package/framework/.github/skills/project-index/templates/agent-template.md +18 -0
  318. package/framework/.github/skills/project-index/templates/skill-template.md +20 -0
  319. package/framework/.github/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  320. package/framework/.github/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  321. package/framework/.github/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  322. package/framework/.github/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  323. package/framework/.github/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  324. package/framework/.github/skills/systematic-debugging/SKILL.md +296 -0
  325. package/framework/.iflow/skills/api-design-principles/SKILL.md +528 -0
  326. package/framework/.iflow/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  327. package/framework/.iflow/skills/api-design-principles/assets/rest-api-template.py +182 -0
  328. package/framework/.iflow/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  329. package/framework/.iflow/skills/api-design-principles/references/rest-best-practices.md +408 -0
  330. package/framework/.iflow/skills/brainstorming/SKILL.md +54 -0
  331. package/framework/.iflow/skills/changelog-generator/SKILL.md +104 -0
  332. package/framework/.iflow/skills/code-maintainability/SKILL.md +1108 -0
  333. package/framework/.iflow/skills/error-handling-patterns/SKILL.md +641 -0
  334. package/framework/.iflow/skills/interface-design/SKILL.md +310 -0
  335. package/framework/.iflow/skills/interface-design/references/example.md +86 -0
  336. package/framework/.iflow/skills/interface-design/references/principles.md +235 -0
  337. package/framework/.iflow/skills/interface-design/references/validation.md +48 -0
  338. package/framework/.iflow/skills/project-index/SKILL.md +234 -0
  339. package/framework/.iflow/skills/project-index/scripts/scan_codebase.py +47 -0
  340. package/framework/.iflow/skills/project-index/templates/agent-template.md +18 -0
  341. package/framework/.iflow/skills/project-index/templates/skill-template.md +20 -0
  342. package/framework/.iflow/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  343. package/framework/.iflow/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  344. package/framework/.iflow/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  345. package/framework/.iflow/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  346. package/framework/.iflow/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  347. package/framework/.iflow/skills/systematic-debugging/SKILL.md +296 -0
  348. package/framework/.kilocode/skills/api-design-principles/SKILL.md +528 -0
  349. package/framework/.kilocode/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  350. package/framework/.kilocode/skills/api-design-principles/assets/rest-api-template.py +182 -0
  351. package/framework/.kilocode/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  352. package/framework/.kilocode/skills/api-design-principles/references/rest-best-practices.md +408 -0
  353. package/framework/.kilocode/skills/brainstorming/SKILL.md +54 -0
  354. package/framework/.kilocode/skills/changelog-generator/SKILL.md +104 -0
  355. package/framework/.kilocode/skills/code-maintainability/SKILL.md +1108 -0
  356. package/framework/.kilocode/skills/error-handling-patterns/SKILL.md +641 -0
  357. package/framework/.kilocode/skills/interface-design/SKILL.md +310 -0
  358. package/framework/.kilocode/skills/interface-design/references/example.md +86 -0
  359. package/framework/.kilocode/skills/interface-design/references/principles.md +235 -0
  360. package/framework/.kilocode/skills/interface-design/references/validation.md +48 -0
  361. package/framework/.kilocode/skills/project-index/SKILL.md +234 -0
  362. package/framework/.kilocode/skills/project-index/scripts/scan_codebase.py +47 -0
  363. package/framework/.kilocode/skills/project-index/templates/agent-template.md +18 -0
  364. package/framework/.kilocode/skills/project-index/templates/skill-template.md +20 -0
  365. package/framework/.kilocode/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  366. package/framework/.kilocode/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  367. package/framework/.kilocode/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  368. package/framework/.kilocode/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  369. package/framework/.kilocode/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  370. package/framework/.kilocode/skills/systematic-debugging/SKILL.md +296 -0
  371. package/framework/.opencode/skills/api-design-principles/SKILL.md +528 -0
  372. package/framework/.opencode/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  373. package/framework/.opencode/skills/api-design-principles/assets/rest-api-template.py +182 -0
  374. package/framework/.opencode/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  375. package/framework/.opencode/skills/api-design-principles/references/rest-best-practices.md +408 -0
  376. package/framework/.opencode/skills/brainstorming/SKILL.md +54 -0
  377. package/framework/.opencode/skills/changelog-generator/SKILL.md +104 -0
  378. package/framework/.opencode/skills/code-maintainability/SKILL.md +1108 -0
  379. package/framework/.opencode/skills/error-handling-patterns/SKILL.md +641 -0
  380. package/framework/.opencode/skills/interface-design/SKILL.md +310 -0
  381. package/framework/.opencode/skills/interface-design/references/example.md +86 -0
  382. package/framework/.opencode/skills/interface-design/references/principles.md +235 -0
  383. package/framework/.opencode/skills/interface-design/references/validation.md +48 -0
  384. package/framework/.opencode/skills/project-index/SKILL.md +234 -0
  385. package/framework/.opencode/skills/project-index/scripts/scan_codebase.py +47 -0
  386. package/framework/.opencode/skills/project-index/templates/agent-template.md +18 -0
  387. package/framework/.opencode/skills/project-index/templates/skill-template.md +20 -0
  388. package/framework/.opencode/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  389. package/framework/.opencode/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  390. package/framework/.opencode/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  391. package/framework/.opencode/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  392. package/framework/.opencode/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  393. package/framework/.opencode/skills/systematic-debugging/SKILL.md +296 -0
  394. package/framework/.qoder/skills/api-design-principles/SKILL.md +528 -0
  395. package/framework/.qoder/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  396. package/framework/.qoder/skills/api-design-principles/assets/rest-api-template.py +182 -0
  397. package/framework/.qoder/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  398. package/framework/.qoder/skills/api-design-principles/references/rest-best-practices.md +408 -0
  399. package/framework/.qoder/skills/brainstorming/SKILL.md +54 -0
  400. package/framework/.qoder/skills/changelog-generator/SKILL.md +104 -0
  401. package/framework/.qoder/skills/code-maintainability/SKILL.md +1108 -0
  402. package/framework/.qoder/skills/error-handling-patterns/SKILL.md +641 -0
  403. package/framework/.qoder/skills/interface-design/SKILL.md +310 -0
  404. package/framework/.qoder/skills/interface-design/references/example.md +86 -0
  405. package/framework/.qoder/skills/interface-design/references/principles.md +235 -0
  406. package/framework/.qoder/skills/interface-design/references/validation.md +48 -0
  407. package/framework/.qoder/skills/project-index/SKILL.md +234 -0
  408. package/framework/.qoder/skills/project-index/scripts/scan_codebase.py +47 -0
  409. package/framework/.qoder/skills/project-index/templates/agent-template.md +18 -0
  410. package/framework/.qoder/skills/project-index/templates/skill-template.md +20 -0
  411. package/framework/.qoder/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  412. package/framework/.qoder/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  413. package/framework/.qoder/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  414. package/framework/.qoder/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  415. package/framework/.qoder/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  416. package/framework/.qoder/skills/systematic-debugging/SKILL.md +296 -0
  417. package/framework/.qwen/commands/{opsx-apply.toml → opsx-apply.md} +4 -3
  418. package/framework/.qwen/commands/{opsx-archive.toml → opsx-archive.md} +4 -3
  419. package/framework/.qwen/commands/{opsx-bulk-archive.toml → opsx-bulk-archive.md} +4 -3
  420. package/framework/.qwen/commands/{opsx-continue.toml → opsx-continue.md} +4 -3
  421. package/framework/.qwen/commands/{opsx-explore.toml → opsx-explore.md} +4 -3
  422. package/framework/.qwen/commands/{opsx-ff.toml → opsx-ff.md} +4 -3
  423. package/framework/.qwen/commands/{opsx-new.toml → opsx-new.md} +4 -3
  424. package/framework/.qwen/commands/{opsx-onboard.toml → opsx-onboard.md} +4 -3
  425. package/framework/.qwen/commands/{opsx-sync.toml → opsx-sync.md} +4 -3
  426. package/framework/.qwen/commands/{opsx-verify.toml → opsx-verify.md} +4 -3
  427. package/framework/.qwen/skills/api-design-principles/SKILL.md +528 -0
  428. package/framework/.qwen/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  429. package/framework/.qwen/skills/api-design-principles/assets/rest-api-template.py +182 -0
  430. package/framework/.qwen/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  431. package/framework/.qwen/skills/api-design-principles/references/rest-best-practices.md +408 -0
  432. package/framework/.qwen/skills/brainstorming/SKILL.md +54 -0
  433. package/framework/.qwen/skills/changelog-generator/SKILL.md +104 -0
  434. package/framework/.qwen/skills/code-maintainability/SKILL.md +1108 -0
  435. package/framework/.qwen/skills/error-handling-patterns/SKILL.md +641 -0
  436. package/framework/.qwen/skills/interface-design/SKILL.md +310 -0
  437. package/framework/.qwen/skills/interface-design/references/example.md +86 -0
  438. package/framework/.qwen/skills/interface-design/references/principles.md +235 -0
  439. package/framework/.qwen/skills/interface-design/references/validation.md +48 -0
  440. package/framework/.qwen/skills/project-index/SKILL.md +234 -0
  441. package/framework/.qwen/skills/project-index/scripts/scan_codebase.py +47 -0
  442. package/framework/.qwen/skills/project-index/templates/agent-template.md +18 -0
  443. package/framework/.qwen/skills/project-index/templates/skill-template.md +20 -0
  444. package/framework/.qwen/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  445. package/framework/.qwen/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  446. package/framework/.qwen/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  447. package/framework/.qwen/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  448. package/framework/.qwen/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  449. package/framework/.qwen/skills/systematic-debugging/SKILL.md +296 -0
  450. package/framework/.roo/skills/api-design-principles/SKILL.md +528 -0
  451. package/framework/.roo/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  452. package/framework/.roo/skills/api-design-principles/assets/rest-api-template.py +182 -0
  453. package/framework/.roo/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  454. package/framework/.roo/skills/api-design-principles/references/rest-best-practices.md +408 -0
  455. package/framework/.roo/skills/brainstorming/SKILL.md +54 -0
  456. package/framework/.roo/skills/changelog-generator/SKILL.md +104 -0
  457. package/framework/.roo/skills/code-maintainability/SKILL.md +1108 -0
  458. package/framework/.roo/skills/error-handling-patterns/SKILL.md +641 -0
  459. package/framework/.roo/skills/interface-design/SKILL.md +310 -0
  460. package/framework/.roo/skills/interface-design/references/example.md +86 -0
  461. package/framework/.roo/skills/interface-design/references/principles.md +235 -0
  462. package/framework/.roo/skills/interface-design/references/validation.md +48 -0
  463. package/framework/.roo/skills/project-index/SKILL.md +234 -0
  464. package/framework/.roo/skills/project-index/scripts/scan_codebase.py +47 -0
  465. package/framework/.roo/skills/project-index/templates/agent-template.md +18 -0
  466. package/framework/.roo/skills/project-index/templates/skill-template.md +20 -0
  467. package/framework/.roo/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  468. package/framework/.roo/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  469. package/framework/.roo/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  470. package/framework/.roo/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  471. package/framework/.roo/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  472. package/framework/.roo/skills/systematic-debugging/SKILL.md +296 -0
  473. package/framework/.trae/skills/api-design-principles/SKILL.md +528 -0
  474. package/framework/.trae/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  475. package/framework/.trae/skills/api-design-principles/assets/rest-api-template.py +182 -0
  476. package/framework/.trae/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  477. package/framework/.trae/skills/api-design-principles/references/rest-best-practices.md +408 -0
  478. package/framework/.trae/skills/brainstorming/SKILL.md +54 -0
  479. package/framework/.trae/skills/changelog-generator/SKILL.md +104 -0
  480. package/framework/.trae/skills/code-maintainability/SKILL.md +1108 -0
  481. package/framework/.trae/skills/error-handling-patterns/SKILL.md +641 -0
  482. package/framework/.trae/skills/interface-design/SKILL.md +310 -0
  483. package/framework/.trae/skills/interface-design/references/example.md +86 -0
  484. package/framework/.trae/skills/interface-design/references/principles.md +235 -0
  485. package/framework/.trae/skills/interface-design/references/validation.md +48 -0
  486. package/framework/.trae/skills/project-index/SKILL.md +234 -0
  487. package/framework/.trae/skills/project-index/scripts/scan_codebase.py +47 -0
  488. package/framework/.trae/skills/project-index/templates/agent-template.md +18 -0
  489. package/framework/.trae/skills/project-index/templates/skill-template.md +20 -0
  490. package/framework/.trae/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  491. package/framework/.trae/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  492. package/framework/.trae/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  493. package/framework/.trae/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  494. package/framework/.trae/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  495. package/framework/.trae/skills/systematic-debugging/SKILL.md +296 -0
  496. package/framework/.windsurf/skills/api-design-principles/SKILL.md +528 -0
  497. package/framework/.windsurf/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  498. package/framework/.windsurf/skills/api-design-principles/assets/rest-api-template.py +182 -0
  499. package/framework/.windsurf/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  500. package/framework/.windsurf/skills/api-design-principles/references/rest-best-practices.md +408 -0
  501. package/framework/.windsurf/skills/brainstorming/SKILL.md +54 -0
  502. package/framework/.windsurf/skills/changelog-generator/SKILL.md +104 -0
  503. package/framework/.windsurf/skills/code-maintainability/SKILL.md +1108 -0
  504. package/framework/.windsurf/skills/error-handling-patterns/SKILL.md +641 -0
  505. package/framework/.windsurf/skills/interface-design/SKILL.md +310 -0
  506. package/framework/.windsurf/skills/interface-design/references/example.md +86 -0
  507. package/framework/.windsurf/skills/interface-design/references/principles.md +235 -0
  508. package/framework/.windsurf/skills/interface-design/references/validation.md +48 -0
  509. package/framework/.windsurf/skills/project-index/SKILL.md +234 -0
  510. package/framework/.windsurf/skills/project-index/scripts/scan_codebase.py +47 -0
  511. package/framework/.windsurf/skills/project-index/templates/agent-template.md +18 -0
  512. package/framework/.windsurf/skills/project-index/templates/skill-template.md +20 -0
  513. package/framework/.windsurf/skills/secure-coding-cybersecurity/SKILL.md +793 -0
  514. package/framework/.windsurf/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
  515. package/framework/.windsurf/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
  516. package/framework/.windsurf/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
  517. package/framework/.windsurf/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
  518. package/framework/.windsurf/skills/systematic-debugging/SKILL.md +296 -0
  519. package/framework/AGENTS.md +464 -0
  520. package/framework/CLAUDE.md +464 -0
  521. package/framework/GEMINI.md +464 -0
  522. package/framework/QWEN.md +464 -0
  523. package/framework/copilot-instructions.md +464 -0
  524. package/package.json +3 -2
  525. package/src/commands/init.js +2 -1
  526. package/src/ui/animations.js +36 -11
  527. package/src/ui/banner.js +6 -6
@@ -0,0 +1,44 @@
1
+ # AI-Generated Code: Security Pitfalls & Anti-Patterns
2
+
3
+ This document lists the most common security errors made by LLMs when generating code. As an AI agent, you **MUST AVOID** these patterns and explicitly check for them in your output.
4
+
5
+ ## 1. The "Working but Insecure" Default
6
+ LLMs prioritize functionality over security. They often provide the simplest code that works, which is usually the least secure.
7
+ - **NEVER** skip input validation because it "makes the example cleaner."
8
+ - **NEVER** use `http` when `https` is available.
9
+ - **NEVER** disable SSL/TLS certificate verification for "easier testing."
10
+
11
+ ## 2. Dependency Hallucinations & Slopsquatting
12
+ LLMs may suggest non-existent libraries or versions.
13
+ - **NEVER** suggest a library without verifying its existence and reputation.
14
+ - **BEWARE** of "slopsquatting": attackers registering hallucinated package names with malicious code.
15
+ - **ALWAYS** prefer well-known, standard libraries over obscure ones suggested by the model.
16
+
17
+ ## 3. Stale & Outdated Security Patterns
18
+ LLMs are trained on historical data and often suggest patterns that were "okay" years ago but are now insecure.
19
+ - **DO NOT** use `MD5` or `SHA1` for password hashing; use `Argon2` or `bcrypt`.
20
+ - **DO NOT** use `random.random()` for security-sensitive tokens; use `secrets` module in Python or `crypto.getRandomValues()` in JS.
21
+ - **DO NOT** use deprecated APIs (e.g., `os.system()` when `subprocess.run()` with proper arguments is safer).
22
+
23
+ ## 4. Hardcoded Secrets & Debug Flags
24
+ To make code "run out of the box," LLMs often hardcode sensitive values.
25
+ - **NEVER** include hardcoded API keys, passwords, or tokens. Use environment variables.
26
+ - **NEVER** leave `debug=True` or verbose error reporting enabled in "production-ready" snippets.
27
+
28
+ ## 5. Missing Contextual Security
29
+ LLMs often miss the "big picture" of an application's security.
30
+ - **DO NOT** assume authentication happened elsewhere. Always verify authorization at the function/endpoint level.
31
+ - **DO NOT** suggest CORS configurations like `Access-Control-Allow-Origin: *` unless explicitly required and justified.
32
+
33
+ ## 6. Injection Vulnerabilities (The Most Common Error)
34
+ LLMs frequently fall back to string concatenation for queries and commands.
35
+ - **NEVER** use f-strings or string formatting for SQL queries. Use parameterized inputs.
36
+ - **NEVER** pass unsanitized user input directly to shell commands.
37
+
38
+ ## AI Security Checklist (Before Delivering Code)
39
+ 1. [ ] Did I use any hallucinated or obscure libraries?
40
+ 2. [ ] Are all inputs validated and sanitized?
41
+ 3. [ ] Did I use the most modern, secure cryptographic standards?
42
+ 4. [ ] Are there any hardcoded secrets or debug flags?
43
+ 5. [ ] Does the code "fail closed" on errors?
44
+ 6. [ ] Did I verify permissions at the point of data access?
@@ -0,0 +1,28 @@
1
+ # OWASP Top 10:2025 Reference
2
+
3
+ The OWASP Top 10 is the standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.
4
+
5
+ | ID | Name | Description | Key Prevention |
6
+ | :--- | :--- | :--- | :--- |
7
+ | **A01:2025** | **Broken Access Control** | Users can act outside of their intended permissions. | Implement least privilege; check permissions on every request. |
8
+ | **A02:2025** | **Security Misconfiguration** | Insecure default settings, incomplete configurations, or open cloud storage. | Automate hardening; remove unused features/debug modes. |
9
+ | **A03:2025** | **Software Supply Chain Failures** | Risks from third-party libraries, dependencies, and CI/CD pipelines. | Use SBOMs; verify signatures; use dependency scanning (SCA). |
10
+ | **A04:2025** | **Cryptographic Failures** | Use of weak or no encryption for sensitive data. | Use strong algorithms (Argon2, AES-GCM); encrypt data at rest/transit. |
11
+ | **A05:2025** | **Injection** | Malicious data sent to an interpreter (SQL, NoSQL, OS Command). | Use parameterized queries; validate and sanitize all inputs. |
12
+ | **A06:2025** | **Insecure Design** | Flaws in the application's architecture and design. | Use secure design patterns; perform threat modeling early. |
13
+ | **A07:2025** | **Authentication Failures** | Weaknesses in identity verification, session management, or password policies. | Implement MFA; use secure session managers; enforce strong passwords. |
14
+ | **A08:2025** | **Software and Data Integrity Failures** | Insecure deserialization or lack of integrity checks on updates/data. | Sign code/data; verify integrity before processing; avoid insecure deserialization. |
15
+ | **A09:2025** | **Security Logging & Alerting Failures** | Insufficient logging or monitoring to detect and respond to active attacks. | Log security events; implement real-time alerting; centralize logs. |
16
+ | **A10:2025** | **Mishandling of Exceptional Conditions** | Improper error handling, failing open, or leaking info via error messages. | Fail closed; use generic error messages; handle all exceptions. |
17
+
18
+ ## Deep Dive: New/Updated Categories
19
+
20
+ ### A03:2025 Software Supply Chain Failures
21
+ This category focuses on the risks associated with the components and services that make up the software development life cycle.
22
+ - **Vulnerabilities**: Using libraries with known vulnerabilities (CVEs), dependency confusion attacks, compromised build pipelines.
23
+ - **Prevention**: Generate and maintain a **Software Bill of Materials (SBOM)**, use tools like `npm audit`, `pip-audit`, or Snyk.
24
+
25
+ ### A10:2025 Mishandling of Exceptional Conditions
26
+ Focuses on how the application behaves when things go wrong.
27
+ - **Vulnerabilities**: "Fail-open" logic (e.g., if an auth check throws an error, it defaults to 'allow'), leaking stack traces or sensitive environment variables in error responses.
28
+ - **Prevention**: Always "Fail-closed". Ensure that if an error occurs during a security check, access is denied by default.
@@ -0,0 +1,102 @@
1
+ # Secure Coding Examples
2
+
3
+ This document provides comparisons between vulnerable and secure code across multiple languages.
4
+
5
+ ## 1. Injection (A05:2025) - SQL Injection
6
+
7
+ ### Python (Insecure)
8
+ ```python
9
+ # VULNERABLE: String formatting allows SQL injection
10
+ cursor.execute(f"SELECT * FROM users WHERE username = '{username}'")
11
+ ```
12
+
13
+ ### Python (Secure)
14
+ ```python
15
+ # SECURE: Use parameterized queries
16
+ cursor.execute("SELECT * FROM users WHERE username = %s", (username,))
17
+ ```
18
+
19
+ ### Node.js (Secure)
20
+ ```javascript
21
+ // SECURE: Using placeholders in pg-promise or similar
22
+ db.any('SELECT * FROM users WHERE username = $1', [username]);
23
+ ```
24
+
25
+ ---
26
+
27
+ ## 2. Broken Access Control (A01:2025) - IDOR
28
+
29
+ ### Node.js (Insecure)
30
+ ```javascript
31
+ // VULNERABLE: No check if the user owns the record
32
+ app.get('/api/invoice/:id', async (req, res) => {
33
+ const invoice = await db.getInvoice(req.params.id);
34
+ res.json(invoice);
35
+ });
36
+ ```
37
+
38
+ ### Node.js (Secure)
39
+ ```javascript
40
+ // SECURE: Verify ownership
41
+ app.get('/api/invoice/:id', async (req, res) => {
42
+ const invoice = await db.getInvoice(req.params.id);
43
+ if (invoice.userId !== req.user.id) {
44
+ return res.status(403).send('Forbidden');
45
+ }
46
+ res.json(invoice);
47
+ });
48
+ ```
49
+
50
+ ---
51
+
52
+ ## 3. Cryptographic Failures (A04:2025) - Password Hashing
53
+
54
+ ### Python (Secure)
55
+ ```python
56
+ import argon2
57
+
58
+ ph = argon2.PasswordHasher()
59
+ hash = ph.hash("my_secure_password")
60
+ # To verify:
61
+ ph.verify(hash, "user_input_password")
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 4. Mishandling of Exceptional Conditions (A10:2025) - Fail Closed
67
+
68
+ ### Java (Insecure)
69
+ ```java
70
+ // VULNERABLE: Fail-open logic
71
+ public boolean isAuthorized(User user) {
72
+ try {
73
+ return ldapService.checkAccess(user);
74
+ } catch (Exception e) {
75
+ // If service is down, it might return true or allow bypass
76
+ return true;
77
+ }
78
+ }
79
+ ```
80
+
81
+ ### Java (Secure)
82
+ ```java
83
+ // SECURE: Fail-closed logic
84
+ public boolean isAuthorized(User user) {
85
+ try {
86
+ return ldapService.checkAccess(user);
87
+ } catch (Exception e) {
88
+ logger.error("Auth service error", e);
89
+ return false; // Access denied by default
90
+ }
91
+ }
92
+ ```
93
+
94
+ ---
95
+
96
+ ## 5. Software Supply Chain (A03:2025) - Dependency Management
97
+
98
+ ### Best Practices
99
+ - **Python**: Use `pip-audit` to check for known vulnerabilities.
100
+ - **Node.js**: Use `npm audit` or `pnpm audit`.
101
+ - **General**: Use a Lockfile (`package-lock.json`, `poetry.lock`) to ensure consistent builds.
102
+ - **SBOM**: Generate an SBOM using tools like `syft` or `cyclonedx-cli`.
@@ -0,0 +1,46 @@
1
+ import re
2
+ import os
3
+ import sys
4
+
5
+ # Common patterns for hardcoded secrets and vulnerable code
6
+ PATTERNS = {
7
+ "Hardcoded Secret": r"(?i)(api_key|secret|password|token|access_key)\s*=\s*['\"][a-zA-Z0-9_\-]{10,}['\"]",
8
+ "Potential SQL Injection (Python)": r"\.execute\(f?['\"].*\{.*\}",
9
+ "Insecure Randomness": r"import random\s+.*random\.random\(",
10
+ "Weak Hashing (MD5/SHA1)": r"(md5|sha1)\(",
11
+ "Debug Mode Enabled": r"debug\s*=\s*True",
12
+ }
13
+
14
+ def scan_file(file_path):
15
+ findings = []
16
+ try:
17
+ with open(file_path, 'r', encoding='utf-8') as f:
18
+ for i, line in enumerate(f, 1):
19
+ for name, pattern in PATTERNS.items():
20
+ if re.search(pattern, line):
21
+ findings.append(f"[{name}] Found at line {i}: {line.strip()}")
22
+ except Exception as e:
23
+ print(f"Error reading {file_path}: {e}")
24
+ return findings
25
+
26
+ def main(directory):
27
+ all_findings = {}
28
+ for root, _, files in os.walk(directory):
29
+ for file in files:
30
+ if file.endswith(('.py', '.js', '.java', '.go')):
31
+ path = os.path.join(root, file)
32
+ findings = scan_file(path)
33
+ if findings:
34
+ all_findings[path] = findings
35
+
36
+ if not all_findings:
37
+ print("No obvious security issues found by this simple scanner.")
38
+ else:
39
+ for path, findings in all_findings.items():
40
+ print(f"\n--- Findings in {path} ---")
41
+ for f in findings:
42
+ print(f)
43
+
44
+ if __name__ == "__main__":
45
+ target_dir = sys.argv[1] if len(sys.argv) > 1 else "."
46
+ main(target_dir)
@@ -0,0 +1,296 @@
1
+ ---
2
+ name: systematic-debugging
3
+ description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
4
+ ---
5
+
6
+ # Systematic Debugging
7
+
8
+ ## Overview
9
+
10
+ Random fixes waste time and create new bugs. Quick patches mask underlying issues.
11
+
12
+ **Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
13
+
14
+ **Violating the letter of this process is violating the spirit of debugging.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
20
+ ```
21
+
22
+ If you haven't completed Phase 1, you cannot propose fixes.
23
+
24
+ ## When to Use
25
+
26
+ Use for ANY technical issue:
27
+ - Test failures
28
+ - Bugs in production
29
+ - Unexpected behavior
30
+ - Performance problems
31
+ - Build failures
32
+ - Integration issues
33
+
34
+ **Use this ESPECIALLY when:**
35
+ - Under time pressure (emergencies make guessing tempting)
36
+ - "Just one quick fix" seems obvious
37
+ - You've already tried multiple fixes
38
+ - Previous fix didn't work
39
+ - You don't fully understand the issue
40
+
41
+ **Don't skip when:**
42
+ - Issue seems simple (simple bugs have root causes too)
43
+ - You're in a hurry (rushing guarantees rework)
44
+ - Manager wants it fixed NOW (systematic is faster than thrashing)
45
+
46
+ ## The Four Phases
47
+
48
+ You MUST complete each phase before proceeding to the next.
49
+
50
+ ### Phase 1: Root Cause Investigation
51
+
52
+ **BEFORE attempting ANY fix:**
53
+
54
+ 1. **Read Error Messages Carefully**
55
+ - Don't skip past errors or warnings
56
+ - They often contain the exact solution
57
+ - Read stack traces completely
58
+ - Note line numbers, file paths, error codes
59
+
60
+ 2. **Reproduce Consistently**
61
+ - Can you trigger it reliably?
62
+ - What are the exact steps?
63
+ - Does it happen every time?
64
+ - If not reproducible → gather more data, don't guess
65
+
66
+ 3. **Check Recent Changes**
67
+ - What changed that could cause this?
68
+ - Git diff, recent commits
69
+ - New dependencies, config changes
70
+ - Environmental differences
71
+
72
+ 4. **Gather Evidence in Multi-Component Systems**
73
+
74
+ **WHEN system has multiple components (CI → build → signing, API → service → database):**
75
+
76
+ **BEFORE proposing fixes, add diagnostic instrumentation:**
77
+ ```
78
+ For EACH component boundary:
79
+ - Log what data enters component
80
+ - Log what data exits component
81
+ - Verify environment/config propagation
82
+ - Check state at each layer
83
+
84
+ Run once to gather evidence showing WHERE it breaks
85
+ THEN analyze evidence to identify failing component
86
+ THEN investigate that specific component
87
+ ```
88
+
89
+ **Example (multi-layer system):**
90
+ ```bash
91
+ # Layer 1: Workflow
92
+ echo "=== Secrets available in workflow: ==="
93
+ echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}"
94
+
95
+ # Layer 2: Build script
96
+ echo "=== Env vars in build script: ==="
97
+ env | grep IDENTITY || echo "IDENTITY not in environment"
98
+
99
+ # Layer 3: Signing script
100
+ echo "=== Keychain state: ==="
101
+ security list-keychains
102
+ security find-identity -v
103
+
104
+ # Layer 4: Actual signing
105
+ codesign --sign "$IDENTITY" --verbose=4 "$APP"
106
+ ```
107
+
108
+ **This reveals:** Which layer fails (secrets → workflow ✓, workflow → build ✗)
109
+
110
+ 5. **Trace Data Flow**
111
+
112
+ **WHEN error is deep in call stack:**
113
+
114
+ See `root-cause-tracing.md` in this directory for the complete backward tracing technique.
115
+
116
+ **Quick version:**
117
+ - Where does bad value originate?
118
+ - What called this with bad value?
119
+ - Keep tracing up until you find the source
120
+ - Fix at source, not at symptom
121
+
122
+ ### Phase 2: Pattern Analysis
123
+
124
+ **Find the pattern before fixing:**
125
+
126
+ 1. **Find Working Examples**
127
+ - Locate similar working code in same codebase
128
+ - What works that's similar to what's broken?
129
+
130
+ 2. **Compare Against References**
131
+ - If implementing pattern, read reference implementation COMPLETELY
132
+ - Don't skim - read every line
133
+ - Understand the pattern fully before applying
134
+
135
+ 3. **Identify Differences**
136
+ - What's different between working and broken?
137
+ - List every difference, however small
138
+ - Don't assume "that can't matter"
139
+
140
+ 4. **Understand Dependencies**
141
+ - What other components does this need?
142
+ - What settings, config, environment?
143
+ - What assumptions does it make?
144
+
145
+ ### Phase 3: Hypothesis and Testing
146
+
147
+ **Scientific method:**
148
+
149
+ 1. **Form Single Hypothesis**
150
+ - State clearly: "I think X is the root cause because Y"
151
+ - Write it down
152
+ - Be specific, not vague
153
+
154
+ 2. **Test Minimally**
155
+ - Make the SMALLEST possible change to test hypothesis
156
+ - One variable at a time
157
+ - Don't fix multiple things at once
158
+
159
+ 3. **Verify Before Continuing**
160
+ - Did it work? Yes → Phase 4
161
+ - Didn't work? Form NEW hypothesis
162
+ - DON'T add more fixes on top
163
+
164
+ 4. **When You Don't Know**
165
+ - Say "I don't understand X"
166
+ - Don't pretend to know
167
+ - Ask for help
168
+ - Research more
169
+
170
+ ### Phase 4: Implementation
171
+
172
+ **Fix the root cause, not the symptom:**
173
+
174
+ 1. **Create Failing Test Case**
175
+ - Simplest possible reproduction
176
+ - Automated test if possible
177
+ - One-off test script if no framework
178
+ - MUST have before fixing
179
+ - Use the `superpowers:test-driven-development` skill for writing proper failing tests
180
+
181
+ 2. **Implement Single Fix**
182
+ - Address the root cause identified
183
+ - ONE change at a time
184
+ - No "while I'm here" improvements
185
+ - No bundled refactoring
186
+
187
+ 3. **Verify Fix**
188
+ - Test passes now?
189
+ - No other tests broken?
190
+ - Issue actually resolved?
191
+
192
+ 4. **If Fix Doesn't Work**
193
+ - STOP
194
+ - Count: How many fixes have you tried?
195
+ - If < 3: Return to Phase 1, re-analyze with new information
196
+ - **If ≥ 3: STOP and question the architecture (step 5 below)**
197
+ - DON'T attempt Fix #4 without architectural discussion
198
+
199
+ 5. **If 3+ Fixes Failed: Question Architecture**
200
+
201
+ **Pattern indicating architectural problem:**
202
+ - Each fix reveals new shared state/coupling/problem in different place
203
+ - Fixes require "massive refactoring" to implement
204
+ - Each fix creates new symptoms elsewhere
205
+
206
+ **STOP and question fundamentals:**
207
+ - Is this pattern fundamentally sound?
208
+ - Are we "sticking with it through sheer inertia"?
209
+ - Should we refactor architecture vs. continue fixing symptoms?
210
+
211
+ **Discuss with your human partner before attempting more fixes**
212
+
213
+ This is NOT a failed hypothesis - this is a wrong architecture.
214
+
215
+ ## Red Flags - STOP and Follow Process
216
+
217
+ If you catch yourself thinking:
218
+ - "Quick fix for now, investigate later"
219
+ - "Just try changing X and see if it works"
220
+ - "Add multiple changes, run tests"
221
+ - "Skip the test, I'll manually verify"
222
+ - "It's probably X, let me fix that"
223
+ - "I don't fully understand but this might work"
224
+ - "Pattern says X but I'll adapt it differently"
225
+ - "Here are the main problems: [lists fixes without investigation]"
226
+ - Proposing solutions before tracing data flow
227
+ - **"One more fix attempt" (when already tried 2+)**
228
+ - **Each fix reveals new problem in different place**
229
+
230
+ **ALL of these mean: STOP. Return to Phase 1.**
231
+
232
+ **If 3+ fixes failed:** Question the architecture (see Phase 4.5)
233
+
234
+ ## your human partner's Signals You're Doing It Wrong
235
+
236
+ **Watch for these redirections:**
237
+ - "Is that not happening?" - You assumed without verifying
238
+ - "Will it show us...?" - You should have added evidence gathering
239
+ - "Stop guessing" - You're proposing fixes without understanding
240
+ - "Ultrathink this" - Question fundamentals, not just symptoms
241
+ - "We're stuck?" (frustrated) - Your approach isn't working
242
+
243
+ **When you see these:** STOP. Return to Phase 1.
244
+
245
+ ## Common Rationalizations
246
+
247
+ | Excuse | Reality |
248
+ |--------|---------|
249
+ | "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
250
+ | "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
251
+ | "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
252
+ | "I'll write test after confirming fix works" | Untested fixes don't stick. Test first proves it. |
253
+ | "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
254
+ | "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. Read it completely. |
255
+ | "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
256
+ | "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |
257
+
258
+ ## Quick Reference
259
+
260
+ | Phase | Key Activities | Success Criteria |
261
+ |-------|---------------|------------------|
262
+ | **1. Root Cause** | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
263
+ | **2. Pattern** | Find working examples, compare | Identify differences |
264
+ | **3. Hypothesis** | Form theory, test minimally | Confirmed or new hypothesis |
265
+ | **4. Implementation** | Create test, fix, verify | Bug resolved, tests pass |
266
+
267
+ ## When Process Reveals "No Root Cause"
268
+
269
+ If systematic investigation reveals issue is truly environmental, timing-dependent, or external:
270
+
271
+ 1. You've completed the process
272
+ 2. Document what you investigated
273
+ 3. Implement appropriate handling (retry, timeout, error message)
274
+ 4. Add monitoring/logging for future investigation
275
+
276
+ **But:** 95% of "no root cause" cases are incomplete investigation.
277
+
278
+ ## Supporting Techniques
279
+
280
+ These techniques are part of systematic debugging and available in this directory:
281
+
282
+ - **`root-cause-tracing.md`** - Trace bugs backward through call stack to find original trigger
283
+ - **`defense-in-depth.md`** - Add validation at multiple layers after finding root cause
284
+ - **`condition-based-waiting.md`** - Replace arbitrary timeouts with condition polling
285
+
286
+ **Related skills:**
287
+ - **superpowers:test-driven-development** - For creating failing test case (Phase 4, Step 1)
288
+ - **superpowers:verification-before-completion** - Verify fix worked before claiming success
289
+
290
+ ## Real-World Impact
291
+
292
+ From debugging sessions:
293
+ - Systematic approach: 15-30 minutes to fix
294
+ - Random fixes approach: 2-3 hours of thrashing
295
+ - First-time fix rate: 95% vs 40%
296
+ - New bugs introduced: Near zero vs common