@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,216 @@
|
|
|
1
|
+
# Domain Subagent Prompts
|
|
2
|
+
|
|
3
|
+
Use these prompts when spawning parallel subagents in Phase 2.
|
|
4
|
+
Replace `[PROJECT_ROOT]`, `[STACK]`, and other placeholders with actual values.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Frontend Subagent
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
You are a frontend QA expert doing pre-deployment analysis.
|
|
12
|
+
|
|
13
|
+
Explore the frontend codebase of this [STACK] project at [PROJECT_ROOT].
|
|
14
|
+
Focus on: src/components/, src/pages/, src/app/, src/views/, public/, styles/
|
|
15
|
+
|
|
16
|
+
Analyze for:
|
|
17
|
+
- Component correctness and edge cases
|
|
18
|
+
- Form validation (client-side)
|
|
19
|
+
- Error states and loading states
|
|
20
|
+
- Responsive design breakpoints
|
|
21
|
+
- Accessibility (ARIA labels, keyboard nav, color contrast)
|
|
22
|
+
- Navigation and routing correctness
|
|
23
|
+
- Asset optimization (image sizes, lazy loading)
|
|
24
|
+
- Console errors or TypeScript errors visible in code
|
|
25
|
+
|
|
26
|
+
Report back EXACTLY in this format:
|
|
27
|
+
|
|
28
|
+
## Frontend Analysis
|
|
29
|
+
|
|
30
|
+
**Apa ini:** [1 sentence describing the UI]
|
|
31
|
+
**Untuk apa:** [what user-facing purpose does it serve]
|
|
32
|
+
**Framework/Libraries:** [list with versions if visible]
|
|
33
|
+
**Critical test items before deploy:**
|
|
34
|
+
- [specific item] — [why it matters]
|
|
35
|
+
[list ALL critical items you find]
|
|
36
|
+
|
|
37
|
+
**Red flags found:** [list issues spotted, or "None found"]
|
|
38
|
+
**Confidence:** [High/Medium/Low] — [brief reason]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Backend/API Subagent
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
You are a backend QA expert doing pre-deployment analysis.
|
|
47
|
+
|
|
48
|
+
Explore the backend/API codebase of this [STACK] project at [PROJECT_ROOT].
|
|
49
|
+
Focus on: src/routes/, src/controllers/, src/services/, src/handlers/, src/api/,
|
|
50
|
+
server.ts/server.js/main.rs/main.py/main.go
|
|
51
|
+
|
|
52
|
+
Analyze for:
|
|
53
|
+
- API endpoints (list them all)
|
|
54
|
+
- Input validation and sanitization
|
|
55
|
+
- Error handling (HTTP status codes correct?)
|
|
56
|
+
- Authentication/authorization middleware
|
|
57
|
+
- Rate limiting setup
|
|
58
|
+
- CORS configuration
|
|
59
|
+
- Logging setup
|
|
60
|
+
- Environment variable usage (no hardcoded secrets?)
|
|
61
|
+
- Dependencies with known vulnerabilities
|
|
62
|
+
|
|
63
|
+
Report back EXACTLY in this format:
|
|
64
|
+
|
|
65
|
+
## Backend Analysis
|
|
66
|
+
|
|
67
|
+
**Apa ini:** [1 sentence]
|
|
68
|
+
**API endpoints found:** [list all routes/endpoints]
|
|
69
|
+
**Framework/Libraries:** [list]
|
|
70
|
+
**Critical test items before deploy:**
|
|
71
|
+
- [specific endpoint/behavior] — [why it matters]
|
|
72
|
+
[list ALL critical items]
|
|
73
|
+
|
|
74
|
+
**Red flags found:** [hardcoded secrets, missing validation, etc. or "None found"]
|
|
75
|
+
**Confidence:** [High/Medium/Low] — [brief reason]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Database Subagent
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
You are a database QA expert doing pre-deployment analysis.
|
|
84
|
+
|
|
85
|
+
Explore database-related files in this project at [PROJECT_ROOT].
|
|
86
|
+
Focus on: migrations/, prisma/schema.prisma, schema.sql, models/, db/,
|
|
87
|
+
**/migrations/**, drizzle/, typeorm entities
|
|
88
|
+
|
|
89
|
+
Analyze for:
|
|
90
|
+
- Migration files (are they complete and ordered?)
|
|
91
|
+
- Schema correctness (proper indexes, foreign keys, constraints)
|
|
92
|
+
- Seed data or initial data setup
|
|
93
|
+
- Connection pooling config
|
|
94
|
+
- ORM queries (potential N+1 problems)
|
|
95
|
+
- Soft delete patterns used correctly
|
|
96
|
+
- Sensitive data fields (should they be encrypted?)
|
|
97
|
+
- Backup strategy mentioned anywhere
|
|
98
|
+
|
|
99
|
+
Report back EXACTLY in this format:
|
|
100
|
+
|
|
101
|
+
## Database Analysis
|
|
102
|
+
|
|
103
|
+
**Apa ini:** [database type and schema overview]
|
|
104
|
+
**Tables/Collections found:** [list main entities]
|
|
105
|
+
**ORM/Query builder:** [Prisma/TypeORM/Drizzle/raw SQL/etc.]
|
|
106
|
+
**Critical test items before deploy:**
|
|
107
|
+
- [specific migration/schema item] — [why it matters]
|
|
108
|
+
[list ALL critical items]
|
|
109
|
+
|
|
110
|
+
**Red flags found:** [missing migrations, N+1 risks, missing indexes, etc. or "None found"]
|
|
111
|
+
**Confidence:** [High/Medium/Low] — [brief reason]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Authentication Subagent
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
You are a security/auth QA expert doing pre-deployment analysis.
|
|
120
|
+
|
|
121
|
+
Explore auth-related code in this project at [PROJECT_ROOT].
|
|
122
|
+
Focus on: src/auth/, src/middleware/auth*, src/guards/, jwt*, session*, cookie*,
|
|
123
|
+
login*, signup*, password*, oauth*
|
|
124
|
+
|
|
125
|
+
Analyze for:
|
|
126
|
+
- Auth mechanism (JWT/session/OAuth/magic link)
|
|
127
|
+
- Token expiry configuration
|
|
128
|
+
- Refresh token handling
|
|
129
|
+
- Password hashing (bcrypt/argon2? proper rounds?)
|
|
130
|
+
- Protected route middleware applied correctly
|
|
131
|
+
- Role/permission checks
|
|
132
|
+
- Session fixation prevention
|
|
133
|
+
- Logout properly clears tokens/sessions
|
|
134
|
+
- Rate limiting on auth endpoints
|
|
135
|
+
|
|
136
|
+
Report back EXACTLY in this format:
|
|
137
|
+
|
|
138
|
+
## Authentication Analysis
|
|
139
|
+
|
|
140
|
+
**Apa ini:** [auth mechanism used]
|
|
141
|
+
**Auth flows found:** [login, signup, password reset, OAuth, etc.]
|
|
142
|
+
**Critical test items before deploy:**
|
|
143
|
+
- [specific auth scenario] — [why it matters]
|
|
144
|
+
[list ALL critical items]
|
|
145
|
+
|
|
146
|
+
**Red flags found:** [weak hashing, missing expiry, etc. or "None found"]
|
|
147
|
+
**Confidence:** [High/Medium/Low] — [brief reason]
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Infrastructure/DevOps Subagent
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
You are a DevOps/infrastructure QA expert doing pre-deployment analysis.
|
|
156
|
+
|
|
157
|
+
Explore infrastructure configs in this project at [PROJECT_ROOT].
|
|
158
|
+
Focus on: Dockerfile, docker-compose.yml, .github/workflows/, .gitlab-ci.yml,
|
|
159
|
+
k8s/, terraform/, .env.example, nginx.conf, vercel.json, railway.toml
|
|
160
|
+
|
|
161
|
+
Analyze for:
|
|
162
|
+
- Environment variables documented in .env.example
|
|
163
|
+
- Secrets management (no secrets in docker-compose or CI yaml)
|
|
164
|
+
- Health check endpoints configured
|
|
165
|
+
- Dockerfile best practices (non-root user, minimal image)
|
|
166
|
+
- CI/CD pipeline covers: lint, test, build, deploy
|
|
167
|
+
- Rollback mechanism available
|
|
168
|
+
- Resource limits set (memory, CPU)
|
|
169
|
+
- Log aggregation configured
|
|
170
|
+
|
|
171
|
+
Report back EXACTLY in this format:
|
|
172
|
+
|
|
173
|
+
## Infrastructure Analysis
|
|
174
|
+
|
|
175
|
+
**Apa ini:** [deployment target and infrastructure setup]
|
|
176
|
+
**Deployment method:** [Docker/Vercel/Railway/K8s/etc.]
|
|
177
|
+
**Critical test items before deploy:**
|
|
178
|
+
- [specific config item] — [why it matters]
|
|
179
|
+
[list ALL critical items]
|
|
180
|
+
|
|
181
|
+
**Red flags found:** [exposed secrets, missing health checks, etc. or "None found"]
|
|
182
|
+
**Confidence:** [High/Medium/Low] — [brief reason]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## State Management Subagent
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
You are a frontend state management QA expert doing pre-deployment analysis.
|
|
191
|
+
|
|
192
|
+
Explore state management code in this project at [PROJECT_ROOT].
|
|
193
|
+
Focus on: src/store/, src/context/, src/hooks/, redux/, zustand stores,
|
|
194
|
+
jotai atoms, mobx stores, pinia stores
|
|
195
|
+
|
|
196
|
+
Analyze for:
|
|
197
|
+
- State initialization (no undefined initial states?)
|
|
198
|
+
- Async actions error handling (loading/error/success states)
|
|
199
|
+
- State persistence (localStorage/sessionStorage — what's stored?)
|
|
200
|
+
- Memory leaks from subscriptions not cleaned up
|
|
201
|
+
- Race conditions in concurrent state updates
|
|
202
|
+
- State reset on logout/session end
|
|
203
|
+
|
|
204
|
+
Report back EXACTLY in this format:
|
|
205
|
+
|
|
206
|
+
## State Management Analysis
|
|
207
|
+
|
|
208
|
+
**Apa ini:** [state management approach used]
|
|
209
|
+
**Stores/contexts found:** [list main stores]
|
|
210
|
+
**Critical test items before deploy:**
|
|
211
|
+
- [specific state scenario] — [why it matters]
|
|
212
|
+
[list ALL critical items]
|
|
213
|
+
|
|
214
|
+
**Red flags found:** [missing cleanup, persistent sensitive data, etc. or "None found"]
|
|
215
|
+
**Confidence:** [High/Medium/Low] — [brief reason]
|
|
216
|
+
```
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prompt-engineering
|
|
3
|
+
description: Use when you need to design effective LLM prompts. Intelligently selects optimal prompting methods (Chain of Thought, Few-Shot, Zero-Shot, ReAct, Tree of Thoughts, Self-Consistency) and output formats (XML, JSON, YAML, Natural Language) based on task complexity, target LLM, accuracy requirements, and available context. Trigger on prompt design, prompt optimization, or when choosing between prompting techniques.
|
|
4
|
+
category: engineering
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Prompt Engineering
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
This skill helps create highly effective prompts by selecting the optimal technique and format based on task characteristics. Analyzes complexity, target LLM, accuracy needs, and context to recommend the best approach from 10+ proven methods and 4 structured formats.
|
|
12
|
+
|
|
13
|
+
## Quick Start Decision Tree
|
|
14
|
+
|
|
15
|
+
**Answer these questions to find the right approach:**
|
|
16
|
+
|
|
17
|
+
### 1. Task Complexity?
|
|
18
|
+
- **Simple** → Zero-Shot (see [references/zero-shot.md](references/zero-shot.md))
|
|
19
|
+
- **Need format/style** → Few-Shot (see [references/few-shot.md](references/few-shot.md))
|
|
20
|
+
- **Multi-step reasoning** → Chain of Thought (see [references/chain-of-thought.md](references/chain-of-thought.md))
|
|
21
|
+
- **Tool/API use** → ReAct (see [references/react.md](references/react.md))
|
|
22
|
+
- **Complex planning** → Tree of Thoughts (see [references/tree-of-thoughts.md](references/tree-of-thoughts.md))
|
|
23
|
+
- **High-stakes** → Self-Consistency (see [references/self-consistency.md](references/self-consistency.md))
|
|
24
|
+
|
|
25
|
+
### 2. Target LLM?
|
|
26
|
+
- **Claude** → XML format (see [references/xml-format.md](references/xml-format.md))
|
|
27
|
+
- **GPT** → JSON format (see [references/json-format.md](references/json-format.md))
|
|
28
|
+
- **Multi-LLM** → JSON (portable)
|
|
29
|
+
- **Human-editable** → YAML (see [references/yaml-format.md](references/yaml-format.md))
|
|
30
|
+
|
|
31
|
+
### 3. Output Use?
|
|
32
|
+
- **Code/API** → JSON
|
|
33
|
+
- **Complex hierarchy** → XML (if Claude) or JSON
|
|
34
|
+
- **Human editing** → YAML or Natural Language
|
|
35
|
+
- **Simple explanation** → Natural Language (see [references/natural-language.md](references/natural-language.md))
|
|
36
|
+
|
|
37
|
+
**For detailed decision matrix:** [references/decision_matrix.md](references/decision_matrix.md)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Method Selection Quick Reference
|
|
42
|
+
|
|
43
|
+
| Need | Method | Best Format | Reference |
|
|
44
|
+
|------|--------|-------------|-----------|
|
|
45
|
+
| Simple task | Zero-Shot | Natural Language | [zero-shot.md](references/zero-shot.md) |
|
|
46
|
+
| Style consistency | Few-Shot | Same as examples | [few-shot.md](references/few-shot.md) |
|
|
47
|
+
| Multi-step reasoning | CoT | Natural/XML | [chain-of-thought.md](references/chain-of-thought.md) |
|
|
48
|
+
| Tool interaction | ReAct | JSON | [react.md](references/react.md) |
|
|
49
|
+
| Complex planning | ToT | YAML/XML | [tree-of-thoughts.md](references/tree-of-thoughts.md) |
|
|
50
|
+
| High confidence | Self-Consistency | Any | [self-consistency.md](references/self-consistency.md) |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Format Selection Quick Reference
|
|
55
|
+
|
|
56
|
+
| Target | Complexity | Use Case | Format | Reference |
|
|
57
|
+
|--------|-----------|----------|--------|-----------|
|
|
58
|
+
| Claude | High | Human | XML | [xml-format.md](references/xml-format.md) |
|
|
59
|
+
| Claude | Medium | API | JSON | [json-format.md](references/json-format.md) |
|
|
60
|
+
| GPT | Any | API | JSON | [json-format.md](references/json-format.md) |
|
|
61
|
+
| Any | Low | Human | Natural | [natural-language.md](references/natural-language.md) |
|
|
62
|
+
| Any | Config | Human-editable | YAML | [yaml-format.md](references/yaml-format.md) |
|
|
63
|
+
| Multi-LLM | Any | Portable | JSON | [json-format.md](references/json-format.md) |
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Common Patterns At-A-Glance
|
|
68
|
+
|
|
69
|
+
### Zero-Shot Template
|
|
70
|
+
```
|
|
71
|
+
Task: [X]
|
|
72
|
+
Requirements: [Y]
|
|
73
|
+
Output: [Z]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Few-Shot Template
|
|
77
|
+
```
|
|
78
|
+
Task: [X]
|
|
79
|
+
Examples:
|
|
80
|
+
- Input: A → Output: B
|
|
81
|
+
- Input: C → Output: D
|
|
82
|
+
Your turn: Input: E → Output: ?
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Chain of Thought Template
|
|
86
|
+
```
|
|
87
|
+
Problem: [X]
|
|
88
|
+
Let's think step by step:
|
|
89
|
+
1. [Step 1]
|
|
90
|
+
2. [Step 2]
|
|
91
|
+
3. [Step 3]
|
|
92
|
+
Answer: [Y]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### ReAct Template
|
|
96
|
+
```
|
|
97
|
+
Thought: [Reasoning]
|
|
98
|
+
Action: [Tool/action]
|
|
99
|
+
Observation: [Result]
|
|
100
|
+
[Repeat]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**For complete templates and examples, see individual method references.**
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Common Pitfalls & Quick Fixes
|
|
108
|
+
|
|
109
|
+
### ❌ Ambiguous Instructions
|
|
110
|
+
**Bad:** "Make this better"
|
|
111
|
+
**Good:** "Improve by: 1) Add error handling, 2) Optimize to O(n log n), 3) Add docs"
|
|
112
|
+
|
|
113
|
+
### ❌ Wrong Format for LLM
|
|
114
|
+
**Bad:** JSON for Claude complex hierarchy
|
|
115
|
+
**Good:** XML for Claude, JSON for GPT/APIs
|
|
116
|
+
|
|
117
|
+
### ❌ No Examples When Needed
|
|
118
|
+
**Bad:** "Extract features in structured format"
|
|
119
|
+
**Good:** Show 2-3 concrete input→output examples
|
|
120
|
+
|
|
121
|
+
### ❌ Overcomplicating Simple Tasks
|
|
122
|
+
**Bad:** Tree of Thoughts for "Convert 25°C to F"
|
|
123
|
+
**Good:** Simple zero-shot instruction
|
|
124
|
+
|
|
125
|
+
**For complete pitfalls guide:** [references/pitfalls.md](references/pitfalls.md)
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Advanced Techniques
|
|
130
|
+
|
|
131
|
+
### Combining Methods
|
|
132
|
+
- **Few-Shot + CoT:** Examples with reasoning steps (see [references/advanced-combinations.md](references/advanced-combinations.md))
|
|
133
|
+
- **ReAct + Self-Consistency:** Multiple tool paths, compare results
|
|
134
|
+
- **ToT + XML:** Claude-optimized complex planning
|
|
135
|
+
|
|
136
|
+
### Meta-Prompting
|
|
137
|
+
Ask LLM to help design the prompt:
|
|
138
|
+
```
|
|
139
|
+
I need a prompt for [task].
|
|
140
|
+
Task characteristics: [complexity, LLM, output use, accuracy needs]
|
|
141
|
+
Recommend: 1) Technique, 2) Format, 3) Draft template, 4) Why
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Prompt Chaining
|
|
145
|
+
Break complex tasks into sequential prompts.
|
|
146
|
+
**See:** [references/prompt-chaining.md](references/prompt-chaining.md)
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Token Efficiency Tips
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
✓ More Efficient ✗ Less Efficient
|
|
154
|
+
- Zero-shot for simple - 10+ examples
|
|
155
|
+
- Concise instructions - Verbose repetition
|
|
156
|
+
- JSON for API parsing - XML for API parsing
|
|
157
|
+
- Direct examples - Over-explained examples
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Typical token counts:**
|
|
161
|
+
- Zero-Shot: 50-200 tokens
|
|
162
|
+
- Few-Shot (3 examples): 200-800 tokens
|
|
163
|
+
- Chain of Thought: 100-500 tokens
|
|
164
|
+
- ReAct: 300-1000 tokens
|
|
165
|
+
- Tree of Thoughts: 500-2000+ tokens
|
|
166
|
+
- Self-Consistency: 500-3000+ tokens
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Implementation Checklist
|
|
171
|
+
|
|
172
|
+
When creating a prompt:
|
|
173
|
+
|
|
174
|
+
- [ ] Identify task complexity → Choose method
|
|
175
|
+
- [ ] Identify target LLM → Choose format
|
|
176
|
+
- [ ] Write clear, specific instructions
|
|
177
|
+
- [ ] Add examples if Few-Shot/Few-Shot CoT
|
|
178
|
+
- [ ] Specify output format explicitly
|
|
179
|
+
- [ ] Include constraints and requirements
|
|
180
|
+
- [ ] Test with sample inputs
|
|
181
|
+
- [ ] Validate outputs
|
|
182
|
+
- [ ] Refine based on results
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Resources
|
|
187
|
+
|
|
188
|
+
### References (Detailed Guides)
|
|
189
|
+
- [decision_matrix.md](references/decision_matrix.md) - Comprehensive decision framework
|
|
190
|
+
- [zero-shot.md](references/zero-shot.md) - Zero-shot prompting guide
|
|
191
|
+
- [few-shot.md](references/few-shot.md) - Few-shot prompting guide
|
|
192
|
+
- [chain-of-thought.md](references/chain-of-thought.md) - CoT prompting guide
|
|
193
|
+
- [react.md](references/react.md) - ReAct prompting guide
|
|
194
|
+
- [tree-of-thoughts.md](references/tree-of-thoughts.md) - ToT prompting guide
|
|
195
|
+
- [self-consistency.md](references/self-consistency.md) - Self-consistency guide
|
|
196
|
+
- [xml-format.md](references/xml-format.md) - XML format best practices
|
|
197
|
+
- [json-format.md](references/json-format.md) - JSON format best practices
|
|
198
|
+
- [yaml-format.md](references/yaml-format.md) - YAML format best practices
|
|
199
|
+
- [natural-language.md](references/natural-language.md) - Natural language best practices
|
|
200
|
+
- [pitfalls.md](references/pitfalls.md) - Common mistakes and solutions
|
|
201
|
+
- [advanced-combinations.md](references/advanced-combinations.md) - Combining techniques
|
|
202
|
+
- [prompt-chaining.md](references/prompt-chaining.md) - Sequential prompt patterns
|
|
203
|
+
|
|
204
|
+
### Assets (Templates)
|
|
205
|
+
- `templates/` - Ready-to-use templates for common scenarios (coming soon)
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
**Navigate to specific references above for detailed implementation guides, templates, and examples.**
|