@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.
- package/agents/agents/creative-copywriter.md +212 -0
- package/agents/agents/dario-amodei.md +135 -0
- package/agents/agents/doc-simplifier.md +63 -0
- package/agents/agents/kotlin-pro.md +433 -0
- package/agents/agents/red-team.md +136 -0
- package/agents/agents/sam-altman.md +121 -0
- package/agents/agents/seo-manager.md +184 -0
- package/package.json +7 -2
- package/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skillkit/.claude/settings.local.json +7 -0
- package/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
- package/skills/skillkit-help/SKILL.md +81 -0
- package/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
- package/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
- package/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
- package/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
- package/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
- package/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
- package/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
- package/skills/skillkit-help/template/SKILL.md +52 -0
- package/skills/skills/adversarial-review/SKILL.md +219 -0
- package/skills/skills/baby-education/SKILL.md +260 -0
- package/skills/skills/baby-education/references/advanced-techniques.md +323 -0
- package/skills/skills/baby-education/references/transformations.md +345 -0
- package/skills/skills/been-there-done-that/SKILL.md +455 -0
- package/skills/skills/been-there-done-that/references/analysis-patterns.md +162 -0
- package/skills/skills/been-there-done-that/references/git-commands.md +132 -0
- package/skills/skills/been-there-done-that/references/tree-insertion-logic.md +145 -0
- package/skills/skills/coolhunter/SKILL.md +270 -0
- package/skills/skills/coolhunter/assets/elicitation-methods.csv +51 -0
- package/skills/skills/coolhunter/knowledge/elicitation-methods.md +312 -0
- package/skills/skills/coolhunter/references/workflow-execution.md +238 -0
- package/skills/skills/coolhunter/workflow-plan-coolhunter.md +232 -0
- package/skills/skills/creative-copywriting/SKILL.md +324 -0
- package/skills/skills/creative-copywriting/databases/README.md +60 -0
- package/skills/skills/creative-copywriting/databases/carousel-structures.csv +16 -0
- package/skills/skills/creative-copywriting/databases/emotional-arcs.csv +11 -0
- package/skills/skills/creative-copywriting/databases/hook-formulas.csv +51 -0
- package/skills/skills/creative-copywriting/databases/power-words.csv +201 -0
- package/skills/skills/creative-copywriting/databases/psychological-triggers.csv +21 -0
- package/skills/skills/creative-copywriting/databases/read-more-patterns.csv +26 -0
- package/skills/skills/creative-copywriting/databases/swipe-triggers.csv +31 -0
- package/skills/skills/creative-copywriting/references/carousel-psychology.md +223 -0
- package/skills/skills/creative-copywriting/references/hook-anatomy.md +169 -0
- package/skills/skills/creative-copywriting/references/power-word-science.md +134 -0
- package/skills/skills/creative-copywriting/references/storytelling-frameworks.md +157 -0
- package/skills/skills/diverse-content-gen/SKILL.md +201 -0
- package/skills/skills/diverse-content-gen/references/advanced-techniques.md +320 -0
- package/skills/skills/diverse-content-gen/references/research-findings.md +379 -0
- package/skills/skills/diverse-content-gen/references/task-workflows.md +241 -0
- package/skills/skills/diverse-content-gen/references/tool-integration.md +419 -0
- package/skills/skills/diverse-content-gen/references/troubleshooting.md +426 -0
- package/skills/skills/diverse-content-gen/references/vs-core-technique.md +240 -0
- package/skills/skills/framework-critical-thinking/SKILL.md +220 -0
- package/skills/skills/framework-critical-thinking/references/bias_detector.md +375 -0
- package/skills/skills/framework-critical-thinking/references/fallback_handler.md +239 -0
- package/skills/skills/framework-critical-thinking/references/memory_curator.md +161 -0
- package/skills/skills/framework-critical-thinking/references/metacognitive_monitor.md +297 -0
- package/skills/skills/framework-critical-thinking/references/producer_critic_orchestrator.md +333 -0
- package/skills/skills/framework-critical-thinking/references/reasoning_router.md +235 -0
- package/skills/skills/framework-critical-thinking/references/reasoning_validator.md +97 -0
- package/skills/skills/framework-critical-thinking/references/reflection_trigger.md +78 -0
- package/skills/skills/framework-critical-thinking/references/self_verification.md +388 -0
- package/skills/skills/framework-critical-thinking/references/uncertainty_quantifier.md +207 -0
- package/skills/skills/framework-initiative/SKILL.md +231 -0
- package/skills/skills/framework-initiative/references/examples.md +150 -0
- package/skills/skills/framework-initiative/references/impact-analysis.md +157 -0
- package/skills/skills/framework-initiative/references/intent-patterns.md +145 -0
- package/skills/skills/framework-initiative/references/star-framework.md +165 -0
- package/skills/skills/humanize-docs/SKILL.md +203 -0
- package/skills/skills/humanize-docs/references/advanced-techniques.md +13 -0
- package/skills/skills/humanize-docs/references/core-transformations.md +368 -0
- package/skills/skills/humanize-docs/references/detection-patterns.md +400 -0
- package/skills/skills/humanize-docs/references/examples-gallery.md +374 -0
- package/skills/skills/imagine/SKILL.md +190 -0
- package/skills/skills/imagine/references/artstyle-corporate-memphis.md +625 -0
- package/skills/skills/imagine/references/artstyle-crewdson-hyperrealism.md +295 -0
- package/skills/skills/imagine/references/artstyle-iphone-social-media.md +426 -0
- package/skills/skills/imagine/references/artstyle-sciencesaru.md +276 -0
- package/skills/skills/pre-deploy-checklist/README.md +26 -0
- package/skills/skills/pre-deploy-checklist/SKILL.md +153 -0
- package/skills/skills/pre-deploy-checklist/references/checklist-categories.md +174 -0
- package/skills/skills/pre-deploy-checklist/references/domain-prompts.md +216 -0
- package/skills/skills/prompt-engineering/SKILL.md +209 -0
- package/skills/skills/prompt-engineering/references/advanced-combinations.md +444 -0
- package/skills/skills/prompt-engineering/references/chain-of-thought.md +140 -0
- package/skills/skills/prompt-engineering/references/decision_matrix.md +220 -0
- package/skills/skills/prompt-engineering/references/few-shot.md +346 -0
- package/skills/skills/prompt-engineering/references/json-format.md +270 -0
- package/skills/skills/prompt-engineering/references/natural-language.md +420 -0
- package/skills/skills/prompt-engineering/references/pitfalls.md +365 -0
- package/skills/skills/prompt-engineering/references/prompt-chaining.md +498 -0
- package/skills/skills/prompt-engineering/references/react.md +108 -0
- package/skills/skills/prompt-engineering/references/self-consistency.md +322 -0
- package/skills/skills/prompt-engineering/references/tree-of-thoughts.md +386 -0
- package/skills/skills/prompt-engineering/references/xml-format.md +220 -0
- package/skills/skills/prompt-engineering/references/yaml-format.md +488 -0
- package/skills/skills/prompt-engineering/references/zero-shot.md +74 -0
- package/skills/skills/quick-spec/SKILL.md +280 -0
- package/skills/skills/quick-spec/assets/tech-spec-template.md +74 -0
- package/skills/skills/quick-spec/references/step-01-understand.md +189 -0
- package/skills/skills/quick-spec/references/step-02-investigate.md +144 -0
- package/skills/skills/quick-spec/references/step-03-generate.md +128 -0
- package/skills/skills/quick-spec/references/step-04-review.md +173 -0
- package/skills/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skills/quick-spec/tests/test_scenarios.md +83 -0
- package/skills/skills/quick-spec/tests/test_skill.py +136 -0
- package/skills/skills/readme-expert/SKILL.md +538 -0
- package/skills/skills/readme-expert/knowledge/INDEX.md +192 -0
- package/skills/skills/readme-expert/knowledge/application/quality-standards.md +470 -0
- package/skills/skills/readme-expert/knowledge/application/script-executor.md +604 -0
- package/skills/skills/readme-expert/knowledge/application/template-library.md +822 -0
- package/skills/skills/readme-expert/knowledge/foundation/codebase-scanner.md +361 -0
- package/skills/skills/readme-expert/knowledge/foundation/validation-checklist.md +481 -0
- package/skills/skills/red-teaming/SKILL.md +321 -0
- package/skills/skills/red-teaming/references/ai-llm-redteam.md +517 -0
- package/skills/skills/red-teaming/references/attack-techniques.md +410 -0
- package/skills/skills/red-teaming/references/cybersecurity-redteam.md +383 -0
- package/skills/skills/red-teaming/references/tools-frameworks.md +446 -0
- package/skills/skills/releasing/.skillkit-mode +1 -0
- package/skills/skills/releasing/SKILL.md +225 -0
- package/skills/skills/releasing/references/version-detection.md +108 -0
- package/skills/skills/screenwriter/SKILL.md +273 -0
- package/skills/skills/screenwriter/references/advanced-techniques.md +216 -0
- package/skills/skills/screenwriter/references/pipeline-integration.md +266 -0
- package/skills/skills/skillkit/.claude/settings.local.json +7 -0
- package/skills/skills/skillkit/.claude-plugin/plugin.json +27 -0
- package/skills/skills/skillkit/CHANGELOG.md +484 -0
- package/skills/skills/skillkit/SKILL.md +511 -0
- package/skills/skills/skillkit/commands/skillkit.md +6 -0
- package/skills/skills/skillkit/commands/validate-plan.md +6 -0
- package/skills/skills/skillkit/commands/verify.md +6 -0
- package/skills/skills/skillkit/knowledge/INDEX.md +352 -0
- package/skills/skills/skillkit/knowledge/application/09-case-studies.md +257 -0
- package/skills/skills/skillkit/knowledge/application/10-technical-architecture.md +324 -0
- package/skills/skills/skillkit/knowledge/application/11-adoption-strategy.md +267 -0
- package/skills/skills/skillkit/knowledge/application/12-testing-and-validation.md +276 -0
- package/skills/skills/skillkit/knowledge/application/13-competitive-landscape.md +198 -0
- package/skills/skills/skillkit/knowledge/foundation/01-why-skills-exist.md +246 -0
- package/skills/skills/skillkit/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
- package/skills/skills/skillkit/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
- package/skills/skills/skillkit/knowledge/foundation/04-hybrid-patterns.md +308 -0
- package/skills/skills/skillkit/knowledge/foundation/05-token-economics.md +275 -0
- package/skills/skills/skillkit/knowledge/foundation/06-platform-constraints.md +237 -0
- package/skills/skills/skillkit/knowledge/foundation/07-security-concerns.md +322 -0
- package/skills/skills/skillkit/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
- package/skills/skills/skillkit/knowledge/plugin-guide.md +614 -0
- package/skills/skills/skillkit/knowledge/tools/14-validation-tools-guide.md +150 -0
- package/skills/skills/skillkit/knowledge/tools/15-cost-tools-guide.md +157 -0
- package/skills/skills/skillkit/knowledge/tools/16-security-tools-guide.md +122 -0
- package/skills/skills/skillkit/knowledge/tools/17-pattern-tools-guide.md +161 -0
- package/skills/skills/skillkit/knowledge/tools/18-decision-helper-guide.md +243 -0
- package/skills/skills/skillkit/knowledge/tools/19-test-generator-guide.md +275 -0
- package/skills/skills/skillkit/knowledge/tools/20-split-skill-guide.md +149 -0
- package/skills/skills/skillkit/knowledge/tools/21-quality-scorer-guide.md +226 -0
- package/skills/skills/skillkit/knowledge/tools/22-migration-helper-guide.md +356 -0
- package/skills/skills/skillkit/knowledge/tools/23-subagent-creation-guide.md +448 -0
- package/skills/skills/skillkit/knowledge/tools/24-behavioral-testing-guide.md +122 -0
- package/skills/skills/skillkit/references/proposal-generation.md +982 -0
- package/skills/skills/skillkit/references/rationalization-catalog.md +75 -0
- package/skills/skills/skillkit/references/research-methodology.md +661 -0
- package/skills/skills/skillkit/references/section-2-full-creation-workflow.md +452 -0
- package/skills/skills/skillkit/references/section-3-validation-workflow-existing-skill.md +63 -0
- package/skills/skills/skillkit/references/section-4-decision-workflow-skills-vs-subagents.md +64 -0
- package/skills/skills/skillkit/references/section-5-migration-workflow-doc-to-skill.md +58 -0
- package/skills/skills/skillkit/references/section-6-subagent-creation-workflow.md +499 -0
- package/skills/skills/skillkit/references/section-7-knowledge-reference-map.md +72 -0
- package/skills/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skills/skillkit/scripts/decision_helper.py +799 -0
- package/skills/skills/skillkit/scripts/init_skill.py +400 -0
- package/skills/skills/skillkit/scripts/init_subagent.py +231 -0
- package/skills/skills/skillkit/scripts/migration_helper.py +669 -0
- package/skills/skills/skillkit/scripts/package_skill.py +211 -0
- package/skills/skills/skillkit/scripts/pattern_detector.py +381 -0
- package/skills/skills/skillkit/scripts/pattern_detector_new.py +382 -0
- package/skills/skills/skillkit/scripts/pressure_tester.py +157 -0
- package/skills/skills/skillkit/scripts/quality_scorer.py +999 -0
- package/skills/skills/skillkit/scripts/quick_validate.py +100 -0
- package/skills/skills/skillkit/scripts/security_scanner.py +474 -0
- package/skills/skills/skillkit/scripts/split_skill.py +540 -0
- package/skills/skills/skillkit/scripts/test_generator.py +695 -0
- package/skills/skills/skillkit/scripts/token_estimator.py +493 -0
- package/skills/skills/skillkit/scripts/utils/__init__.py +49 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/budget_tracker.py +388 -0
- package/skills/skills/skillkit/scripts/utils/output_formatter.py +263 -0
- package/skills/skills/skillkit/scripts/utils/reference_validator.py +401 -0
- package/skills/skills/skillkit/scripts/validate_skill.py +594 -0
- package/skills/skills/skillkit/tests/test_behavioral.py +39 -0
- package/skills/skills/skillkit/tests/test_scenarios.md +83 -0
- package/skills/skills/skillkit/tests/test_skill.py +136 -0
- package/skills/skills/skillkit-help/SKILL.md +81 -0
- package/skills/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
- package/skills/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
- package/skills/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
- package/skills/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
- package/skills/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
- package/skills/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
- package/skills/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
- package/skills/skills/skillkit-help/template/SKILL.md +52 -0
- package/skills/skills/social-media-seo/SKILL.md +278 -0
- package/skills/skills/social-media-seo/databases/caption-styles.csv +31 -0
- package/skills/skills/social-media-seo/databases/engagement-tactics.csv +16 -0
- package/skills/skills/social-media-seo/databases/hashtag-strategies.csv +21 -0
- package/skills/skills/social-media-seo/databases/hook-formulas.csv +26 -0
- package/skills/skills/social-media-seo/databases/keyword-clusters.csv +11 -0
- package/skills/skills/social-media-seo/databases/thread-structures.csv +26 -0
- package/skills/skills/social-media-seo/databases/viral-patterns.csv +21 -0
- package/skills/skills/social-media-seo/references/analytics-guide.md +321 -0
- package/skills/skills/social-media-seo/references/instagram-seo.md +235 -0
- package/skills/skills/social-media-seo/references/threads-seo.md +305 -0
- package/skills/skills/social-media-seo/references/x-twitter-seo.md +337 -0
- package/skills/skills/social-media-seo/scripts/query_database.py +191 -0
- package/skills/skills/storyteller/SKILL.md +241 -0
- package/skills/skills/storyteller/references/transformation-methodology.md +293 -0
- package/skills/skills/storyteller/references/visual-vocabulary.md +177 -0
- package/skills/skills/thread-pro/SKILL.md +162 -0
- package/skills/skills/thread-pro/anti-ai-patterns.md +120 -0
- package/skills/skills/thread-pro/hook-formulas.md +138 -0
- package/skills/skills/thread-pro/references/anti-ai-patterns.md +120 -0
- package/skills/skills/thread-pro/references/hook-formulas.md +138 -0
- package/skills/skills/thread-pro/references/thread-structures.md +240 -0
- package/skills/skills/thread-pro/references/voice-injection.md +130 -0
- package/skills/skills/thread-pro/thread-structures.md +240 -0
- package/skills/skills/thread-pro/voice-injection.md +130 -0
- package/skills/skills/tinkering/SKILL.md +251 -0
- package/skills/skills/tinkering/references/graduation-checklist.md +100 -0
- package/skills/skills/validate-plan/.skillkit-mode +1 -0
- package/skills/skills/validate-plan/SKILL.md +406 -0
- package/skills/skills/validate-plan/references/dry-principles.md +251 -0
- package/skills/skills/validate-plan/references/gap-analysis-guide.md +320 -0
- package/skills/skills/validate-plan/references/tdd-patterns.md +413 -0
- package/skills/skills/validate-plan/references/yagni-checklist.md +330 -0
- package/skills/skills/verify-before-ship/.skillkit-mode +1 -0
- package/skills/skills/verify-before-ship/SKILL.md +116 -0
- package/skills/skills/verify-before-ship/references/anti-rationalization.md +212 -0
- package/skills/skills/verify-before-ship/references/verification-gates.md +305 -0
- package/skills-manifest.json +8 -2
- package/src/banner.js +1 -1
- package/src/cli.js +15 -4
- package/src/install.js +45 -29
- package/src/install.test.js +75 -7
- package/src/picker.js +15 -4
- package/src/picker.test.js +36 -1
- package/src/scope.js +8 -39
- package/src/scope.test.js +9 -13
- package/src/tools.js +76 -0
- package/src/tools.test.js +80 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# Task-Specific VS Workflows
|
|
2
|
+
|
|
3
|
+
**Purpose:** Pre-configured VS workflows for common creative content types
|
|
4
|
+
|
|
5
|
+
**Load when:** Agent knows VS basics and needs task-specific implementation guidance
|
|
6
|
+
|
|
7
|
+
**Prerequisite:** Familiarity with core VS technique (`vs-core-technique.md`)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Blog Post Ideas Workflow
|
|
12
|
+
|
|
13
|
+
### Typical User Request
|
|
14
|
+
"Give me 10 blog post ideas about sustainable fashion"
|
|
15
|
+
|
|
16
|
+
### Agent Workflow
|
|
17
|
+
|
|
18
|
+
**1. Parameters:**
|
|
19
|
+
- k = 5
|
|
20
|
+
- Threshold = 0.10
|
|
21
|
+
- Target length = "50-100 words" (idea + brief description)
|
|
22
|
+
|
|
23
|
+
**2. Execution:**
|
|
24
|
+
- Make 2 VS calls (10 ideas / 5 per call)
|
|
25
|
+
|
|
26
|
+
**3. Diversity Dimensions:**
|
|
27
|
+
Ensure variety across:
|
|
28
|
+
- **Angles:** Consumer perspective / Industry analysis / Environmental impact
|
|
29
|
+
- **Formats:** How-to guides / Listicles / Case studies / Opinion pieces
|
|
30
|
+
- **Audiences:** Beginners / Fashion professionals / Environmental activists
|
|
31
|
+
|
|
32
|
+
**4. Presentation:**
|
|
33
|
+
```
|
|
34
|
+
Here are 10 diverse blog post ideas about sustainable fashion:
|
|
35
|
+
|
|
36
|
+
1. [Consumer angle, How-to] "5 Simple Swaps to Build a Sustainable Wardrobe on a Budget"
|
|
37
|
+
2. [Industry angle, Analysis] "The Hidden Environmental Cost of Fast Fashion Supply Chains"
|
|
38
|
+
3. [Environmental angle, Case study] "How Patagonia's Worn Wear Program Reduces Textile Waste"
|
|
39
|
+
...
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Social Media Captions Workflow
|
|
45
|
+
|
|
46
|
+
### Typical User Request
|
|
47
|
+
"Write 5 Instagram captions for our new product launch"
|
|
48
|
+
|
|
49
|
+
### Agent Workflow
|
|
50
|
+
|
|
51
|
+
**1. Parameters:**
|
|
52
|
+
- k = 5
|
|
53
|
+
- Threshold = None (want quality + diversity balance)
|
|
54
|
+
- Target length = "20-30 words"
|
|
55
|
+
|
|
56
|
+
**2. Execution:**
|
|
57
|
+
- Single VS call (5 captions)
|
|
58
|
+
|
|
59
|
+
**3. Diversity Dimensions:**
|
|
60
|
+
Ensure variety across:
|
|
61
|
+
- **Tones:** Playful / Professional / Inspirational / Humorous
|
|
62
|
+
- **CTAs:** Shop now / Learn more / Share / Tag a friend
|
|
63
|
+
- **Formats:** Question / Statement / Story / Challenge
|
|
64
|
+
|
|
65
|
+
**4. Presentation:**
|
|
66
|
+
```
|
|
67
|
+
Here are 5 diverse Instagram captions:
|
|
68
|
+
|
|
69
|
+
😊 PLAYFUL: "New day, new you! Our latest drop just landed and it's giving ✨main character energy✨ Shop now!"
|
|
70
|
+
|
|
71
|
+
💼 PROFESSIONAL: "Innovation meets design. Introducing our newest product, engineered for your success."
|
|
72
|
+
|
|
73
|
+
💡 INSPIRATIONAL: "What if you could change your routine for the better? Today's the day. Link in bio."
|
|
74
|
+
|
|
75
|
+
😄 HUMOROUS: "Warning: This product may cause extreme happiness and compliments from strangers. You've been warned!"
|
|
76
|
+
|
|
77
|
+
🤔 QUESTION: "Ready to level up? Tag someone who needs to see this! 👇"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Pro tip:** Add emoji indicators to help user quickly scan tone variations.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Campaign/Strategy Ideas Workflow
|
|
85
|
+
|
|
86
|
+
### Typical User Request
|
|
87
|
+
"Brainstorm marketing campaign ideas for Q2"
|
|
88
|
+
|
|
89
|
+
### Agent Workflow
|
|
90
|
+
|
|
91
|
+
**1. Parameters:**
|
|
92
|
+
- k = 10
|
|
93
|
+
- Threshold = 0.05 (exploration mode)
|
|
94
|
+
- Target length = "100-150 words" (campaign brief)
|
|
95
|
+
|
|
96
|
+
**2. Execution:**
|
|
97
|
+
- Make 1-2 VS calls (10-20 ideas)
|
|
98
|
+
|
|
99
|
+
**3. Diversity Dimensions:**
|
|
100
|
+
Ensure variety across:
|
|
101
|
+
- **Channels:** Social media / Email / Events / Partnerships / Content series
|
|
102
|
+
- **Themes:** Seasonal / Product-focused / Value-driven / Community-building
|
|
103
|
+
- **Tactics:** Contest / Influencer campaign / User-generated content / Educational series
|
|
104
|
+
|
|
105
|
+
**4. Presentation:**
|
|
106
|
+
Group by feasibility:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
QUICK WINS (2-4 weeks):
|
|
110
|
+
• Social Media Challenge: "30 Days of [Product]" user-generated content campaign
|
|
111
|
+
• Email Series: "Spring Refresh" featuring customer success stories
|
|
112
|
+
|
|
113
|
+
MID-TERM (1-2 months):
|
|
114
|
+
• Influencer Partnership: Collaborate with 5 micro-influencers for authentic reviews
|
|
115
|
+
• Community Event: Local pop-up shop with exclusive Q2 products
|
|
116
|
+
|
|
117
|
+
AMBITIOUS (3+ months):
|
|
118
|
+
• Content Hub: Launch educational blog series establishing thought leadership
|
|
119
|
+
• Brand Partnership: Co-marketing campaign with complementary brand
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Story/Narrative Generation Workflow
|
|
125
|
+
|
|
126
|
+
### Typical User Request
|
|
127
|
+
"Write 3 different opening paragraphs for a mystery novel"
|
|
128
|
+
|
|
129
|
+
### Agent Workflow
|
|
130
|
+
|
|
131
|
+
**1. Parameters:**
|
|
132
|
+
- k = 3
|
|
133
|
+
- VS-CoT variant (with reasoning step)
|
|
134
|
+
- Target length = "100-150 words"
|
|
135
|
+
|
|
136
|
+
**2. Execution:**
|
|
137
|
+
- Single VS call with chain-of-thought reasoning
|
|
138
|
+
|
|
139
|
+
**3. Enhanced Prompt:**
|
|
140
|
+
```
|
|
141
|
+
Before generating responses, first think through:
|
|
142
|
+
1. What are the different possible angles for mystery novel openings?
|
|
143
|
+
2. What POV options work? (1st person, 3rd limited, 3rd omniscient)
|
|
144
|
+
3. What settings create intrigue? (time period, location, atmosphere)
|
|
145
|
+
4. What tones? (dark/noir, cozy, psychological, quirky)
|
|
146
|
+
|
|
147
|
+
Then generate 3 opening paragraphs with probabilities.
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**4. Diversity Dimensions:**
|
|
151
|
+
- **POV:** 1st person / 3rd person limited / 3rd person omniscient
|
|
152
|
+
- **Setting:** Time period (contemporary, historical) / Location (urban, rural, exotic)
|
|
153
|
+
- **Tone:** Dark noir / Cozy mystery / Psychological thriller / Quirky detective
|
|
154
|
+
|
|
155
|
+
**5. Presentation:**
|
|
156
|
+
```
|
|
157
|
+
Here are 3 distinct opening paragraphs for your mystery novel:
|
|
158
|
+
|
|
159
|
+
**Option 1: Dark Noir (1st Person, Contemporary Urban)**
|
|
160
|
+
[p=0.08] "The rain hammered the city like it had a grudge. I watched from my office window as the neon signs bled their colors into the wet pavement below..."
|
|
161
|
+
|
|
162
|
+
**Option 2: Cozy Mystery (3rd Limited, Small Town)**
|
|
163
|
+
[p=0.06] "Margaret had lived in Willow Creek for forty-three years, and never once had she seen Mrs. Henderson's garden gate left open. Until this morning..."
|
|
164
|
+
|
|
165
|
+
**Option 3: Psychological Thriller (3rd Omniscient, Suburban)**
|
|
166
|
+
[p=0.04] "The house at the end of Maple Street looked like all the others—same beige siding, same manicured lawn. No one suspected what had happened in the basement three days ago..."
|
|
167
|
+
|
|
168
|
+
What makes each unique:
|
|
169
|
+
- Option 1: Hard-boiled detective feel, urban atmosphere
|
|
170
|
+
- Option 2: Small-town charm, observational protagonist
|
|
171
|
+
- Option 3: Suburban gothic, ominous foreshadowing
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Product Descriptions Workflow
|
|
177
|
+
|
|
178
|
+
### Typical User Request
|
|
179
|
+
"Generate 5 different product descriptions for our wireless headphones"
|
|
180
|
+
|
|
181
|
+
### Agent Workflow
|
|
182
|
+
|
|
183
|
+
**1. Parameters:**
|
|
184
|
+
- k = 5
|
|
185
|
+
- Threshold = 0.10
|
|
186
|
+
- Target length = "75-100 words"
|
|
187
|
+
|
|
188
|
+
**2. Execution:**
|
|
189
|
+
- Single VS call
|
|
190
|
+
|
|
191
|
+
**3. Diversity Dimensions:**
|
|
192
|
+
- **Focus:** Sound quality / Comfort / Battery life / Design / Value
|
|
193
|
+
- **Tone:** Technical specs / Lifestyle benefits / Emotional appeal / Professional use
|
|
194
|
+
- **Audience:** Audiophiles / Commuters / Fitness enthusiasts / Remote workers
|
|
195
|
+
|
|
196
|
+
**4. Presentation:**
|
|
197
|
+
```
|
|
198
|
+
5 diverse product description angles:
|
|
199
|
+
|
|
200
|
+
1. AUDIOPHILE FOCUS (Technical):
|
|
201
|
+
"Experience studio-grade sound with 40mm neodymium drivers delivering crystal-clear highs and deep, resonant bass..."
|
|
202
|
+
|
|
203
|
+
2. LIFESTYLE FOCUS (Commuter):
|
|
204
|
+
"Your daily commute just got an upgrade. Active noise cancellation blocks out train noise while 30-hour battery life lasts all week..."
|
|
205
|
+
|
|
206
|
+
3. EMOTIONAL APPEAL (Music lover):
|
|
207
|
+
"Rediscover your favorite songs. Every note, every beat, every whispered lyric comes alive with immersive 3D audio..."
|
|
208
|
+
|
|
209
|
+
4. FITNESS FOCUS (Active lifestyle):
|
|
210
|
+
"Sweat-proof, secure-fit, and unstoppable. IPX7 waterproof rating and ear hooks that stay put during any workout..."
|
|
211
|
+
|
|
212
|
+
5. VALUE FOCUS (Budget-conscious):
|
|
213
|
+
"Premium features without premium prices. Get flagship-level sound quality, comfort, and battery life for half the cost..."
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Quick Workflow Selector
|
|
219
|
+
|
|
220
|
+
**Use this to quickly choose the right workflow:**
|
|
221
|
+
|
|
222
|
+
| User Request Contains | Use Workflow | Key Settings |
|
|
223
|
+
|-----------------------|--------------|--------------|
|
|
224
|
+
| "blog post ideas / topics" | Blog Post Ideas | k=5, threshold=0.10 |
|
|
225
|
+
| "captions / social media / Instagram" | Social Media Captions | k=5, no threshold |
|
|
226
|
+
| "campaign / strategy / brainstorm" | Campaign Ideas | k=10, threshold=0.05 |
|
|
227
|
+
| "story / opening / narrative" | Story Generation | k=3, VS-CoT |
|
|
228
|
+
| "product description / copy" | Product Descriptions | k=5, threshold=0.10 |
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Customization Tips
|
|
233
|
+
|
|
234
|
+
**All workflows can be adapted by adjusting:**
|
|
235
|
+
|
|
236
|
+
1. **k value:** Increase for more options, decrease for quality focus
|
|
237
|
+
2. **Threshold:** Add/lower for more creative outputs
|
|
238
|
+
3. **Diversity dimensions:** Swap out categories based on domain
|
|
239
|
+
4. **Presentation format:** Grouped, ranked, or simple list
|
|
240
|
+
|
|
241
|
+
**For advanced customization:** See `advanced-techniques.md`
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
# VS + Tool Integration
|
|
2
|
+
|
|
3
|
+
**Purpose:** Combining Verbalized Sampling with file tools and batch operations
|
|
4
|
+
|
|
5
|
+
**Load when:** User requests file operations, batch processing, or automation workflows
|
|
6
|
+
|
|
7
|
+
**Prerequisite:** Familiarity with core VS technique (`vs-core-technique.md`)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## VS + File Writing Workflow
|
|
12
|
+
|
|
13
|
+
### Scenario
|
|
14
|
+
User wants to generate diverse content and save to file
|
|
15
|
+
|
|
16
|
+
### Example User Request
|
|
17
|
+
"Generate 20 product descriptions and save them to a file"
|
|
18
|
+
|
|
19
|
+
### Agent Workflow
|
|
20
|
+
|
|
21
|
+
#### Step 1: Execute VS
|
|
22
|
+
```
|
|
23
|
+
Parameters: k=5, make 4 calls
|
|
24
|
+
Total candidates: 20 product descriptions
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
#### Step 2: Parse All Results
|
|
28
|
+
```python
|
|
29
|
+
# Pseudo-code
|
|
30
|
+
all_candidates = []
|
|
31
|
+
for i in range(4):
|
|
32
|
+
response = execute_vs_call(k=5)
|
|
33
|
+
candidates = parse_json(response)
|
|
34
|
+
all_candidates.extend(candidates)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
#### Step 3: Format for File
|
|
38
|
+
```markdown
|
|
39
|
+
# Generated Product Descriptions
|
|
40
|
+
|
|
41
|
+
Generated: 2025-11-14
|
|
42
|
+
Technique: Verbalized Sampling (k=5, 4 calls)
|
|
43
|
+
Total: 20 descriptions
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Description 1 (p=0.08)
|
|
48
|
+
[Product description text...]
|
|
49
|
+
|
|
50
|
+
## Description 2 (p=0.07)
|
|
51
|
+
[Product description text...]
|
|
52
|
+
|
|
53
|
+
...
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Step 4: Write to File
|
|
57
|
+
```python
|
|
58
|
+
# Use Write tool
|
|
59
|
+
write_file("product_descriptions.md", formatted_content)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### Step 5: Confirm to User
|
|
63
|
+
```
|
|
64
|
+
✅ Generated 20 diverse product descriptions
|
|
65
|
+
📄 Saved to: product_descriptions.md
|
|
66
|
+
📊 Diversity metrics: 20 unique variations across tone, focus, audience
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## VS + Batch Processing
|
|
72
|
+
|
|
73
|
+
### Scenario
|
|
74
|
+
Generate diverse content for multiple different prompts
|
|
75
|
+
|
|
76
|
+
### Example User Request
|
|
77
|
+
"Generate 5 tagline ideas for each of these 10 products (file: products.txt)"
|
|
78
|
+
|
|
79
|
+
### Agent Workflow
|
|
80
|
+
|
|
81
|
+
#### Step 1: Read Input File
|
|
82
|
+
```python
|
|
83
|
+
# Use Read tool
|
|
84
|
+
products = read_file("products.txt").split("\n")
|
|
85
|
+
# Example: ["Coffee Maker", "Wireless Headphones", "Yoga Mat", ...]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
#### Step 2: Batch VS Execution
|
|
89
|
+
```python
|
|
90
|
+
all_results = {}
|
|
91
|
+
|
|
92
|
+
for product in products:
|
|
93
|
+
# Execute VS for each product
|
|
94
|
+
vs_prompt = format_vs_prompt(
|
|
95
|
+
k=5,
|
|
96
|
+
user_request=f"Generate a tagline for: {product}"
|
|
97
|
+
)
|
|
98
|
+
response = execute_vs(vs_prompt)
|
|
99
|
+
all_results[product] = parse_json(response)["responses"]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
#### Step 3: Format Results
|
|
103
|
+
```markdown
|
|
104
|
+
# Tagline Ideas - Batch Generation
|
|
105
|
+
|
|
106
|
+
Products: 10
|
|
107
|
+
Taglines per product: 5
|
|
108
|
+
Total generated: 50 taglines
|
|
109
|
+
Technique: Verbalized Sampling
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Coffee Maker
|
|
114
|
+
|
|
115
|
+
1. [p=0.09] "Brew happiness, one cup at a time"
|
|
116
|
+
2. [p=0.07] "Your morning just got an upgrade"
|
|
117
|
+
3. [p=0.06] "Café quality. Kitchen convenience."
|
|
118
|
+
...
|
|
119
|
+
|
|
120
|
+
## Wireless Headphones
|
|
121
|
+
|
|
122
|
+
1. [p=0.08] "Sound that moves you"
|
|
123
|
+
2. [p=0.07] "Unleash your audio"
|
|
124
|
+
...
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
#### Step 4: Write & Confirm
|
|
128
|
+
```python
|
|
129
|
+
write_file("batch_taglines.md", formatted_results)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## VS + Iterative File Refinement
|
|
135
|
+
|
|
136
|
+
### Scenario
|
|
137
|
+
User wants to review, select, and refine outputs iteratively
|
|
138
|
+
|
|
139
|
+
### Example User Request
|
|
140
|
+
"Generate blog post ideas, I'll pick my favorites, then expand them"
|
|
141
|
+
|
|
142
|
+
### Agent Workflow
|
|
143
|
+
|
|
144
|
+
#### Round 1: Initial VS Generation
|
|
145
|
+
```
|
|
146
|
+
Execute: VS with k=10
|
|
147
|
+
Write: ideas_initial.md
|
|
148
|
+
Agent: "I've generated 10 diverse ideas. Review ideas_initial.md and tell me which 2-3 you want to expand."
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
#### Round 2: User Selection
|
|
152
|
+
```
|
|
153
|
+
User: "I like ideas #3, #7, and #9"
|
|
154
|
+
Agent: [Reads selected ideas from file]
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
#### Round 3: Expansion
|
|
158
|
+
```
|
|
159
|
+
For each selected idea:
|
|
160
|
+
Execute: VS with k=3 (3 variations of the idea)
|
|
161
|
+
|
|
162
|
+
Write: ideas_expanded.md (9 total: 3 ideas × 3 variations)
|
|
163
|
+
Agent: "Expanded your selections. See ideas_expanded.md for 3 variations of each."
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### Round 4: Final Refinement
|
|
167
|
+
```
|
|
168
|
+
User: "Perfect! Use #3 variation 2"
|
|
169
|
+
Agent: [Polish selected idea, write final version]
|
|
170
|
+
Write: blog_post_final.md
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## VS + Multi-File Workflows
|
|
176
|
+
|
|
177
|
+
### Scenario
|
|
178
|
+
Organize VS outputs into structured file hierarchy
|
|
179
|
+
|
|
180
|
+
### Example User Request
|
|
181
|
+
"Generate 50 social media captions and organize them by platform"
|
|
182
|
+
|
|
183
|
+
### Agent Workflow
|
|
184
|
+
|
|
185
|
+
#### Step 1: Execute VS (Batch)
|
|
186
|
+
```
|
|
187
|
+
Execute: VS with k=5, make 10 calls
|
|
188
|
+
Total: 50 captions
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
#### Step 2: Categorize by Platform
|
|
192
|
+
```python
|
|
193
|
+
# Parse and categorize
|
|
194
|
+
instagram_captions = [] # Short, emoji-heavy
|
|
195
|
+
twitter_captions = [] # Concise, hashtag-ready
|
|
196
|
+
linkedin_captions = [] # Professional tone
|
|
197
|
+
|
|
198
|
+
for caption in all_captions:
|
|
199
|
+
platform = detect_platform_fit(caption)
|
|
200
|
+
categorize(caption, platform)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
#### Step 3: Write Multiple Files
|
|
204
|
+
```python
|
|
205
|
+
write_file("social_media/instagram_captions.md", format_captions(instagram))
|
|
206
|
+
write_file("social_media/twitter_captions.md", format_captions(twitter))
|
|
207
|
+
write_file("social_media/linkedin_captions.md", format_captions(linkedin))
|
|
208
|
+
write_file("social_media/README.md", summary_doc)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
#### Step 4: Directory Structure
|
|
212
|
+
```
|
|
213
|
+
social_media/
|
|
214
|
+
├── README.md (overview, usage instructions)
|
|
215
|
+
├── instagram_captions.md (20 captions)
|
|
216
|
+
├── twitter_captions.md (15 captions)
|
|
217
|
+
└── linkedin_captions.md (15 captions)
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## VS + CSV/JSON Export
|
|
223
|
+
|
|
224
|
+
### For Data Processing Pipelines
|
|
225
|
+
|
|
226
|
+
#### JSON Export Format
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"metadata": {
|
|
230
|
+
"technique": "Verbalized Sampling",
|
|
231
|
+
"generated_at": "2025-11-14T10:30:00Z",
|
|
232
|
+
"parameters": {"k": 5, "threshold": 0.10},
|
|
233
|
+
"total_candidates": 20
|
|
234
|
+
},
|
|
235
|
+
"candidates": [
|
|
236
|
+
{
|
|
237
|
+
"id": 1,
|
|
238
|
+
"text": "Product description text...",
|
|
239
|
+
"probability": 0.08,
|
|
240
|
+
"metadata": {
|
|
241
|
+
"tone": "professional",
|
|
242
|
+
"length": 95
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
...
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### CSV Export Format
|
|
251
|
+
```csv
|
|
252
|
+
id,text,probability,tone,length
|
|
253
|
+
1,"Product description text...",0.08,professional,95
|
|
254
|
+
2,"Another description...",0.07,casual,87
|
|
255
|
+
...
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
**Use case:** Feeding VS outputs into downstream analysis, A/B testing systems, CMS imports
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## VS + Edit Tool Integration
|
|
263
|
+
|
|
264
|
+
### Scenario
|
|
265
|
+
Update existing file with new VS-generated content
|
|
266
|
+
|
|
267
|
+
### Example Workflow
|
|
268
|
+
|
|
269
|
+
#### Step 1: Read Existing File
|
|
270
|
+
```python
|
|
271
|
+
content = read_file("marketing_copy.md")
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
#### Step 2: Execute VS for New Section
|
|
275
|
+
```
|
|
276
|
+
user_request = "Generate 5 new value propositions for Section 3"
|
|
277
|
+
Execute: VS with k=5
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
#### Step 3: Edit File (Replace Section)
|
|
281
|
+
```python
|
|
282
|
+
# Use Edit tool
|
|
283
|
+
edit_file(
|
|
284
|
+
"marketing_copy.md",
|
|
285
|
+
old_string="## Section 3: Value Propositions\n[old content]",
|
|
286
|
+
new_string="## Section 3: Value Propositions\n[new VS-generated content]"
|
|
287
|
+
)
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## Automation Patterns
|
|
293
|
+
|
|
294
|
+
### Pattern 1: Schedule-Triggered Generation
|
|
295
|
+
|
|
296
|
+
**Setup for recurring content needs:**
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
# Cron job or scheduled task
|
|
300
|
+
# Monday 9am: Generate weekly social media captions
|
|
301
|
+
|
|
302
|
+
1. Execute VS (k=5, 7 calls for 35 captions)
|
|
303
|
+
2. Write to: content/weekly_captions_2025-11-14.md
|
|
304
|
+
3. Notify user: "35 captions ready for week of Nov 14"
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Pattern 2: Template-Based Generation
|
|
308
|
+
|
|
309
|
+
**Use VS to fill content templates:**
|
|
310
|
+
|
|
311
|
+
```markdown
|
|
312
|
+
# Email Template
|
|
313
|
+
Subject: {VS: generate 5 subject lines}
|
|
314
|
+
Opening: {VS: generate 5 opening paragraphs}
|
|
315
|
+
CTA: {VS: generate 5 call-to-action variations}
|
|
316
|
+
|
|
317
|
+
# Execute VS 3 times (subject, opening, CTA)
|
|
318
|
+
# Mix and match for A/B testing (5×5×5 = 125 combinations)
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Pattern 3: Continuous Content Pipeline
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
Input Queue → VS Generation → Quality Filter → Output Storage
|
|
325
|
+
↓ ↓ ↓ ↓
|
|
326
|
+
prompts.txt VS execution top 50% approved_content/
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## File Organization Best Practices
|
|
332
|
+
|
|
333
|
+
### Recommended Structure
|
|
334
|
+
|
|
335
|
+
```
|
|
336
|
+
project/
|
|
337
|
+
├── generated/
|
|
338
|
+
│ ├── raw/ # Unfiltered VS outputs
|
|
339
|
+
│ │ ├── 2025-11-14_ideas.md
|
|
340
|
+
│ │ └── 2025-11-15_captions.md
|
|
341
|
+
│ ├── curated/ # User-selected favorites
|
|
342
|
+
│ │ └── selected_ideas.md
|
|
343
|
+
│ └── final/ # Polished, production-ready
|
|
344
|
+
│ └── blog_post.md
|
|
345
|
+
├── parameters/ # VS config for reproducibility
|
|
346
|
+
│ └── vs_config.json
|
|
347
|
+
└── README.md # Documentation
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### File Naming Convention
|
|
351
|
+
|
|
352
|
+
```
|
|
353
|
+
{date}_{content_type}_{status}.md
|
|
354
|
+
|
|
355
|
+
Examples:
|
|
356
|
+
- 2025-11-14_taglines_raw.md
|
|
357
|
+
- 2025-11-14_taglines_curated.md
|
|
358
|
+
- 2025-11-14_taglines_final.md
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
## Performance Optimization
|
|
364
|
+
|
|
365
|
+
### For Large-Scale Operations
|
|
366
|
+
|
|
367
|
+
**Batch processing 1000+ items:**
|
|
368
|
+
|
|
369
|
+
1. **Chunk processing:** Process in batches of 100 (20 VS calls per batch, k=5)
|
|
370
|
+
2. **Parallel execution:** If API allows, run VS calls in parallel
|
|
371
|
+
3. **Progress tracking:** Log completion status every 100 items
|
|
372
|
+
4. **Error handling:** Retry failed VS calls with exponential backoff
|
|
373
|
+
5. **Streaming writes:** Write to file incrementally, don't hold all in memory
|
|
374
|
+
|
|
375
|
+
### Cost Estimation
|
|
376
|
+
|
|
377
|
+
**Calculate before executing:**
|
|
378
|
+
|
|
379
|
+
```python
|
|
380
|
+
items = 1000
|
|
381
|
+
k = 5
|
|
382
|
+
calls_needed = items / k # 200 calls
|
|
383
|
+
|
|
384
|
+
tokens_per_call = 500 # Avg VS prompt + response
|
|
385
|
+
total_tokens = calls_needed * tokens_per_call # 100,000 tokens
|
|
386
|
+
|
|
387
|
+
cost_per_million = 3.00 # Input tokens
|
|
388
|
+
estimated_cost = (total_tokens / 1_000_000) * cost_per_million # $0.30
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Tool Integration Checklist
|
|
394
|
+
|
|
395
|
+
**Before executing VS + tool workflow:**
|
|
396
|
+
|
|
397
|
+
- [ ] Input files exist and are readable
|
|
398
|
+
- [ ] Output directory exists or can be created
|
|
399
|
+
- [ ] File naming conflicts resolved (won't overwrite existing)
|
|
400
|
+
- [ ] Sufficient disk space for outputs
|
|
401
|
+
- [ ] User confirmed workflow (especially for batch operations)
|
|
402
|
+
- [ ] Error handling in place (what if VS call fails mid-batch?)
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
## Common Integration Patterns
|
|
407
|
+
|
|
408
|
+
| User Request | Tools Needed | Workflow |
|
|
409
|
+
|-------------|--------------|----------|
|
|
410
|
+
| "Generate & save to file" | VS + Write | Execute → Format → Write |
|
|
411
|
+
| "Read file, generate variations" | Read + VS + Write | Read → VS for each → Write |
|
|
412
|
+
| "Update section in file" | Read + VS + Edit | Read → VS → Edit section |
|
|
413
|
+
| "Batch process CSV" | Read + VS + Write | Read CSV → VS per row → Write CSV |
|
|
414
|
+
| "Organize by category" | VS + Multiple Writes | VS → Categorize → Write per category |
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
**For advanced VS techniques:** See `advanced-techniques.md`
|
|
419
|
+
**For troubleshooting file operations:** See `troubleshooting.md`
|