@namch/agent-assistant 1.0.0 → 1.0.2
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/README.md +114 -522
- package/agents/backend-engineer.md +0 -8
- package/agents/brainstormer.md +0 -6
- package/agents/business-analyst.md +0 -5
- package/agents/database-architect.md +0 -6
- package/agents/debugger.md +0 -6
- package/agents/designer.md +0 -5
- package/agents/devops-engineer.md +0 -7
- package/agents/docs-manager.md +0 -6
- package/agents/frontend-engineer.md +0 -7
- package/agents/game-engineer.md +0 -7
- package/agents/mobile-engineer.md +0 -7
- package/agents/performance-engineer.md +0 -7
- package/agents/planner.md +0 -6
- package/agents/project-manager.md +0 -6
- package/agents/researcher.md +0 -5
- package/agents/reviewer.md +0 -6
- package/agents/scouter.md +0 -6
- package/agents/security-engineer.md +0 -7
- package/agents/tech-lead.md +0 -7
- package/agents/tester.md +0 -5
- package/cli/README.md +19 -10
- package/documents/business/business-features.md +1 -1
- package/documents/business/business-prd.md +4 -4
- package/documents/knowledge-architecture.md +1 -1
- package/documents/knowledge-domain.md +1 -1
- package/documents/knowledge-overview.md +14 -29
- package/documents/knowledge-source-base.md +14 -14
- package/package.json +1 -1
- package/rules/QUICK-REFERENCE.md +4 -1
- package/rules/SKILL-DISCOVERY.md +37 -14
- package/skills/active-directory-attacks/SKILL.md +383 -0
- package/skills/active-directory-attacks/references/advanced-attacks.md +382 -0
- package/skills/agent-evaluation/SKILL.md +64 -0
- package/skills/agent-memory-mcp/SKILL.md +82 -0
- package/skills/agent-memory-systems/SKILL.md +67 -0
- package/skills/agent-tool-builder/SKILL.md +53 -0
- package/skills/ai-agents-architect/SKILL.md +90 -0
- package/skills/ai-product/SKILL.md +54 -0
- package/skills/ai-wrapper-product/SKILL.md +273 -0
- package/skills/api-documentation-generator/SKILL.md +484 -0
- package/skills/api-fuzzing-bug-bounty/SKILL.md +433 -0
- package/skills/api-security-best-practices/SKILL.md +907 -0
- package/skills/autonomous-agent-patterns/SKILL.md +761 -0
- package/skills/autonomous-agents/SKILL.md +68 -0
- package/skills/aws-penetration-testing/SKILL.md +405 -0
- package/skills/aws-penetration-testing/references/advanced-aws-pentesting.md +469 -0
- package/skills/azure-functions/SKILL.md +42 -0
- package/skills/backend-dev-guidelines/SKILL.md +342 -0
- package/skills/backend-dev-guidelines/resources/architecture-overview.md +451 -0
- package/skills/backend-dev-guidelines/resources/async-and-errors.md +307 -0
- package/skills/backend-dev-guidelines/resources/complete-examples.md +638 -0
- package/skills/backend-dev-guidelines/resources/configuration.md +275 -0
- package/skills/backend-dev-guidelines/resources/database-patterns.md +224 -0
- package/skills/backend-dev-guidelines/resources/middleware-guide.md +213 -0
- package/skills/backend-dev-guidelines/resources/routing-and-controllers.md +756 -0
- package/skills/backend-dev-guidelines/resources/sentry-and-monitoring.md +336 -0
- package/skills/backend-dev-guidelines/resources/services-and-repositories.md +789 -0
- package/skills/backend-dev-guidelines/resources/testing-guide.md +235 -0
- package/skills/backend-dev-guidelines/resources/validation-patterns.md +754 -0
- package/skills/broken-authentication/SKILL.md +476 -0
- package/skills/bullmq-specialist/SKILL.md +57 -0
- package/skills/bun-development/SKILL.md +691 -0
- package/skills/burp-suite-testing/SKILL.md +380 -0
- package/skills/cloud-penetration-testing/SKILL.md +501 -0
- package/skills/cloud-penetration-testing/references/advanced-cloud-scripts.md +318 -0
- package/skills/computer-use-agents/SKILL.md +315 -0
- package/skills/content-creator/SKILL.md +248 -0
- package/skills/content-creator/assets/content_calendar_template.md +99 -0
- package/skills/content-creator/references/brand_guidelines.md +199 -0
- package/skills/content-creator/references/content_frameworks.md +534 -0
- package/skills/content-creator/references/social_media_optimization.md +317 -0
- package/skills/content-creator/scripts/brand_voice_analyzer.py +185 -0
- package/skills/content-creator/scripts/seo_optimizer.py +419 -0
- package/skills/context-window-management/SKILL.md +53 -0
- package/skills/conversation-memory/SKILL.md +61 -0
- package/skills/copy-editing/SKILL.md +439 -0
- package/skills/copywriting/SKILL.md +225 -0
- package/skills/crewai/SKILL.md +243 -0
- package/skills/discord-bot-architect/SKILL.md +277 -0
- package/skills/dispatching-parallel-agents/SKILL.md +180 -0
- package/skills/email-sequence/SKILL.md +925 -0
- package/skills/email-systems/SKILL.md +54 -0
- package/skills/ethical-hacking-methodology/SKILL.md +466 -0
- package/skills/executing-plans/SKILL.md +76 -0
- package/skills/file-path-traversal/SKILL.md +486 -0
- package/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/skills/frontend-dev-guidelines/SKILL.md +359 -0
- package/skills/frontend-dev-guidelines/resources/common-patterns.md +331 -0
- package/skills/frontend-dev-guidelines/resources/complete-examples.md +872 -0
- package/skills/frontend-dev-guidelines/resources/component-patterns.md +502 -0
- package/skills/frontend-dev-guidelines/resources/data-fetching.md +767 -0
- package/skills/frontend-dev-guidelines/resources/file-organization.md +502 -0
- package/skills/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
- package/skills/frontend-dev-guidelines/resources/performance.md +406 -0
- package/skills/frontend-dev-guidelines/resources/routing-guide.md +364 -0
- package/skills/frontend-dev-guidelines/resources/styling-guide.md +428 -0
- package/skills/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
- package/skills/gcp-cloud-run/SKILL.md +288 -0
- package/skills/git-pushing/SKILL.md +33 -0
- package/skills/git-pushing/scripts/smart_commit.sh +19 -0
- package/skills/github-workflow-automation/SKILL.md +846 -0
- package/skills/html-injection-testing/SKILL.md +498 -0
- package/skills/idor-testing/SKILL.md +442 -0
- package/skills/inngest/SKILL.md +55 -0
- package/skills/javascript-mastery/SKILL.md +645 -0
- package/skills/kaizen/SKILL.md +730 -0
- package/skills/langfuse/SKILL.md +238 -0
- package/skills/langgraph/SKILL.md +287 -0
- package/skills/linux-privilege-escalation/SKILL.md +504 -0
- package/skills/llm-app-patterns/SKILL.md +760 -0
- package/skills/metasploit-framework/SKILL.md +478 -0
- package/skills/multi-agent-brainstorming/SKILL.md +256 -0
- package/skills/neon-postgres/SKILL.md +56 -0
- package/skills/nextjs-supabase-auth/SKILL.md +56 -0
- package/skills/nosql-expert/SKILL.md +111 -0
- package/skills/pentest-checklist/SKILL.md +334 -0
- package/skills/pentest-commands/SKILL.md +438 -0
- package/skills/plaid-fintech/SKILL.md +50 -0
- package/skills/planning-with-files/SKILL.md +211 -0
- package/skills/planning-with-files/examples.md +202 -0
- package/skills/planning-with-files/reference.md +218 -0
- package/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/skills/planning-with-files/templates/findings.md +95 -0
- package/skills/planning-with-files/templates/progress.md +114 -0
- package/skills/planning-with-files/templates/task_plan.md +132 -0
- package/skills/privilege-escalation-methods/SKILL.md +333 -0
- package/skills/production-code-audit/SKILL.md +540 -0
- package/skills/prompt-caching/SKILL.md +61 -0
- package/skills/prompt-engineering/SKILL.md +171 -0
- package/skills/prompt-library/SKILL.md +322 -0
- package/skills/rag-engineer/SKILL.md +90 -0
- package/skills/rag-implementation/SKILL.md +63 -0
- package/skills/react-ui-patterns/SKILL.md +289 -0
- package/skills/red-team-tools/SKILL.md +310 -0
- package/skills/scanning-tools/SKILL.md +589 -0
- package/skills/shodan-reconnaissance/SKILL.md +503 -0
- package/skills/slack-bot-builder/SKILL.md +264 -0
- package/skills/smtp-penetration-testing/SKILL.md +500 -0
- package/skills/social-content/SKILL.md +807 -0
- package/skills/software-architecture/SKILL.md +75 -0
- package/skills/sql-injection-testing/SKILL.md +448 -0
- package/skills/sqlmap-database-pentesting/SKILL.md +400 -0
- package/skills/ssh-penetration-testing/SKILL.md +488 -0
- package/skills/stripe-integration/SKILL.md +69 -0
- package/skills/subagent-driven-development/SKILL.md +240 -0
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/skills/subagent-driven-development/implementer-prompt.md +78 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/skills/tavily-web/SKILL.md +36 -0
- package/skills/telegram-bot-builder/SKILL.md +254 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/test-fixing/SKILL.md +119 -0
- package/skills/top-web-vulnerabilities/SKILL.md +543 -0
- package/skills/trigger-dev/SKILL.md +67 -0
- package/skills/twilio-communications/SKILL.md +295 -0
- package/skills/upstash-qstash/SKILL.md +68 -0
- package/skills/verification-before-completion/SKILL.md +139 -0
- package/skills/voice-agents/SKILL.md +68 -0
- package/skills/voice-ai-development/SKILL.md +302 -0
- package/skills/windows-privilege-escalation/SKILL.md +496 -0
- package/skills/wireshark-analysis/SKILL.md +497 -0
- package/skills/wordpress-penetration-testing/SKILL.md +485 -0
- package/skills/workflow-automation/SKILL.md +68 -0
- package/skills/xss-html-injection/SKILL.md +499 -0
- package/skills/zapier-make-patterns/SKILL.md +67 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prompt-engineering
|
|
3
|
+
description: Expert guide on prompt engineering patterns, best practices, and optimization techniques. Use when user wants to improve prompts, learn prompting strategies, or debug agent behavior.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Prompt Engineering Patterns
|
|
7
|
+
|
|
8
|
+
Advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.
|
|
9
|
+
|
|
10
|
+
## Core Capabilities
|
|
11
|
+
|
|
12
|
+
### 1. Few-Shot Learning
|
|
13
|
+
|
|
14
|
+
Teach the model by showing examples instead of explaining rules. Include 2-5 input-output pairs that demonstrate the desired behavior. Use when you need consistent formatting, specific reasoning patterns, or handling of edge cases. More examples improve accuracy but consume tokens—balance based on task complexity.
|
|
15
|
+
|
|
16
|
+
**Example:**
|
|
17
|
+
|
|
18
|
+
```markdown
|
|
19
|
+
Extract key information from support tickets:
|
|
20
|
+
|
|
21
|
+
Input: "My login doesn't work and I keep getting error 403"
|
|
22
|
+
Output: {"issue": "authentication", "error_code": "403", "priority": "high"}
|
|
23
|
+
|
|
24
|
+
Input: "Feature request: add dark mode to settings"
|
|
25
|
+
Output: {"issue": "feature_request", "error_code": null, "priority": "low"}
|
|
26
|
+
|
|
27
|
+
Now process: "Can't upload files larger than 10MB, getting timeout"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 2. Chain-of-Thought Prompting
|
|
31
|
+
|
|
32
|
+
Request step-by-step reasoning before the final answer. Add "Let's think step by step" (zero-shot) or include example reasoning traces (few-shot). Use for complex problems requiring multi-step logic, mathematical reasoning, or when you need to verify the model's thought process. Improves accuracy on analytical tasks by 30-50%.
|
|
33
|
+
|
|
34
|
+
**Example:**
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
Analyze this bug report and determine root cause.
|
|
38
|
+
|
|
39
|
+
Think step by step:
|
|
40
|
+
|
|
41
|
+
1. What is the expected behavior?
|
|
42
|
+
2. What is the actual behavior?
|
|
43
|
+
3. What changed recently that could cause this?
|
|
44
|
+
4. What components are involved?
|
|
45
|
+
5. What is the most likely root cause?
|
|
46
|
+
|
|
47
|
+
Bug: "Users can't save drafts after the cache update deployed yesterday"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 3. Prompt Optimization
|
|
51
|
+
|
|
52
|
+
Systematically improve prompts through testing and refinement. Start simple, measure performance (accuracy, consistency, token usage), then iterate. Test on diverse inputs including edge cases. Use A/B testing to compare variations. Critical for production prompts where consistency and cost matter.
|
|
53
|
+
|
|
54
|
+
**Example:**
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
Version 1 (Simple): "Summarize this article"
|
|
58
|
+
→ Result: Inconsistent length, misses key points
|
|
59
|
+
|
|
60
|
+
Version 2 (Add constraints): "Summarize in 3 bullet points"
|
|
61
|
+
→ Result: Better structure, but still misses nuance
|
|
62
|
+
|
|
63
|
+
Version 3 (Add reasoning): "Identify the 3 main findings, then summarize each"
|
|
64
|
+
→ Result: Consistent, accurate, captures key information
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 4. Template Systems
|
|
68
|
+
|
|
69
|
+
Build reusable prompt structures with variables, conditional sections, and modular components. Use for multi-turn conversations, role-based interactions, or when the same pattern applies to different inputs. Reduces duplication and ensures consistency across similar tasks.
|
|
70
|
+
|
|
71
|
+
**Example:**
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
# Reusable code review template
|
|
75
|
+
template = """
|
|
76
|
+
Review this {language} code for {focus_area}.
|
|
77
|
+
|
|
78
|
+
Code:
|
|
79
|
+
{code_block}
|
|
80
|
+
|
|
81
|
+
Provide feedback on:
|
|
82
|
+
{checklist}
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
# Usage
|
|
86
|
+
prompt = template.format(
|
|
87
|
+
language="Python",
|
|
88
|
+
focus_area="security vulnerabilities",
|
|
89
|
+
code_block=user_code,
|
|
90
|
+
checklist="1. SQL injection\n2. XSS risks\n3. Authentication"
|
|
91
|
+
)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 5. System Prompt Design
|
|
95
|
+
|
|
96
|
+
Set global behavior and constraints that persist across the conversation. Define the model's role, expertise level, output format, and safety guidelines. Use system prompts for stable instructions that shouldn't change turn-to-turn, freeing up user message tokens for variable content.
|
|
97
|
+
|
|
98
|
+
**Example:**
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
System: You are a senior backend engineer specializing in API design.
|
|
102
|
+
|
|
103
|
+
Rules:
|
|
104
|
+
|
|
105
|
+
- Always consider scalability and performance
|
|
106
|
+
- Suggest RESTful patterns by default
|
|
107
|
+
- Flag security concerns immediately
|
|
108
|
+
- Provide code examples in Python
|
|
109
|
+
- Use early return pattern
|
|
110
|
+
|
|
111
|
+
Format responses as:
|
|
112
|
+
|
|
113
|
+
1. Analysis
|
|
114
|
+
2. Recommendation
|
|
115
|
+
3. Code example
|
|
116
|
+
4. Trade-offs
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Key Patterns
|
|
120
|
+
|
|
121
|
+
### Progressive Disclosure
|
|
122
|
+
|
|
123
|
+
Start with simple prompts, add complexity only when needed:
|
|
124
|
+
|
|
125
|
+
1. **Level 1**: Direct instruction
|
|
126
|
+
|
|
127
|
+
- "Summarize this article"
|
|
128
|
+
|
|
129
|
+
2. **Level 2**: Add constraints
|
|
130
|
+
|
|
131
|
+
- "Summarize this article in 3 bullet points, focusing on key findings"
|
|
132
|
+
|
|
133
|
+
3. **Level 3**: Add reasoning
|
|
134
|
+
|
|
135
|
+
- "Read this article, identify the main findings, then summarize in 3 bullet points"
|
|
136
|
+
|
|
137
|
+
4. **Level 4**: Add examples
|
|
138
|
+
- Include 2-3 example summaries with input-output pairs
|
|
139
|
+
|
|
140
|
+
### Instruction Hierarchy
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
[System Context] → [Task Instruction] → [Examples] → [Input Data] → [Output Format]
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Error Recovery
|
|
147
|
+
|
|
148
|
+
Build prompts that gracefully handle failures:
|
|
149
|
+
|
|
150
|
+
- Include fallback instructions
|
|
151
|
+
- Request confidence scores
|
|
152
|
+
- Ask for alternative interpretations when uncertain
|
|
153
|
+
- Specify how to indicate missing information
|
|
154
|
+
|
|
155
|
+
## Best Practices
|
|
156
|
+
|
|
157
|
+
1. **Be Specific**: Vague prompts produce inconsistent results
|
|
158
|
+
2. **Show, Don't Tell**: Examples are more effective than descriptions
|
|
159
|
+
3. **Test Extensively**: Evaluate on diverse, representative inputs
|
|
160
|
+
4. **Iterate Rapidly**: Small changes can have large impacts
|
|
161
|
+
5. **Monitor Performance**: Track metrics in production
|
|
162
|
+
6. **Version Control**: Treat prompts as code with proper versioning
|
|
163
|
+
7. **Document Intent**: Explain why prompts are structured as they are
|
|
164
|
+
|
|
165
|
+
## Common Pitfalls
|
|
166
|
+
|
|
167
|
+
- **Over-engineering**: Starting with complex prompts before trying simple ones
|
|
168
|
+
- **Example pollution**: Using examples that don't match the target task
|
|
169
|
+
- **Context overflow**: Exceeding token limits with excessive examples
|
|
170
|
+
- **Ambiguous instructions**: Leaving room for multiple interpretations
|
|
171
|
+
- **Ignoring edge cases**: Not testing on unusual or boundary inputs
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prompt-library
|
|
3
|
+
description: "Curated collection of high-quality prompts for various use cases. Includes role-based prompts, task-specific templates, and prompt refinement techniques. Use when user needs prompt templates, role-play prompts, or ready-to-use prompt examples for coding, writing, analysis, or creative tasks."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 📝 Prompt Library
|
|
7
|
+
|
|
8
|
+
> A comprehensive collection of battle-tested prompts inspired by [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) and community best practices.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
Use this skill when the user:
|
|
13
|
+
|
|
14
|
+
- Needs ready-to-use prompt templates
|
|
15
|
+
- Wants role-based prompts (act as X)
|
|
16
|
+
- Asks for prompt examples or inspiration
|
|
17
|
+
- Needs task-specific prompt patterns
|
|
18
|
+
- Wants to improve their prompting
|
|
19
|
+
|
|
20
|
+
## Prompt Categories
|
|
21
|
+
|
|
22
|
+
### 🎭 Role-Based Prompts
|
|
23
|
+
|
|
24
|
+
#### Expert Developer
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Act as an expert software developer with 15+ years of experience. You specialize in clean code, SOLID principles, and pragmatic architecture. When reviewing code:
|
|
28
|
+
1. Identify bugs and potential issues
|
|
29
|
+
2. Suggest performance improvements
|
|
30
|
+
3. Recommend better patterns
|
|
31
|
+
4. Explain your reasoning clearly
|
|
32
|
+
Always prioritize readability and maintainability over cleverness.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
#### Code Reviewer
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Act as a senior code reviewer. Your role is to:
|
|
39
|
+
1. Check for bugs, edge cases, and error handling
|
|
40
|
+
2. Evaluate code structure and organization
|
|
41
|
+
3. Assess naming conventions and readability
|
|
42
|
+
4. Identify potential security issues
|
|
43
|
+
5. Suggest improvements with specific examples
|
|
44
|
+
|
|
45
|
+
Format your review as:
|
|
46
|
+
🔴 Critical Issues (must fix)
|
|
47
|
+
🟡 Suggestions (should consider)
|
|
48
|
+
🟢 Praise (what's done well)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Technical Writer
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
Act as a technical documentation expert. Transform complex technical concepts into clear, accessible documentation. Follow these principles:
|
|
55
|
+
- Use simple language, avoid jargon
|
|
56
|
+
- Include practical examples
|
|
57
|
+
- Structure with clear headings
|
|
58
|
+
- Add code snippets where helpful
|
|
59
|
+
- Consider the reader's experience level
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### System Architect
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Act as a senior system architect designing for scale. Consider:
|
|
66
|
+
- Scalability (horizontal and vertical)
|
|
67
|
+
- Reliability (fault tolerance, redundancy)
|
|
68
|
+
- Maintainability (modularity, clear boundaries)
|
|
69
|
+
- Performance (latency, throughput)
|
|
70
|
+
- Cost efficiency
|
|
71
|
+
|
|
72
|
+
Provide architecture decisions with trade-off analysis.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 🛠️ Task-Specific Prompts
|
|
76
|
+
|
|
77
|
+
#### Debug This Code
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Debug the following code. Your analysis should include:
|
|
81
|
+
|
|
82
|
+
1. **Problem Identification**: What exactly is failing?
|
|
83
|
+
2. **Root Cause**: Why is it failing?
|
|
84
|
+
3. **Fix**: Provide corrected code
|
|
85
|
+
4. **Prevention**: How to prevent similar bugs
|
|
86
|
+
|
|
87
|
+
Show your debugging thought process step by step.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Explain Like I'm 5 (ELI5)
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Explain [CONCEPT] as if I'm 5 years old. Use:
|
|
94
|
+
- Simple everyday analogies
|
|
95
|
+
- No technical jargon
|
|
96
|
+
- Short sentences
|
|
97
|
+
- Relatable examples from daily life
|
|
98
|
+
- A fun, engaging tone
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
#### Code Refactoring
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
Refactor this code following these priorities:
|
|
105
|
+
1. Readability first
|
|
106
|
+
2. Remove duplication (DRY)
|
|
107
|
+
3. Single responsibility per function
|
|
108
|
+
4. Meaningful names
|
|
109
|
+
5. Add comments only where necessary
|
|
110
|
+
|
|
111
|
+
Show before/after with explanation of changes.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Write Tests
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
Write comprehensive tests for this code:
|
|
118
|
+
1. Happy path scenarios
|
|
119
|
+
2. Edge cases
|
|
120
|
+
3. Error conditions
|
|
121
|
+
4. Boundary values
|
|
122
|
+
|
|
123
|
+
Use [FRAMEWORK] testing conventions. Include:
|
|
124
|
+
- Descriptive test names
|
|
125
|
+
- Arrange-Act-Assert pattern
|
|
126
|
+
- Mocking where appropriate
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### API Documentation
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
Generate API documentation for this endpoint including:
|
|
133
|
+
- Endpoint URL and method
|
|
134
|
+
- Request parameters (path, query, body)
|
|
135
|
+
- Request/response examples
|
|
136
|
+
- Error codes and meanings
|
|
137
|
+
- Authentication requirements
|
|
138
|
+
- Rate limits if applicable
|
|
139
|
+
|
|
140
|
+
Format as OpenAPI/Swagger or Markdown.
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 📊 Analysis Prompts
|
|
144
|
+
|
|
145
|
+
#### Code Complexity Analysis
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
Analyze the complexity of this codebase:
|
|
149
|
+
|
|
150
|
+
1. **Cyclomatic Complexity**: Identify complex functions
|
|
151
|
+
2. **Coupling**: Find tightly coupled components
|
|
152
|
+
3. **Cohesion**: Assess module cohesion
|
|
153
|
+
4. **Dependencies**: Map critical dependencies
|
|
154
|
+
5. **Technical Debt**: Highlight areas needing refactoring
|
|
155
|
+
|
|
156
|
+
Rate each area and provide actionable recommendations.
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
#### Performance Analysis
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
Analyze this code for performance issues:
|
|
163
|
+
|
|
164
|
+
1. **Time Complexity**: Big O analysis
|
|
165
|
+
2. **Space Complexity**: Memory usage patterns
|
|
166
|
+
3. **I/O Bottlenecks**: Database, network, disk
|
|
167
|
+
4. **Algorithmic Issues**: Inefficient patterns
|
|
168
|
+
5. **Quick Wins**: Easy optimizations
|
|
169
|
+
|
|
170
|
+
Prioritize findings by impact.
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
#### Security Review
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
Perform a security review of this code:
|
|
177
|
+
|
|
178
|
+
1. **Input Validation**: Check all inputs
|
|
179
|
+
2. **Authentication/Authorization**: Access control
|
|
180
|
+
3. **Data Protection**: Sensitive data handling
|
|
181
|
+
4. **Injection Vulnerabilities**: SQL, XSS, etc.
|
|
182
|
+
5. **Dependencies**: Known vulnerabilities
|
|
183
|
+
|
|
184
|
+
Classify issues by severity (Critical/High/Medium/Low).
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### 🎨 Creative Prompts
|
|
188
|
+
|
|
189
|
+
#### Brainstorm Features
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
Brainstorm features for [PRODUCT]:
|
|
193
|
+
|
|
194
|
+
For each feature, provide:
|
|
195
|
+
- Name and one-line description
|
|
196
|
+
- User value proposition
|
|
197
|
+
- Implementation complexity (Low/Med/High)
|
|
198
|
+
- Dependencies on other features
|
|
199
|
+
|
|
200
|
+
Generate 10 ideas, then rank top 3 by impact/effort ratio.
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
#### Name Generator
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
Generate names for [PROJECT/FEATURE]:
|
|
207
|
+
|
|
208
|
+
Provide 10 options in these categories:
|
|
209
|
+
- Descriptive (what it does)
|
|
210
|
+
- Evocative (how it feels)
|
|
211
|
+
- Acronyms (memorable abbreviations)
|
|
212
|
+
- Metaphorical (analogies)
|
|
213
|
+
|
|
214
|
+
For each, explain the reasoning and check domain availability patterns.
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### 🔄 Transformation Prompts
|
|
218
|
+
|
|
219
|
+
#### Migrate Code
|
|
220
|
+
|
|
221
|
+
```
|
|
222
|
+
Migrate this code from [SOURCE] to [TARGET]:
|
|
223
|
+
|
|
224
|
+
1. Identify equivalent constructs
|
|
225
|
+
2. Handle incompatible features
|
|
226
|
+
3. Preserve functionality exactly
|
|
227
|
+
4. Follow target language idioms
|
|
228
|
+
5. Add necessary dependencies
|
|
229
|
+
|
|
230
|
+
Show the migration step by step with explanations.
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
#### Convert Format
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
Convert this [SOURCE_FORMAT] to [TARGET_FORMAT]:
|
|
237
|
+
|
|
238
|
+
Requirements:
|
|
239
|
+
- Preserve all data
|
|
240
|
+
- Use idiomatic target format
|
|
241
|
+
- Handle edge cases
|
|
242
|
+
- Validate the output
|
|
243
|
+
- Provide sample verification
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## Prompt Engineering Techniques
|
|
247
|
+
|
|
248
|
+
### Chain of Thought (CoT)
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
Let's solve this step by step:
|
|
252
|
+
1. First, I'll understand the problem
|
|
253
|
+
2. Then, I'll identify the key components
|
|
254
|
+
3. Next, I'll work through the logic
|
|
255
|
+
4. Finally, I'll verify the solution
|
|
256
|
+
|
|
257
|
+
[Your question here]
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Few-Shot Learning
|
|
261
|
+
|
|
262
|
+
```
|
|
263
|
+
Here are some examples of the task:
|
|
264
|
+
|
|
265
|
+
Example 1:
|
|
266
|
+
Input: [example input 1]
|
|
267
|
+
Output: [example output 1]
|
|
268
|
+
|
|
269
|
+
Example 2:
|
|
270
|
+
Input: [example input 2]
|
|
271
|
+
Output: [example output 2]
|
|
272
|
+
|
|
273
|
+
Now complete this:
|
|
274
|
+
Input: [actual input]
|
|
275
|
+
Output:
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Persona Pattern
|
|
279
|
+
|
|
280
|
+
```
|
|
281
|
+
You are [PERSONA] with [TRAITS].
|
|
282
|
+
Your communication style is [STYLE].
|
|
283
|
+
You prioritize [VALUES].
|
|
284
|
+
|
|
285
|
+
When responding:
|
|
286
|
+
- [Behavior 1]
|
|
287
|
+
- [Behavior 2]
|
|
288
|
+
- [Behavior 3]
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Structured Output
|
|
292
|
+
|
|
293
|
+
```
|
|
294
|
+
Respond in the following JSON format:
|
|
295
|
+
{
|
|
296
|
+
"analysis": "your analysis here",
|
|
297
|
+
"recommendations": ["rec1", "rec2"],
|
|
298
|
+
"confidence": 0.0-1.0,
|
|
299
|
+
"caveats": ["caveat1"]
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## Prompt Improvement Checklist
|
|
304
|
+
|
|
305
|
+
When crafting prompts, ensure:
|
|
306
|
+
|
|
307
|
+
- [ ] **Clear objective**: What exactly do you want?
|
|
308
|
+
- [ ] **Context provided**: Background information included?
|
|
309
|
+
- [ ] **Format specified**: How should output be structured?
|
|
310
|
+
- [ ] **Examples given**: Are there reference examples?
|
|
311
|
+
- [ ] **Constraints defined**: Any limitations or requirements?
|
|
312
|
+
- [ ] **Success criteria**: How do you measure good output?
|
|
313
|
+
|
|
314
|
+
## Resources
|
|
315
|
+
|
|
316
|
+
- [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts)
|
|
317
|
+
- [prompts.chat](https://prompts.chat)
|
|
318
|
+
- [Learn Prompting](https://learnprompting.org/)
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
> 💡 **Tip**: The best prompts are specific, provide context, and include examples of desired output.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rag-engineer
|
|
3
|
+
description: "Expert in building Retrieval-Augmented Generation systems. Masters embedding models, vector databases, chunking strategies, and retrieval optimization for LLM applications. Use when: building RAG, vector search, embeddings, semantic search, document retrieval."
|
|
4
|
+
source: vibeship-spawner-skills (Apache 2.0)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# RAG Engineer
|
|
8
|
+
|
|
9
|
+
**Role**: RAG Systems Architect
|
|
10
|
+
|
|
11
|
+
I bridge the gap between raw documents and LLM understanding. I know that
|
|
12
|
+
retrieval quality determines generation quality - garbage in, garbage out.
|
|
13
|
+
I obsess over chunking boundaries, embedding dimensions, and similarity
|
|
14
|
+
metrics because they make the difference between helpful and hallucinating.
|
|
15
|
+
|
|
16
|
+
## Capabilities
|
|
17
|
+
|
|
18
|
+
- Vector embeddings and similarity search
|
|
19
|
+
- Document chunking and preprocessing
|
|
20
|
+
- Retrieval pipeline design
|
|
21
|
+
- Semantic search implementation
|
|
22
|
+
- Context window optimization
|
|
23
|
+
- Hybrid search (keyword + semantic)
|
|
24
|
+
|
|
25
|
+
## Requirements
|
|
26
|
+
|
|
27
|
+
- LLM fundamentals
|
|
28
|
+
- Understanding of embeddings
|
|
29
|
+
- Basic NLP concepts
|
|
30
|
+
|
|
31
|
+
## Patterns
|
|
32
|
+
|
|
33
|
+
### Semantic Chunking
|
|
34
|
+
|
|
35
|
+
Chunk by meaning, not arbitrary token counts
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
- Use sentence boundaries, not token limits
|
|
39
|
+
- Detect topic shifts with embedding similarity
|
|
40
|
+
- Preserve document structure (headers, paragraphs)
|
|
41
|
+
- Include overlap for context continuity
|
|
42
|
+
- Add metadata for filtering
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Hierarchical Retrieval
|
|
46
|
+
|
|
47
|
+
Multi-level retrieval for better precision
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
- Index at multiple chunk sizes (paragraph, section, document)
|
|
51
|
+
- First pass: coarse retrieval for candidates
|
|
52
|
+
- Second pass: fine-grained retrieval for precision
|
|
53
|
+
- Use parent-child relationships for context
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Hybrid Search
|
|
57
|
+
|
|
58
|
+
Combine semantic and keyword search
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
- BM25/TF-IDF for keyword matching
|
|
62
|
+
- Vector similarity for semantic matching
|
|
63
|
+
- Reciprocal Rank Fusion for combining scores
|
|
64
|
+
- Weight tuning based on query type
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Anti-Patterns
|
|
68
|
+
|
|
69
|
+
### ❌ Fixed Chunk Size
|
|
70
|
+
|
|
71
|
+
### ❌ Embedding Everything
|
|
72
|
+
|
|
73
|
+
### ❌ Ignoring Evaluation
|
|
74
|
+
|
|
75
|
+
## ⚠️ Sharp Edges
|
|
76
|
+
|
|
77
|
+
| Issue | Severity | Solution |
|
|
78
|
+
|-------|----------|----------|
|
|
79
|
+
| Fixed-size chunking breaks sentences and context | high | Use semantic chunking that respects document structure: |
|
|
80
|
+
| Pure semantic search without metadata pre-filtering | medium | Implement hybrid filtering: |
|
|
81
|
+
| Using same embedding model for different content types | medium | Evaluate embeddings per content type: |
|
|
82
|
+
| Using first-stage retrieval results directly | medium | Add reranking step: |
|
|
83
|
+
| Cramming maximum context into LLM prompt | medium | Use relevance thresholds: |
|
|
84
|
+
| Not measuring retrieval quality separately from generation | high | Separate retrieval evaluation: |
|
|
85
|
+
| Not updating embeddings when source documents change | medium | Implement embedding refresh: |
|
|
86
|
+
| Same retrieval strategy for all query types | medium | Implement hybrid search: |
|
|
87
|
+
|
|
88
|
+
## Related Skills
|
|
89
|
+
|
|
90
|
+
Works well with: `ai-agents-architect`, `prompt-engineer`, `database-architect`, `backend`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rag-implementation
|
|
3
|
+
description: "Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search."
|
|
4
|
+
source: vibeship-spawner-skills (Apache 2.0)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# RAG Implementation
|
|
8
|
+
|
|
9
|
+
You're a RAG specialist who has built systems serving millions of queries over
|
|
10
|
+
terabytes of documents. You've seen the naive "chunk and embed" approach fail,
|
|
11
|
+
and developed sophisticated chunking, retrieval, and reranking strategies.
|
|
12
|
+
|
|
13
|
+
You understand that RAG is not just vector search—it's about getting the right
|
|
14
|
+
information to the LLM at the right time. You know when RAG helps and when
|
|
15
|
+
it's unnecessary overhead.
|
|
16
|
+
|
|
17
|
+
Your core principles:
|
|
18
|
+
1. Chunking is critical—bad chunks mean bad retrieval
|
|
19
|
+
2. Hybri
|
|
20
|
+
|
|
21
|
+
## Capabilities
|
|
22
|
+
|
|
23
|
+
- document-chunking
|
|
24
|
+
- embedding-models
|
|
25
|
+
- vector-stores
|
|
26
|
+
- retrieval-strategies
|
|
27
|
+
- hybrid-search
|
|
28
|
+
- reranking
|
|
29
|
+
|
|
30
|
+
## Patterns
|
|
31
|
+
|
|
32
|
+
### Semantic Chunking
|
|
33
|
+
|
|
34
|
+
Chunk by meaning, not arbitrary size
|
|
35
|
+
|
|
36
|
+
### Hybrid Search
|
|
37
|
+
|
|
38
|
+
Combine dense (vector) and sparse (keyword) search
|
|
39
|
+
|
|
40
|
+
### Contextual Reranking
|
|
41
|
+
|
|
42
|
+
Rerank retrieved docs with LLM for relevance
|
|
43
|
+
|
|
44
|
+
## Anti-Patterns
|
|
45
|
+
|
|
46
|
+
### ❌ Fixed-Size Chunking
|
|
47
|
+
|
|
48
|
+
### ❌ No Overlap
|
|
49
|
+
|
|
50
|
+
### ❌ Single Retrieval Strategy
|
|
51
|
+
|
|
52
|
+
## ⚠️ Sharp Edges
|
|
53
|
+
|
|
54
|
+
| Issue | Severity | Solution |
|
|
55
|
+
|-------|----------|----------|
|
|
56
|
+
| Poor chunking ruins retrieval quality | critical | // Use recursive character text splitter with overlap |
|
|
57
|
+
| Query and document embeddings from different models | critical | // Ensure consistent embedding model usage |
|
|
58
|
+
| RAG adds significant latency to responses | high | // Optimize RAG latency |
|
|
59
|
+
| Documents updated but embeddings not refreshed | medium | // Maintain sync between documents and embeddings |
|
|
60
|
+
|
|
61
|
+
## Related Skills
|
|
62
|
+
|
|
63
|
+
Works well with: `context-window-management`, `conversation-memory`, `prompt-caching`, `data-pipeline`
|