.claude/skills/prompt-builder/SKILL.md
Build effective prompts for Claude Code skills. Creates clear, specific, actionable prompts using engineering principles, templates, and validation. Use when creating skill instructions, workflow steps, task operations, or any Claude prompt.
npx skillsauth add adaptationio/skrillz prompt-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
prompt-builder provides a systematic workflow for creating effective prompts in Claude Code skills. It applies prompt engineering principles, uses proven templates, and validates quality to ensure prompts are clear, specific, actionable, and produce reliable results.
Purpose: Create high-quality prompts for skills, workflows, tasks, and operations
Pattern: Workflow-based (5-step process)
Key Benefit: Transforms vague instructions into precise, effective prompts that Claude can execute reliably
Use prompt-builder when:
Before building prompts:
Before writing any prompt, understand the full context.
What to Identify:
Goal: What should this prompt accomplish?
Audience: Who will use this prompt?
Situation: When/where will this prompt be used?
Constraints: What limitations exist?
Success criteria: How do you know it worked?
Questions to Ask:
Example Context Analysis:
Goal: Have Claude write a comprehensive guide for a reference file
Audience: Claude (executing skill)
Situation: Step 3 of 6 in skill-building workflow
Constraints: Must be <5,000 words, specific format
Success: Complete guide covering all topics, properly formatted
Common Context Mistakes:
Best Practices:
→ Output: Context analysis document
→ Next: With context clear, define the specific task
Transform the goal into a clear, specific, actionable task definition.
Task Definition Elements:
Action Verb: What specific action?
Object: What is being acted upon?
Constraints: What limits or requirements?
Quality Criteria: What makes output good?
Context References: What information to use?
Task Clarity Checklist:
Good vs Bad Task Definitions:
❌ Bad: "Update the documentation"
✅ Good: "Write a Getting Started section for README.md covering installation, basic usage, and first example. Use imperative voice, keep under 300 words, include 2-3 code examples."
❌ Bad: "Make the code better"
✅ Good: "Refactor the authentication function to use async/await pattern, add error handling for network failures, and include JSDoc comments for each parameter."
Task Definition Template:
[ACTION VERB] [SPECIFIC OBJECT] that [QUALITY CRITERIA].
Constraints:
- [Format/Structure requirement]
- [Length/Size requirement]
- [Style/Tone requirement]
Success means:
- [Measurable criterion 1]
- [Measurable criterion 2]
- [Measurable criterion 3]
Use/Reference:
- [Context source 1]
- [Context source 2]
Example Task Definition:
Write a comprehensive dependency management guide that explains identification,
documentation, critical path analysis, and optimization strategies.
Constraints:
- Structure: 4 main sections with subsections
- Length: 600-800 words per section
- Style: Technical but accessible, use examples
- Format: Markdown with code examples
Success means:
- All dependency types covered (hard, soft, none)
- Critical path calculation explained with formula
- Optimization strategies include specific techniques
- Examples demonstrate each concept
Use/Reference:
- Project management best practices
- Task scheduling algorithms
- skill-builder patterns for reference organization
→ Output: Clear task definition with measurable criteria
→ Next: Structure the prompt effectively
Organize the prompt using proven templates and patterns.
Core Prompt Structure:
[CONTEXT SETTING]
[TASK DEFINITION]
[CONSTRAINTS & REQUIREMENTS]
[OUTPUT FORMAT]
[EXAMPLES (if needed)]
[VALIDATION CRITERIA]
1. Context Setting (1-3 sentences)
Establish the situation and frame the task:
Example:
You are creating a reference guide for a Claude Code skill. This guide will be
loaded on-demand when users need detailed information about dependency management.
The guide should be comprehensive yet practical.
2. Task Definition (From Step 2)
State exactly what to do:
Example:
Write a dependency management guide covering: identification, documentation,
critical path analysis, and optimization strategies.
3. Constraints & Requirements
List all limitations and requirements:
Example:
Requirements:
- 4 main sections: Identification, Documentation, Analysis, Optimization
- 600-800 words per section
- Include code examples and formulas
- Use markdown formatting with headers, lists, code blocks
- Technical but accessible language
Constraints:
- No external dependencies or libraries
- Must work with generic task structures
- Examples should be realistic but not project-specific
4. Output Format
Specify exact structure expected:
Example:
Format:
# Dependency Management Guide
## 1. Identifying Dependencies
[Content with examples]
## 2. Documenting Dependencies
[Content with templates]
## 3. Critical Path Analysis
[Content with formulas]
## 4. Optimization Strategies
[Content with techniques]
5. Examples (if helpful)
Provide patterns to follow:
Example:
Example dependency documentation:
Task 5: Write API integration (3h) Depends on: Task 2 (auth complete), Task 3 (models defined) Type: Hard (blocking) Rationale: Cannot call API without authentication and data models
6. Validation Criteria
How to verify success:
Example:
Verify the guide:
- [ ] All 4 sections present and complete
- [ ] Each section 600-800 words
- [ ] Code examples in each section
- [ ] Critical path formula included
- [ ] Practical optimization techniques provided
- [ ] Markdown formatting correct
Template Selection Guide:
Workflow Step Prompt:
## Step [N]: [Action Name]
[Step description and purpose]
**What to Do**:
[Detailed instructions]
**Inputs**: [What's available from previous steps]
**Outputs**: [What this step produces]
**Next**: [Where to go next]
Task Operation Prompt:
## Operation [N]: [Operation Name]
[Operation description]
**When to Use**: [Trigger conditions]
**Prerequisites**: [What's needed]
**Steps**: [How to execute]
**Validation**: [How to verify success]
Analysis Prompt:
Analyze [object] to [goal].
Context:
[Relevant background]
Analysis dimensions:
1. [Aspect 1]: [What to examine]
2. [Aspect 2]: [What to examine]
3. [Aspect 3]: [What to examine]
Output format:
[Structure of analysis]
Provide specific examples and evidence for each dimension.
Creation Prompt:
Create [object] that [criteria].
Specifications:
- [Requirement 1]
- [Requirement 2]
- [Requirement 3]
Structure:
[Format/organization]
Example: [Pattern to follow]
Validation: [Success criteria]
→ Output: Structured prompt following template
→ Next: Add context and examples
Enhance the prompt with necessary background and patterns.
Types of Context to Add:
1. Background Information
Provide essential knowledge:
Example:
Background: Critical path is the longest sequence of dependent tasks
determining minimum project duration. Tasks on the critical path have
zero slack - any delay extends the project. Non-critical tasks have
slack and can be delayed without affecting completion.
2. Reference Materials
Point to existing resources:
Example:
Reference: See examples/medirecords-integration/ for a similar two-phase
workflow pattern. Follow the same structure of planning phase → implementation
phase with validation steps between.
3. Constraints & Boundaries
Define what NOT to do:
Example:
Do NOT:
- Include project-specific details
- Assume external tools/libraries
- Use placeholders like "TODO" or "FILL IN"
- Skip validation steps
- Create files outside specified directory
4. Examples & Patterns
Show concrete instances:
Good Examples - What success looks like:
Example of good dependency documentation:
Task 7: Implement error handling (2h)
Depends on: Task 5 (API integration complete)
Type: Hard (must handle API errors)
Impact: Blocks Task 9 (testing), Task 10 (deployment)
Critical path: Yes (on critical path)
Rationale: Cannot test or deploy without proper error handling
Bad Examples - Common mistakes:
Example of poor dependency documentation (DON'T DO THIS):
Task 7: Error stuff (2h)
Depends on: Maybe task 5?
This is vague, unclear type, no rationale, doesn't help scheduling.
Before/After - Improvements:
Before: "Update the database code"
After: "Refactor database query functions to use parameterized queries
preventing SQL injection, add connection pooling for performance, and
implement retry logic for transient failures."
5. Success Patterns
Describe characteristics of good output:
Example:
High-quality dependency analysis includes:
✅ Every task has dependencies listed (even if "none")
✅ Dependency types specified (hard/soft/none)
✅ Rationale explains WHY the dependency exists
✅ Critical path is identified and marked
✅ Parallel opportunities are noted
✅ Risk areas highlighted
Context Organization:
Place context strategically:
Context Amount Guidelines:
Too little context:
Too much context:
Right amount:
Context Checklist:
→ Output: Enhanced prompt with context and examples
→ Next: Refine and validate quality
Polish the prompt and verify it meets quality standards.
Refinement Process:
1. Clarity Check
Read through as if you're Claude:
Clarity Improvements:
2. Completeness Check
Verify nothing is missing:
3. Specificity Check
Ensure precision:
4. Consistency Check
Verify alignment:
5. Conciseness Check
Remove unnecessary words:
Before: "In order to create the file, you should write content that includes..." After: "Write a file containing..."
Validation Criteria:
Quality Dimensions:
Clarity (1-5): Can Claude understand without questions?
Specificity (1-5): Are requirements precise?
Completeness (1-5): Is everything needed present?
Actionability (1-5): Can Claude execute immediately?
Reliability (1-5): Will it produce consistent results?
Target: All dimensions ≥4 for production prompts
Validation Questions:
Clarity:
Specificity:
Completeness:
Actionability:
Reliability:
Testing Strategies:
Common Issues & Fixes:
Issue: Prompt produces varying output Fix: Add more constraints, specify format exactly, provide examples
Issue: Claude asks clarifying questions Fix: Context incomplete, add background information
Issue: Output doesn't match expectations Fix: Success criteria unclear, make validation explicit
Issue: Prompt too long (>1000 words) Fix: Move details to references, keep core prompt focused
Issue: Assumes knowledge Claude doesn't have Fix: Add background section, define terms, provide context
Final Checklist:
Before using the prompt:
→ Output: Refined, validated, production-ready prompt
1. Clarity First
2. Be Specific
3. Provide Context
4. Show Examples
5. Enable Validation
6. Think Iteratively
Instruction Pattern:
Do [action] to achieve [goal].
Include [elements].
Follow [format].
Analysis Pattern:
Analyze [object] for [aspects].
Consider [dimensions].
Provide [output type].
Creation Pattern:
Create [object] with [properties].
Use [template/pattern].
Ensure [quality criteria].
Transformation Pattern:
Transform [input] into [output].
Apply [rules/changes].
Maintain [constraints].
High-Quality Prompts:
Low-Quality Prompts:
Problem: "Make the code better"
Fix: "Refactor the authentication module to use async/await, add input validation, and document each function with JSDoc comments"
Problem: "Write a guide"
Fix: "Write a 500-word beginner-friendly guide in markdown format covering installation, basic usage, and first example"
Problem: Instructions only, no patterns shown
Fix: Include 2-3 examples demonstrating the pattern
Problem: "Create good documentation"
Fix: "Create documentation covering all public APIs, with description, parameters, return values, and usage example for each"
Problem: 2000-word background before 1-sentence task
Fix: Brief context (2-3 sentences), then task, then references to detailed background
Problem: "Implement the standard pattern"
Fix: "Implement the Repository pattern: create interface IRepository<T>, implement with generic class, use dependency injection"
Use prompt-builder to create high-quality prompts for skill instructions
Flow: skill-builder → prompt-builder → improved skills
Use prompt-builder to create clear prompts in skill plans
Flow: plan skill → build prompts → validate prompts
Use prompt-builder as validation criteria for prompt quality
Flow: create skill → review prompts → refine prompts
For detailed guides on prompt engineering principles, templates, and examples, see the references/ directory.
For automated prompt validation, use scripts/validate-prompt.py.
development
Setup secure web-based terminal access to WSL2 from mobile/tablet via ttyd + ngrok/Cloudflare/Tailscale. One-command install, start, stop, status. Use when you need remote terminal access, web terminal, browser-based shell, or mobile access to WSL2 environment.
development
Complete development workflows where Claude writes the code while Gemini and Codex provide research, planning, reviews, and different perspectives. Claude remains the main developer. Use for complex projects requiring expert planning and multi-perspective reviews.
development
Systematic progress tracking for skill development. Manages task states (pending/in_progress/completed), updates in real-time, reports progress, identifies blockers, and maintains momentum. Use when tracking skill development, coordinating work, or reporting progress.
testing
Comprehensive testing workflow orchestrating functional testing, example validation, integration testing, and usability assessment. Sequential workflow for complete skill testing from examples through scenarios to integration validation. Use when conducting thorough testing, pre-deployment validation, ensuring skill functionality, or comprehensive quality checks.