generate_system_prompt
Drafts a system prompt for a given role, then auto-lints and scores it to ensure quality. Optionally generates terse and guardrailed variants for comparison.
Instructions
Drafts a system prompt for a given role, then auto-lints and auto-scores it before returning. Pass rigor: 'both' to generate a terse and a guardrailed variant and get a judged comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The agent's role/task, e.g. 'senior code reviewer' | |
| model | No | Override for the model | |
| rigor | No | 'both' generates a terse and a guardrailed variant and judges them head-to-head | guardrailed |
| engine | No | The underlying LLM engine to use | |
| format | No | Output format for the generated prompt(s) | plain |
| transcript | No | Optional failed-conversation excerpt to diagnose from instead of a cold role | |
| failure_modes | No | Optional known failure modes to guard against (e.g. 'hallucinates file paths', 'too verbose') |