This is the meta layer for all prompt engineering in PAI. It owns templates, standards, and composition tools so other skills can generate prompts programmatically instead of duplicating patterns everywhere. The Handlebars-based system cut 35,000 tokens across PAI by separating structure from content. You'd use this when building dynamic agents, rendering workflow steps from YAML, or generating eval judges. The real value is treating prompts like code: templates are structure, data is content, and you compose them at runtime. It references 1,500+ papers and Anthropic's latest practices, but the practical win is that when you need to generate a briefing or validation gate, you call RenderTemplate instead of writing another 2,000 token blob.

skills.sh installs
116
GitHub stars
14.6K
last updated
Jun 3, 2026

Install

$ npx -y skills add danielmiessler/personal_ai_infrastructure --skill Prompting --agent claude-code

Installs into .claude/skills of the current project.

Files

Prompting - Meta-Prompting & Template System

Contents: Ideal State · Anti-criteria · Intent Routing · Data & Config · Gotchas · Examples · References

Generates, optimizes, and composes prompts programmatically. It's the standard library for prompt engineering — other skills call it when they need to build or improve a prompt. The output is always a prompt to be used elsewhere, never the final content itself.

Philosophy: Prompts that write prompts. Structure is code, content is data. Meta-prompting enables dynamic composition where the same template with different data generates specialized agents, workflows, and evaluation frameworks.

Ideal State

Sponsors

Details

Repository
github.com/danielmiessler/personal_ai_infrastructure
Categories
AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from danielmiessler/personal_ai_infrastructure

All 11
1aj-geddes avatarModel Deploymentaj-geddes/useful-ai-promptsDeploy machine learning models to production using Flask, FastAPI, Docker, cloud platforms (AWS, GCP, Azure), and model serving frameworks0skills.sh installs
2aj-geddes avatarRegression Modelingaj-geddes/useful-ai-promptsBuild predictive models using linear regression, polynomial regression, and regularized regression for continuous prediction, trend forecasting, and relationshi0skills.sh installs
3aj-geddes avatarSentiment Analysisaj-geddes/useful-ai-promptsClassify text sentiment using NLP techniques, lexicon-based analysis, and machine learning for opinion mining, brand monitoring, and customer feedback analysis0skills.sh installs
4intertwine avatardspy-fundamentalsintertwine/dspy-agent-skillsWrite idiomatic DSPy 3.2.x programs — typed Signatures, dspy.Module subclasses, Predict/ChainOfThought/ReAct/ProgramOfThought, and save/load. Use this when star0skills.sh installs
5jimliu avatarbook-illustratorjimliu/illustrated-agent-skills|0skills.sh installs
6microsoft avatarmicrosoft-foundrymicrosoft/azure-skillsDeploy, evaluate, fine-tune, and manage Foundry agents end-to-end with azd: hosted agent scaffold/run/deploy, prompt agent create, batch eval, continuous eval, 671.4Kskills.sh installs