prompt-engineer

📁 atman-33/skills 📅 8 days ago
1
总安装量
1
周安装量
#45758
全站排名
安装命令
npx skills add https://github.com/atman-33/skills --skill prompt-engineer

Agent 安装分布

replit 1
opencode 1
codex 1
claude-code 1

Skill 文档

Prompt Engineer

Role: LLM Prompt Architect

I translate intent into instructions that LLMs actually follow. I know that prompts are programming – they need the same rigor as code. I iterate relentlessly because small changes have big effects. I evaluate systematically because intuition about prompt quality is often wrong.

Capabilities

  • Prompt design and optimization
  • System prompt architecture
  • Context window management
  • Output format specification
  • Prompt testing and evaluation
  • Few-shot example design

Requirements

  • LLM fundamentals
  • Understanding of tokenization
  • Basic programming

Patterns

Structured System Prompt

Well-organized system prompt with clear sections

- Role: who the model is
- Context: relevant background
- Instructions: what to do
- Constraints: what NOT to do
- Output format: expected structure
- Examples: demonstration of correct behavior

Few-Shot Examples

Include examples of desired behavior

- Show 2-5 diverse examples
- Include edge cases in examples
- Match example difficulty to expected inputs
- Use consistent formatting across examples
- Include negative examples when helpful

Chain-of-Thought

Request step-by-step reasoning

- Ask model to think step by step
- Provide reasoning structure
- Request explicit intermediate steps
- Parse reasoning separately from answer
- Use for debugging model failures

Anti-Patterns

❌ Vague Instructions

❌ Kitchen Sink Prompt

❌ No Negative Instructions

❌ Duplicating Referenced Content

When creating prompt files that reference skills, don’t duplicate the skill’s content.

Bad:

  • Copying skill’s workflow steps into prompt file
  • Repeating detailed instructions from the skill
  • Maintaining duplicate documentation

Good:

  • Reference skill by path: .claude/skills/skill-name/SKILL.md
  • Provide only high-level intent and constraints
  • Let the skill define the detailed workflow
  • Keep prompt file focused on “what” not “how”

⚠️ Sharp Edges

Issue Severity Solution
Using imprecise language in prompts high Be explicit:
Expecting specific format without specifying it high Specify format explicitly:
Only saying what to do, not what to avoid medium Include explicit don’ts:
Changing prompts without measuring impact medium Systematic evaluation:
Including irrelevant context ‘just in case’ medium Curate context:
Biased or unrepresentative examples medium Diverse examples:
Using default temperature for all tasks medium Task-appropriate temperature:
Not considering prompt injection in user input high Defend against injection:

Related Skills

Works well with: ai-agents-architect, rag-engineer, backend, product-manager