@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,270 @@
1
+ # JSON Format for Structured Output
2
+
3
+ ## When to Use JSON
4
+
5
+ ✅ **Use JSON When:**
6
+ - Target is GPT, Gemini, or multi-LLM systems
7
+ - Output needs to be parsed by code/APIs
8
+ - API integration required
9
+ - Structured data with arrays/objects needed
10
+ - Multi-LLM compatibility important
11
+
12
+ ❌ **Don't Use JSON When:**
13
+ - Humans will frequently edit (use YAML)
14
+ - Very complex hierarchies for Claude (consider XML)
15
+ - Simple explanation needed (use Natural Language)
16
+
17
+ ## Best Practices
18
+
19
+ ✓ Provide clear JSON schema
20
+ ✓ Use consistent key naming (snake_case or camelCase)
21
+ ✓ Include type hints in schema
22
+ ✓ Validate JSON structure
23
+ ✓ Keep nesting reasonable (<4 levels)
24
+
25
+ ✗ Don't use ambiguous field names
26
+ ✗ Avoid deeply nested structures (>5 levels)
27
+ ✗ Don't mix naming conventions
28
+ ✗ Avoid comments (not in standard JSON)
29
+
30
+ ## Template: Basic Structure
31
+
32
+ ```json
33
+ {
34
+ "task": {
35
+ "description": "[What to do]",
36
+ "type": "[Task category]",
37
+ "priority": "high|medium|low"
38
+ },
39
+ "context": {
40
+ "background": "[Background info]",
41
+ "constraints": [
42
+ "[Constraint 1]",
43
+ "[Constraint 2]"
44
+ ]
45
+ },
46
+ "requirements": {
47
+ "must_include": ["[Requirement 1]", "[Requirement 2]"],
48
+ "must_avoid": ["[Thing to avoid 1]"],
49
+ "output_format": "[Desired format]"
50
+ },
51
+ "examples": [
52
+ {
53
+ "input": "[Example input]",
54
+ "output": "[Example output]",
55
+ "explanation": "[Why this is correct]"
56
+ }
57
+ ]
58
+ }
59
+ ```
60
+
61
+ ## Template: With JSON Schema
62
+
63
+ ```json
64
+ {
65
+ "prompt": {
66
+ "instruction": "[Main instruction]",
67
+ "context": "[Context information]"
68
+ },
69
+ "output_schema": {
70
+ "type": "object",
71
+ "properties": {
72
+ "result": {
73
+ "type": "string",
74
+ "description": "The main result"
75
+ },
76
+ "confidence": {
77
+ "type": "number",
78
+ "minimum": 0,
79
+ "maximum": 1,
80
+ "description": "Confidence score 0-1"
81
+ },
82
+ "reasoning": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string"
86
+ },
87
+ "description": "Step-by-step reasoning"
88
+ }
89
+ },
90
+ "required": ["result", "confidence"]
91
+ }
92
+ }
93
+ ```
94
+
95
+ ## Template: Function/Tool Calling
96
+
97
+ ```json
98
+ {
99
+ "task": "Analyze query and determine which tools to use",
100
+ "available_tools": [
101
+ {
102
+ "name": "web_search",
103
+ "description": "Search the web for current information",
104
+ "parameters": {
105
+ "query": "string (required)",
106
+ "num_results": "integer (optional, default 5)"
107
+ }
108
+ },
109
+ {
110
+ "name": "calculator",
111
+ "description": "Perform mathematical calculations",
112
+ "parameters": {
113
+ "expression": "string (required)"
114
+ }
115
+ }
116
+ ],
117
+ "user_query": "[User's question]",
118
+ "expected_response": {
119
+ "thoughts": "Brief reasoning about which tool(s) to use",
120
+ "tool_calls": [
121
+ {
122
+ "tool": "tool_name",
123
+ "parameters": {
124
+ "param1": "value1"
125
+ },
126
+ "reason": "Why this tool is needed"
127
+ }
128
+ ]
129
+ }
130
+ }
131
+ ```
132
+
133
+ ## Example: Sentiment Analysis
134
+
135
+ ```json
136
+ {
137
+ "task": "Analyze sentiment of customer reviews",
138
+ "instructions": "For each review, extract sentiment, themes, confidence",
139
+ "reviews": [
140
+ "The product is amazing! Best purchase ever.",
141
+ "Terrible quality, broke after one day."
142
+ ],
143
+ "output_format": {
144
+ "results": [
145
+ {
146
+ "review_id": 1,
147
+ "text": "original review text",
148
+ "sentiment": "positive|negative|neutral",
149
+ "confidence": 0.95,
150
+ "key_themes": ["quality", "durability"],
151
+ "emotional_tone": "enthusiastic"
152
+ }
153
+ ],
154
+ "summary": {
155
+ "overall_sentiment": "mixed",
156
+ "positive_count": 1,
157
+ "negative_count": 1,
158
+ "neutral_count": 0
159
+ }
160
+ }
161
+ }
162
+ ```
163
+
164
+ ## Naming Conventions
165
+
166
+ ### snake_case (Recommended for Python)
167
+ ```json
168
+ {
169
+ "user_name": "John",
170
+ "email_address": "john@example.com",
171
+ "is_verified": true
172
+ }
173
+ ```
174
+
175
+ ### camelCase (Recommended for JavaScript)
176
+ ```json
177
+ {
178
+ "userName": "John",
179
+ "emailAddress": "john@example.com",
180
+ "isVerified": true
181
+ }
182
+ ```
183
+
184
+ **Rule:** Pick one and be consistent throughout the entire JSON.
185
+
186
+ ## Handling Special Characters
187
+
188
+ ### Escaping Required:
189
+ - `"` → `\"`
190
+ - `\` → `\\`
191
+ - `/` → `\/` (optional but recommended)
192
+ - Newline → `\n`
193
+ - Tab → `\t`
194
+
195
+ ### Example:
196
+ ```json
197
+ {
198
+ "message": "He said \"Hello\" and left.\nNext line here."
199
+ }
200
+ ```
201
+
202
+ ## Common Patterns
203
+
204
+ ### API Response Structure
205
+ ```json
206
+ {
207
+ "status": "success|error",
208
+ "data": {
209
+ // Your actual data
210
+ },
211
+ "metadata": {
212
+ "timestamp": "ISO-8601",
213
+ "version": "1.0"
214
+ },
215
+ "error": null
216
+ }
217
+ ```
218
+
219
+ ### Paginated Data
220
+ ```json
221
+ {
222
+ "items": [...],
223
+ "pagination": {
224
+ "page": 1,
225
+ "per_page": 20,
226
+ "total": 100,
227
+ "total_pages": 5
228
+ }
229
+ }
230
+ ```
231
+
232
+ ## Token Efficiency
233
+
234
+ JSON is more compact than XML:
235
+
236
+ **JSON:** `{"name": "John", "age": 30}` ≈ 15 tokens
237
+ **XML:** `<person><name>John</name><age>30</age></person>` ≈ 25 tokens
238
+
239
+ **Advantage:** ~40% fewer tokens than XML.
240
+
241
+ ## Validation
242
+
243
+ Always specify expected structure:
244
+
245
+ ```json
246
+ {
247
+ "instruction": "Extract entities and return in this EXACT format",
248
+ "expected_format": {
249
+ "entities": [
250
+ {
251
+ "text": "entity text",
252
+ "type": "PERSON|ORG|LOCATION",
253
+ "confidence": 0.95
254
+ }
255
+ ]
256
+ },
257
+ "validation_rules": [
258
+ "confidence must be between 0 and 1",
259
+ "type must be one of: PERSON, ORG, LOCATION",
260
+ "entities array cannot be empty"
261
+ ]
262
+ }
263
+ ```
264
+
265
+ ---
266
+
267
+ **Related:**
268
+ - [XML Format](xml-format.md) - Alternative for Claude
269
+ - [YAML Format](yaml-format.md) - Human-readable alternative
270
+ - [Decision Matrix](decision_matrix.md) - Format selection guide
@@ -0,0 +1,420 @@
1
+ # Natural Language Format
2
+
3
+ ## When to Use Natural Language
4
+
5
+ ✅ **Use Natural Language When:**
6
+ - Simple, straightforward tasks
7
+ - General conversation or explanation
8
+ - Brainstorming or creative writing
9
+ - Structure adds no value
10
+ - Quick queries or ad-hoc requests
11
+ - Exploring ideas without rigid format
12
+
13
+ ❌ **Don't Use Natural Language When:**
14
+ - Output must be parsed by code (use JSON)
15
+ - Complex nested structure needed (use XML/JSON)
16
+ - Multiple clear sections required (use structured format)
17
+ - Consistency across many prompts needed (use templates)
18
+
19
+ ## Best Practices
20
+
21
+ ✓ Be explicit and specific
22
+ ✓ Use clear action verbs (analyze, extract, generate)
23
+ ✓ Number steps when order matters
24
+ ✓ Include examples for clarity
25
+ ✓ Define constraints upfront
26
+ ✓ Specify output format if needed
27
+
28
+ ✗ Don't be overly verbose
29
+ ✗ Avoid ambiguous pronouns (it, this, that)
30
+ ✗ Don't assume implicit knowledge
31
+ ✗ Avoid jargon without definition
32
+ ✗ Don't mix multiple tasks in one prompt
33
+
34
+ ## Template: Simple Task
35
+
36
+ ```
37
+ [Clear, direct instruction]
38
+
39
+ Context: [Relevant background]
40
+
41
+ Requirements:
42
+ 1. [Requirement 1]
43
+ 2. [Requirement 2]
44
+ 3. [Requirement 3]
45
+
46
+ Please [specific action] and provide [expected output].
47
+ ```
48
+
49
+ ## Template: Complex Task with Structure
50
+
51
+ ```
52
+ TASK: [Main task description]
53
+
54
+ BACKGROUND:
55
+ [Relevant context that informs the task]
56
+
57
+ SPECIFIC REQUIREMENTS:
58
+ 1. [Detailed requirement 1]
59
+ 2. [Detailed requirement 2]
60
+ 3. [Detailed requirement 3]
61
+
62
+ CONSTRAINTS:
63
+ - [Constraint 1]
64
+ - [Constraint 2]
65
+
66
+ EXAMPLES:
67
+ Example 1:
68
+ [Input/scenario 1]
69
+ Expected: [Output 1]
70
+
71
+ Example 2:
72
+ [Input/scenario 2]
73
+ Expected: [Output 2]
74
+
75
+ OUTPUT FORMAT:
76
+ [Describe how to structure the response]
77
+
78
+ QUALITY CRITERIA:
79
+ - [Criterion 1]
80
+ - [Criterion 2]
81
+
82
+ Please complete the task following the above guidelines.
83
+ ```
84
+
85
+ ## Template: Conversational/Iterative
86
+
87
+ ```
88
+ I need help with [task/problem].
89
+
90
+ Here's what I've tried so far:
91
+ [Previous attempts or context]
92
+
93
+ Specifically, I'm struggling with:
94
+ [Specific challenge]
95
+
96
+ What I need from you:
97
+ 1. [Specific help item 1]
98
+ 2. [Specific help item 2]
99
+
100
+ Additional context that might be relevant:
101
+ [Any other useful information]
102
+
103
+ Please provide [type of response] that [specific outcome].
104
+ ```
105
+
106
+ ## Real-World Examples
107
+
108
+ ### Example 1: Code Review
109
+
110
+ ```
111
+ I need a code review for a Python function that processes user payments.
112
+
113
+ CODE:
114
+ ```python
115
+ def process_payment(user_id, amount, card_info):
116
+ user = db.get_user(user_id)
117
+ charge = stripe.charge(amount, card_info)
118
+ if charge.success:
119
+ user.balance += amount
120
+ db.save(user)
121
+ return True
122
+ return False
123
+ ```
124
+
125
+ CONTEXT:
126
+ This is for a subscription service. Users can add funds to their account balance.
127
+
128
+ SPECIFIC CONCERNS:
129
+ 1. Are there any security vulnerabilities?
130
+ 2. Is error handling sufficient?
131
+ 3. Should this be wrapped in a transaction?
132
+ 4. Is the logic sound?
133
+
134
+ Please review focusing on security and reliability, and suggest specific improvements.
135
+ ```
136
+
137
+ ### Example 2: Content Generation
138
+
139
+ ```
140
+ Write a blog post introduction about the benefits of meditation for busy professionals.
141
+
142
+ REQUIREMENTS:
143
+ - Length: 150-200 words
144
+ - Tone: Professional but approachable
145
+ - Include a hook in the first sentence
146
+ - Mention 2-3 specific benefits
147
+ - End with a transition to the main content
148
+
149
+ TARGET AUDIENCE:
150
+ Corporate professionals aged 30-45 who work long hours and feel stressed.
151
+
152
+ AVOID:
153
+ - Overly spiritual language
154
+ - Unsubstantiated claims
155
+ - Clichés like "in today's fast-paced world"
156
+ ```
157
+
158
+ ### Example 3: Data Analysis Request
159
+
160
+ ```
161
+ Analyze the following customer feedback data and identify the top 3 issues.
162
+
163
+ DATA:
164
+ - 45 mentions of "slow loading time"
165
+ - 23 mentions of "confusing interface"
166
+ - 67 mentions of "expensive pricing"
167
+ - 12 mentions of "missing features"
168
+ - 34 mentions of "poor customer support"
169
+
170
+ For each top issue:
171
+ 1. Explain why it's significant
172
+ 2. Suggest a potential solution
173
+ 3. Estimate impact if fixed (low/medium/high)
174
+
175
+ Format as a brief report (300 words max).
176
+ ```
177
+
178
+ ## Structuring for Clarity
179
+
180
+ ### Use Headers for Sections:
181
+ ```
182
+ TASK: [What to do]
183
+
184
+ CONTEXT: [Background]
185
+
186
+ REQUIREMENTS: [What's needed]
187
+
188
+ OUTPUT: [Expected format]
189
+ ```
190
+
191
+ ### Use Lists for Multiple Items:
192
+ ```
193
+ Requirements:
194
+ - Item 1
195
+ - Item 2
196
+ - Item 3
197
+ ```
198
+
199
+ ### Use Numbers for Sequential Steps:
200
+ ```
201
+ Process:
202
+ 1. First, do X
203
+ 2. Then, do Y
204
+ 3. Finally, do Z
205
+ ```
206
+
207
+ ### Use Examples for Clarity:
208
+ ```
209
+ Bad example: "Sort the data"
210
+
211
+ Good example: "Sort the data by date (newest first),
212
+ then by priority (high to low)"
213
+ ```
214
+
215
+ ## Common Patterns
216
+
217
+ ### Analysis Task:
218
+ ```
219
+ Analyze [subject] focusing on:
220
+ 1. [Aspect 1]
221
+ 2. [Aspect 2]
222
+ 3. [Aspect 3]
223
+
224
+ Provide insights on [specific question].
225
+ ```
226
+
227
+ ### Generation Task:
228
+ ```
229
+ Generate [output type] that:
230
+ - Meets [requirement 1]
231
+ - Includes [requirement 2]
232
+ - Avoids [constraint]
233
+
234
+ Style: [tone/style guide]
235
+ Length: [word/character count]
236
+ ```
237
+
238
+ ### Explanation Task:
239
+ ```
240
+ Explain [concept] to [audience].
241
+
242
+ Coverage:
243
+ - What it is
244
+ - Why it matters
245
+ - How it works
246
+ - When to use it
247
+
248
+ Use analogies and examples to clarify.
249
+ ```
250
+
251
+ ### Transformation Task:
252
+ ```
253
+ Transform [input] into [output format].
254
+
255
+ Maintain: [what to preserve]
256
+ Change: [what to modify]
257
+ Remove: [what to exclude]
258
+
259
+ Example:
260
+ Input: [example input]
261
+ Output: [example output]
262
+ ```
263
+
264
+ ## Action Verbs for Clarity
265
+
266
+ | Instead of... | Use specific verb |
267
+ |--------------|-------------------|
268
+ | "Do something with..." | Analyze, Extract, Generate, Summarize |
269
+ | "Look at..." | Review, Evaluate, Assess, Examine |
270
+ | "Make..." | Create, Build, Design, Construct |
271
+ | "Fix..." | Correct, Repair, Improve, Optimize |
272
+ | "Change..." | Transform, Convert, Modify, Refactor |
273
+
274
+ ## Specifying Output Format (in Natural Language)
275
+
276
+ ### Instead of:
277
+ ```
278
+ "Give me the results"
279
+ ```
280
+
281
+ ### Be Specific:
282
+ ```
283
+ "Provide results as a bullet list with:
284
+ - Issue name
285
+ - Severity (Low/Medium/High)
286
+ - Recommended action
287
+
288
+ Example:
289
+ • Slow page load - High - Optimize images and enable caching
290
+ • Broken link - Medium - Update link to new URL"
291
+ ```
292
+
293
+ ## Handling Ambiguity
294
+
295
+ ### ❌ Ambiguous:
296
+ ```
297
+ "Make this better"
298
+ ```
299
+
300
+ ### ✅ Clear:
301
+ ```
302
+ "Improve this code by:
303
+ 1. Adding error handling for null inputs
304
+ 2. Optimizing from O(n²) to O(n log n)
305
+ 3. Adding docstrings to all functions"
306
+ ```
307
+
308
+ ### ❌ Ambiguous:
309
+ ```
310
+ "Summarize this document"
311
+ ```
312
+
313
+ ### ✅ Clear:
314
+ ```
315
+ "Summarize this document in 200 words focusing on:
316
+ 1. Main conclusions
317
+ 2. Key recommendations
318
+ 3. Next steps
319
+
320
+ Use bullet points for readability."
321
+ ```
322
+
323
+ ## Combining with Other Formats
324
+
325
+ Natural language can introduce structured formats:
326
+
327
+ ```
328
+ Analyze the customer reviews and return results in JSON format:
329
+
330
+ {
331
+ "sentiment": "positive|negative|neutral",
332
+ "key_themes": ["theme1", "theme2"],
333
+ "action_items": ["action1", "action2"]
334
+ }
335
+
336
+ Focus on identifying actionable insights for product improvement.
337
+ ```
338
+
339
+ ## Quick Reference: Natural Language Checklist
340
+
341
+ When writing natural language prompts, ensure:
342
+
343
+ - [ ] Clear action verb (analyze, generate, explain)
344
+ - [ ] Specific requirements listed
345
+ - [ ] Output format described
346
+ - [ ] Examples provided if pattern not obvious
347
+ - [ ] Constraints mentioned
348
+ - [ ] Context/background included
349
+ - [ ] Success criteria defined
350
+ - [ ] Ambiguity eliminated
351
+
352
+ ## Common Mistakes
353
+
354
+ ### ❌ Mistake 1: Too Vague
355
+ ```
356
+ "Tell me about AI"
357
+ ```
358
+ **Problem:** Too broad, unclear what aspect to cover
359
+
360
+ ✅ **Fix:**
361
+ ```
362
+ "Explain how transformer models work in AI,
363
+ focusing on the attention mechanism.
364
+ Target audience: software engineers with basic ML knowledge.
365
+ Length: 300 words."
366
+ ```
367
+
368
+ ### ❌ Mistake 2: Assuming Context
369
+ ```
370
+ "Update the function to handle this"
371
+ ```
372
+ **Problem:** "this" is ambiguous, "update" is vague
373
+
374
+ ✅ **Fix:**
375
+ ```
376
+ "Update the `calculate_total()` function to handle
377
+ null values in the items array by treating them as 0."
378
+ ```
379
+
380
+ ### ❌ Mistake 3: Multiple Tasks Mixed
381
+ ```
382
+ "Analyze the data, fix the bugs, and write documentation"
383
+ ```
384
+ **Problem:** Three separate tasks in one prompt
385
+
386
+ ✅ **Fix:**
387
+ ```
388
+ "First, analyze the data for anomalies and outliers.
389
+ Report findings in a brief summary.
390
+
391
+ Then, in a separate response, I'll ask you to
392
+ address the bugs and documentation."
393
+ ```
394
+
395
+ ## When Natural Language Excels
396
+
397
+ ✅ **Best for:**
398
+ - Quick questions ("What is...?")
399
+ - Exploratory conversations
400
+ - Brainstorming sessions
401
+ - Explaining concepts
402
+ - Ad-hoc analysis requests
403
+ - Creative writing prompts
404
+
405
+ ## When to Switch to Structured Formats
406
+
407
+ Switch from Natural Language to structured format when:
408
+ - Need machine parsing → JSON
409
+ - Complex hierarchy → XML (Claude) or JSON
410
+ - Team collaboration → YAML
411
+ - Consistent format across prompts → Templates
412
+ - Multiple similar tasks → Few-Shot examples
413
+
414
+ ---
415
+
416
+ **Related:**
417
+ - [Zero-Shot](zero-shot.md) - Simple prompting with natural language
418
+ - [XML Format](xml-format.md) - Structured alternative for Claude
419
+ - [JSON Format](json-format.md) - Structured alternative for APIs
420
+ - [YAML Format](yaml-format.md) - Readable structured alternative