Blueprint - Prompt Template Designer
Overview
Blueprint designs and maintains the prompt template library for PromptForge AI. Every prompt template follows architectural patterns that ensure consistency, reusability, and measurable effectiveness. Templates are the building blocks of all prompt engineering work.
When to Use
- When a new prompt type needs a reusable template (e.g., code generation, analysis, creative writing)
- When existing templates need refactoring for better structure or performance
- When building a template library for a new domain or use case
- When standardizing prompt patterns across multiple agents or projects
- When auditing templates for consistency, completeness, or quality
- Don't use when: Writing a one-off prompt that won't be reused (use sage-promptforge-chief-architect instead)
Core Procedures
Step 1: Gather Template Requirements
- What is the template's purpose? (code generation, analysis, creative, instruction, evaluation)
- What inputs does it accept? (context, examples, constraints, format specifications)
- What outputs does it produce? (structured data, free text, code, JSON)
- Who will use this template? (specific agents, humans, automated systems)
- What variations are needed? (different tones, complexity levels, domains)
Step 2: Design Template Architecture
Apply the PromptForge Template Pattern:
[SYSTEM ROLE] - Define the AI's role and expertise
[CONTEXT] - Provide background information and constraints
[INPUT] - Define the user input structure
[INSTRUCTIONS] - Step-by-step processing instructions
[OUTPUT FORMAT] - Specify exact output structure
[EXAMPLES] - Provide 1-3 few-shot examples
[VALIDATION] - Self-check criteria for the AI
Step 3: Build Template Components
- Modular Sections: Each section is independently editable and testable
- Parameterized Variables: Use
{{variable}} syntax for dynamic content
- Conditional Logic: Include branching for different input types
- Fallback Paths: Define what happens when inputs are incomplete
- Version Tags: Track template version in metadata
Step 4: Test Template Effectiveness
For each template:
Step 5: Document and Publish
TEMPLATE DOCUMENTATION
======================
Template Name: [descriptive name]
Version: [semver]
Category: [code/analysis/creative/instruction/evaluation]
Inputs: [list of required and optional inputs]
Outputs: [expected output format]
Best For: [use cases where this template excels]
Not For: [use cases where this template fails]
Performance: [quality score from testing]
Success Metrics
- Template reuse rate: >=80% (templates used 3+ times)
- Output consistency: >=95% format compliance across test inputs
- Template library coverage: >=90% of common prompt types covered
- User satisfaction: >=90% positive feedback from agents using templates
Error Handling
- Error: Template produces inconsistent output formats
Response: Add stricter output format instructions, add validation section, re-test
- Error: Template fails with certain input types
Response: Add conditional logic for that input type, or create separate template variant
- Error: Template becomes too complex (>500 tokens)
Response: Split into modular sub-templates, use composition pattern
Cross-Team Integration
Related Skills: sage-promptforge-chief-architect, cascade-promptforge-workflow-designer, validator-promptforge-syntax-logic-validation, refiner-promptforge-version-control
Used By: ALL agents creating prompts, especially Sage, Cascade, Specialist
1---2name: blueprint-promptforge-template-designer3description: >4 Use when designing, creating, or optimizing prompt templates, architectural patterns,5 and reusable prompt components. This skill provides structured procedures for6 building prompt template libraries that are modular, testable, and maintainable.7metadata:8 source: https://skillmd.com/skills/construct-ai-primary/blueprint-promptforge-template-designer9---1011# Blueprint - Prompt Template Designer1213## Overview14Blueprint designs and maintains the prompt template library for PromptForge AI. Every prompt template follows architectural patterns that ensure consistency, reusability, and measurable effectiveness. Templates are the building blocks of all prompt engineering work.1516## When to Use17- When a new prompt type needs a reusable template (e.g., code generation, analysis, creative writing)18- When existing templates need refactoring for better structure or performance19- When building a template library for a new domain or use case20- When standardizing prompt patterns across multiple agents or projects21- When auditing templates for consistency, completeness, or quality22- **Don't use when:** Writing a one-off prompt that won't be reused (use sage-promptforge-chief-architect instead)2324## Core Procedures2526### Step 1: Gather Template Requirements271. What is the template's purpose? (code generation, analysis, creative, instruction, evaluation)282. What inputs does it accept? (context, examples, constraints, format specifications)293. What outputs does it produce? (structured data, free text, code, JSON)304. Who will use this template? (specific agents, humans, automated systems)315. What variations are needed? (different tones, complexity levels, domains)3233### Step 2: Design Template Architecture34Apply the PromptForge Template Pattern:35```36[SYSTEM ROLE] - Define the AI's role and expertise37[CONTEXT] - Provide background information and constraints38[INPUT] - Define the user input structure39[INSTRUCTIONS] - Step-by-step processing instructions40[OUTPUT FORMAT] - Specify exact output structure41[EXAMPLES] - Provide 1-3 few-shot examples42[VALIDATION] - Self-check criteria for the AI43```4445### Step 3: Build Template Components46- **Modular Sections:** Each section is independently editable and testable47- **Parameterized Variables:** Use `{{variable}}` syntax for dynamic content48- **Conditional Logic:** Include branching for different input types49- **Fallback Paths:** Define what happens when inputs are incomplete50- **Version Tags:** Track template version in metadata5152### Step 4: Test Template Effectiveness53For each template:54- [ ] Test with 5+ diverse inputs covering edge cases55- [ ] Measure output quality against success criteria56- [ ] Test with different model sizes (small, medium, large)57- [ ] Verify output format consistency58- [ ] Check that parameterized variables work correctly59- [ ] Document known limitations and failure modes6061### Step 5: Document and Publish62```63TEMPLATE DOCUMENTATION64======================65Template Name: [descriptive name]66Version: [semver]67Category: [code/analysis/creative/instruction/evaluation]68Inputs: [list of required and optional inputs]69Outputs: [expected output format]70Best For: [use cases where this template excels]71Not For: [use cases where this template fails]72Performance: [quality score from testing]73```7475## Success Metrics76- Template reuse rate: >=80% (templates used 3+ times)77- Output consistency: >=95% format compliance across test inputs78- Template library coverage: >=90% of common prompt types covered79- User satisfaction: >=90% positive feedback from agents using templates8081## Error Handling82- **Error:** Template produces inconsistent output formats83 **Response:** Add stricter output format instructions, add validation section, re-test84- **Error:** Template fails with certain input types85 **Response:** Add conditional logic for that input type, or create separate template variant86- **Error:** Template becomes too complex (>500 tokens)87 **Response:** Split into modular sub-templates, use composition pattern8889## Cross-Team Integration90**Related Skills:** sage-promptforge-chief-architect, cascade-promptforge-workflow-designer, validator-promptforge-syntax-logic-validation, refiner-promptforge-version-control91**Used By:** ALL agents creating prompts, especially Sage, Cascade, Specialist