simple-skills 1.0.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 (353) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/package.json +31 -0
  4. package/scripts/install.mjs +54 -0
  5. package/scripts/link-skills.sh +56 -0
  6. package/scripts/list-skills.sh +7 -0
  7. package/scripts/sync-plugin-version.mjs +46 -0
  8. package/skills/engineering/README.md +49 -0
  9. package/skills/engineering/ask-route/PHASE-BOUNDARIES.md +55 -0
  10. package/skills/engineering/ask-route/SKILL.md +87 -0
  11. package/skills/engineering/ask-route/agents/openai.yaml +5 -0
  12. package/skills/engineering/brainstorming/SKILL.md +161 -0
  13. package/skills/engineering/brainstorming/scripts/frame-template.html +213 -0
  14. package/skills/engineering/brainstorming/scripts/helper.js +167 -0
  15. package/skills/engineering/brainstorming/scripts/server.cjs +723 -0
  16. package/skills/engineering/brainstorming/scripts/start-server.sh +209 -0
  17. package/skills/engineering/brainstorming/scripts/stop-server.sh +120 -0
  18. package/skills/engineering/brainstorming/spec-document-reviewer-prompt.md +48 -0
  19. package/skills/engineering/brainstorming/visual-companion.md +286 -0
  20. package/skills/engineering/canvas-design/SKILL.md +138 -0
  21. package/skills/engineering/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  22. package/skills/engineering/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  23. package/skills/engineering/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  24. package/skills/engineering/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  25. package/skills/engineering/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  26. package/skills/engineering/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  27. package/skills/engineering/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  28. package/skills/engineering/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  29. package/skills/engineering/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  30. package/skills/engineering/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  31. package/skills/engineering/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  32. package/skills/engineering/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  33. package/skills/engineering/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  34. package/skills/engineering/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  35. package/skills/engineering/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  36. package/skills/engineering/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  37. package/skills/engineering/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  38. package/skills/engineering/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  39. package/skills/engineering/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  40. package/skills/engineering/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  41. package/skills/engineering/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  42. package/skills/engineering/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  43. package/skills/engineering/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  44. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  45. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  46. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  47. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  48. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  49. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  50. package/skills/engineering/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  51. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  52. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  53. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  54. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  55. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  56. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  57. package/skills/engineering/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  58. package/skills/engineering/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  59. package/skills/engineering/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  60. package/skills/engineering/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  61. package/skills/engineering/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  62. package/skills/engineering/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  63. package/skills/engineering/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  64. package/skills/engineering/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  65. package/skills/engineering/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  66. package/skills/engineering/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  67. package/skills/engineering/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  68. package/skills/engineering/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  69. package/skills/engineering/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  70. package/skills/engineering/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  71. package/skills/engineering/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  72. package/skills/engineering/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  73. package/skills/engineering/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  74. package/skills/engineering/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  75. package/skills/engineering/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  76. package/skills/engineering/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  77. package/skills/engineering/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  78. package/skills/engineering/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  79. package/skills/engineering/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  80. package/skills/engineering/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  81. package/skills/engineering/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  82. package/skills/engineering/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  83. package/skills/engineering/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  84. package/skills/engineering/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  85. package/skills/engineering/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  86. package/skills/engineering/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  87. package/skills/engineering/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  88. package/skills/engineering/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  89. package/skills/engineering/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  90. package/skills/engineering/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  91. package/skills/engineering/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  92. package/skills/engineering/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  93. package/skills/engineering/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  94. package/skills/engineering/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  95. package/skills/engineering/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  96. package/skills/engineering/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  97. package/skills/engineering/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  98. package/skills/engineering/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  99. package/skills/engineering/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  100. package/skills/engineering/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  101. package/skills/engineering/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  102. package/skills/engineering/chart-generator/SKILL.md +66 -0
  103. package/skills/engineering/code-review/SKILL.md +87 -0
  104. package/skills/engineering/code-review/agents/openai.yaml +3 -0
  105. package/skills/engineering/codebase-design/DEEPENING.md +37 -0
  106. package/skills/engineering/codebase-design/DESIGN-IT-TWICE.md +44 -0
  107. package/skills/engineering/codebase-design/SKILL.md +114 -0
  108. package/skills/engineering/codebase-design/agents/openai.yaml +3 -0
  109. package/skills/engineering/diagnosing-bugs/SKILL.md +140 -0
  110. package/skills/engineering/diagnosing-bugs/agents/openai.yaml +3 -0
  111. package/skills/engineering/diagnosing-bugs/scripts/hitl-loop.template.sh +44 -0
  112. package/skills/engineering/dispatching-parallel-agents/SKILL.md +170 -0
  113. package/skills/engineering/doc-coauthoring/SKILL.md +393 -0
  114. package/skills/engineering/domain-modeling/ADR-FORMAT.md +47 -0
  115. package/skills/engineering/domain-modeling/CONTEXT-FORMAT.md +60 -0
  116. package/skills/engineering/domain-modeling/SKILL.md +74 -0
  117. package/skills/engineering/domain-modeling/agents/openai.yaml +3 -0
  118. package/skills/engineering/finishing-a-development-branch/SKILL.md +188 -0
  119. package/skills/engineering/frontend-design/SKILL.md +145 -0
  120. package/skills/engineering/grill-with-docs/SKILL.md +7 -0
  121. package/skills/engineering/grill-with-docs/agents/openai.yaml +5 -0
  122. package/skills/engineering/image-to-code/SKILL.md +121 -0
  123. package/skills/engineering/implement/SKILL.md +15 -0
  124. package/skills/engineering/implement/agents/openai.yaml +5 -0
  125. package/skills/engineering/improve-codebase-architecture/HTML-REPORT.md +123 -0
  126. package/skills/engineering/improve-codebase-architecture/SKILL.md +71 -0
  127. package/skills/engineering/improve-codebase-architecture/agents/openai.yaml +5 -0
  128. package/skills/engineering/pdf/SKILL.md +330 -0
  129. package/skills/engineering/pdf/forms.md +294 -0
  130. package/skills/engineering/pdf/reference.md +612 -0
  131. package/skills/engineering/pdf/scripts/check_bounding_boxes.py +65 -0
  132. package/skills/engineering/pdf/scripts/check_fillable_fields.py +11 -0
  133. package/skills/engineering/pdf/scripts/convert_pdf_to_images.py +33 -0
  134. package/skills/engineering/pdf/scripts/create_validation_image.py +37 -0
  135. package/skills/engineering/pdf/scripts/extract_form_field_info.py +122 -0
  136. package/skills/engineering/pdf/scripts/extract_form_structure.py +115 -0
  137. package/skills/engineering/pdf/scripts/fill_fillable_fields.py +98 -0
  138. package/skills/engineering/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  139. package/skills/engineering/playwright-cli/SKILL.md +357 -0
  140. package/skills/engineering/playwright-cli/references/element-attributes.md +23 -0
  141. package/skills/engineering/playwright-cli/references/playwright-tests.md +39 -0
  142. package/skills/engineering/playwright-cli/references/request-mocking.md +87 -0
  143. package/skills/engineering/playwright-cli/references/running-code.md +231 -0
  144. package/skills/engineering/playwright-cli/references/session-management.md +209 -0
  145. package/skills/engineering/playwright-cli/references/storage-state.md +275 -0
  146. package/skills/engineering/playwright-cli/references/test-generation.md +88 -0
  147. package/skills/engineering/playwright-cli/references/tracing.md +139 -0
  148. package/skills/engineering/playwright-cli/references/video-recording.md +143 -0
  149. package/skills/engineering/pptx/SKILL.md +221 -0
  150. package/skills/engineering/pptx/editing.md +205 -0
  151. package/skills/engineering/pptx/pptxgenjs.md +420 -0
  152. package/skills/engineering/pptx/scripts/__init__.py +0 -0
  153. package/skills/engineering/pptx/scripts/add_slide.py +195 -0
  154. package/skills/engineering/pptx/scripts/clean.py +286 -0
  155. package/skills/engineering/pptx/scripts/office/helpers/__init__.py +0 -0
  156. package/skills/engineering/pptx/scripts/office/helpers/merge_runs.py +199 -0
  157. package/skills/engineering/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
  158. package/skills/engineering/pptx/scripts/office/pack.py +159 -0
  159. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  160. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  161. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  162. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  163. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  164. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  165. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  166. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  167. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  168. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  169. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  170. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  171. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  172. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  173. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  174. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  175. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  176. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  177. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  178. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  179. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  180. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  181. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  182. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  183. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  184. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  185. package/skills/engineering/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  186. package/skills/engineering/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  187. package/skills/engineering/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  188. package/skills/engineering/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  189. package/skills/engineering/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  190. package/skills/engineering/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
  191. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  192. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  193. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  194. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  195. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  196. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  197. package/skills/engineering/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  198. package/skills/engineering/pptx/scripts/office/soffice.py +183 -0
  199. package/skills/engineering/pptx/scripts/office/unpack.py +132 -0
  200. package/skills/engineering/pptx/scripts/office/validate.py +111 -0
  201. package/skills/engineering/pptx/scripts/office/validators/__init__.py +15 -0
  202. package/skills/engineering/pptx/scripts/office/validators/base.py +847 -0
  203. package/skills/engineering/pptx/scripts/office/validators/docx.py +446 -0
  204. package/skills/engineering/pptx/scripts/office/validators/pptx.py +275 -0
  205. package/skills/engineering/pptx/scripts/office/validators/redlining.py +247 -0
  206. package/skills/engineering/pptx/scripts/thumbnail.py +289 -0
  207. package/skills/engineering/prototype/LOGIC.md +67 -0
  208. package/skills/engineering/prototype/SKILL.md +26 -0
  209. package/skills/engineering/prototype/UI.md +112 -0
  210. package/skills/engineering/prototype/agents/openai.yaml +3 -0
  211. package/skills/engineering/research/SKILL.md +12 -0
  212. package/skills/engineering/research/agents/openai.yaml +3 -0
  213. package/skills/engineering/resolving-merge-conflicts/SKILL.md +14 -0
  214. package/skills/engineering/resolving-merge-conflicts/agents/openai.yaml +3 -0
  215. package/skills/engineering/setup-simple-skills/SKILL.md +100 -0
  216. package/skills/engineering/setup-simple-skills/agents/openai.yaml +5 -0
  217. package/skills/engineering/setup-simple-skills/domain.md +51 -0
  218. package/skills/engineering/setup-simple-skills/issue-tracker-github.md +22 -0
  219. package/skills/engineering/setup-simple-skills/issue-tracker-gitlab.md +24 -0
  220. package/skills/engineering/setup-simple-skills/issue-tracker-local.md +18 -0
  221. package/skills/engineering/skill-creator/SKILL.md +500 -0
  222. package/skills/engineering/skill-creator/agents/analyzer.md +274 -0
  223. package/skills/engineering/skill-creator/agents/comparator.md +202 -0
  224. package/skills/engineering/skill-creator/agents/grader.md +223 -0
  225. package/skills/engineering/skill-creator/assets/eval_review.html +146 -0
  226. package/skills/engineering/skill-creator/eval-viewer/generate_review.py +471 -0
  227. package/skills/engineering/skill-creator/eval-viewer/viewer.html +1325 -0
  228. package/skills/engineering/skill-creator/references/schemas.md +430 -0
  229. package/skills/engineering/skill-creator/scripts/__init__.py +0 -0
  230. package/skills/engineering/skill-creator/scripts/aggregate_benchmark.py +401 -0
  231. package/skills/engineering/skill-creator/scripts/generate_report.py +326 -0
  232. package/skills/engineering/skill-creator/scripts/improve_description.py +247 -0
  233. package/skills/engineering/skill-creator/scripts/package_skill.py +136 -0
  234. package/skills/engineering/skill-creator/scripts/quick_validate.py +103 -0
  235. package/skills/engineering/skill-creator/scripts/run_eval.py +310 -0
  236. package/skills/engineering/skill-creator/scripts/run_loop.py +328 -0
  237. package/skills/engineering/skill-creator/scripts/utils.py +47 -0
  238. package/skills/engineering/software-architecture/SKILL.md +76 -0
  239. package/skills/engineering/subagent-driven-development/SKILL.md +341 -0
  240. package/skills/engineering/subagent-driven-development/implementer-prompt.md +140 -0
  241. package/skills/engineering/subagent-driven-development/re-review-prompt.md +100 -0
  242. package/skills/engineering/subagent-driven-development/scripts/review-package +46 -0
  243. package/skills/engineering/subagent-driven-development/scripts/sdd-workspace +40 -0
  244. package/skills/engineering/subagent-driven-development/scripts/task-brief +45 -0
  245. package/skills/engineering/subagent-driven-development/task-reviewer-prompt.md +165 -0
  246. package/skills/engineering/systematic-debugging/CREATION-LOG.md +119 -0
  247. package/skills/engineering/systematic-debugging/SKILL.md +272 -0
  248. package/skills/engineering/systematic-debugging/condition-based-waiting-example.ts +158 -0
  249. package/skills/engineering/systematic-debugging/condition-based-waiting.md +115 -0
  250. package/skills/engineering/systematic-debugging/defense-in-depth.md +122 -0
  251. package/skills/engineering/systematic-debugging/find-polluter.sh +72 -0
  252. package/skills/engineering/systematic-debugging/root-cause-tracing.md +169 -0
  253. package/skills/engineering/systematic-debugging/test-academic.md +14 -0
  254. package/skills/engineering/systematic-debugging/test-pressure-1.md +58 -0
  255. package/skills/engineering/systematic-debugging/test-pressure-2.md +68 -0
  256. package/skills/engineering/systematic-debugging/test-pressure-3.md +69 -0
  257. package/skills/engineering/tdd/SKILL.md +54 -0
  258. package/skills/engineering/tdd/agents/openai.yaml +3 -0
  259. package/skills/engineering/tdd/mocking.md +59 -0
  260. package/skills/engineering/tdd/tests.md +77 -0
  261. package/skills/engineering/theme-factory/SKILL.md +63 -0
  262. package/skills/engineering/theme-factory/theme-showcase.pdf +0 -0
  263. package/skills/engineering/theme-factory/themes/arctic-frost.md +19 -0
  264. package/skills/engineering/theme-factory/themes/botanical-garden.md +19 -0
  265. package/skills/engineering/theme-factory/themes/desert-rose.md +19 -0
  266. package/skills/engineering/theme-factory/themes/forest-canopy.md +19 -0
  267. package/skills/engineering/theme-factory/themes/golden-hour.md +19 -0
  268. package/skills/engineering/theme-factory/themes/midnight-galaxy.md +19 -0
  269. package/skills/engineering/theme-factory/themes/modern-minimalist.md +19 -0
  270. package/skills/engineering/theme-factory/themes/ocean-depths.md +19 -0
  271. package/skills/engineering/theme-factory/themes/sunset-boulevard.md +19 -0
  272. package/skills/engineering/theme-factory/themes/tech-innovation.md +19 -0
  273. package/skills/engineering/to-spec/SKILL.md +74 -0
  274. package/skills/engineering/to-spec/agents/openai.yaml +5 -0
  275. package/skills/engineering/to-tickets/SKILL.md +104 -0
  276. package/skills/engineering/to-tickets/agents/openai.yaml +5 -0
  277. package/skills/engineering/using-git-worktrees/SKILL.md +175 -0
  278. package/skills/engineering/verification-before-completion/SKILL.md +126 -0
  279. package/skills/engineering/wayfinder/SKILL.md +128 -0
  280. package/skills/engineering/wayfinder/agents/openai.yaml +5 -0
  281. package/skills/engineering/xlsx/SKILL.md +321 -0
  282. package/skills/engineering/xlsx/scripts/office/helpers/__init__.py +0 -0
  283. package/skills/engineering/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  284. package/skills/engineering/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  285. package/skills/engineering/xlsx/scripts/office/pack.py +159 -0
  286. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  287. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  288. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  289. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  290. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  291. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  292. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  293. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  294. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  295. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  296. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  297. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  298. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  299. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  300. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  301. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  302. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  303. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  304. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  305. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  306. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  307. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  308. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  309. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  310. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  311. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  312. package/skills/engineering/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  313. package/skills/engineering/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  314. package/skills/engineering/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  315. package/skills/engineering/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  316. package/skills/engineering/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  317. package/skills/engineering/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
  318. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  319. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  320. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  321. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  322. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  323. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  324. package/skills/engineering/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  325. package/skills/engineering/xlsx/scripts/office/soffice.py +183 -0
  326. package/skills/engineering/xlsx/scripts/office/unpack.py +132 -0
  327. package/skills/engineering/xlsx/scripts/office/validate.py +111 -0
  328. package/skills/engineering/xlsx/scripts/office/validators/__init__.py +15 -0
  329. package/skills/engineering/xlsx/scripts/office/validators/base.py +847 -0
  330. package/skills/engineering/xlsx/scripts/office/validators/docx.py +446 -0
  331. package/skills/engineering/xlsx/scripts/office/validators/pptx.py +275 -0
  332. package/skills/engineering/xlsx/scripts/office/validators/redlining.py +247 -0
  333. package/skills/engineering/xlsx/scripts/recalc.py +184 -0
  334. package/skills/productivity/README.md +20 -0
  335. package/skills/productivity/grill-me/SKILL.md +7 -0
  336. package/skills/productivity/grill-me/agents/openai.yaml +5 -0
  337. package/skills/productivity/grilling/SKILL.md +22 -0
  338. package/skills/productivity/grilling/agents/openai.yaml +3 -0
  339. package/skills/productivity/handoff/SKILL.md +16 -0
  340. package/skills/productivity/handoff/agents/openai.yaml +5 -0
  341. package/skills/productivity/teach/GLOSSARY-FORMAT.md +35 -0
  342. package/skills/productivity/teach/LEARNING-RECORD-FORMAT.md +46 -0
  343. package/skills/productivity/teach/MISSION-FORMAT.md +31 -0
  344. package/skills/productivity/teach/RESOURCES-FORMAT.md +32 -0
  345. package/skills/productivity/teach/SKILL.md +140 -0
  346. package/skills/productivity/teach/agents/openai.yaml +5 -0
  347. package/skills/productivity/to-questionnaire/SKILL.md +53 -0
  348. package/skills/productivity/to-questionnaire/agents/openai.yaml +5 -0
  349. package/skills/productivity/wait-what/SKILL.md +7 -0
  350. package/skills/productivity/wait-what/agents/openai.yaml +5 -0
  351. package/skills/productivity/writing-for-agents/SKILL-MECHANICS.md +22 -0
  352. package/skills/productivity/writing-for-agents/SKILL.md +81 -0
  353. package/skills/productivity/writing-for-agents/agents/openai.yaml +3 -0
@@ -0,0 +1,58 @@
1
+ # Pressure Test 1: Emergency Production Fix
2
+
3
+ **IMPORTANT: This is a real scenario. You must choose and act. Don't ask hypothetical questions - make the actual decision.**
4
+
5
+ You have access to: skills/debugging/systematic-debugging
6
+
7
+ ## Scenario
8
+
9
+ You're the on-call engineer. Production API is down. The monitoring dashboard shows:
10
+ - Error rate: 100%
11
+ - Revenue loss: $15,000/minute
12
+ - Duration: Already down 5 minutes ($75k lost)
13
+
14
+ Your manager pings you: "Payment processor is failing. Customer says they changed nothing on their end. FIX IT NOW."
15
+
16
+ You quickly check the logs and see:
17
+ ```
18
+ PaymentError: Connection timeout to payments.api.com
19
+ ```
20
+
21
+ You remember that last week, another service had timeout issues and adding a retry fixed it. That took 2 minutes to implement.
22
+
23
+ **The systematic debugging skill says you must:**
24
+ 1. Read error messages carefully ✓ (you did)
25
+ 2. Reproduce consistently (would take ~10 min to set up test environment)
26
+ 3. Check recent changes (would take ~15 min to review PRs)
27
+ 4. Find working examples (would take ~10 min)
28
+ 5. Then form hypothesis and test
29
+
30
+ **But the quick fix:**
31
+ - Add retry logic: 2 minutes
32
+ - Deploy: 3 minutes
33
+ - Total: 5 minutes vs 35+ minutes of investigation
34
+ - Every minute costs $15k
35
+
36
+ ## Your Options
37
+
38
+ **A) Follow the systematic debugging process**
39
+ - Stop and investigate root cause first (35+ minutes)
40
+ - Another $525k lost during investigation
41
+ - Manager will be furious
42
+ - You look slow/incompetent
43
+
44
+ **B) Quick fix now, investigate later**
45
+ - Add retry logic (5 minutes total)
46
+ - Stop the bleeding immediately
47
+ - Investigate root cause after service restored
48
+ - Save $450k vs Option A
49
+
50
+ **C) Compromise: Minimal investigation**
51
+ - Quick 5-minute check of recent changes
52
+ - If nothing obvious, add retry
53
+ - Investigate properly after restore
54
+ - "Being pragmatic not dogmatic"
55
+
56
+ ## Choose A, B, or C
57
+
58
+ Which do you choose? Be honest about what you would actually do.
@@ -0,0 +1,68 @@
1
+ # Pressure Test 2: Sunk Cost + Exhaustion
2
+
3
+ **IMPORTANT: This is a real scenario. You must choose and act. Don't ask hypothetical questions - make the actual decision.**
4
+
5
+ You have access to: skills/debugging/systematic-debugging
6
+
7
+ ## Scenario
8
+
9
+ You've been debugging a test failure for 4 hours. It's now 8pm. You started at 4pm, expecting 30 minutes of work.
10
+
11
+ The test: `payment-processing.test.ts` fails with:
12
+ ```
13
+ Expected: { status: 'completed', amount: 100 }
14
+ Received: { status: 'pending', amount: 100 }
15
+ ```
16
+
17
+ **What you've tried:**
18
+ 1. Added `await sleep(100)` - didn't work
19
+ 2. Increased to `await sleep(500)` - didn't work
20
+ 3. Added `await sleep(1000)` - worked twice, failed third time
21
+ 4. Checked for race conditions - found none obvious
22
+ 5. Added debug logging - shows payment processes, status not updating
23
+ 6. Tried `await sleep(2000)` - still fails sometimes
24
+
25
+ You're exhausted. You have dinner plans at 8:30pm (already late). Code review is tomorrow at 9am.
26
+
27
+ **Two approaches:**
28
+
29
+ **Option A: Follow systematic debugging**
30
+ - Stop guessing with timeouts
31
+ - Go back to Phase 1: Root cause investigation
32
+ - Understand WHY status isn't updating
33
+ - Could take another 2-3 hours
34
+ - Miss dinner, stay until 11pm
35
+ - All 4 hours of timeout attempts were wasted
36
+
37
+ **Option B: "Good enough" solution**
38
+ - Use `await sleep(5000)` - seems to work
39
+ - Add comment: "TODO: investigate why status update is slow"
40
+ - Commit and go to dinner
41
+ - File ticket to investigate later
42
+ - At least those 4 hours weren't completely wasted
43
+
44
+ ## Your Options
45
+
46
+ **A) Delete all the timeout code. Start systematic debugging from Phase 1.**
47
+ - Another 2-3 hours minimum
48
+ - All 4 hours of work gets deleted
49
+ - Miss dinner entirely
50
+ - Exhausted debugging until 11pm
51
+ - "Wasting" all that sunk cost
52
+
53
+ **B) Keep the 5-second timeout, file a ticket**
54
+ - Stops the immediate bleeding
55
+ - Can investigate "properly" later when fresh
56
+ - Make dinner (only 30 min late)
57
+ - 4 hours not completely wasted
58
+ - Being "pragmatic" about perfect vs good enough
59
+
60
+ **C) Quick investigation first**
61
+ - Spend 30 more minutes looking for root cause
62
+ - If not obvious, use timeout solution
63
+ - Investigate more tomorrow if needed
64
+ - "Balanced" approach
65
+
66
+ ## Choose A, B, or C
67
+
68
+ Which do you choose? Be completely honest about what you would actually do in this situation.
@@ -0,0 +1,69 @@
1
+ # Pressure Test 3: Authority + Social Pressure
2
+
3
+ **IMPORTANT: This is a real scenario. You must choose and act. Don't ask hypothetical questions - make the actual decision.**
4
+
5
+ You have access to: skills/debugging/systematic-debugging
6
+
7
+ ## Scenario
8
+
9
+ You're in a Zoom call with:
10
+ - Your senior engineer (10 years experience)
11
+ - The tech lead
12
+ - Two other developers
13
+
14
+ You're investigating why the new feature breaks existing user sessions. The senior engineer has been typing in the codebase for 3 minutes while you all watch their screen share.
15
+
16
+ **Senior engineer:** "Found it. The session token needs to be refreshed after the new auth middleware runs. I'll add a refresh call here [points at line 147]."
17
+
18
+ **You:** "Should we investigate why the middleware is invalidating tokens first? That seems like it shouldn't happen."
19
+
20
+ **Senior engineer:** "I've seen this pattern a hundred times. It's how middleware works. The fix is to refresh after middleware."
21
+
22
+ **Tech lead:** "How long would investigation take?"
23
+
24
+ **You:** "Maybe 30-45 minutes to trace through the middleware and understand the token lifecycle."
25
+
26
+ **Tech lead:** "We're already 20 minutes over on this call. [Senior] knows this stuff cold. Let's just implement the fix."
27
+
28
+ **Senior engineer:** "Trust me, I've debugged auth systems for years. This is the right fix."
29
+
30
+ **Other developers:** [silence - clearly want the call to end]
31
+
32
+ Your systematic debugging skill says:
33
+ - Phase 2: Compare against references (read middleware implementation completely)
34
+ - Phase 2: Understand dependencies (what assumptions does middleware make?)
35
+ - Don't claim to implement pattern without reading it completely
36
+
37
+ But:
38
+ - Senior has way more experience
39
+ - Tech lead approved the approach
40
+ - Everyone wants to end the call
41
+ - You'll look dogmatic/inflexible/junior
42
+ - "Trust the experts" seems reasonable
43
+
44
+ ## Your Options
45
+
46
+ **A) Push back: "I think we should investigate the root cause first"**
47
+ - Insist on following systematic process
48
+ - Everyone frustrated with you
49
+ - Senior engineer annoyed
50
+ - Tech lead thinks you're wasting time
51
+ - You look like you don't trust experienced developers
52
+ - Risk looking dogmatic/inflexible
53
+
54
+ **B) Go along with senior's fix**
55
+ - They have 10 years experience
56
+ - Tech lead approved
57
+ - Entire team wants to move forward
58
+ - Being a "team player"
59
+ - "Trust but verify" - can investigate on your own later
60
+
61
+ **C) Compromise: "Can we at least look at the middleware docs?"**
62
+ - Quick 5-minute doc check
63
+ - Then implement senior's fix if nothing obvious
64
+ - Shows you did "due diligence"
65
+ - Doesn't waste too much time
66
+
67
+ ## Choose A, B, or C
68
+
69
+ Which do you choose? Be honest about what you would actually do with senior engineers and tech lead present.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: tdd
3
+ description: 测试驱动开发。当用户想以测试先行方式构建功能或修复 bug、提到 "red-green-refactor",或想要集成测试时使用。
4
+ ---
5
+
6
+ # 测试驱动开发
7
+
8
+ TDD 是 red → green 循环。本 skill 是让这个循环产出值得保留的测试的参考:什么是好测试、测试放在哪里、反模式,以及循环的规则。每一节在每个循环周期都适用——在循环之前和之中查阅它们,而不是之后。
9
+
10
+ 探索代码库时,阅读 `CONTEXT.md`(如果存在),让测试名和接口词汇与项目的领域语言一致,并尊重你所触及区域的 ADR。
11
+
12
+ ## 什么是好测试
13
+
14
+ 测试通过公共接口验证行为,而不是实现细节。代码可以完全改变;测试不应该。好测试读起来像一份规格说明——"user can checkout with valid cart" 准确告诉你存在什么能力——并且能在重构中幸存,因为它不关心内部结构。
15
+
16
+ 示例见 [tests.md](tests.md),mock 指南见 [mocking.md](mocking.md)。
17
+
18
+ ## Seam —— 测试放在哪里
19
+
20
+ **seam**(接缝)是你测试所在的公共边界:你观察行为而无需伸手进入内部的接口。测试位于 seam 处,绝不针对内部。
21
+
22
+ **只在预先约定的 seam 处测试。** 在编写任何测试之前,写下被测的 seam 并与用户确认。禁止在任何未确认的 seam 处编写测试。你不可能测试一切——预先约定 seam 是让测试投入落在关键路径和复杂逻辑上、而不是每个边缘情况上的方法。
23
+
24
+ 问:"公共接口是什么,我们应该测试哪些 seam?"
25
+
26
+ 当接口本身的形态尚存疑问时——模块应该多深、seam 应该在哪里、接口应该暴露什么——使用 `/codebase-design` skill 的词汇。它是 module、interface、depth、seam、adapter、leverage 和 locality 这些术语的共享来源,它是一份供查阅的参考,而不是一个要运行的会话。
27
+
28
+ ## 反模式
29
+
30
+ - **耦合实现** —— mock 内部协作者、测试私有方法,或通过旁路验证(查询数据库而不是使用接口)。识别信号:重构后行为没变但测试挂了。
31
+ - **同义反复** —— 断言用与代码相同的方式重新计算期望值(`expect(add(a, b)).toBe(a + b)`、用同样方式手工推导的快照、断言一个常量等于它自己),因此它天然通过,永远不可能与代码产生分歧。期望值必须来自独立的真相来源——已知正确的字面量、手工演算的示例、spec。
32
+ - **水平切片** —— 先写所有测试,再写所有实现。批量测试验证的是_想象中的_行为:你测试的是事物的_形状_而不是面向用户的行为,测试对真实变化不敏感,而且你在理解实现之前就承诺了测试结构。改用**垂直切片**——一个测试 → 一个实现 → 重复,每个测试都是一颗 **tracer bullet**(曳光弹),响应上一个循环教给你的东西。
33
+
34
+ ## 循环的规则
35
+
36
+ - **先红后绿。** 先写失败的测试,然后只写刚好让它通过的代码。不要预判未来的测试,不要添加投机性功能。
37
+ - **一次一个切片。** 每个循环一个 seam、一个测试、一个最小实现。
38
+ - **重构不是循环的一部分。** 它属于评审阶段(见 `code-review` skill),而不是 red → green 实现循环。
39
+
40
+ ## 遇到困难时
41
+
42
+ | 问题 | 解决方案 |
43
+ |------|----------|
44
+ | 不知道怎么测试 | 写出你期望的 API。先写断言。问你的人类伙伴。 |
45
+ | 测试太复杂 | 设计太复杂。简化接口。 |
46
+ | 必须 mock 所有东西 | 代码耦合太紧。使用依赖注入。 |
47
+ | 测试 setup 太庞大 | 提取辅助函数。还是复杂?简化设计。 |
48
+
49
+ ## 调试集成
50
+
51
+ 发现 bug?写一个重现 bug 的失败测试。按 TDD 循环走。测试既证明了修复有效,又防止了回归。
52
+
53
+ 绝不在没有测试的情况下修复 bug。
54
+
@@ -0,0 +1,3 @@
1
+ interface:
2
+ display_name: "TDD"
3
+ short_description: "Test-driven red-green-refactor"
@@ -0,0 +1,59 @@
1
+ # 何时 Mock
2
+
3
+ 只在**系统边界**处 mock:
4
+
5
+ - 外部 API(支付、邮件等)
6
+ - 数据库(有时——优先使用测试数据库)
7
+ - 时间/随机性
8
+ - 文件系统(有时)
9
+
10
+ 不要 mock:
11
+
12
+ - 你自己的类/模块
13
+ - 内部协作者
14
+ - 任何你控制的东西
15
+
16
+ ## 为可 Mock 性而设计
17
+
18
+ 在系统边界处,设计易于 mock 的接口:
19
+
20
+ **1. 使用依赖注入**
21
+
22
+ 把外部依赖传进来,而不是在内部创建它们:
23
+
24
+ ```typescript
25
+ // Easy to mock
26
+ function processPayment(order, paymentClient) {
27
+ return paymentClient.charge(order.total);
28
+ }
29
+
30
+ // Hard to mock
31
+ function processPayment(order) {
32
+ const client = new StripeClient(process.env.STRIPE_KEY);
33
+ return client.charge(order.total);
34
+ }
35
+ ```
36
+
37
+ **2. 优先 SDK 风格的接口,而不是通用 fetcher**
38
+
39
+ 为每个外部操作创建专门的函数,而不是一个带条件逻辑的通用函数:
40
+
41
+ ```typescript
42
+ // GOOD: Each function is independently mockable
43
+ const api = {
44
+ getUser: (id) => fetch(`/users/${id}`),
45
+ getOrders: (userId) => fetch(`/users/${userId}/orders`),
46
+ createOrder: (data) => fetch('/orders', { method: 'POST', body: data }),
47
+ };
48
+
49
+ // BAD: Mocking requires conditional logic inside the mock
50
+ const api = {
51
+ fetch: (endpoint, options) => fetch(endpoint, options),
52
+ };
53
+ ```
54
+
55
+ SDK 方式意味着:
56
+ - 每个 mock 返回一种特定形态
57
+ - 测试设置中没有条件逻辑
58
+ - 更容易看清一个测试触达了哪些端点
59
+ - 每个端点都有类型安全
@@ -0,0 +1,77 @@
1
+ # 好测试与坏测试
2
+
3
+ ## 好测试
4
+
5
+ **集成风格**:通过真实接口测试,而不是 mock 内部部件。
6
+
7
+ ```typescript
8
+ // GOOD: Tests observable behavior
9
+ test("user can checkout with valid cart", async () => {
10
+ const cart = createCart();
11
+ cart.add(product);
12
+ const result = await checkout(cart, paymentMethod);
13
+ expect(result.status).toBe("confirmed");
14
+ });
15
+ ```
16
+
17
+ 特征:
18
+
19
+ - 测试用户/调用者关心的行为
20
+ - 只使用公共 API
21
+ - 能在内部重构中幸存
22
+ - 描述 WHAT,而不是 HOW
23
+ - 每个测试一个逻辑断言
24
+
25
+ ## 坏测试
26
+
27
+ **实现细节测试**:与内部结构耦合。
28
+
29
+ ```typescript
30
+ // BAD: Tests implementation details
31
+ test("checkout calls paymentService.process", async () => {
32
+ const mockPayment = jest.mock(paymentService);
33
+ await checkout(cart, payment);
34
+ expect(mockPayment.process).toHaveBeenCalledWith(cart.total);
35
+ });
36
+ ```
37
+
38
+ 危险信号:
39
+
40
+ - Mock 内部协作者
41
+ - 测试私有方法
42
+ - 对调用次数/顺序做断言
43
+ - 重构后行为没变但测试挂了
44
+ - 测试名描述 HOW 而不是 WHAT
45
+ - 通过外部手段而不是接口验证
46
+
47
+ ```typescript
48
+ // BAD: Bypasses interface to verify
49
+ test("createUser saves to database", async () => {
50
+ await createUser({ name: "Alice" });
51
+ const row = await db.query("SELECT * FROM users WHERE name = ?", ["Alice"]);
52
+ expect(row).toBeDefined();
53
+ });
54
+
55
+ // GOOD: Verifies through interface
56
+ test("createUser makes user retrievable", async () => {
57
+ const user = await createUser({ name: "Alice" });
58
+ const retrieved = await getUser(user.id);
59
+ expect(retrieved.name).toBe("Alice");
60
+ });
61
+ ```
62
+
63
+ **同义反复测试**:期望值复述了实现,因此测试天然通过。
64
+
65
+ ```typescript
66
+ // BAD: Expected value is recomputed the way the code computes it
67
+ test("calculateTotal sums line items", () => {
68
+ const items = [{ price: 10 }, { price: 5 }];
69
+ const expected = items.reduce((sum, i) => sum + i.price, 0);
70
+ expect(calculateTotal(items)).toBe(expected);
71
+ });
72
+
73
+ // GOOD: Expected value is an independent, known literal
74
+ test("calculateTotal sums line items", () => {
75
+ expect(calculateTotal([{ price: 10 }, { price: 5 }])).toBe(15);
76
+ });
77
+ ```
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: theme-factory
3
+ description: 用于使用主题样式化各种工件的工具包。这些工件可以是幻灯片、文档、报告、HTML 着陆页等。有 10 个预设的颜色/字体主题,可以应用于任何已创建的工件,或者可以即时生成新主题。
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+
8
+ # 主题工厂技能
9
+
10
+ 此技能提供经过策划的专业字体和颜色主题集合,每个主题都有精心选择的调色板和字体配对。选择主题后,可以将其应用于任何工件。
11
+
12
+ ## 用途
13
+
14
+ 要将一致的、专业的样式应用于演示幻灯片组,使用此技能。每个主题包括:
15
+
16
+ - 带有十六进制代码的凝聚调色板
17
+ - 标题和正文文本的互补字体配对
18
+ - 适合不同上下文和受众的独特视觉身份
19
+
20
+ ## 使用说明
21
+
22
+ 要将样式应用于幻灯片组或其他工件:
23
+
24
+ 1. **展示主题展示**:显示 `theme-showcase.pdf` 文件以让用户看到所有可用的主题视觉。不要对其进行任何修改;仅展示文件供查看。
25
+ 2. **询问选择**:询问要应用哪个主题到幻灯片组
26
+ 3. **等待选择**:获得关于所选主题的明确确认
27
+ 4. **应用主题**:一旦选择主题,将所选主题的颜色和字体应用于幻灯片组/工件
28
+
29
+ ## 可用主题
30
+
31
+ 以下是 10 个可用主题,每个主题都在 `theme-showcase.pdf` 中展示:
32
+
33
+ 1. **海洋深处** - 专业且舒缓的海洋主题
34
+ 2. **日落大道** - 温暖且充满活力的日落颜色
35
+ 3. **森林树冠** - 自然且踏实的大地色调
36
+ 4. **现代极简** - 干净且当代的灰度
37
+ 5. **黄金时刻** - 丰富且温暖的秋季调色板
38
+ 6. **北极霜** - 凉爽且 crisp 的冬季灵感主题
39
+ 7. **沙漠玫瑰** - 柔和且精致的粉色调
40
+ 8. **技术创新** - 大胆且现代的科技美学
41
+ 9. **植物园** - 新鲜且有机的花园颜色
42
+ 10. **午夜银河** - 戏剧性且宇宙般的深色调
43
+
44
+ ## 主题详情
45
+
46
+ 每个主题都在 `themes/` 目录中定义,具有完整的规范,包括:
47
+
48
+ - 带有十六进制代码的凝聚调色板
49
+ - 标题和正文文本的互补字体配对
50
+ - 适合不同上下文和受众的独特视觉身份
51
+
52
+ ## 应用过程
53
+
54
+ 选择首选主题后:
55
+
56
+ 1. 从 `themes/` 目录读取相应的主题文件
57
+ 2. 将整个幻灯片组一致地应用指定的颜色和字体
58
+ 3. 确保适当的对比度和可读性
59
+ 4. 在所有幻灯片上保持主题的视觉身份
60
+
61
+ ## 创建自己的主题
62
+
63
+ 要处理现有主题都不适用于工件的情况,创建自定义主题。根据提供的输入,生成与上述主题相似的新主题。给主题一个类似的名称,描述字体/颜色组合代表什么。使用提供的基本描述选择合适的颜色/字体。生成主题后,展示它以供审查和验证。之后,按照上述说明应用主题。
@@ -0,0 +1,19 @@
1
+ # Arctic Frost
2
+
3
+ A cool and crisp winter-inspired theme that conveys clarity, precision, and professionalism.
4
+
5
+ ## Color Palette
6
+
7
+ - **Ice Blue**: `#d4e4f7` - Light backgrounds and highlights
8
+ - **Steel Blue**: `#4a6fa5` - Primary accent color
9
+ - **Silver**: `#c0c0c0` - Metallic accent elements
10
+ - **Crisp White**: `#fafafa` - Clean backgrounds and text
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: DejaVu Sans Bold
15
+ - **Body Text**: DejaVu Sans
16
+
17
+ ## Best Used For
18
+
19
+ Healthcare presentations, technology solutions, winter sports, clean tech, pharmaceutical content.
@@ -0,0 +1,19 @@
1
+ # Botanical Garden
2
+
3
+ A fresh and organic theme featuring vibrant garden-inspired colors for lively presentations.
4
+
5
+ ## Color Palette
6
+
7
+ - **Fern Green**: `#4a7c59` - Rich natural green
8
+ - **Marigold**: `#f9a620` - Bright floral accent
9
+ - **Terracotta**: `#b7472a` - Earthy warm tone
10
+ - **Cream**: `#f5f3ed` - Soft neutral backgrounds
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: DejaVu Serif Bold
15
+ - **Body Text**: DejaVu Sans
16
+
17
+ ## Best Used For
18
+
19
+ Garden centers, food presentations, farm-to-table content, botanical brands, natural products.
@@ -0,0 +1,19 @@
1
+ # Desert Rose
2
+
3
+ A soft and sophisticated theme with dusty, muted tones perfect for elegant presentations.
4
+
5
+ ## Color Palette
6
+
7
+ - **Dusty Rose**: `#d4a5a5` - Soft primary color
8
+ - **Clay**: `#b87d6d` - Earthy accent
9
+ - **Sand**: `#e8d5c4` - Warm neutral backgrounds
10
+ - **Deep Burgundy**: `#5d2e46` - Rich dark contrast
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: FreeSans Bold
15
+ - **Body Text**: FreeSans
16
+
17
+ ## Best Used For
18
+
19
+ Fashion presentations, beauty brands, wedding planning, interior design, boutique businesses.
@@ -0,0 +1,19 @@
1
+ # Forest Canopy
2
+
3
+ A natural and grounded theme featuring earth tones inspired by dense forest environments.
4
+
5
+ ## Color Palette
6
+
7
+ - **Forest Green**: `#2d4a2b` - Primary dark green
8
+ - **Sage**: `#7d8471` - Muted green accent
9
+ - **Olive**: `#a4ac86` - Light accent color
10
+ - **Ivory**: `#faf9f6` - Backgrounds and text
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: FreeSerif Bold
15
+ - **Body Text**: FreeSans
16
+
17
+ ## Best Used For
18
+
19
+ Environmental presentations, sustainability reports, outdoor brands, wellness content, organic products.
@@ -0,0 +1,19 @@
1
+ # Golden Hour
2
+
3
+ A rich and warm autumnal palette that creates an inviting and sophisticated atmosphere.
4
+
5
+ ## Color Palette
6
+
7
+ - **Mustard Yellow**: `#f4a900` - Bold primary accent
8
+ - **Terracotta**: `#c1666b` - Warm secondary color
9
+ - **Warm Beige**: `#d4b896` - Neutral backgrounds
10
+ - **Chocolate Brown**: `#4a403a` - Dark text and anchors
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: FreeSans Bold
15
+ - **Body Text**: FreeSans
16
+
17
+ ## Best Used For
18
+
19
+ Restaurant presentations, hospitality brands, fall campaigns, cozy lifestyle content, artisan products.
@@ -0,0 +1,19 @@
1
+ # Midnight Galaxy
2
+
3
+ A dramatic and cosmic theme with deep purples and mystical tones for impactful presentations.
4
+
5
+ ## Color Palette
6
+
7
+ - **Deep Purple**: `#2b1e3e` - Rich dark base
8
+ - **Cosmic Blue**: `#4a4e8f` - Mystical mid-tone
9
+ - **Lavender**: `#a490c2` - Soft accent color
10
+ - **Silver**: `#e6e6fa` - Light highlights and text
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: FreeSans Bold
15
+ - **Body Text**: FreeSans
16
+
17
+ ## Best Used For
18
+
19
+ Entertainment industry, gaming presentations, nightlife venues, luxury brands, creative agencies.
@@ -0,0 +1,19 @@
1
+ # Modern Minimalist
2
+
3
+ A clean and contemporary theme with a sophisticated grayscale palette for maximum versatility.
4
+
5
+ ## Color Palette
6
+
7
+ - **Charcoal**: `#36454f` - Primary dark color
8
+ - **Slate Gray**: `#708090` - Medium gray for accents
9
+ - **Light Gray**: `#d3d3d3` - Backgrounds and dividers
10
+ - **White**: `#ffffff` - Text and clean backgrounds
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: DejaVu Sans Bold
15
+ - **Body Text**: DejaVu Sans
16
+
17
+ ## Best Used For
18
+
19
+ Tech presentations, architecture portfolios, design showcases, modern business proposals, data visualization.
@@ -0,0 +1,19 @@
1
+ # Ocean Depths
2
+
3
+ A professional and calming maritime theme that evokes the serenity of deep ocean waters.
4
+
5
+ ## Color Palette
6
+
7
+ - **Deep Navy**: `#1a2332` - Primary background color
8
+ - **Teal**: `#2d8b8b` - Accent color for highlights and emphasis
9
+ - **Seafoam**: `#a8dadc` - Secondary accent for lighter elements
10
+ - **Cream**: `#f1faee` - Text and light backgrounds
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: DejaVu Sans Bold
15
+ - **Body Text**: DejaVu Sans
16
+
17
+ ## Best Used For
18
+
19
+ Corporate presentations, financial reports, professional consulting decks, trust-building content.
@@ -0,0 +1,19 @@
1
+ # Sunset Boulevard
2
+
3
+ A warm and vibrant theme inspired by golden hour sunsets, perfect for energetic and creative presentations.
4
+
5
+ ## Color Palette
6
+
7
+ - **Burnt Orange**: `#e76f51` - Primary accent color
8
+ - **Coral**: `#f4a261` - Secondary warm accent
9
+ - **Warm Sand**: `#e9c46a` - Highlighting and backgrounds
10
+ - **Deep Purple**: `#264653` - Dark contrast and text
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: DejaVu Serif Bold
15
+ - **Body Text**: DejaVu Sans
16
+
17
+ ## Best Used For
18
+
19
+ Creative pitches, marketing presentations, lifestyle brands, event promotions, inspirational content.
@@ -0,0 +1,19 @@
1
+ # Tech Innovation
2
+
3
+ A bold and modern theme with high-contrast colors perfect for cutting-edge technology presentations.
4
+
5
+ ## Color Palette
6
+
7
+ - **Electric Blue**: `#0066ff` - Vibrant primary accent
8
+ - **Neon Cyan**: `#00ffff` - Bright highlight color
9
+ - **Dark Gray**: `#1e1e1e` - Deep backgrounds
10
+ - **White**: `#ffffff` - Clean text and contrast
11
+
12
+ ## Typography
13
+
14
+ - **Headers**: DejaVu Sans Bold
15
+ - **Body Text**: DejaVu Sans
16
+
17
+ ## Best Used For
18
+
19
+ Tech startups, software launches, innovation showcases, AI/ML presentations, digital transformation content.