@rfxlamia/skillkit 1.1.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 (247) 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 +1 -1
  9. package/skills/skillkit-help/SKILL.md +81 -0
  10. package/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
  11. package/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
  12. package/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
  13. package/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
  14. package/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
  15. package/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
  16. package/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
  17. package/skills/skillkit-help/template/SKILL.md +52 -0
  18. package/skills/skills/adversarial-review/SKILL.md +219 -0
  19. package/skills/skills/baby-education/SKILL.md +260 -0
  20. package/skills/skills/baby-education/references/advanced-techniques.md +323 -0
  21. package/skills/skills/baby-education/references/transformations.md +345 -0
  22. package/skills/skills/been-there-done-that/SKILL.md +455 -0
  23. package/skills/skills/been-there-done-that/references/analysis-patterns.md +162 -0
  24. package/skills/skills/been-there-done-that/references/git-commands.md +132 -0
  25. package/skills/skills/been-there-done-that/references/tree-insertion-logic.md +145 -0
  26. package/skills/skills/coolhunter/SKILL.md +270 -0
  27. package/skills/skills/coolhunter/assets/elicitation-methods.csv +51 -0
  28. package/skills/skills/coolhunter/knowledge/elicitation-methods.md +312 -0
  29. package/skills/skills/coolhunter/references/workflow-execution.md +238 -0
  30. package/skills/skills/coolhunter/workflow-plan-coolhunter.md +232 -0
  31. package/skills/skills/creative-copywriting/SKILL.md +324 -0
  32. package/skills/skills/creative-copywriting/databases/README.md +60 -0
  33. package/skills/skills/creative-copywriting/databases/carousel-structures.csv +16 -0
  34. package/skills/skills/creative-copywriting/databases/emotional-arcs.csv +11 -0
  35. package/skills/skills/creative-copywriting/databases/hook-formulas.csv +51 -0
  36. package/skills/skills/creative-copywriting/databases/power-words.csv +201 -0
  37. package/skills/skills/creative-copywriting/databases/psychological-triggers.csv +21 -0
  38. package/skills/skills/creative-copywriting/databases/read-more-patterns.csv +26 -0
  39. package/skills/skills/creative-copywriting/databases/swipe-triggers.csv +31 -0
  40. package/skills/skills/creative-copywriting/references/carousel-psychology.md +223 -0
  41. package/skills/skills/creative-copywriting/references/hook-anatomy.md +169 -0
  42. package/skills/skills/creative-copywriting/references/power-word-science.md +134 -0
  43. package/skills/skills/creative-copywriting/references/storytelling-frameworks.md +157 -0
  44. package/skills/skills/diverse-content-gen/SKILL.md +201 -0
  45. package/skills/skills/diverse-content-gen/references/advanced-techniques.md +320 -0
  46. package/skills/skills/diverse-content-gen/references/research-findings.md +379 -0
  47. package/skills/skills/diverse-content-gen/references/task-workflows.md +241 -0
  48. package/skills/skills/diverse-content-gen/references/tool-integration.md +419 -0
  49. package/skills/skills/diverse-content-gen/references/troubleshooting.md +426 -0
  50. package/skills/skills/diverse-content-gen/references/vs-core-technique.md +240 -0
  51. package/skills/skills/framework-critical-thinking/SKILL.md +220 -0
  52. package/skills/skills/framework-critical-thinking/references/bias_detector.md +375 -0
  53. package/skills/skills/framework-critical-thinking/references/fallback_handler.md +239 -0
  54. package/skills/skills/framework-critical-thinking/references/memory_curator.md +161 -0
  55. package/skills/skills/framework-critical-thinking/references/metacognitive_monitor.md +297 -0
  56. package/skills/skills/framework-critical-thinking/references/producer_critic_orchestrator.md +333 -0
  57. package/skills/skills/framework-critical-thinking/references/reasoning_router.md +235 -0
  58. package/skills/skills/framework-critical-thinking/references/reasoning_validator.md +97 -0
  59. package/skills/skills/framework-critical-thinking/references/reflection_trigger.md +78 -0
  60. package/skills/skills/framework-critical-thinking/references/self_verification.md +388 -0
  61. package/skills/skills/framework-critical-thinking/references/uncertainty_quantifier.md +207 -0
  62. package/skills/skills/framework-initiative/SKILL.md +231 -0
  63. package/skills/skills/framework-initiative/references/examples.md +150 -0
  64. package/skills/skills/framework-initiative/references/impact-analysis.md +157 -0
  65. package/skills/skills/framework-initiative/references/intent-patterns.md +145 -0
  66. package/skills/skills/framework-initiative/references/star-framework.md +165 -0
  67. package/skills/skills/humanize-docs/SKILL.md +203 -0
  68. package/skills/skills/humanize-docs/references/advanced-techniques.md +13 -0
  69. package/skills/skills/humanize-docs/references/core-transformations.md +368 -0
  70. package/skills/skills/humanize-docs/references/detection-patterns.md +400 -0
  71. package/skills/skills/humanize-docs/references/examples-gallery.md +374 -0
  72. package/skills/skills/imagine/SKILL.md +190 -0
  73. package/skills/skills/imagine/references/artstyle-corporate-memphis.md +625 -0
  74. package/skills/skills/imagine/references/artstyle-crewdson-hyperrealism.md +295 -0
  75. package/skills/skills/imagine/references/artstyle-iphone-social-media.md +426 -0
  76. package/skills/skills/imagine/references/artstyle-sciencesaru.md +276 -0
  77. package/skills/skills/pre-deploy-checklist/README.md +26 -0
  78. package/skills/skills/pre-deploy-checklist/SKILL.md +153 -0
  79. package/skills/skills/pre-deploy-checklist/references/checklist-categories.md +174 -0
  80. package/skills/skills/pre-deploy-checklist/references/domain-prompts.md +216 -0
  81. package/skills/skills/prompt-engineering/SKILL.md +209 -0
  82. package/skills/skills/prompt-engineering/references/advanced-combinations.md +444 -0
  83. package/skills/skills/prompt-engineering/references/chain-of-thought.md +140 -0
  84. package/skills/skills/prompt-engineering/references/decision_matrix.md +220 -0
  85. package/skills/skills/prompt-engineering/references/few-shot.md +346 -0
  86. package/skills/skills/prompt-engineering/references/json-format.md +270 -0
  87. package/skills/skills/prompt-engineering/references/natural-language.md +420 -0
  88. package/skills/skills/prompt-engineering/references/pitfalls.md +365 -0
  89. package/skills/skills/prompt-engineering/references/prompt-chaining.md +498 -0
  90. package/skills/skills/prompt-engineering/references/react.md +108 -0
  91. package/skills/skills/prompt-engineering/references/self-consistency.md +322 -0
  92. package/skills/skills/prompt-engineering/references/tree-of-thoughts.md +386 -0
  93. package/skills/skills/prompt-engineering/references/xml-format.md +220 -0
  94. package/skills/skills/prompt-engineering/references/yaml-format.md +488 -0
  95. package/skills/skills/prompt-engineering/references/zero-shot.md +74 -0
  96. package/skills/skills/quick-spec/SKILL.md +280 -0
  97. package/skills/skills/quick-spec/assets/tech-spec-template.md +74 -0
  98. package/skills/skills/quick-spec/references/step-01-understand.md +189 -0
  99. package/skills/skills/quick-spec/references/step-02-investigate.md +144 -0
  100. package/skills/skills/quick-spec/references/step-03-generate.md +128 -0
  101. package/skills/skills/quick-spec/references/step-04-review.md +173 -0
  102. package/skills/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
  103. package/skills/skills/quick-spec/tests/test_scenarios.md +83 -0
  104. package/skills/skills/quick-spec/tests/test_skill.py +136 -0
  105. package/skills/skills/readme-expert/SKILL.md +538 -0
  106. package/skills/skills/readme-expert/knowledge/INDEX.md +192 -0
  107. package/skills/skills/readme-expert/knowledge/application/quality-standards.md +470 -0
  108. package/skills/skills/readme-expert/knowledge/application/script-executor.md +604 -0
  109. package/skills/skills/readme-expert/knowledge/application/template-library.md +822 -0
  110. package/skills/skills/readme-expert/knowledge/foundation/codebase-scanner.md +361 -0
  111. package/skills/skills/readme-expert/knowledge/foundation/validation-checklist.md +481 -0
  112. package/skills/skills/red-teaming/SKILL.md +321 -0
  113. package/skills/skills/red-teaming/references/ai-llm-redteam.md +517 -0
  114. package/skills/skills/red-teaming/references/attack-techniques.md +410 -0
  115. package/skills/skills/red-teaming/references/cybersecurity-redteam.md +383 -0
  116. package/skills/skills/red-teaming/references/tools-frameworks.md +446 -0
  117. package/skills/skills/releasing/.skillkit-mode +1 -0
  118. package/skills/skills/releasing/SKILL.md +225 -0
  119. package/skills/skills/releasing/references/version-detection.md +108 -0
  120. package/skills/skills/screenwriter/SKILL.md +273 -0
  121. package/skills/skills/screenwriter/references/advanced-techniques.md +216 -0
  122. package/skills/skills/screenwriter/references/pipeline-integration.md +266 -0
  123. package/skills/skills/skillkit/.claude/settings.local.json +7 -0
  124. package/skills/skills/skillkit/.claude-plugin/plugin.json +27 -0
  125. package/skills/skills/skillkit/CHANGELOG.md +484 -0
  126. package/skills/skills/skillkit/SKILL.md +511 -0
  127. package/skills/skills/skillkit/commands/skillkit.md +6 -0
  128. package/skills/skills/skillkit/commands/validate-plan.md +6 -0
  129. package/skills/skills/skillkit/commands/verify.md +6 -0
  130. package/skills/skills/skillkit/knowledge/INDEX.md +352 -0
  131. package/skills/skills/skillkit/knowledge/application/09-case-studies.md +257 -0
  132. package/skills/skills/skillkit/knowledge/application/10-technical-architecture.md +324 -0
  133. package/skills/skills/skillkit/knowledge/application/11-adoption-strategy.md +267 -0
  134. package/skills/skills/skillkit/knowledge/application/12-testing-and-validation.md +276 -0
  135. package/skills/skills/skillkit/knowledge/application/13-competitive-landscape.md +198 -0
  136. package/skills/skills/skillkit/knowledge/foundation/01-why-skills-exist.md +246 -0
  137. package/skills/skills/skillkit/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
  138. package/skills/skills/skillkit/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
  139. package/skills/skills/skillkit/knowledge/foundation/04-hybrid-patterns.md +308 -0
  140. package/skills/skills/skillkit/knowledge/foundation/05-token-economics.md +275 -0
  141. package/skills/skills/skillkit/knowledge/foundation/06-platform-constraints.md +237 -0
  142. package/skills/skills/skillkit/knowledge/foundation/07-security-concerns.md +322 -0
  143. package/skills/skills/skillkit/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
  144. package/skills/skills/skillkit/knowledge/plugin-guide.md +614 -0
  145. package/skills/skills/skillkit/knowledge/tools/14-validation-tools-guide.md +150 -0
  146. package/skills/skills/skillkit/knowledge/tools/15-cost-tools-guide.md +157 -0
  147. package/skills/skills/skillkit/knowledge/tools/16-security-tools-guide.md +122 -0
  148. package/skills/skills/skillkit/knowledge/tools/17-pattern-tools-guide.md +161 -0
  149. package/skills/skills/skillkit/knowledge/tools/18-decision-helper-guide.md +243 -0
  150. package/skills/skills/skillkit/knowledge/tools/19-test-generator-guide.md +275 -0
  151. package/skills/skills/skillkit/knowledge/tools/20-split-skill-guide.md +149 -0
  152. package/skills/skills/skillkit/knowledge/tools/21-quality-scorer-guide.md +226 -0
  153. package/skills/skills/skillkit/knowledge/tools/22-migration-helper-guide.md +356 -0
  154. package/skills/skills/skillkit/knowledge/tools/23-subagent-creation-guide.md +448 -0
  155. package/skills/skills/skillkit/knowledge/tools/24-behavioral-testing-guide.md +122 -0
  156. package/skills/skills/skillkit/references/proposal-generation.md +982 -0
  157. package/skills/skills/skillkit/references/rationalization-catalog.md +75 -0
  158. package/skills/skills/skillkit/references/research-methodology.md +661 -0
  159. package/skills/skills/skillkit/references/section-2-full-creation-workflow.md +452 -0
  160. package/skills/skills/skillkit/references/section-3-validation-workflow-existing-skill.md +63 -0
  161. package/skills/skills/skillkit/references/section-4-decision-workflow-skills-vs-subagents.md +64 -0
  162. package/skills/skills/skillkit/references/section-5-migration-workflow-doc-to-skill.md +58 -0
  163. package/skills/skills/skillkit/references/section-6-subagent-creation-workflow.md +499 -0
  164. package/skills/skills/skillkit/references/section-7-knowledge-reference-map.md +72 -0
  165. package/skills/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
  166. package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
  167. package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
  168. package/skills/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
  169. package/skills/skills/skillkit/scripts/decision_helper.py +799 -0
  170. package/skills/skills/skillkit/scripts/init_skill.py +400 -0
  171. package/skills/skills/skillkit/scripts/init_subagent.py +231 -0
  172. package/skills/skills/skillkit/scripts/migration_helper.py +669 -0
  173. package/skills/skills/skillkit/scripts/package_skill.py +211 -0
  174. package/skills/skills/skillkit/scripts/pattern_detector.py +381 -0
  175. package/skills/skills/skillkit/scripts/pattern_detector_new.py +382 -0
  176. package/skills/skills/skillkit/scripts/pressure_tester.py +157 -0
  177. package/skills/skills/skillkit/scripts/quality_scorer.py +999 -0
  178. package/skills/skills/skillkit/scripts/quick_validate.py +100 -0
  179. package/skills/skills/skillkit/scripts/security_scanner.py +474 -0
  180. package/skills/skills/skillkit/scripts/split_skill.py +540 -0
  181. package/skills/skills/skillkit/scripts/test_generator.py +695 -0
  182. package/skills/skills/skillkit/scripts/token_estimator.py +493 -0
  183. package/skills/skills/skillkit/scripts/utils/__init__.py +49 -0
  184. package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  185. package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
  186. package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
  187. package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
  188. package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
  189. package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
  190. package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
  191. package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
  192. package/skills/skills/skillkit/scripts/utils/budget_tracker.py +388 -0
  193. package/skills/skills/skillkit/scripts/utils/output_formatter.py +263 -0
  194. package/skills/skills/skillkit/scripts/utils/reference_validator.py +401 -0
  195. package/skills/skills/skillkit/scripts/validate_skill.py +594 -0
  196. package/skills/skills/skillkit/tests/test_behavioral.py +39 -0
  197. package/skills/skills/skillkit/tests/test_scenarios.md +83 -0
  198. package/skills/skills/skillkit/tests/test_skill.py +136 -0
  199. package/skills/skills/skillkit-help/SKILL.md +81 -0
  200. package/skills/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
  201. package/skills/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
  202. package/skills/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
  203. package/skills/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
  204. package/skills/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
  205. package/skills/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
  206. package/skills/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
  207. package/skills/skills/skillkit-help/template/SKILL.md +52 -0
  208. package/skills/skills/social-media-seo/SKILL.md +278 -0
  209. package/skills/skills/social-media-seo/databases/caption-styles.csv +31 -0
  210. package/skills/skills/social-media-seo/databases/engagement-tactics.csv +16 -0
  211. package/skills/skills/social-media-seo/databases/hashtag-strategies.csv +21 -0
  212. package/skills/skills/social-media-seo/databases/hook-formulas.csv +26 -0
  213. package/skills/skills/social-media-seo/databases/keyword-clusters.csv +11 -0
  214. package/skills/skills/social-media-seo/databases/thread-structures.csv +26 -0
  215. package/skills/skills/social-media-seo/databases/viral-patterns.csv +21 -0
  216. package/skills/skills/social-media-seo/references/analytics-guide.md +321 -0
  217. package/skills/skills/social-media-seo/references/instagram-seo.md +235 -0
  218. package/skills/skills/social-media-seo/references/threads-seo.md +305 -0
  219. package/skills/skills/social-media-seo/references/x-twitter-seo.md +337 -0
  220. package/skills/skills/social-media-seo/scripts/query_database.py +191 -0
  221. package/skills/skills/storyteller/SKILL.md +241 -0
  222. package/skills/skills/storyteller/references/transformation-methodology.md +293 -0
  223. package/skills/skills/storyteller/references/visual-vocabulary.md +177 -0
  224. package/skills/skills/thread-pro/SKILL.md +162 -0
  225. package/skills/skills/thread-pro/anti-ai-patterns.md +120 -0
  226. package/skills/skills/thread-pro/hook-formulas.md +138 -0
  227. package/skills/skills/thread-pro/references/anti-ai-patterns.md +120 -0
  228. package/skills/skills/thread-pro/references/hook-formulas.md +138 -0
  229. package/skills/skills/thread-pro/references/thread-structures.md +240 -0
  230. package/skills/skills/thread-pro/references/voice-injection.md +130 -0
  231. package/skills/skills/thread-pro/thread-structures.md +240 -0
  232. package/skills/skills/thread-pro/voice-injection.md +130 -0
  233. package/skills/skills/tinkering/SKILL.md +251 -0
  234. package/skills/skills/tinkering/references/graduation-checklist.md +100 -0
  235. package/skills/skills/validate-plan/.skillkit-mode +1 -0
  236. package/skills/skills/validate-plan/SKILL.md +406 -0
  237. package/skills/skills/validate-plan/references/dry-principles.md +251 -0
  238. package/skills/skills/validate-plan/references/gap-analysis-guide.md +320 -0
  239. package/skills/skills/validate-plan/references/tdd-patterns.md +413 -0
  240. package/skills/skills/validate-plan/references/yagni-checklist.md +330 -0
  241. package/skills/skills/verify-before-ship/.skillkit-mode +1 -0
  242. package/skills/skills/verify-before-ship/SKILL.md +116 -0
  243. package/skills/skills/verify-before-ship/references/anti-rationalization.md +212 -0
  244. package/skills/skills/verify-before-ship/references/verification-gates.md +305 -0
  245. package/skills-manifest.json +8 -2
  246. package/src/picker.js +11 -5
  247. package/src/picker.test.js +36 -1
@@ -0,0 +1,312 @@
1
+ ---
2
+ title: "Skills vs Subagents: Conceptual Differences"
3
+ purpose: "Fundamental understanding of Skills vs Subagents differences"
4
+ token_estimate: "2400"
5
+ read_priority: "critical"
6
+ read_when:
7
+ - "User confused about Skills vs Subagents"
8
+ - "User asking 'What's the difference?'"
9
+ - "Before reading decision tree"
10
+ - "Comparing approaches"
11
+ - "Understanding architecture"
12
+ related_files:
13
+ must_read_first:
14
+ - "01-why-skills-exist.md"
15
+ read_together:
16
+ - "03-skills-vs-subagents-decision-tree.md"
17
+ read_next:
18
+ - "04-hybrid-patterns.md"
19
+ - "05-token-economics.md"
20
+ avoid_reading_when:
21
+ - "User already understands distinction clearly"
22
+ - "User only needs decision guidance (skip to 03-decision-tree)"
23
+ - "User asking about costs only (skip to 05-token-economics)"
24
+ last_updated: "2025-10-31"
25
+ ---
26
+
27
+ # Skills vs Subagents: Conceptual Differences
28
+
29
+ ## I. INTRODUCTION
30
+
31
+ Skills and Subagents are two fundamentally different extensibility mechanisms, serving distinct purposes. Understanding when to use each is critical for building effective AI workflows.
32
+
33
+ **Core Distinction:**
34
+ - **Skills** = Modular capability packages (instructions + resources)
35
+ - **Subagents** = Pre-configured AI personalities (specialized workers)
36
+
37
+ **Key Insight:** This is not an either/or choice. Most powerful workflows use BOTH - Skills for utilities, Subagents for orchestration.
38
+
39
+ **This file addresses conceptual differences. For decision guidance, see:** `03-skills-vs-subagents-decision-tree.md`
40
+
41
+ ---
42
+
43
+ ## II. SKILLS: "HOW-TO" INSTRUCTIONS
44
+
45
+ ### Definition and Structure
46
+
47
+ **Claude Skills** are modular, reusable capability packages containing instructions, scripts, and resources.
48
+
49
+ **Structure:** Folder with SKILL.md file (YAML frontmatter + markdown body), plus optional scripts, references, assets.
50
+
51
+ **Primary Function:** Extend Claude's knowledge with procedural "how-to" information.
52
+
53
+ ### Mental Model: Recipe Cards
54
+
55
+ Think of Skills like recipe cards in a cookbook:
56
+ - Each card contains specific instructions
57
+ - Pull out card when needed
58
+ - Multiple cards can be used together
59
+ - Instructions stay same, execution adapts to context
60
+
61
+ ### 6 Key Characteristics
62
+
63
+ **1. Automatic Discovery**
64
+ Claude evaluates all skill descriptions against conversation context and loads relevant skills automatically. NO explicit user command needed.
65
+
66
+ **2. Shared Context Window**
67
+ Skills pull necessary information to current chat. Act as quick add-ons for single tasks. NO separate context window.
68
+
69
+ **3. Progressive Disclosure**
70
+ - Level 1: Metadata always loaded (30-50 tokens)
71
+ - Level 2: SKILL.md loaded when triggered
72
+ - Level 3: References loaded on-demand
73
+ - Extreme token efficiency
74
+
75
+ **4. Procedural Knowledge Focus**
76
+ "How-to" instructions, domain-specific procedures, organizational standards, templates and formats.
77
+
78
+ **5. Composability**
79
+ Multiple skills can be loaded simultaneously and stack together seamlessly. Reusable across different contexts.
80
+
81
+ **6. Tool Access Inheritance**
82
+ Uses main Claude's tools. All tools available that are given to main conversation.
83
+
84
+ ### Best Use Cases
85
+
86
+ **Single, Well-Defined Tasks:**
87
+ - File conversions (PDF to Excel)
88
+ - Template applications (brand guidelines)
89
+ - Domain knowledge reference (API docs)
90
+ - Utility functions (validation, transformation)
91
+
92
+ **Examples:** Brand guidelines enforcement, code style guides, financial modeling procedures, document processing.
93
+
94
+ **For detailed patterns, see:** `references/workflows.md`
95
+
96
+ ---
97
+
98
+ ## III. SUBAGENTS: AI WORKER
99
+
100
+ ### Definition and Structure
101
+
102
+ **Claude Subagents** are pre-configured AI personalities with specialized system prompts.
103
+
104
+ **Structure:** Markdown file with YAML frontmatter defining role, tools, system prompt, optional skill invocations.
105
+
106
+ **Primary Function:** Handle complex, multi-step workflows requiring dedicated focus.
107
+
108
+ ### Mental Model: Specialist Team Members
109
+
110
+ Think of Subagents like specialist team members:
111
+ - Each expert has specialized role
112
+ - Works independently with own workspace
113
+ - Can be called explicitly or delegate automatically
114
+ - Returns results when done
115
+
116
+ ### 6 Key Characteristics
117
+
118
+ **1. Dual Invocation Pattern**
119
+ Automatic delegation (Claude spawns specialized agents) OR explicit invocation ("@agent-name" or "Use the X subagent"). User has direct control.
120
+
121
+ **2. Isolated Context Window**
122
+ Operates in separate, dedicated context window. Complete isolation prevents "context pollution". Can focus entirely on specific task.
123
+
124
+ **3. Specialized Personality**
125
+ Pre-configured role and expertise. Domain-specific system prompts. Consistent behavior patterns.
126
+
127
+ **4. Multi-Step Workflow Capability**
128
+ Handles complex sequences with decision points, multiple queries and synthesis, iterative hypothesis testing.
129
+
130
+ **5. Restricted Tool Permissions**
131
+ Can have specific tool permissions. Example: code-reviewer gets Read/Grep/Glob only, NO Write/Edit. Security boundaries maintained.
132
+
133
+ **6. Higher Token Consumption**
134
+ Dedicated context per agent. Multi-agent systems use approximately 15x more tokens. Justified for high-value complex tasks.
135
+
136
+ ### Best Use Cases
137
+
138
+ **Complex, Multi-Step Workflows:**
139
+ - Code review processes with multiple stages
140
+ - Data analysis requiring multiple queries and synthesis
141
+ - Debugging with iterative hypothesis testing
142
+ - Security audits with comprehensive checks
143
+
144
+ **Examples:** ticket-researcher (downloads attachments, analyzes, compares), code reviewer (multiple validation passes), security auditor (comprehensive scanning).
145
+
146
+ **For orchestration patterns, see:** `04-hybrid-patterns.md`
147
+
148
+ ---
149
+
150
+ ## IV. COMPARISON MATRIX
151
+
152
+ ### Core Differences Table
153
+
154
+ | Dimension | Skills | Subagents |
155
+ |-----------|--------|-----------|
156
+ | **Mental Model** | Recipe cards, plugins | Team members, consultants |
157
+ | **Context Window** | Shared main context | Separate isolated context |
158
+ | **Invocation** | Automatic only | Automatic AND explicit |
159
+ | **Token Overhead** | 30-50 tokens until used | 15x full conversations |
160
+ | **Best For** | Single tasks, utilities | Multi-step workflows |
161
+ | **Tool Access** | Inherits all main tools | Can be restricted |
162
+ | **Composability** | Stack multiple skills | Coordinate multiple agents |
163
+ | **Control** | Automatic discovery | Explicit or automatic |
164
+
165
+ ### Invocation Pattern Examples
166
+
167
+ **Skills Invocation:**
168
+ ```
169
+ User: "Convert this PDF to Excel"
170
+ [Claude evaluates skill descriptions]
171
+ [pdf-processing skill automatically loaded]
172
+ [Task completed in main conversation]
173
+ ```
174
+
175
+ **Subagents Invocation:**
176
+ ```
177
+ User: "Review this codebase for security issues"
178
+ [Claude recognizes complex multi-step task]
179
+ [Spawns security-reviewer subagent]
180
+ [Subagent works in isolated context]
181
+ [Returns comprehensive report]
182
+ ```
183
+
184
+ ### Token Efficiency Comparison
185
+
186
+ **Skills Example:**
187
+ - Metadata: 50 tokens
188
+ - SKILL.md when triggered: 800 tokens
189
+ - **Total: 850 tokens**
190
+
191
+ **Subagent Example:**
192
+ - Full system prompt: 2,000 tokens
193
+ - Conversation history: 3,000 tokens
194
+ - Analysis output: 2,000 tokens
195
+ - **Total: 7,000 tokens (8.2x more)**
196
+
197
+ Multi-agent systems use approximately 15x more tokens than single conversations. Justified for complex, high-value tasks.
198
+
199
+ **For detailed token economics, see:** `05-token-economics.md`
200
+
201
+ ### Tool Access Comparison
202
+
203
+ **Skills:** Uses all tools available to main Claude. NO independent tool restrictions. Inherits permissions automatically.
204
+
205
+ **Subagents:** Can have specific tool permissions (e.g., code-reviewer restricted to Read/Grep/Glob only). Security boundaries maintained.
206
+
207
+ **Security Implication:** Subagents provide tool isolation - skills do not. Choose subagent when tool restrictions needed.
208
+
209
+ ### Use Case Decision Reference
210
+
211
+ | Use Case Type | Recommended | Reasoning |
212
+ |---------------|-------------|-----------|
213
+ | File conversion | Skill | Single task, utility |
214
+ | Code review | Subagent | Multi-step analysis |
215
+ | Brand guidelines | Skill | Standards reference |
216
+ | Security audit | Subagent | Complex workflow |
217
+ | Data transformation | Skill | Deterministic utility |
218
+ | Exploratory analysis | Subagent | Iterative reasoning |
219
+ | API documentation | Skill | Reference knowledge |
220
+ | Debugging session | Subagent | Multi-step investigation |
221
+
222
+ ### Maintenance Differences
223
+
224
+ **Skills:** Update SKILL.md instructions, add/modify scripts, version control straightforward, reusable across contexts, easier to maintain (smaller scope).
225
+
226
+ **Subagents:** Update system prompts, modify role definitions, test behavior extensively, context-specific tuning, more complex (broader scope).
227
+
228
+ **Real Example:** Subagent reduced from 803 lines to 281 lines (65% reduction) by extracting templates to separate skill file. Skills enable subagent efficiency.
229
+
230
+ ### Performance Validation
231
+
232
+ **Skills:** Fast invocation, minimal overhead, scales well (50+ skills manageable), consistent behavior.
233
+
234
+ **Subagents:** Anthropic research shows Claude Opus 4 + Sonnet 4 subagents outperforms single-agent Opus 4 by **90.2%** on complex research tasks. Higher token cost justified by capability.
235
+
236
+ ---
237
+
238
+ ## V. KEY TAKEAWAYS
239
+
240
+ ### Simple Rule of Thumb
241
+
242
+ **Start with Skill unless you specifically need Subagent features.**
243
+
244
+ Skills simpler, faster, and easier to maintain. Upgrade to Subagent when you're doing actual workflows with multiple steps, decision points, and validation loops.
245
+
246
+ **For detailed decision framework with scoring system, see:** `03-skills-vs-subagents-decision-tree.md`
247
+
248
+ ### They Work Together (Not Either/Or)
249
+
250
+ Skills and Subagents are designed to work together and highly complementary.
251
+
252
+ **The Hybrid Pattern:**
253
+ - Subagent handles complex workflow and orchestration
254
+ - Skill handles utility functions
255
+ - Clean separation of concerns
256
+ - Reusable components
257
+
258
+ **Example:** ticket-researcher subagent downloads ticket attachment, invokes document-reader skill to convert to text, continues analysis.
259
+
260
+ **For hybrid implementation patterns, see:** `04-hybrid-patterns.md`
261
+
262
+ ### Cost vs Capability Trade-off
263
+
264
+ **Skills:** Very cost-efficient (30-50 tokens overhead). Best for frequent, lightweight tasks. Scale well.
265
+
266
+ **Subagents:** Higher cost (15x token multiplier). Justified for complex, high-value tasks. Best for infrequent, critical workflows.
267
+
268
+ **Optimization Strategy:** Use Skills to reduce duplication across subagents. Extract common templates to skills. Subagents invoke skills for utilities.
269
+
270
+ **Validated Result:** Subagent system prompt reduced 65% (803→281 lines) with zero functionality lost.
271
+
272
+ ### When to Choose Each
273
+
274
+ **Choose Skills When:**
275
+ - Repeatable workflows you've figured out
276
+ - Tasks requiring organizational standards
277
+ - Building blocks reusable across contexts
278
+ - Token efficiency critical
279
+
280
+ **Choose Subagents When:**
281
+ - Complex multi-step workflows with decision points
282
+ - Specialized domain expertise requiring dedicated focus
283
+ - Tasks that would clutter main conversation
284
+ - Isolated context required
285
+
286
+ **Choose Both (Hybrid) When:**
287
+ - Complex orchestration + reusable utilities
288
+ - Multiple specialized agents sharing common functions
289
+ - Cost optimization without sacrificing capability
290
+
291
+ ---
292
+
293
+ ## WHEN TO READ NEXT
294
+
295
+ **For Decision Making:**
296
+ - Need decision framework? → `03-skills-vs-subagents-decision-tree.md`
297
+ - Want hybrid patterns? → `04-hybrid-patterns.md`
298
+
299
+ **For Cost Analysis:**
300
+ - Token economics details → `05-token-economics.md`
301
+
302
+ **For Implementation:**
303
+ - Technical architecture → `technical-architecture.md`
304
+ - Platform constraints → `06-platform-constraints.md`
305
+ - Security concerns → `07-security-concerns.md`
306
+
307
+ **If Clear on Differences:**
308
+ - Skip to decision tree → `03-skills-vs-subagents-decision-tree.md`
309
+
310
+ ---
311
+
312
+ **FILE END - Estimated Token Count: ~2,400 tokens (~335 lines)**
@@ -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)**