@rfxlamia/skillkit 1.0.0 → 1.2.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 (269) hide show
  1. package/agents/agents/creative-copywriter.md +212 -0
  2. package/agents/agents/dario-amodei.md +135 -0
  3. package/agents/agents/doc-simplifier.md +63 -0
  4. package/agents/agents/kotlin-pro.md +433 -0
  5. package/agents/agents/red-team.md +136 -0
  6. package/agents/agents/sam-altman.md +121 -0
  7. package/agents/agents/seo-manager.md +184 -0
  8. package/package.json +7 -2
  9. package/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
  10. package/skills/skillkit/.claude/settings.local.json +7 -0
  11. package/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
  12. package/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
  13. package/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
  14. package/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
  15. package/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  16. package/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
  17. package/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
  18. package/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
  19. package/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
  20. package/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
  21. package/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
  22. package/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
  23. package/skills/skillkit-help/SKILL.md +81 -0
  24. package/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
  25. package/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
  26. package/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
  27. package/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
  28. package/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
  29. package/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
  30. package/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
  31. package/skills/skillkit-help/template/SKILL.md +52 -0
  32. package/skills/skills/adversarial-review/SKILL.md +219 -0
  33. package/skills/skills/baby-education/SKILL.md +260 -0
  34. package/skills/skills/baby-education/references/advanced-techniques.md +323 -0
  35. package/skills/skills/baby-education/references/transformations.md +345 -0
  36. package/skills/skills/been-there-done-that/SKILL.md +455 -0
  37. package/skills/skills/been-there-done-that/references/analysis-patterns.md +162 -0
  38. package/skills/skills/been-there-done-that/references/git-commands.md +132 -0
  39. package/skills/skills/been-there-done-that/references/tree-insertion-logic.md +145 -0
  40. package/skills/skills/coolhunter/SKILL.md +270 -0
  41. package/skills/skills/coolhunter/assets/elicitation-methods.csv +51 -0
  42. package/skills/skills/coolhunter/knowledge/elicitation-methods.md +312 -0
  43. package/skills/skills/coolhunter/references/workflow-execution.md +238 -0
  44. package/skills/skills/coolhunter/workflow-plan-coolhunter.md +232 -0
  45. package/skills/skills/creative-copywriting/SKILL.md +324 -0
  46. package/skills/skills/creative-copywriting/databases/README.md +60 -0
  47. package/skills/skills/creative-copywriting/databases/carousel-structures.csv +16 -0
  48. package/skills/skills/creative-copywriting/databases/emotional-arcs.csv +11 -0
  49. package/skills/skills/creative-copywriting/databases/hook-formulas.csv +51 -0
  50. package/skills/skills/creative-copywriting/databases/power-words.csv +201 -0
  51. package/skills/skills/creative-copywriting/databases/psychological-triggers.csv +21 -0
  52. package/skills/skills/creative-copywriting/databases/read-more-patterns.csv +26 -0
  53. package/skills/skills/creative-copywriting/databases/swipe-triggers.csv +31 -0
  54. package/skills/skills/creative-copywriting/references/carousel-psychology.md +223 -0
  55. package/skills/skills/creative-copywriting/references/hook-anatomy.md +169 -0
  56. package/skills/skills/creative-copywriting/references/power-word-science.md +134 -0
  57. package/skills/skills/creative-copywriting/references/storytelling-frameworks.md +157 -0
  58. package/skills/skills/diverse-content-gen/SKILL.md +201 -0
  59. package/skills/skills/diverse-content-gen/references/advanced-techniques.md +320 -0
  60. package/skills/skills/diverse-content-gen/references/research-findings.md +379 -0
  61. package/skills/skills/diverse-content-gen/references/task-workflows.md +241 -0
  62. package/skills/skills/diverse-content-gen/references/tool-integration.md +419 -0
  63. package/skills/skills/diverse-content-gen/references/troubleshooting.md +426 -0
  64. package/skills/skills/diverse-content-gen/references/vs-core-technique.md +240 -0
  65. package/skills/skills/framework-critical-thinking/SKILL.md +220 -0
  66. package/skills/skills/framework-critical-thinking/references/bias_detector.md +375 -0
  67. package/skills/skills/framework-critical-thinking/references/fallback_handler.md +239 -0
  68. package/skills/skills/framework-critical-thinking/references/memory_curator.md +161 -0
  69. package/skills/skills/framework-critical-thinking/references/metacognitive_monitor.md +297 -0
  70. package/skills/skills/framework-critical-thinking/references/producer_critic_orchestrator.md +333 -0
  71. package/skills/skills/framework-critical-thinking/references/reasoning_router.md +235 -0
  72. package/skills/skills/framework-critical-thinking/references/reasoning_validator.md +97 -0
  73. package/skills/skills/framework-critical-thinking/references/reflection_trigger.md +78 -0
  74. package/skills/skills/framework-critical-thinking/references/self_verification.md +388 -0
  75. package/skills/skills/framework-critical-thinking/references/uncertainty_quantifier.md +207 -0
  76. package/skills/skills/framework-initiative/SKILL.md +231 -0
  77. package/skills/skills/framework-initiative/references/examples.md +150 -0
  78. package/skills/skills/framework-initiative/references/impact-analysis.md +157 -0
  79. package/skills/skills/framework-initiative/references/intent-patterns.md +145 -0
  80. package/skills/skills/framework-initiative/references/star-framework.md +165 -0
  81. package/skills/skills/humanize-docs/SKILL.md +203 -0
  82. package/skills/skills/humanize-docs/references/advanced-techniques.md +13 -0
  83. package/skills/skills/humanize-docs/references/core-transformations.md +368 -0
  84. package/skills/skills/humanize-docs/references/detection-patterns.md +400 -0
  85. package/skills/skills/humanize-docs/references/examples-gallery.md +374 -0
  86. package/skills/skills/imagine/SKILL.md +190 -0
  87. package/skills/skills/imagine/references/artstyle-corporate-memphis.md +625 -0
  88. package/skills/skills/imagine/references/artstyle-crewdson-hyperrealism.md +295 -0
  89. package/skills/skills/imagine/references/artstyle-iphone-social-media.md +426 -0
  90. package/skills/skills/imagine/references/artstyle-sciencesaru.md +276 -0
  91. package/skills/skills/pre-deploy-checklist/README.md +26 -0
  92. package/skills/skills/pre-deploy-checklist/SKILL.md +153 -0
  93. package/skills/skills/pre-deploy-checklist/references/checklist-categories.md +174 -0
  94. package/skills/skills/pre-deploy-checklist/references/domain-prompts.md +216 -0
  95. package/skills/skills/prompt-engineering/SKILL.md +209 -0
  96. package/skills/skills/prompt-engineering/references/advanced-combinations.md +444 -0
  97. package/skills/skills/prompt-engineering/references/chain-of-thought.md +140 -0
  98. package/skills/skills/prompt-engineering/references/decision_matrix.md +220 -0
  99. package/skills/skills/prompt-engineering/references/few-shot.md +346 -0
  100. package/skills/skills/prompt-engineering/references/json-format.md +270 -0
  101. package/skills/skills/prompt-engineering/references/natural-language.md +420 -0
  102. package/skills/skills/prompt-engineering/references/pitfalls.md +365 -0
  103. package/skills/skills/prompt-engineering/references/prompt-chaining.md +498 -0
  104. package/skills/skills/prompt-engineering/references/react.md +108 -0
  105. package/skills/skills/prompt-engineering/references/self-consistency.md +322 -0
  106. package/skills/skills/prompt-engineering/references/tree-of-thoughts.md +386 -0
  107. package/skills/skills/prompt-engineering/references/xml-format.md +220 -0
  108. package/skills/skills/prompt-engineering/references/yaml-format.md +488 -0
  109. package/skills/skills/prompt-engineering/references/zero-shot.md +74 -0
  110. package/skills/skills/quick-spec/SKILL.md +280 -0
  111. package/skills/skills/quick-spec/assets/tech-spec-template.md +74 -0
  112. package/skills/skills/quick-spec/references/step-01-understand.md +189 -0
  113. package/skills/skills/quick-spec/references/step-02-investigate.md +144 -0
  114. package/skills/skills/quick-spec/references/step-03-generate.md +128 -0
  115. package/skills/skills/quick-spec/references/step-04-review.md +173 -0
  116. package/skills/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
  117. package/skills/skills/quick-spec/tests/test_scenarios.md +83 -0
  118. package/skills/skills/quick-spec/tests/test_skill.py +136 -0
  119. package/skills/skills/readme-expert/SKILL.md +538 -0
  120. package/skills/skills/readme-expert/knowledge/INDEX.md +192 -0
  121. package/skills/skills/readme-expert/knowledge/application/quality-standards.md +470 -0
  122. package/skills/skills/readme-expert/knowledge/application/script-executor.md +604 -0
  123. package/skills/skills/readme-expert/knowledge/application/template-library.md +822 -0
  124. package/skills/skills/readme-expert/knowledge/foundation/codebase-scanner.md +361 -0
  125. package/skills/skills/readme-expert/knowledge/foundation/validation-checklist.md +481 -0
  126. package/skills/skills/red-teaming/SKILL.md +321 -0
  127. package/skills/skills/red-teaming/references/ai-llm-redteam.md +517 -0
  128. package/skills/skills/red-teaming/references/attack-techniques.md +410 -0
  129. package/skills/skills/red-teaming/references/cybersecurity-redteam.md +383 -0
  130. package/skills/skills/red-teaming/references/tools-frameworks.md +446 -0
  131. package/skills/skills/releasing/.skillkit-mode +1 -0
  132. package/skills/skills/releasing/SKILL.md +225 -0
  133. package/skills/skills/releasing/references/version-detection.md +108 -0
  134. package/skills/skills/screenwriter/SKILL.md +273 -0
  135. package/skills/skills/screenwriter/references/advanced-techniques.md +216 -0
  136. package/skills/skills/screenwriter/references/pipeline-integration.md +266 -0
  137. package/skills/skills/skillkit/.claude/settings.local.json +7 -0
  138. package/skills/skills/skillkit/.claude-plugin/plugin.json +27 -0
  139. package/skills/skills/skillkit/CHANGELOG.md +484 -0
  140. package/skills/skills/skillkit/SKILL.md +511 -0
  141. package/skills/skills/skillkit/commands/skillkit.md +6 -0
  142. package/skills/skills/skillkit/commands/validate-plan.md +6 -0
  143. package/skills/skills/skillkit/commands/verify.md +6 -0
  144. package/skills/skills/skillkit/knowledge/INDEX.md +352 -0
  145. package/skills/skills/skillkit/knowledge/application/09-case-studies.md +257 -0
  146. package/skills/skills/skillkit/knowledge/application/10-technical-architecture.md +324 -0
  147. package/skills/skills/skillkit/knowledge/application/11-adoption-strategy.md +267 -0
  148. package/skills/skills/skillkit/knowledge/application/12-testing-and-validation.md +276 -0
  149. package/skills/skills/skillkit/knowledge/application/13-competitive-landscape.md +198 -0
  150. package/skills/skills/skillkit/knowledge/foundation/01-why-skills-exist.md +246 -0
  151. package/skills/skills/skillkit/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
  152. package/skills/skills/skillkit/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
  153. package/skills/skills/skillkit/knowledge/foundation/04-hybrid-patterns.md +308 -0
  154. package/skills/skills/skillkit/knowledge/foundation/05-token-economics.md +275 -0
  155. package/skills/skills/skillkit/knowledge/foundation/06-platform-constraints.md +237 -0
  156. package/skills/skills/skillkit/knowledge/foundation/07-security-concerns.md +322 -0
  157. package/skills/skills/skillkit/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
  158. package/skills/skills/skillkit/knowledge/plugin-guide.md +614 -0
  159. package/skills/skills/skillkit/knowledge/tools/14-validation-tools-guide.md +150 -0
  160. package/skills/skills/skillkit/knowledge/tools/15-cost-tools-guide.md +157 -0
  161. package/skills/skills/skillkit/knowledge/tools/16-security-tools-guide.md +122 -0
  162. package/skills/skills/skillkit/knowledge/tools/17-pattern-tools-guide.md +161 -0
  163. package/skills/skills/skillkit/knowledge/tools/18-decision-helper-guide.md +243 -0
  164. package/skills/skills/skillkit/knowledge/tools/19-test-generator-guide.md +275 -0
  165. package/skills/skills/skillkit/knowledge/tools/20-split-skill-guide.md +149 -0
  166. package/skills/skills/skillkit/knowledge/tools/21-quality-scorer-guide.md +226 -0
  167. package/skills/skills/skillkit/knowledge/tools/22-migration-helper-guide.md +356 -0
  168. package/skills/skills/skillkit/knowledge/tools/23-subagent-creation-guide.md +448 -0
  169. package/skills/skills/skillkit/knowledge/tools/24-behavioral-testing-guide.md +122 -0
  170. package/skills/skills/skillkit/references/proposal-generation.md +982 -0
  171. package/skills/skills/skillkit/references/rationalization-catalog.md +75 -0
  172. package/skills/skills/skillkit/references/research-methodology.md +661 -0
  173. package/skills/skills/skillkit/references/section-2-full-creation-workflow.md +452 -0
  174. package/skills/skills/skillkit/references/section-3-validation-workflow-existing-skill.md +63 -0
  175. package/skills/skills/skillkit/references/section-4-decision-workflow-skills-vs-subagents.md +64 -0
  176. package/skills/skills/skillkit/references/section-5-migration-workflow-doc-to-skill.md +58 -0
  177. package/skills/skills/skillkit/references/section-6-subagent-creation-workflow.md +499 -0
  178. package/skills/skills/skillkit/references/section-7-knowledge-reference-map.md +72 -0
  179. package/skills/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
  180. package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
  181. package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
  182. package/skills/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
  183. package/skills/skills/skillkit/scripts/decision_helper.py +799 -0
  184. package/skills/skills/skillkit/scripts/init_skill.py +400 -0
  185. package/skills/skills/skillkit/scripts/init_subagent.py +231 -0
  186. package/skills/skills/skillkit/scripts/migration_helper.py +669 -0
  187. package/skills/skills/skillkit/scripts/package_skill.py +211 -0
  188. package/skills/skills/skillkit/scripts/pattern_detector.py +381 -0
  189. package/skills/skills/skillkit/scripts/pattern_detector_new.py +382 -0
  190. package/skills/skills/skillkit/scripts/pressure_tester.py +157 -0
  191. package/skills/skills/skillkit/scripts/quality_scorer.py +999 -0
  192. package/skills/skills/skillkit/scripts/quick_validate.py +100 -0
  193. package/skills/skills/skillkit/scripts/security_scanner.py +474 -0
  194. package/skills/skills/skillkit/scripts/split_skill.py +540 -0
  195. package/skills/skills/skillkit/scripts/test_generator.py +695 -0
  196. package/skills/skills/skillkit/scripts/token_estimator.py +493 -0
  197. package/skills/skills/skillkit/scripts/utils/__init__.py +49 -0
  198. package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  199. package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
  200. package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
  201. package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
  202. package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
  203. package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
  204. package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
  205. package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
  206. package/skills/skills/skillkit/scripts/utils/budget_tracker.py +388 -0
  207. package/skills/skills/skillkit/scripts/utils/output_formatter.py +263 -0
  208. package/skills/skills/skillkit/scripts/utils/reference_validator.py +401 -0
  209. package/skills/skills/skillkit/scripts/validate_skill.py +594 -0
  210. package/skills/skills/skillkit/tests/test_behavioral.py +39 -0
  211. package/skills/skills/skillkit/tests/test_scenarios.md +83 -0
  212. package/skills/skills/skillkit/tests/test_skill.py +136 -0
  213. package/skills/skills/skillkit-help/SKILL.md +81 -0
  214. package/skills/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
  215. package/skills/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
  216. package/skills/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
  217. package/skills/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
  218. package/skills/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
  219. package/skills/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
  220. package/skills/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
  221. package/skills/skills/skillkit-help/template/SKILL.md +52 -0
  222. package/skills/skills/social-media-seo/SKILL.md +278 -0
  223. package/skills/skills/social-media-seo/databases/caption-styles.csv +31 -0
  224. package/skills/skills/social-media-seo/databases/engagement-tactics.csv +16 -0
  225. package/skills/skills/social-media-seo/databases/hashtag-strategies.csv +21 -0
  226. package/skills/skills/social-media-seo/databases/hook-formulas.csv +26 -0
  227. package/skills/skills/social-media-seo/databases/keyword-clusters.csv +11 -0
  228. package/skills/skills/social-media-seo/databases/thread-structures.csv +26 -0
  229. package/skills/skills/social-media-seo/databases/viral-patterns.csv +21 -0
  230. package/skills/skills/social-media-seo/references/analytics-guide.md +321 -0
  231. package/skills/skills/social-media-seo/references/instagram-seo.md +235 -0
  232. package/skills/skills/social-media-seo/references/threads-seo.md +305 -0
  233. package/skills/skills/social-media-seo/references/x-twitter-seo.md +337 -0
  234. package/skills/skills/social-media-seo/scripts/query_database.py +191 -0
  235. package/skills/skills/storyteller/SKILL.md +241 -0
  236. package/skills/skills/storyteller/references/transformation-methodology.md +293 -0
  237. package/skills/skills/storyteller/references/visual-vocabulary.md +177 -0
  238. package/skills/skills/thread-pro/SKILL.md +162 -0
  239. package/skills/skills/thread-pro/anti-ai-patterns.md +120 -0
  240. package/skills/skills/thread-pro/hook-formulas.md +138 -0
  241. package/skills/skills/thread-pro/references/anti-ai-patterns.md +120 -0
  242. package/skills/skills/thread-pro/references/hook-formulas.md +138 -0
  243. package/skills/skills/thread-pro/references/thread-structures.md +240 -0
  244. package/skills/skills/thread-pro/references/voice-injection.md +130 -0
  245. package/skills/skills/thread-pro/thread-structures.md +240 -0
  246. package/skills/skills/thread-pro/voice-injection.md +130 -0
  247. package/skills/skills/tinkering/SKILL.md +251 -0
  248. package/skills/skills/tinkering/references/graduation-checklist.md +100 -0
  249. package/skills/skills/validate-plan/.skillkit-mode +1 -0
  250. package/skills/skills/validate-plan/SKILL.md +406 -0
  251. package/skills/skills/validate-plan/references/dry-principles.md +251 -0
  252. package/skills/skills/validate-plan/references/gap-analysis-guide.md +320 -0
  253. package/skills/skills/validate-plan/references/tdd-patterns.md +413 -0
  254. package/skills/skills/validate-plan/references/yagni-checklist.md +330 -0
  255. package/skills/skills/verify-before-ship/.skillkit-mode +1 -0
  256. package/skills/skills/verify-before-ship/SKILL.md +116 -0
  257. package/skills/skills/verify-before-ship/references/anti-rationalization.md +212 -0
  258. package/skills/skills/verify-before-ship/references/verification-gates.md +305 -0
  259. package/skills-manifest.json +8 -2
  260. package/src/banner.js +1 -1
  261. package/src/cli.js +15 -4
  262. package/src/install.js +45 -29
  263. package/src/install.test.js +75 -7
  264. package/src/picker.js +15 -4
  265. package/src/picker.test.js +36 -1
  266. package/src/scope.js +8 -39
  267. package/src/scope.test.js +9 -13
  268. package/src/tools.js +76 -0
  269. package/src/tools.test.js +80 -0
@@ -0,0 +1,346 @@
1
+ ---
2
+ title: "Decision Tree: Choosing Skills or Subagents"
3
+ purpose: "Practical framework for Skills vs Subagents decision-making"
4
+ token_estimate: "2400"
5
+ read_priority: "critical"
6
+ read_when:
7
+ - "User asking 'Should I use Skill or Subagent for X?'"
8
+ - "User needs decision guidance"
9
+ - "User describing a use case"
10
+ - "User wants recommendation"
11
+ - "Before starting implementation"
12
+ related_files:
13
+ must_read_first:
14
+ - "02-skills-vs-subagents-comparison.md"
15
+ read_together:
16
+ - "04-hybrid-patterns.md"
17
+ read_next:
18
+ - "05-token-economics.md"
19
+ avoid_reading_when:
20
+ - "User already decided (skip to implementation)"
21
+ - "User only needs conceptual understanding (read 02 only)"
22
+ - "User asking about costs (skip to 05)"
23
+ last_updated: "2025-10-31"
24
+ ---
25
+
26
+ # Decision Tree: Choosing Skills or Subagents
27
+
28
+ ## I. INTRODUCTION
29
+
30
+ This file provides practical decision framework for choosing between Skills and Subagents using 8-question scoring system.
31
+
32
+ **Prerequisites:** Understand conceptual differences first (see `02-skills-vs-subagents-comparison.md`)
33
+
34
+ **How This Works:** Answer 8 questions about your use case. Each answer scores +1 (favors Skill), -1 (favors Subagent), or 0 (neutral). Calculate confidence score for recommendation with reasoning.
35
+
36
+ **Important:** This is guidance framework, not rigid rules. Consider context and specific requirements.
37
+
38
+ ---
39
+
40
+ ## II. DECISION FLOWCHART
41
+
42
+ Quick visual guide for decision process:
43
+
44
+ ```
45
+ Is it a utility/conversion/template?
46
+ ├─ YES → SKILL (+1)
47
+ └─ NO → Continue
48
+
49
+ Does it need multiple steps of reasoning?
50
+ ├─ YES → SUBAGENT (-1)
51
+ └─ NO → Continue
52
+
53
+ Will it be reused as building block?
54
+ ├─ YES → SKILL (+1)
55
+ └─ NO → Continue
56
+
57
+ Does it need specialized personality?
58
+ ├─ YES → SUBAGENT (-1)
59
+ └─ NO → Continue
60
+
61
+ Is it knowledge Claude doesn't have?
62
+ ├─ YES → SKILL (+1)
63
+ └─ NO → Continue
64
+
65
+ Does it coordinate operations?
66
+ ├─ YES → SUBAGENT (-1)
67
+ └─ NO → Continue
68
+
69
+ Does it need isolated context?
70
+ ├─ YES → SUBAGENT (-1)
71
+ └─ NO → Continue
72
+
73
+ Would it clutter main chat?
74
+ ├─ YES → SUBAGENT (-1)
75
+ └─ NO → SKILL (+1)
76
+
77
+ SCORE INTERPRETATION:
78
+ +6 to +8: Strong Skill
79
+ +3 to +5: Moderate Skill
80
+ -1 to +2: Consider Hybrid
81
+ -3 to -5: Moderate Subagent
82
+ -6 to -8: Strong Subagent
83
+ ```
84
+
85
+ ---
86
+
87
+ ## III. 8 KEY QUESTIONS
88
+
89
+ ### Q1: Is It a Utility/Conversion/Template Task?
90
+
91
+ **Question:** Does the task primarily involve applying standard procedures, converting formats, or using templates?
92
+
93
+ **Examples:**
94
+ - YES: PDF to Excel conversion, brand guidelines application
95
+ - NO: Code review with multiple validation stages
96
+
97
+ **Scoring:** YES → +1 | NO → -1 | MAYBE → 0
98
+
99
+ **Why:** Skills excel for well-defined procedural tasks (file conversions, template applications, utility functions).
100
+
101
+ ---
102
+
103
+ ### Q2: Does It Need Multiple Steps of Reasoning?
104
+
105
+ **Question:** Does the task require multiple decision points, hypothesis testing, or iterative refinement?
106
+
107
+ **Examples:**
108
+ - YES: Code review (scan → analyze → prioritize → recommend)
109
+ - NO: Apply coding style guide, extract text from PDF
110
+
111
+ **Scoring:** YES → -1 | NO → +1 | MAYBE → 0
112
+
113
+ **Why:** Subagents designed for complex workflows with multiple stages and synthesis requirements.
114
+
115
+ ---
116
+
117
+ ### Q3: Will It Be Reused as Building Block?
118
+
119
+ **Question:** Will this capability be invoked by other workflows or agents as a utility?
120
+
121
+ **Examples:**
122
+ - YES: Document converter used by multiple subagents
123
+ - NO: One-time analysis for specific project
124
+
125
+ **Scoring:** YES → +1 | NO → -1 | MAYBE → 0
126
+
127
+ **Why:** Skills are composable building blocks. Research validates 65% subagent reduction by extracting templates to skills.
128
+
129
+ **For reusability patterns, see:** `04-hybrid-patterns.md`
130
+
131
+ ---
132
+
133
+ ### Q4: Does It Need Specialized Personality?
134
+
135
+ **Question:** Does the task benefit from specialized role, tone, or domain-specific persona?
136
+
137
+ **Examples:**
138
+ - YES: Security auditor (paranoid perspective), code reviewer (strict standards)
139
+ - NO: Format converter, template applier
140
+
141
+ **Scoring:** YES → -1 | NO → +1 | MAYBE → 0
142
+
143
+ **Why:** Subagents can embody specialized expertise with pre-configured AI personalities.
144
+
145
+ ---
146
+
147
+ ### Q5: Is It Knowledge Claude Doesn't Have?
148
+
149
+ **Question:** Does the task require organizational procedures, proprietary methods, or domain-specific knowledge beyond Claude's training?
150
+
151
+ **Examples:**
152
+ - YES: Company WACC methodology, organizational workflows
153
+ - NO: General code review principles, standard data analysis
154
+
155
+ **Scoring:** YES → +1 | NO → 0 | MAYBE → +1
156
+
157
+ **Why:** Skills extend Claude's knowledge with organizational procedures. Rakuten validates: "Skills streamline our workflows using our procedures."
158
+
159
+ ---
160
+
161
+ ### Q6: Does It Coordinate Operations with Decision Points?
162
+
163
+ **Question:** Does the task involve orchestrating multiple operations with conditional logic and branching paths?
164
+
165
+ **Examples:**
166
+ - YES: Multi-stage validation (if fail → retry, if pass → continue)
167
+ - NO: Linear transformation pipeline
168
+
169
+ **Scoring:** YES → -1 | NO → +1 | MAYBE → 0
170
+
171
+ **Why:** Subagents excel for coordination requiring multiple queries and synthesis.
172
+
173
+ ---
174
+
175
+ ### Q7: Does It Need Isolated Context?
176
+
177
+ **Question:** Would the task benefit from separate context window to avoid pollution or confusion?
178
+
179
+ **Examples:**
180
+ - YES: Long debugging session, extensive exploration
181
+ - NO: Quick utility function, template application
182
+
183
+ **Scoring:** YES → -1 | NO → +1 | MAYBE → 0
184
+
185
+ **Why:** Context isolation is a key Subagent feature preventing "context pollution" in main conversation.
186
+
187
+ **For token efficiency analysis, see:** `05-token-economics.md`
188
+
189
+ ---
190
+
191
+ ### Q8: Would It Clutter Main Chat with Intermediate Steps?
192
+
193
+ **Question:** Does the task generate substantial intermediate output that would overwhelm main conversation?
194
+
195
+ **Examples:**
196
+ - YES: Security scan with 50+ findings, comprehensive code analysis
197
+ - NO: Single file conversion, template application
198
+
199
+ **Scoring:** YES → -1 | NO → +1 | MAYBE → 0
200
+
201
+ **Why:** Subagents return clean summaries, keeping main conversation focused.
202
+
203
+ ---
204
+
205
+ ## IV. CONFIDENCE SCORING
206
+
207
+ ### Calculation Method
208
+
209
+ Sum your scores from 8 questions. Range: -8 (strong Subagent) to +8 (strong Skill).
210
+
211
+ ### Score Interpretation Table
212
+
213
+ | Score Range | Recommendation | Characteristics | Token Cost | Complexity |
214
+ |-------------|----------------|-----------------|------------|------------|
215
+ | **+6 to +8** | STRONG SKILL | Utility functions, procedures | 30-50 tokens overhead | Low |
216
+ | **+3 to +5** | MODERATE SKILL | Mostly procedural with some logic | Low overhead | Low-Medium |
217
+ | **-1 to +2** | CONSIDER HYBRID | Mix of utility + orchestration | Optimized | Medium |
218
+ | **-3 to -5** | MODERATE SUBAGENT | Multi-step with some structure | 15x multiplier | Medium-High |
219
+ | **-6 to -8** | STRONG SUBAGENT | Complex workflows, expertise needed | High (justified) | High |
220
+
221
+ ### Confidence Modifiers
222
+
223
+ **Increase Confidence in Skill IF:**
224
+ - Task repeats frequently (token efficiency matters)
225
+ - Multiple teams will use it (reusability critical)
226
+ - Procedural knowledge well-documented
227
+ - No iteration or exploration needed
228
+
229
+ **Increase Confidence in Subagent IF:**
230
+ - Task high-value and infrequent (cost justified)
231
+ - Requires domain expertise personality
232
+ - Involves exploration and discovery
233
+ - Benefits from isolated context
234
+
235
+ **Consider Hybrid IF:**
236
+ - Score near neutral (-1 to +2)
237
+ - Task has both utility and orchestration components
238
+ - Want to optimize token efficiency while maintaining capability
239
+
240
+ ---
241
+
242
+ ## V. REAL-WORLD SCENARIOS
243
+
244
+ ### Scenario 1: Brand Guidelines Enforcement
245
+
246
+ **Description:** Apply company logo, colors, fonts, tone to documents.
247
+
248
+ **Scoring Analysis:**
249
+ Q1-Q8: +1, +1, +1, +1, +1, +1, +1, +1 = **+8**
250
+
251
+ **Recommendation:** STRONG SKILL
252
+
253
+ **Reasoning:** Pure utility function with organizational knowledge. Research validates: "Skills apply brand style guidelines automatically."
254
+
255
+ ---
256
+
257
+ ### Scenario 2: Comprehensive Security Audit
258
+
259
+ **Description:** Scan codebase for vulnerabilities, analyze severity, prioritize fixes, generate report.
260
+
261
+ **Scoring Analysis:**
262
+ Q1-Q8: -1, -1, 0, -1, 0, -1, -1, -1 = **-6**
263
+
264
+ **Recommendation:** STRONG SUBAGENT
265
+
266
+ **Reasoning:** Multi-step workflow with specialized expertise. Research validates: "Subagents excel for security audits with comprehensive checks."
267
+
268
+ ---
269
+
270
+ ### Scenario 3: Code Review Process
271
+
272
+ **Description:** Review code for bugs, style violations, security issues, performance problems.
273
+
274
+ **Scoring Analysis:**
275
+ Q1-Q8: 0, -1, 0, -1, +1, -1, -1, -1 = **-4**
276
+
277
+ **Recommendation:** MODERATE SUBAGENT + Skills (HYBRID)
278
+
279
+ **Reasoning:** Complex workflow but uses company standards. HYBRID PATTERN: Subagent handles review process, invokes coding-standards Skill for rules.
280
+
281
+ **For implementation, see:** `04-hybrid-patterns.md`
282
+
283
+ ---
284
+
285
+ ## VI. QUICK REFERENCE
286
+
287
+ ### Decision Cheat Sheet
288
+
289
+ **Use SKILL if:**
290
+ - Utility/conversion/template task
291
+ - Single or linear workflow
292
+ - Will be reused as building block
293
+ - Organizational knowledge needed
294
+ - Doesn't need personality
295
+ - Won't clutter conversation
296
+
297
+ **Use SUBAGENT if:**
298
+ - Multi-step reasoning required
299
+ - Needs specialized personality
300
+ - Coordinates multiple operations
301
+ - Benefits from isolated context
302
+ - Would generate substantial output
303
+
304
+ **Use HYBRID if:**
305
+ - Has orchestration components (Subagent)
306
+ - Uses reusable utilities (Skills)
307
+
308
+ ### Simple Rules
309
+
310
+ **Start with Skill unless:**
311
+ - You need multiple reasoning steps
312
+ - You need specialized expertise personality
313
+ - You need isolated context window
314
+ - Intermediate steps would clutter main chat
315
+
316
+ Skills are simpler, faster, easier to maintain. Upgrade to Subagent when complexity demands it.
317
+
318
+ ### Token Cost Quick Reference
319
+
320
+ **Skills:** 30-50 tokens overhead (very efficient)
321
+ **Subagents:** 15x token multiplier (justified for complexity)
322
+ **Hybrid:** Optimizes both (Subagent orchestrates, Skills reduce duplication)
323
+
324
+ **For detailed cost analysis, see:** `05-token-economics.md`
325
+
326
+ ---
327
+
328
+ ## WHEN TO READ NEXT
329
+
330
+ **For Implementation:**
331
+ - Decided Hybrid? → `04-hybrid-patterns.md`
332
+ - Need cost details? → `05-token-economics.md`
333
+ - Ready to build? → Implementation guides
334
+
335
+ **For Context:**
336
+ - Need conceptual review? → `02-skills-vs-subagents-comparison.md`
337
+ - Want strategic context? → `01-why-skills-exist.md`
338
+ - See detailed validation? → `case-studies.md`
339
+
340
+ **For Constraints:**
341
+ - Platform limitations? → `06-platform-constraints.md`
342
+ - Security concerns? → `07-security-concerns.md`
343
+
344
+ ---
345
+
346
+ **FILE END - Estimated Token Count: ~2,400 tokens (~326 lines)**
@@ -0,0 +1,308 @@
1
+ ---
2
+ title: "Hybrid Patterns: Combining Skills + Subagents"
3
+ purpose: "Best practices for using Skills and Subagents together"
4
+ token_estimate: "2000"
5
+ read_priority: "high"
6
+ read_when:
7
+ - "User wants to combine Skills + Subagents"
8
+ - "Decision tree suggests hybrid"
9
+ - "User has complex workflow"
10
+ - "Optimizing existing multi-agent setup"
11
+ - "After understanding basics of both"
12
+ related_files:
13
+ must_read_first:
14
+ - "02-skills-vs-subagents-comparison.md"
15
+ read_together:
16
+ - "05-token-economics.md"
17
+ read_next:
18
+ - "case-studies.md"
19
+ avoid_reading_when:
20
+ - "User using pure Skills approach"
21
+ - "User using pure Subagents approach"
22
+ - "User just starting (too advanced)"
23
+ - "Simple use case doesn't need hybrid"
24
+ last_updated: "2025-10-31"
25
+ ---
26
+
27
+ # Hybrid Patterns: Combining Skills + Subagents
28
+
29
+ ## I. INTRODUCTION
30
+
31
+ Skills and Subagents are designed to work together. Highly complementary.
32
+
33
+ **Core Principle:**
34
+ - Subagents: Orchestration, complex reasoning
35
+ - Skills: Utilities, knowledge, templates
36
+ - Together: Optimize capability AND efficiency
37
+
38
+ **Research Validation:**
39
+ - 65% subagent complexity reduction (803→281 lines)
40
+ - 90.2% performance improvement (Opus 4 + Sonnet 4 subagents)
41
+ - Zero functionality lost
42
+
43
+ **When Hybrid Appropriate:**
44
+ Decision tree score -1 to +1 indicates hybrid. Task has both orchestration AND utility components.
45
+
46
+ **Prerequisites:** Understand Skills vs Subagents differences first.
47
+
48
+ **For conceptual foundation, see:** `02-skills-vs-subagents-comparison.md`
49
+
50
+ ---
51
+
52
+ ## II. PATTERN 1: SUBAGENT ORCHESTRATION + UTILITIES
53
+
54
+ ### Pattern Description
55
+
56
+ **Core Concept:** Subagent orchestrates workflow, invokes Skills for utility functions.
57
+
58
+ **Architecture:**
59
+ ```
60
+ Main Conversation
61
+ |
62
+ Spawns Subagent (orchestrates complex workflow)
63
+ |
64
+ +-- Invokes Skill 1 (utility function)
65
+ +-- Invokes Skill 2 (utility function)
66
+ +-- Invokes Skill 3 (utility function)
67
+ |
68
+ Subagent synthesizes results
69
+ |
70
+ Returns to Main Conversation
71
+ ```
72
+
73
+ **Key Characteristics:**
74
+ - Clear separation: orchestration vs utilities
75
+ - Skills reusable across multiple subagents
76
+ - Efficient token usage (Skills loaded on-demand)
77
+ - Clean workflow coordination
78
+
79
+ ### Implementation Example: Document Processing Pipeline
80
+
81
+ **Scenario:** Process multiple PDFs with validation.
82
+
83
+ **Setup:**
84
+ - Subagent: document-processor (orchestrates)
85
+ - Skill 1: pdf-converter (extracts text)
86
+ - Skill 2: data-validator (checks format)
87
+ - Skill 3: reporting-template (generates output)
88
+
89
+ **Workflow:**
90
+ ```
91
+ User: "Process these 10 PDFs and validate data"
92
+
93
+ document-processor subagent:
94
+ FOR EACH pdf IN documents:
95
+ text = invoke pdf-converter skill
96
+ validation = invoke data-validator skill
97
+ IF valid:
98
+ aggregated_results.add(text, validation)
99
+
100
+ report = invoke reporting-template skill
101
+ RETURN summary to main
102
+ ```
103
+
104
+ **Benefits:**
105
+ - Subagent handles iteration logic
106
+ - Skills provide deterministic operations
107
+ - Skills reusable by other workflows
108
+ - Token efficient (Skills shared, not duplicated)
109
+
110
+ ### Implementation Checklist
111
+
112
+ - [ ] Define subagent orchestration role
113
+ - [ ] Identify reusable utilities → create Skills
114
+ - [ ] Subagent system prompt references Skills
115
+ - [ ] Test workflow end-to-end
116
+ - [ ] Verify Skills invoked correctly
117
+
118
+ ---
119
+
120
+ ## III. PATTERN 2: MULTI-SUBAGENT + SHARED SKILLS
121
+
122
+ ### Pattern Description
123
+
124
+ **Core Concept:** Multiple subagents share common Skills library. Extract duplicated knowledge to Skills.
125
+
126
+ **Architecture:**
127
+ ```
128
+ Before:
129
+ Subagent A (800 lines: logic + templates + knowledge)
130
+ Subagent B (750 lines: logic + DUPLICATE templates)
131
+ Subagent C (700 lines: logic + DUPLICATE knowledge)
132
+
133
+ After:
134
+ Subagent A (250 lines: logic only)
135
+ Subagent B (230 lines: logic only)
136
+ Subagent C (220 lines: logic only)
137
+ |
138
+ All invoke shared Skills:
139
+ +-- templates-skill (300 lines)
140
+ +-- standards-skill (200 lines)
141
+ +-- utilities-skill (150 lines)
142
+ ```
143
+
144
+ **Real Validation:** Subagent reduced 803→281 lines (65%) by extracting templates to Skills. Zero functionality lost.
145
+
146
+ **Key Benefit:** Update template once, all subagents benefit. DRY principle.
147
+
148
+ ### Implementation Example: Multi-Domain Content Pipeline
149
+
150
+ **Scenario:** Blog, social media, email writers share brand guidelines.
151
+
152
+ **Before Optimization:**
153
+ - blog-writer: 700 lines (logic + brand + templates)
154
+ - social-writer: 650 lines (logic + brand DUPLICATE + templates)
155
+ - email-writer: 680 lines (logic + brand DUPLICATE + templates)
156
+ - Total: 2,030 lines with extensive duplication
157
+
158
+ **After Optimization:**
159
+ - blog-writer: 220 lines (logic + blog-specific templates)
160
+ - social-writer: 190 lines (logic + social-specific templates)
161
+ - email-writer: 200 lines (logic + email-specific templates)
162
+ - brand-guidelines skill: 250 lines (shared)
163
+ - content-utilities skill: 150 lines (shared)
164
+ - Total: 610 + 400 = 1,010 lines
165
+ - Reduction: 50% fewer lines, zero functionality lost
166
+
167
+ **Token Savings:**
168
+ - Brand guidelines loaded once (250 lines)
169
+ - Shared across 3 subagents
170
+ - Instead of 250 × 3 = 750 lines loaded separately
171
+ - Savings: 500 lines per workflow = 67% reduction for shared content
172
+
173
+ **For detailed token analysis, see:** `05-token-economics.md`
174
+
175
+ ### Implementation Checklist
176
+
177
+ - [ ] Audit subagent prompts for duplicated content
178
+ - [ ] Extract common templates → Skills
179
+ - [ ] Extract shared knowledge → Skills
180
+ - [ ] Update subagent prompts to reference Skills
181
+ - [ ] Test all subagents with new Skills
182
+ - [ ] Measure token reduction
183
+
184
+ ---
185
+
186
+ ## IV. PATTERN 3: CONDITIONAL INVOCATION
187
+
188
+ ### Pattern Description
189
+
190
+ **Core Concept:** Runtime decision - invoke Skill OR spawn Subagent based on task complexity evaluation.
191
+
192
+ **Decision Logic:**
193
+ ```
194
+ Task Received
195
+ |
196
+ Evaluate Complexity
197
+ |
198
+ +-- Simple/Straightforward?
199
+ | |
200
+ | +-- Invoke Skill (fast, efficient)
201
+ | +-- Cost: 800-2,000 tokens
202
+ |
203
+ +-- Complex/Multi-Step?
204
+ |
205
+ +-- Spawn Subagent (capable, thorough)
206
+ +-- Cost: 7,000-15,000 tokens (justified)
207
+ ```
208
+
209
+ **Key Characteristics:**
210
+ - Dynamic evaluation at runtime
211
+ - Cost optimization through intelligent routing
212
+ - Maintains capability when complexity demands it
213
+ - Transparent decision logic
214
+
215
+ ### Implementation Example: Data Analysis Router
216
+
217
+ **User Query:** "Analyze this dataset"
218
+
219
+ **Decision Logic Implementation:**
220
+ ```
221
+ Evaluate Dataset:
222
+ rows = dataset.row_count
223
+ metrics = required_analysis
224
+
225
+ Decision:
226
+ IF rows < 1,000 AND metrics == "basic":
227
+ → Invoke data-analysis Skill
228
+ → Quick summary statistics
229
+ → Time: 5 minutes
230
+ → Cost: 850 tokens
231
+
232
+ ELIF rows > 1,000 OR metrics == "complex":
233
+ → Spawn data-scientist Subagent
234
+ → Comprehensive analysis with ML
235
+ → Time: 20 minutes
236
+ → Cost: 7,000 tokens (justified)
237
+ ```
238
+
239
+ **Execution Path 1 (Simple - Skill):**
240
+ - Dataset: 500 rows, basic statistics requested
241
+ - Action: data-analysis Skill invoked
242
+ - Process: Mean, median, std dev, visualizations
243
+ - Output: Summary statistics report
244
+ - Cost: 850 tokens ($0.0026)
245
+
246
+ **Execution Path 2 (Complex - Subagent):**
247
+ - Dataset: 50,000 rows, ML predictions needed
248
+ - Action: data-scientist Subagent spawned
249
+ - Process: Feature analysis, correlation matrix, model training, predictions
250
+ - Output: Comprehensive analysis with ML insights
251
+ - Cost: 7,000 tokens ($0.021, justified for ML work)
252
+
253
+ **Decision Factors:**
254
+ - Data volume (rows, columns, size)
255
+ - Analysis complexity (descriptive vs predictive)
256
+ - Time constraints (urgent vs thorough)
257
+ - Output requirements (summary vs comprehensive)
258
+
259
+ **Benefits:**
260
+ - Simple tasks handled efficiently (Skill)
261
+ - Complex tasks get full capability (Subagent)
262
+ - Cost optimized automatically
263
+ - User gets appropriate level of analysis
264
+
265
+ ### Implementation Checklist
266
+
267
+ - [ ] Define complexity thresholds clearly
268
+ - [ ] Implement decision logic (IF/THEN rules)
269
+ - [ ] Create Skill for simple cases
270
+ - [ ] Configure Subagent for complex cases
271
+ - [ ] Test both execution paths
272
+ - [ ] Monitor routing decisions for optimization
273
+
274
+ ---
275
+
276
+ ## V. BEST PRACTICES
277
+
278
+ **Start Simple:** Begin with Pattern 1 (orchestration + utilities), scale to Pattern 2/3 when needed.
279
+
280
+ **Separation of Concerns:** Subagents orchestrate workflows, Skills provide utilities. Clear boundaries.
281
+
282
+ **Token Efficiency:** Extract duplicates to Skills immediately. Research validates 40-65% reduction.
283
+
284
+ **Maintainability:** Update Skills once, all subagents benefit. Version control Skills separately.
285
+
286
+ **Cost Optimization:** Use Pattern 3 for intelligent routing. Simple tasks→Skills (cheap), Complex→Subagents (justified).
287
+
288
+ **Progressive Disclosure:** Design Skills with references. Main instructions + on-demand details.
289
+
290
+ ---
291
+
292
+ ## WHEN TO READ NEXT
293
+
294
+ **For Cost Details:**
295
+ Token economics analysis → `05-token-economics.md`
296
+
297
+ **For Implementation:**
298
+ Real-world validation → `case-studies.md`
299
+ Platform constraints → `06-platform-constraints.md`
300
+ Security considerations → `07-security-concerns.md`
301
+
302
+ **If Starting Fresh:**
303
+ Review conceptual differences → `02-skills-vs-subagents-comparison.md`
304
+ Use decision framework → `03-skills-vs-subagents-decision-tree.md`
305
+
306
+ ---
307
+
308
+ **FILE END - Estimated Token Count: ~2,000 tokens (~270 lines)**