with one click
prompt-engineer
Create, improve, or optimize prompts using best practices.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create, improve, or optimize prompts using best practices.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
Document codebase as-is with research directory for historical context.
Delegate work to builtin or custom subagents with single-agent, chain, parallel, async, forked-context, and intercom-coordinated workflows. Use for parallel codebase discovery, debug-and-fix, refinement, and multi-step tasks where a single parent agent stays in control while specialist subagents contribute locate, analyze, pattern-find, research, debug, or simplify passes.
Streamline session-to-session coordination with the intercom extension. Send messages, delegate tasks, and coordinate work across multiple atomic sessions on the same machine. Use for planner-worker workflows, cross-session context sharing, and real-time collaboration between sessions.
Create a detailed execution plan/spec/PRD for implementing features or refactors in a codebase, designed around the program's entrypoints, the doors that carry domain intent, by leveraging existing research in the codebase.
Control tmux-compatible sessions/windows/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts.
| name | prompt-engineer |
| description | Create, improve, or optimize prompts using best practices. |
This skill provides comprehensive guidance for creating effective prompts for language models using proven best practices. Use this skill whenever working on prompt design, optimization, or troubleshooting.
Apply proven prompt engineering techniques to create high-quality, reliable prompts that produce consistent, accurate outputs while minimizing hallucinations and implementing appropriate security measures.
Trigger this skill when users request:
Ask clarifying questions to understand:
Based on requirements, determine which techniques to apply:
Core techniques (for all prompts):
Specialized techniques:
Read the appropriate reference file(s) based on techniques needed:
For basic prompt improvement:
Read references/core_prompting.md
Covers: clarity, system prompts, XML tags
For complex tasks:
Read references/advanced_patterns.md
Covers: chain of thought, multishot, chaining, long context, extended thinking
For specific quality issues:
Read references/quality_improvement.md
Covers: hallucinations, consistency, security
Apply techniques from references to create the prompt structure:
Basic Template:
[System prompt - optional, for role assignment]
<context>
Relevant background information
</context>
<instructions>
Clear, specific task instructions
Use numbered steps for multi-step tasks
</instructions>
<examples>
<example>
<input>Sample input</input>
<output>Expected output</output>
</example>
[2-4 more examples if using multishot]
</examples>
<output_format>
Specify exact format (JSON, XML, markdown, etc.)
</output_format>
[Actual task/question]
Key Design Principles:
Based on quality needs, add appropriate safeguards:
For factual accuracy:
For consistency:
For security:
Optimization checklist:
Testing approach:
Debugging process:
Common Issues and Solutions:
| Issue | Solution | Reference |
|---|---|---|
| Inconsistent format | Add examples, use prefilling | quality_improvement.md |
| Hallucinations | Add uncertainty permission, quote grounding | quality_improvement.md |
| Missing steps | Break into subtasks, use chaining | advanced_patterns.md |
| Wrong tone | Add role to system prompt | core_prompting.md |
| Misunderstands task | Add clarity, provide context | core_prompting.md |
| Complex reasoning fails | Add chain of thought | advanced_patterns.md |
Progressive Disclosure Start with core techniques and add advanced patterns only when needed. Don't over-engineer simple prompts.
Documentation When delivering prompts, explain which techniques were used and why. This helps users understand and maintain them.
Validation Always validate critical outputs, especially for high-stakes applications. No prompting technique eliminates all errors.
Experimentation Prompt engineering is iterative. Small changes can have significant impacts. Test variations and measure results.
| User Need | Primary Technique | Reference File |
|---|---|---|
| Better clarity | Be clear and direct | core_prompting.md |
| Domain expertise | System prompts | core_prompting.md |
| Organized structure | XML tags | core_prompting.md |
| Complex reasoning | Chain of thought | advanced_patterns.md |
| Format consistency | Multishot prompting | advanced_patterns.md |
| Multi-step process | Prompt chaining | advanced_patterns.md |
| Long documents (100K+ tokens) | Long context tips | advanced_patterns.md |
| Deep analysis | Extended thinking | advanced_patterns.md |
| Reduce false information | Hallucination reduction | quality_improvement.md |
| Consistent outputs | Consistency techniques | quality_improvement.md |
| Security/safety | Jailbreak mitigation | quality_improvement.md |
This skill includes three comprehensive reference files:
Essential techniques for all prompts:
Sophisticated techniques for complex tasks:
Techniques for specific quality issues:
Load these files as needed based on the workflow steps above.