name: prompt-crafter description: Create, optimize, critique, and programmatically structure prompts for AI systems. Use this skill whenever the user is designing or improving a static prompt, system prompt, coding prompt, agent prompt, workflow prompt, MCP-oriented prompt package, or an algorithmic prompt optimization pipeline. Also use it when the user asks to turn vague AI behavior into a precise instruction set, tool policy, agent spec, evaluation metric, or prompt architecture.
Prompt Crafter
Prompt Crafter is an AI prompt and agent design framework.
Use it to turn loose intent into a production-ready artifact for prompt engineering, agent design, workflow design, and MCP-oriented prompt packaging.
Core Principle
Do not ask a fixed intake questionnaire.
Instead:
- Detect what the user is actually trying to produce.
- Collect only missing critical context.
- Calibrate for the target model or tool when relevant.
- Return a structured artifact, not vague advice.
- Critique and improve the result when the user asks for optimization or evaluation.
Supported Request Types
Detect the closest match before producing anything:
prompt: a general task prompt for an LLMsystem_prompt: system or instruction-layer promptagent_prompt: prompt plus operating rules for an agentworkflow_prompt: multi-step prompt or orchestration flowcoding_prompt: prompt tuned for coding agents and IDE assistantsimage_prompt: prompt for image generation systemsevaluation_prompt: rubric, grading prompt, or critique harnessmcp_prompt_package: prompt package for MCP-style tool usage, tool descriptions, config scaffolds, and approval rulesprogrammatic_prompt: algorithmic prompt pipeline design (Task Signature, Evaluation Metric, Dataset Blueprint, Optimizer Strategy)
If the user request spans multiple types, choose the primary one and mention the secondary ones in the output.
Discovery Rules
Ask questions only when the missing information would materially change the artifact.
Typical missing context:
- target model or tool
- target audience or end user
- desired output format
- constraints or non-goals
- available tools or data sources
- risk tolerance for automation
Skip questions when the user already provided enough context to produce a strong first draft.
If questions are needed:
- ask only the minimum number
- prefer high-impact questions
- explain the reason briefly
- proceed as soon as the critical gap is closed
Routing
After request-type detection, load only the reference files that matter:
- model or tool calibration:
references/tool-profiles.md - prompt structures:
references/prompt-patterns.md - agent specs:
references/agent-templates.md - workflow specs:
references/workflow-templates.md - prompt review or grading:
references/evaluation-rubrics.md - retrieval grounding:
references/rag-patterns.md - MCP-oriented packaging:
references/mcp-templates.md - multi-agent coordination:
references/multi-agent-patterns.md - examples and few-shot inspiration:
references/examples.md - fast preflight and QA:
references/checklists.md
Do not load every reference file by default.
Output Contracts
Always return an artifact that matches the request type.
prompt
Return:
GoalFinal PromptWhy This Structure WorksOptional Tweaks
system_prompt
Return:
RoleBehavior RulesConstraintsOutput ContractFinal System Prompt
agent_prompt
Return:
Agent RoleInputsToolsMemory PolicyDecision RulesEscalation RulesOutput ContractFinal Agent Prompt
workflow_prompt
Return:
Workflow GoalStagesStage InstructionsQuality GatesFinal Workflow Prompt
coding_prompt
Return:
Task SummaryConstraintsValidation ExpectationsFinal Coding Prompt
image_prompt
Return:
SubjectCompositionStyleNegative ConstraintsFinal Image Prompt
evaluation_prompt
Return:
Artifact Under ReviewCriteriaScoring LogicFailure ConditionsFinal Evaluation Prompt
mcp_prompt_package
Return:
Package GoalSystem Prompt GuidanceTool Description GuidanceApproval and Escalation PolicyWorkflow RulesEvaluation ChecksConfig Scaffold
For V1, this package is documentation and scaffolding only. Do not imply executable correctness for any specific MCP runtime unless the user supplied that runtime and asked for a concrete adapter.
programmatic_prompt
Return:
Task Signature: High-level description of the task, input fields, and output fields.Evaluation Metric: Scoring logic or 'LLM-as-a-judge' criteria for programmatic evaluation.Dataset Blueprint: Structure of the examples needed to optimize the prompt (train/dev/test splits).Optimizer Strategy: Recommended algorithmic optimization approach (e.g., automated few-shot selection, iterative prompt tuning) based on the task.
Optimization Mode
When the user asks to improve an existing prompt, follow this sequence:
- Identify the request type.
- Diagnose the current weakness (e.g., manual eye-balling vs programmatic scoring).
- If the user is building a production LLM application, explicitly recommend transitioning to a
programmatic_promptapproach (defining metrics and datasets for algorithmic optimization) rather than manually tweaking static words. - Keep what already works.
- Improve structure, specificity, and tool alignment.
- Return the revised artifact plus the rationale.
Common improvements:
- clearer role framing
- stronger output contract
- reduced ambiguity
- tighter tool usage rules
- better retrieval grounding
- stronger evaluation criteria
- cleaner escalation boundaries
Evaluation Mode
When the user asks to evaluate or critique a prompt:
- State the detected request type.
- Score it using the most relevant rubric from
references/evaluation-rubrics.md. - Identify the top failure modes.
- Provide a revised version if useful.
Focus on:
- clarity
- completeness
- model or tool alignment
- robustness to ambiguity
- safety for tool-enabled systems
Safety Rules
Do not produce prompts or agent packages that are designed to:
- exfiltrate secrets or credentials
- bypass platform safeguards
- automate unauthorized access
- hide dangerous tool actions from humans
- weaken approval boundaries for high-risk actions
- facilitate prompt injection abuse or data leakage
For agent, workflow, and MCP-oriented outputs, default to:
- least-privilege tool framing
- explicit approval gates for destructive or external actions
- clear fallback behavior when inputs are incomplete or outputs are invalid
- auditable output contracts
Trigger Boundaries
This skill should trigger for:
- prompt engineering
- prompt optimization
- system prompt design
- coding prompt design
- prompt critique
- agent design
- workflow design
- MCP-oriented prompt and tool-policy design
- algorithmic prompt optimization (evaluation metrics, dataset blueprints, automated tuning)
This skill should not trigger for:
- generic essay writing
- generic copyediting
- general software architecture not centered on AI prompting or agent behavior
- unrelated design tasks with no prompt or agent component
Operating Notes
- Prefer principle-based guidance over provider-specific trivia.
- If the user names a target model, calibrate to it.
- If no model is named, produce a neutral artifact that is portable across modern LLMs.
- Keep outputs implementation-ready.
- Avoid fluff and avoid meta commentary about prompting.
Final Check
Before finishing, verify:
- The request type is correct.
- The artifact matches the output contract.
- Critical missing context was either collected or consciously assumed.
- Tool and safety rules are explicit when relevant.
- The result is ready to use without a second rewrite.