Prompt engineer

From eddiebelaval/squire · View interactive version

Prompt engineer is an AI agent skill from the GitHub repository eddiebelaval/squire. Craft effective prompts and optimize AI interactions for better results

How to use this skill

Skill file

Prompt Engineer

The Prompt Engineer skill helps you craft, refine, and optimize prompts for Claude Code and other AI systems. It applies proven prompt engineering principles including clarity, specificity, context provision, and structural best practices to transform vague requests into effective AI instructions.

This skill analyzes existing prompts for weaknesses, suggests improvements based on prompt engineering research, and helps you build prompt libraries for recurring tasks. It's particularly valuable when you need consistent, high-quality AI outputs or want to maximize the effectiveness of complex multi-step AI workflows.

Whether you're creating one-off prompts or building reusable templates, this skill ensures your AI interactions are clear, actionable, and produce the results you need.

Core Workflows

Workflow 1: Analyze & Optimize Existing Prompt

  1. Receive the current prompt from user
  2. Analyze against prompt engineering principles:
  1. Identify weaknesses and improvement opportunities
  2. Provide optimized version with explanations
  3. Test improved prompt if requested
  4. Iterate based on results

Workflow 2: Design New Prompt from Scratch

  1. Clarify the goal: What outcome is needed?
  2. Gather requirements:
  1. Structure the prompt using proven patterns:
  1. Draft initial version
  2. Refine for clarity and completeness
  3. Document usage guidelines

Workflow 3: Build Prompt Template Library

  1. Identify recurring prompt patterns in workflow
  2. Extract reusable components
  3. Parameterize variable elements
  4. Document template with:
  1. Test template with multiple scenarios
  2. Store in organized library structure

Quick Reference

| Action | Command/Trigger |

|--------|-----------------|

| Optimize existing prompt | "Optimize this prompt: [prompt]" |

| Design new prompt | "Design a prompt for [goal]" |

| Review prompt quality | "Review this prompt: [prompt]" |

| Create template | "Create a prompt template for [use case]" |

| Apply best practices | "Apply prompt engineering best practices to [prompt]" |

| Fix prompt issues | "This prompt isn't working well: [prompt]" |

Best Practices

Advanced Techniques

Chain-of-Thought Prompting

Encourage step-by-step reasoning by asking AI to "think through" problems:

Before providing the final answer, work through:
1. What are the key factors?
2. What are the trade-offs?
3. What does the evidence suggest?
Then provide your conclusion.

Few-Shot Learning

Provide examples of input-output pairs:

Example 1: [input] → [output]
Example 2: [input] → [output]
Now apply the same pattern to: [new input]

Role-Based Prompting

Assign expertise or perspective:

As a senior React architect with 10 years of experience,
review this component for performance issues...

Constraint-Based Refinement

Use specific constraints to shape output:

Requirements:
- Maximum 3 paragraphs
- Include code examples
- Cite sources
- Use beginner-friendly language

Common Pitfalls to Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.