Prompting: Meta-prompting system for dynamic prompt generation using templates, standards, and patterns. USE WHEN meta-prompting, template generation, prompt optimization, or programmatic prompt composition.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
name: Prompting description: Meta-prompting system for dynamic prompt generation using templates, standards, and patterns. USE WHEN meta-prompting, template generation, prompt optimization, or programmatic prompt composition.
Prompting - Meta-Prompting & Template System
Invoke when: meta-prompting, template generation, prompt optimization, programmatic prompt composition, creating dynamic agents, generating structured prompts from data.
Overview
The Prompting skill owns ALL prompt engineering concerns:
- Standards - Anthropic best practices, Claude 4.x patterns, empirical research
- Templates - Handlebars-based system for programmatic prompt generation
- Tools - Template rendering, validation, and composition utilities
- Patterns - Reusable prompt primitives and structures
Workflow Routing
| Workflow | Trigger | File |
|---|---|---|
| RenderTemplate | "render template", "generate from template" | CLI tool |
| ValidateTemplate | "validate template", "check template syntax" | CLI tool |
| ApplyStandards | "review prompt", "optimize prompt" | Reference Standards.md |
Core Components
1. Standards.md
Complete prompt engineering documentation based on:
- Anthropic's Claude 4.x Best Practices (November 2025)
- Context engineering principles
- 1,500+ academic papers on prompt optimization
2. Templates/
Five core primitives for programmatic prompt generation:
| Primitive | Purpose |
|---|---|
| ROSTER | Agent/skill definitions from data |
| VOICE | Personality calibration settings |
| STRUCTURE | Multi-step workflow patterns |
| BRIEFING | Agent context handoff |
| GATE | Validation checklists |
3. Tools/
RenderTemplate.ts - Core rendering engine
bun run $PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts \
--template Primitives/Briefing.hbs \
--data path/to/data.yaml \
--output path/to/output.md
ValidateTemplate.ts - Template syntax checker
bun run $PAI_DIR/skills/Prompting/Tools/ValidateTemplate.ts \
--template Primitives/Briefing.hbs
Examples
Example 1: Generate agent roster
User: "Generate a roster from my agents.yaml"
-> Uses RenderTemplate with Roster.hbs
-> Outputs formatted agent definitions
Example 2: Create briefing for research agent
User: "Brief the research agent on this task"
-> Uses RenderTemplate with Briefing.hbs
-> Generates complete agent context handoff
Example 3: Validate template syntax
User: "Check my new template for errors"
-> Uses ValidateTemplate
-> Reports syntax issues, missing variables
Best Practices
- Separation of Concerns - Templates for structure, YAML for content
- Keep Templates Simple - Business logic in TypeScript, not templates
- DRY Principle - Extract repeated patterns into partials
- Validate Before Rendering - Check all required variables exist
References
Standards.md- Complete prompt engineering guideTemplates/README.md- Template system overviewTools/RenderTemplate.ts- Implementation details
More by danielmiessler
View allCORE: Personal AI Infrastructure core. AUTO-LOADS at session start. The authoritative reference for how the PAI system works, how to use it, and all system-level configuration. USE WHEN any session begins, user asks about the system, identity, configuration, workflows, security, or any other question about how the PAI system operates.
Agents: Dynamic agent composition and management system. USE WHEN user says create custom agents, spin up custom agents, specialized agents, OR asks for agent personalities, available traits, agent voices. Handles custom agent creation, personality assignment, voice mapping, and parallel agent orchestration.
THEALGORITHM: Universal execution engine using scientific method to achieve ideal state. USE WHEN complex tasks, multi-step work, "run the algorithm", "use the algorithm", OR any non-trivial request that benefits from structured execution with ISC (Ideal State Criteria) tracking.
Art: Complete visual content system. USE WHEN user wants to create visual content, illustrations, diagrams, OR mentions art, header images, visualizations, mermaid, flowchart, technical diagram, infographic, PAI icon, pack icon, or PAI pack icon.
