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: Use when designing, creating, or optimizing prompt templates, architectural patterns, and reusable prompt components. This skill provides structured procedures for building prompt template libraries that are modular, testable, and maintainable.4---56# Blueprint - Prompt Template Designer78## Overview9Blueprint 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.1011## When to Use12- When a new prompt type needs a reusable template (e.g., code generation, analysis, creative writing)13- When existing templates need refactoring for better structure or performance14- When building a template library for a new domain or use case15- When standardizing prompt patterns across multiple agents or projects16- When auditing templates for consistency, completeness, or quality17- **Don't use when:** Writing a one-off prompt that won't be reused (use sage-promptforge-chief-architect instead)1819## Core Procedures2021### Step 1: Gather Template Requirements221. What is the template's purpose? (code generation, analysis, creative, instruction, evaluation)232. What inputs does it accept? (context, examples, constraints, format specifications)243. What outputs does it produce? (structured data, free text, code, JSON)254. Who will use this template? (specific agents, humans, automated systems)265. What variations are needed? (different tones, complexity levels, domains)2728### Step 2: Design Template Architecture29Apply the PromptForge Template Pattern:30```31[SYSTEM ROLE] - Define the AI's role and expertise32[CONTEXT] - Provide background information and constraints33[INPUT] - Define the user input structure34[INSTRUCTIONS] - Step-by-step processing instructions35[OUTPUT FORMAT] - Specify exact output structure36[EXAMPLES] - Provide 1-3 few-shot examples37[VALIDATION] - Self-check criteria for the AI38```3940### Step 3: Build Template Components41- **Modular Sections:** Each section is independently editable and testable42- **Parameterized Variables:** Use `{{variable}}` syntax for dynamic content43- **Conditional Logic:** Include branching for different input types44- **Fallback Paths:** Define what happens when inputs are incomplete45- **Version Tags:** Track template version in metadata4647### Step 4: Test Template Effectiveness48For each template:49- [ ] Test with 5+ diverse inputs covering edge cases50- [ ] Measure output quality against success criteria51- [ ] Test with different model sizes (small, medium, large)52- [ ] Verify output format consistency53- [ ] Check that parameterized variables work correctly54- [ ] Document known limitations and failure modes5556### Step 5: Document and Publish57```58TEMPLATE DOCUMENTATION59======================60Template Name: [descriptive name]61Version: [semver]62Category: [code/analysis/creative/instruction/evaluation]63Inputs: [list of required and optional inputs]64Outputs: [expected output format]65Best For: [use cases where this template excels]66Not For: [use cases where this template fails]67Performance: [quality score from testing]68```6970## Success Metrics71- Template reuse rate: >=80% (templates used 3+ times)72- Output consistency: >=95% format compliance across test inputs73- Template library coverage: >=90% of common prompt types covered74- User satisfaction: >=90% positive feedback from agents using templates7576## Error Handling77- **Error:** Template produces inconsistent output formats78 **Response:** Add stricter output format instructions, add validation section, re-test79- **Error:** Template fails with certain input types80 **Response:** Add conditional logic for that input type, or create separate template variant81- **Error:** Template becomes too complex (>500 tokens)82 **Response:** Split into modular sub-templates, use composition pattern8384## Cross-Team Integration85**Related Skills:** sage-promptforge-chief-architect, cascade-promptforge-workflow-designer, validator-promptforge-syntax-logic-validation, refiner-promptforge-version-control86**Used By:** ALL agents creating prompts, especially Sage, Cascade, Specialist