Back to AI Tools & Agents

Prompt Engineer

llmprompt-engineeringautomationworkflowrefactoring
4.8 (50)857📄 MIT🕒 2026-03-13Source ↗

Install this skill

npx skills add solatis/claude-config

Works across Claude Code, Cursor, Codex, Copilot & Antigravity

What this skill does

  • Categorizes prompt tasks into specific engineering scopes
  • Executes an automated multi-step optimization workflow
  • Enforces strict context hygiene for prompt generation
  • Differentiates between greenfield development and maintenance
  • Standardizes interactions between related prompt ecosystems

When to use it

  • When an existing prompt frequently produces incorrect or inconsistent code
  • When drafting instructions for complex, multi-step LLM workflows
  • When building new prompts from scratch based on strict requirements
  • When managing a library of prompts that interact with each other

When not to use it

  • For simple, one-off questions that do not require reusable prompt logic
  • When you lack the time to follow a structured, multi-step refinement process

How to invoke it

Example prompts that trigger this skill:

  • Help me optimize my current system prompt.
  • I need to fix a prompt that keeps generating broken code.
  • Guide me through creating a new prompt for this feature.
  • Use the prompt engineer skill to refactor my instruction set.

Example workflow

  1. Identify a prompt needing optimization.
  2. Trigger the skill to initiate step 1 (triage).
  3. Review the suggested scope output from the triage phase.
  4. Execute step 2 using the determined scope flag.
  5. Iterate through subsequent steps based on script output until complete.

Prerequisites

  • python3
  • Claude Code environment

Pitfalls & limitations

  • !Attempting to manually intervene before the tool finishes its triage
  • !Ignoring the scope classification, which leads to suboptimal refinement paths
  • !Providing too much irrelevant context during the optimization process

FAQ

Should I analyze my prompt before running this tool?
No. The tool is designed to take control immediately. Analysis happens within the script's workflow.
What is the purpose of the triage step?
Triage defines the technical scope of the work, ensuring the script selects the correct optimization strategy for your specific problem.
Can I skip step 1?
No, step 1 is mandatory as it determines the necessary arguments for all subsequent steps in the workflow.

How it compares

Unlike manual prompt tweaking, this tool forces a formal triage phase and applies repeatable logic, preventing the accumulation of technical debt caused by vague or overly broad instructions.

Source & trust

857 stars📄 MIT🕒 Updated 2026-03-13🛡 no risky patterns found

From the source: “# Prompt Engineer When this skill activates, IMMEDIATELY invoke the script. The script IS the workflow. ## Invocation Start with step 1 (triage) to determine scope: <invoke working-dir=".claude/skills/scripts" cmd="python3 -m skills.prompt_engineer.optimize --step 1" /> Then continue with determined…”

View the full SKILL.md source

# Prompt Engineer

When this skill activates, IMMEDIATELY invoke the script. The script IS the
workflow.

## Invocation

Start with step 1 (triage) to determine scope:

<invoke working-dir=".claude/skills/scripts" cmd="python3 -m skills.prompt_engineer.optimize --step 1" />

Then continue with determined scope:

<invoke working-dir=".claude/skills/scripts" cmd="python3 -m skills.prompt_engineer.optimize --step 2 --scope <scope>" />

| Argument  | Required | Description                                   |
| --------- | -------- | --------------------------------------------- |
| `--step`  | Yes      | Current step (1 = triage, 2-6 = workflow)     |
| `--scope` | For 2+   | Required for steps 2-6. Determined by step 1. |

### Scopes

- **single-prompt**: One prompt file, general optimization
- **ecosystem**: Multiple related prompts that interact
- **greenfield**: No existing prompt, designing from requirements
- **problem**: Existing prompt(s) with specific issue to fix

Do NOT analyze or explore first. Run the script and follow its output.

Quoted from solatis/claude-config for reference — see the original for the authoritative, latest version.

📄 Full skill instructions — original source: solatis/claude-config
The Prompt Engineer skill provides a structured, automated framework for refining LLM instructions. Rather than relying on trial-and-error, this tool treats prompt development as an engineering discipline. It forces a triage phase to categorize the task—whether optimizing a single prompt, managing an ecosystem of interdependent instructions, creating a greenfield design, or troubleshooting specific logic failures—before executing a systematic optimization workflow. By moving beyond ad-hoc drafting, it mitigates the common issue of context drift and LLM hallucination, ensuring that instructions are concise, context-aware, and built for maintainability. Developers who integrate this into their Claude Code environment reduce technical debt by enforcing rigorous, step-by-step prompt planning. This skill turns prompt crafting into an repeatable process that produces reliable, production-ready outputs, minimizing the risk of silent failures when an LLM fails to interpret your implicit intent.

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/prompt-engineer/
  3. Save the file as SKILL.md
  4. The agent will automatically discover the skill based on its description.

Option B: Global Installation (All Agents)

Save the file to these locations to make it available across all projects:

  • Claude Code: ~/.claude/skills/solatis/claude-config/prompt-engineer/SKILL.md
  • Cursor: ~/.cursor/skills/solatis/claude-config/prompt-engineer/SKILL.md
  • Antigravity: ~/.gemini/antigravity/skills/solatis/claude-config/prompt-engineer/SKILL.md

🚀 Install with CLI:
npx skills add solatis/claude-config

Read the Master Guide: Mastering Agent Skills

Recommended Rules

View more rules

Recommended Workflows

View more workflows

Recommended MCP Servers

View more MCP servers

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid ai tools & agents issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under AI Tools & Agents and is published by solatis, maintained in solatis/claude-config.

← Browse All Agent Skills
Sponsored AI assistant. Recommendations may be paid.