prompt-rendering
Skill119 starsChanged 5 months agoMITView on GitHub
Working on prompt templates, template loading/caching, or per-request rendering. Primary task is tasks/0005-prompt-rendering.md.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- code-reviewSkill
- documentationSkill
- git-workflowSkill
- mcp-toolsSkill
- project-architectureSkill
- refactoringSkill
- runtime-engineSkill
- senior-python-engineeringSkill
- sidecar-auth-contextSkill
- skill-authoringSkill
- testingSkill
- vercel-react-best-practicesSkill
- yaml-schemaSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Do not edit this file directly.
- Very specific: line 18
Use this when working on prompt templates, template loading/caching, or per-request rendering.
- Distinctive: line 41
Use strict rendering: undeclared/missing variables raise errors.
- Distinctive: line 44
Keep the source declaration (YAML) and resolution (runtime) separated.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
This file is generated by tools/skills.
Do not edit this file directly.
Edit .ai/skills/prompt-rendering.md and run `make generate-ai`.
-->Skill: Prompt Rendering
When to use this skill
Use this when working on prompt templates, template loading/caching, or
per-request rendering. Primary task: tasks/0005-prompt-rendering.md.
Files to read first
AGENTS.mddocs/PROMPT_RENDERING.mddocs/adr/0004-prompts-are-templates-rendered-per-request.mddocs/RUNTIME_LIFECYCLE.md
Architecture rules
- Prompt files are templates with placeholders, not finished text.
- Parsed templates may be cached; rendered prompts are never globally cached.
- Values are resolved per request from the
ExecutionContext. - Missing required variables fail loudly with a named error.
- Templates are data, not code — no execution inside a template.
- Prompt text is not a security boundary.
Implementation rules
- Implement loading/caching/rendering in
src/agentplatform/prompts. - Cache the parsed template keyed by path + version; never cache rendered output.
- Use strict rendering: undeclared/missing variables raise errors.
- Pull values only from the
ExecutionContext(which is populated by the resolver plugins), not from globals. - Keep the source declaration (YAML) and resolution (runtime) separated.
Validation checklist
- Parsed templates cached; rendered prompts not cached globally.
- Missing required variable → clear, named error.
- No executable logic in templates.
- No secrets in prompt files.
- Tests cover successful render, missing variable, and cache behavior.
make checkpasses.
Common mistakes to avoid
- Caching rendered prompts (data-leak risk across tenants/requests).
- Silently substituting blanks for missing variables.
- Embedding logic/secrets in templates.
- Treating prompt instructions as enforcement.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

