Skip to content

Prompting Skills

The prompt-* family designs, improves, and validates the prompts used throughout the skill system. These skills are meta-tools — they operate on prompts, not on product code.

Skill IDDescriptionModel Class
prompt-engineeringDesigns new prompts from scratch: system message, user message, output format, stop tokenscheap
prompt-chainingBuilds multi-step prompt chains where each step’s output feeds the nextcheap
prompt-refinementIteratively improves an existing prompt based on failure analysis or eval scorescheap
prompt-hierarchyDesigns a prompt hierarchy: system → instruction → user layers with clear override rulesstrong
SituationSkill(s)
Building a new AI feature’s promptprompt-engineering
Chain of thought requires multiple stepsprompt-chaining
Prompt is producing inconsistent resultsprompt-refinement
Complex multi-layer prompt systemprompt-hierarchy
  • prompt-engineering — primary consumer; all four coordinated
  • evaluate — uses prompt-refinement after eval scores reveal weaknesses
  • govern — uses prompt-hierarchy to enforce policy layers

prompt-engineering produces a full prompt specification:

system: |
You are a senior TypeScript engineer. You produce clean, typed, testable code.
Follow ESM conventions. Never use `any`. Use `zod` for runtime validation.
user_template: |
Implement a function that {{task}}.
Requirements: {{requirements}}
Constraints: {{constraints}}
output_format: typescript_fenced_codeblock
temperature: 0.2
max_tokens: 2048
stop_tokens: ["```\n\n"]
Initial prompt → eval-prompt score
prompt-refinement → identify failure mode
Modified prompt → eval-prompt re-score
Repeat until score ≥ threshold