@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,448 @@
1
+ ---
2
+ title: "Subagent Creation Guide"
3
+ purpose: "Step-by-step guide for creating subagents using init_subagent.py"
4
+ token_estimate: "1800"
5
+ read_priority: "high"
6
+ read_when:
7
+ - "User wants to create a subagent"
8
+ - "Decision workflow recommended subagent"
9
+ - "After understanding Skills vs Subagents difference"
10
+ - "Need to create specialized AI worker"
11
+ avoid_reading_when:
12
+ - "User only needs skills (not subagents)"
13
+ - "User hasn't decided between Skills vs Subagents yet"
14
+ last_updated: "2025-02-06"
15
+ ---
16
+
17
+ # Subagent Creation Guide
18
+
19
+ ## Overview
20
+
21
+ This guide walks you through creating a subagent using `init_subagent.py` - the automation script for subagent initialization.
22
+
23
+ **What is a Subagent?**
24
+ A subagent is a pre-configured AI personality with specialized system prompts, designed for complex multi-step workflows requiring isolated context.
25
+
26
+ **Key Differences from Skills:**
27
+ - **Context:** Subagents have isolated context windows; Skills share main context
28
+ - **Invocation:** Subagents use Task tool; Skills use automatic discovery
29
+ - **Permissions:** Subagents define explicit tool permissions
30
+ - **Use Case:** Subagents for complex workflows; Skills for utilities
31
+
32
+ ---
33
+
34
+ ## Quick Start
35
+
36
+ ### 1. Create Subagent File
37
+
38
+ Subagents are stored as individual `.md` files in `~/.claude/agents/`:
39
+
40
+ ```
41
+ ~/.claude/agents/
42
+ ├── code-simplifier.md
43
+ ├── typescript-pro.md
44
+ └── your-subagent.md
45
+ ```
46
+
47
+ **Create new subagent:**
48
+ ```bash
49
+ cd ~/.claude/skills/skillkit
50
+ python3 scripts/init_subagent.py <name> --path ~/.claude/agents
51
+ ```
52
+
53
+ **Or manually create:**
54
+ ```bash
55
+ touch ~/.claude/agents/kotlin-pro.md
56
+ ```
57
+
58
+ ### 2. Edit SUBAGENT.md
59
+
60
+ Open the generated `SUBAGENT.md` and fill in all `[TODO]` sections.
61
+
62
+ ### 3. Test and Deploy
63
+
64
+ Test the subagent using Task tool, then deploy.
65
+
66
+ ---
67
+
68
+ ## SUBAGENT.md Structure
69
+
70
+ ### YAML Frontmatter (Required)
71
+
72
+ ```yaml
73
+ ---
74
+ name: subagent-name
75
+ description: |
76
+ Clear description of what this subagent does and when to use it.
77
+ Include specific trigger conditions.
78
+
79
+ subagent_type: code-reviewer # See types below
80
+
81
+ tools:
82
+ - Read
83
+ - Write
84
+ - Edit
85
+ - Bash
86
+ - Glob
87
+ - Grep
88
+ # - Task # Only if spawning nested subagents
89
+
90
+ # Optional: Skills this subagent can invoke
91
+ skills:
92
+ - skill-name
93
+
94
+ # Optional: Model preference
95
+ # model: sonnet # sonnet, opus, or haiku
96
+ ---
97
+ ```
98
+
99
+ ### Subagent Types
100
+
101
+ | Type | Best For | Typical Tools |
102
+ |------|----------|---------------|
103
+ | `general-purpose` | Research, analysis | Read, Grep, Glob, Bash |
104
+ | `code-reviewer` | Code review | Read, Grep, Glob |
105
+ | `typescript-pro` | TS development | Read, Write, Edit, Bash |
106
+ | `flutter-expert` | Flutter development | Read, Write, Edit, Bash |
107
+ | `red-team` | Security testing | Read, Grep, Glob, Bash |
108
+ | `qa-expert` | QA and testing | Read, Grep, Glob |
109
+ | `seo-manager` | Social media SEO | Read, Write, Edit |
110
+ | `creative-copywriter` | Content creation | Read, Write, Edit |
111
+ | `decision-maker` | Strategic decisions | Read, Grep, Glob |
112
+ | `research` | Deep research | Read, Grep, Glob, Bash |
113
+ | `custom` | Specialized needs | Define as needed |
114
+
115
+ ### Tool Permission Levels
116
+
117
+ **Minimal (Read-only):**
118
+ ```yaml
119
+ tools:
120
+ - Read
121
+ - Grep
122
+ - Glob
123
+ ```
124
+
125
+ **Standard (Read + Write):**
126
+ ```yaml
127
+ tools:
128
+ - Read
129
+ - Write
130
+ - Edit
131
+ - Bash
132
+ - Glob
133
+ - Grep
134
+ ```
135
+
136
+ **Full (Including nested subagents):**
137
+ ```yaml
138
+ tools:
139
+ - Read
140
+ - Write
141
+ - Edit
142
+ - Bash
143
+ - Glob
144
+ - Grep
145
+ - Skill
146
+ - Task
147
+ ```
148
+
149
+ ---
150
+
151
+ ## Content Sections
152
+
153
+ ### 1. Role Definition
154
+
155
+ Define the subagent's expertise and approach:
156
+
157
+ ```markdown
158
+ ## Role Definition
159
+
160
+ **Primary Role:** Security-focused code reviewer
161
+
162
+ **Specialization:** Web application vulnerabilities, performance issues
163
+
164
+ **Working Style:** Methodical, thorough, prioritizes security over convenience
165
+ ```
166
+
167
+ ### 2. Trigger Conditions
168
+
169
+ Specify when to invoke this subagent:
170
+
171
+ ```markdown
172
+ ## When to Use This Subagent
173
+
174
+ ### Trigger Conditions
175
+
176
+ Invoke this subagent when:
177
+
178
+ 1. **Code review requested** - Any PR or code change needs review
179
+ 2. **Security concerns** - Suspicious patterns detected
180
+ 3. **Performance optimization** - Hot paths need analysis
181
+
182
+ ### Task Characteristics
183
+
184
+ **Ideal for:**
185
+ - Multi-file code reviews
186
+ - Security vulnerability scans
187
+ - Performance bottleneck analysis
188
+
189
+ **Not suitable for:**
190
+ - Simple syntax checks
191
+ - One-line changes
192
+ ```
193
+
194
+ ### 3. Workflow
195
+
196
+ Define the multi-phase workflow:
197
+
198
+ ```markdown
199
+ ## Workflow
200
+
201
+ ### Phase 1: Initial Scan
202
+
203
+ 1. Read all changed files
204
+ 2. Identify file types and scope
205
+ 3. Check for obvious issues
206
+
207
+ ### Phase 2: Deep Analysis
208
+
209
+ 1. Security vulnerability scan
210
+ 2. Performance pattern analysis
211
+ 3. Best practices compliance check
212
+
213
+ ### Phase 3: Synthesis and Report
214
+
215
+ 1. Prioritize findings by severity
216
+ 2. Generate actionable recommendations
217
+ 3. Format output consistently
218
+ ```
219
+
220
+ ### 4. Response Format
221
+
222
+ Define expected output structure:
223
+
224
+ ```markdown
225
+ ## Response Format
226
+
227
+ ### Structure
228
+
229
+ ```markdown
230
+ ## Summary
231
+ [Brief overview of findings]
232
+
233
+ ## Critical Issues
234
+ [High priority items]
235
+
236
+ ## Recommendations
237
+ [Actionable improvements]
238
+
239
+ ## References
240
+ [Files analyzed]
241
+ ```
242
+
243
+ ### Tone and Style
244
+
245
+ - Professional and constructive
246
+ - Specific with line references
247
+ - Prioritize security and correctness
248
+ ```
249
+
250
+ ### 5. Error Handling
251
+
252
+ Document common issues and resolutions:
253
+
254
+ ```markdown
255
+ ## Error Handling
256
+
257
+ ### Common Issues
258
+
259
+ | Issue | Detection | Resolution |
260
+ |-------|-----------|------------|
261
+ | Binary files | File extension check | Skip, note in report |
262
+ | Large diffs | Line count >500 | Focus on critical sections |
263
+ | Missing context | Import not found | Request additional files |
264
+
265
+ ### Escalation Criteria
266
+
267
+ Escalate to parent when:
268
+ - Architectural decisions needed
269
+ - Business logic unclear
270
+ - External dependencies involved
271
+ ```
272
+
273
+ ### 6. Examples
274
+
275
+ Provide concrete usage examples:
276
+
277
+ ```markdown
278
+ ## Examples
279
+
280
+ ### Example 1: Security Review
281
+
282
+ **Input:**
283
+ ```
284
+ Review this authentication module for security issues
285
+ ```
286
+
287
+ **Process:**
288
+ 1. Scan for SQL injection patterns
289
+ 2. Check for XSS vulnerabilities
290
+ 3. Verify input validation
291
+ 4. Review session handling
292
+
293
+ **Output:**
294
+ ```markdown
295
+ ## Summary
296
+ Found 2 critical security issues
297
+
298
+ ## Critical Issues
299
+ 1. SQL injection in login() (line 45)
300
+ 2. XSS vulnerability in display_name (line 78)
301
+
302
+ ## Recommendations
303
+ - Use parameterized queries
304
+ - Implement output encoding
305
+ ```
306
+ ```
307
+ ```
308
+
309
+ ---
310
+
311
+ ## Validation Checklist
312
+
313
+ Before deploying your subagent:
314
+
315
+ - [ ] YAML frontmatter is valid (test with `python3 -c "import yaml; yaml.safe_load(open('SUBAGENT.md'))"`)
316
+ - [ ] Name is descriptive and hyphenated
317
+ - [ ] Description is clear and specific
318
+ - [ ] Subagent type is appropriate
319
+ - [ ] Tool permissions are minimal but sufficient
320
+ - [ ] Role definition is clear
321
+ - [ ] Trigger conditions are specific
322
+ - [ ] Workflow has multiple phases
323
+ - [ ] Response format is defined
324
+ - [ ] At least one example is complete
325
+ - [ ] Error handling is documented
326
+
327
+ ---
328
+
329
+ ## Testing Your Subagent
330
+
331
+ ### Test Invocation
332
+
333
+ ```python
334
+ # Test with Task tool
335
+ Task(
336
+ description="Test subagent",
337
+ prompt="""Test the [subagent-name] subagent with this request:
338
+
339
+ [Your test case here]
340
+
341
+ Verify it:
342
+ 1. Follows the defined workflow
343
+ 2. Uses correct tone/style
344
+ 3. Returns properly formatted output
345
+ 4. Handles the task appropriately
346
+ """,
347
+ subagent_type="[subagent-name]"
348
+ )
349
+ ```
350
+
351
+ ### Iteration
352
+
353
+ 1. Run test
354
+ 2. Review output
355
+ 3. Update SUBAGENT.md if needed
356
+ 4. Re-test
357
+ 5. Repeat until satisfied
358
+
359
+ ---
360
+
361
+ ## Integration with Skills
362
+
363
+ Subagents can invoke Skills for utilities:
364
+
365
+ ```markdown
366
+ ## Using with Skills
367
+
368
+ This subagent can invoke:
369
+ - `coding-standards` - Apply style guidelines
370
+ - `security-checklist` - Run security validation
371
+ - `documentation-formatter` - Format docs consistently
372
+ ```
373
+
374
+ See `knowledge/foundation/04-hybrid-patterns.md` for hybrid patterns.
375
+
376
+ ---
377
+
378
+ ## Deployment
379
+
380
+ ### Personal Use
381
+
382
+ 1. Save subagent definition
383
+ 2. Document in personal notes
384
+ 3. Use via Task tool
385
+
386
+ ### Team Sharing
387
+
388
+ 1. Add to team subagents registry
389
+ 2. Document usage patterns
390
+ 3. Share examples
391
+
392
+ ### Project-Specific
393
+
394
+ 1. Add to project docs
395
+ 2. Document in README
396
+ 3. Configure CI/CD if needed
397
+
398
+ ---
399
+
400
+ ## Best Practices
401
+
402
+ 1. **Start Simple:** Begin with minimal tool set, add as needed
403
+ 2. **Be Specific:** Clear trigger conditions prevent misuse
404
+ 3. **Define Output:** Consistent format improves usability
405
+ 4. **Test Thoroughly:** Multiple test cases catch edge cases
406
+ 5. **Iterate:** Refine based on real usage
407
+ 6. **Document:** Good examples save time later
408
+
409
+ ---
410
+
411
+ ## Troubleshooting
412
+
413
+ ### YAML Validation Errors
414
+
415
+ ```bash
416
+ # Test YAML validity
417
+ python3 -c "import yaml; yaml.safe_load(open('SUBAGENT.md'))"
418
+ ```
419
+
420
+ ### Subagent Not Found
421
+
422
+ - Verify `subagent_type` matches directory name
423
+ - Check file is named `SUBAGENT.md`
424
+ - Ensure YAML frontmatter is at the very top
425
+
426
+ ### Tool Permission Denied
427
+
428
+ - Add required tool to `tools:` list
429
+ - Restart conversation if tool list changed
430
+
431
+ ### Output Not As Expected
432
+
433
+ - Review response format section
434
+ - Check examples are clear
435
+ - Refine workflow steps
436
+
437
+ ---
438
+
439
+ ## Related Resources
440
+
441
+ - **Decision Framework:** `foundation/03-skills-vs-subagents-decision-tree.md`
442
+ - **Comparison:** `foundation/02-skills-vs-subagents-comparison.md`
443
+ - **Hybrid Patterns:** `foundation/04-hybrid-patterns.md`
444
+ - **Full Workflow:** `references/section-6-subagent-creation-workflow.md`
445
+
446
+ ---
447
+
448
+ **FILE END**
@@ -0,0 +1,122 @@
1
+ ---
2
+ title: "Behavioral Testing via Full Mode Protocol"
3
+ purpose: "Run RED->GREEN->REFACTOR behavioral checks for skill quality"
4
+ tool_name: "section-2-full-creation-workflow.md"
5
+ tool_type: "validation-layer"
6
+ read_priority: "high"
7
+ read_when:
8
+ - "Using full-mode workflow"
9
+ - "Creating discipline-enforcing skills"
10
+ - "Need evidence that agents comply under pressure"
11
+ ---
12
+
13
+ # Behavioral Testing Guide
14
+
15
+ > **DEPRECATED (v2.1):** `pressure_tester.py` has been superseded by the Full Mode Behavioral Testing Protocol.
16
+ > For full mode Steps 3, 7, 12: Load `references/section-2-full-creation-workflow.md` → section "Full Mode Behavioral Testing Protocol".
17
+ > The bash commands below are no longer functional.
18
+
19
+ ## What This Is For
20
+
21
+ Use this guide when you need to prove a skill changes agent behavior under pressure.
22
+
23
+ Behavioral testing in skill writing follows TDD:
24
+ - RED: observe baseline failures without the skill
25
+ - GREEN: verify improved behavior with the skill
26
+ - REFACTOR: close loopholes and re-test
27
+
28
+ ## Critical v2 Limitation
29
+
30
+ `pressure_tester.py` was a structural stub in v2 and has been removed in v2.1.
31
+ - `run_scenario()` returned hardcoded `compliance_score=8.5`
32
+ - Output validated data shape and integration flow only
33
+ - Score was never real compliance evidence
34
+
35
+ As of v2.1, the replacement is the **subagent dispatch protocol** documented in
36
+ `references/section-2-full-creation-workflow.md` under "Full Mode Behavioral Testing Protocol".
37
+ Use that section for all RED/GREEN/REFACTOR cycles going forward.
38
+
39
+ ## Pressure Types
40
+
41
+ | Type | Scenario | Primary Risk |
42
+ |------|----------|--------------|
43
+ | `time` | "I need this now" | shortcut behavior |
44
+ | `sunk_cost` | "already wrote 100 lines" | unwilling to restart |
45
+ | `authority` | "manager says skip" | authority override |
46
+ | `exhaustion` | "it's 2 AM" | low-discipline compromise |
47
+ | `combined` | all above | multi-pressure failure |
48
+
49
+ ## Execution Workflow
50
+
51
+ ### Step 1: RED (Baseline)
52
+
53
+ Run before writing or editing the target skill:
54
+
55
+ ```
56
+ # DEPRECATED: pressure_tester.py exits with error in v2.1
57
+ # Use Full Mode Behavioral Testing Protocol in section-2-full-creation-workflow.md instead
58
+ ```
59
+
60
+ Record:
61
+ - rationalizations the agent used
62
+ - where the skill content currently fails to block those rationalizations
63
+
64
+ ### Step 2: GREEN (Verification)
65
+
66
+ After updating the skill content:
67
+
68
+ ```
69
+ # DEPRECATED: pressure_tester.py exits with error in v2.1
70
+ # Use Full Mode Behavioral Testing Protocol in section-2-full-creation-workflow.md instead
71
+ ```
72
+
73
+ Check:
74
+ - output schema is complete
75
+ - rationalization counters are now present in skill text
76
+
77
+ ### Step 3: REFACTOR (Loophole Closure)
78
+
79
+ Run targeted pressure checks to tighten specific weak points:
80
+
81
+ ```
82
+ # DEPRECATED: pressure_tester.py exits with error in v2.1
83
+ # Use Full Mode Behavioral Testing Protocol in section-2-full-creation-workflow.md instead
84
+ ```
85
+
86
+ ## Output Contract
87
+
88
+ Expected JSON keys:
89
+ - `status`
90
+ - `compliance_score`
91
+ - `rationalizations_found`
92
+ - `fixes_needed`
93
+ - `skill_type`
94
+ - `pressure_type`
95
+
96
+ If any key is missing, treat run as failed integration.
97
+
98
+ ## Integration with quality_scorer.py
99
+
100
+ In full mode, `quality_scorer.py` combines:
101
+ - structural score: 60%
102
+ - behavioral score: 40%
103
+
104
+ ```
105
+ # DEPRECATED: quality_scorer.py --behavioral is no longer functional in v2.1
106
+ # Use Full Mode Behavioral Testing Protocol in section-2-full-creation-workflow.md instead
107
+ ```
108
+
109
+ Use result fields:
110
+ - `mode`
111
+ - `final_score`
112
+ - `structural_score`
113
+ - `behavioral_score`
114
+ - `weights`
115
+
116
+ ## Failure Handling
117
+
118
+ If behavioral testing produces unclear results:
119
+ - Ensure pressure prompts are specific to the skill's core rules (not generic)
120
+ - Verify the subagent received the full SKILL.md content in its prompt
121
+ - Re-run with a more provocative pressure prompt if agent complied too easily
122
+ - Check `references/section-2-full-creation-workflow.md` for the authoritative protocol