PR

prompt-engineer

Automatically optimizes your prompts using structured prompting frameworks.

Install

mkdir -p .claude/skills/prompt-engineer-tjsndhu && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15504" && unzip -o skill.zip -d .claude/skills/prompt-engineer-tjsndhu && rm skill.zip

Installs to .claude/skills/prompt-engineer-tjsndhu

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Transforms user prompts into optimized prompts using frameworks (RTF, RISEN, Chain of Thought, RODES, Chain of Density, RACE, RISE, STAR, SOAP, CLEAR, GROW)
156 charsno explicit “when” trigger
Beginner

Key capabilities

  • Analyze user intent from raw prompts
  • Detect task characteristics like type, complexity, and clarity
  • Ask clarifying questions when critical information is missing
  • Select optimal prompting frameworks based on task type
  • Blend multiple frameworks for complex tasks
  • Generate optimized prompts for various AI tasks

How it works

This skill analyzes user prompts to understand intent and task characteristics, then selects and applies suitable prompting frameworks to generate optimized prompts for AI models.

Inputs & outputs

You give it
Raw, unstructured user prompts (e.g., 'help me code Python')
You get back
Highly optimized prompts using established prompting frameworks

When to use prompt-engineer

  • Optimizing vague prompts
  • Implementing chain-of-thought
  • Improving ai model reasoning

About this skill

Purpose

This skill transforms raw, unstructured user prompts into highly optimized prompts using established prompting frameworks. It analyzes user intent, identifies task complexity, and intelligently selects the most appropriate framework(s) to maximize Claude/ChatGPT output quality.

The skill operates in "magic mode" - it works silently behind the scenes, only interacting with users when clarification is critically needed. Users receive polished, ready-to-use prompts without technical explanations or framework jargon.

This is a universal skill that works in any terminal context, not limited to Obsidian vaults or specific project structures.

When to Use

Invoke this skill when:

  • User provides a vague or generic prompt (e.g., "help me code Python")
  • User has a complex idea but struggles to articulate it clearly
  • User's prompt lacks structure, context, or specific requirements
  • Task requires step-by-step reasoning (debugging, analysis, design)
  • User needs a prompt for a specific AI task but doesn't know prompting frameworks
  • User wants to improve an existing prompt's effectiveness
  • User asks variations of "how do I ask AI to..." or "create a prompt for..."

Workflow

Step 1: Analyze Intent

Objective: Understand what the user truly wants to accomplish.

Actions:

  1. Read the raw prompt provided by the user
  2. Detect task characteristics:
    • Type: coding, writing, analysis, design, learning, planning, decision-making, creative, etc.
    • Complexity: simple (one-step), moderate (multi-step), complex (requires reasoning/design)
    • Clarity: clear intention vs. ambiguous/vague
    • Domain: technical, business, creative, academic, personal, etc.
  3. Identify implicit requirements:
    • Does user need examples?
    • Is output format specified?
    • Are there constraints (time, resources, scope)?
    • Is this exploratory or execution-focused?

Detection Patterns:

  • Simple tasks: Short prompts (<50 chars), single verb, no context
  • Complex tasks: Long prompts (>200 chars), multiple requirements, conditional logic
  • Ambiguous tasks: Generic verbs ("help", "improve"), missing object/context
  • Structured tasks: Mentions steps, phases, deliverables, stakeholders

Step 2: Ask Clarifying Questions (Conditional)

Objective: Gather missing information only when it is critical to framework selection or prompt quality.

Trigger Conditions — ask only if:

  • Task type is completely ambiguous (cannot determine coding vs. writing vs. analysis)
  • Target audience is unknown and materially affects the output
  • Scope is undefined and choosing wrong scope would invalidate the prompt
  • Requested output format conflicts or is missing and cannot be inferred

Question Limits:

  • Maximum 3 questions per invocation
  • Combine related questions into one when possible
  • If enough context exists, skip this step entirely (most cases)

Example Clarifying Exchange:

User: "help me with AI"

Step 2 (triggered — task type ambiguous):
"To craft the best prompt, I need one quick clarification:
1. What do you want to do with AI — build something, learn about it, or use an AI tool for a task?"

Critical Rule: When in doubt, skip clarification and generate the best prompt with available context. Over-asking breaks the "magic mode" experience.

Step 3: Select Framework(s)

Objective: Map task characteristics to optimal prompting framework(s).

Framework Mapping Logic:

Task TypeRecommended Framework(s)Rationale
Role-based tasks (act as expert, consultant)RTF (Role-Task-Format)Clear role definition + task + output format
Step-by-step reasoning (debugging, proof, logic)Chain of ThoughtEncourages explicit reasoning steps
Structured projects (multi-phase, deliverables)RISEN (Role, Instructions, Steps, End goal, Narrowing)Comprehensive structure for complex work
Complex design/analysis (systems, architecture)RODES (Role, Objective, Details, Examples, Sense check)Balances detail with validation
Summarization (compress, synthesize)Chain of DensityIterative refinement to essential info
Communication (reports, presentations, storytelling)RACE (Role, Audience, Context, Expectation)Audience-aware messaging
Investigation/analysis (research, diagnosis)RISE (Research, Investigate, Synthesize, Evaluate)Systematic analytical approach
Contextual situations (problem-solving with background)STAR (Situation, Task, Action, Result)Context-rich problem framing
Documentation (medical, technical, records)SOAP (Subjective, Objective, Assessment, Plan)Structured information capture
Goal-setting (OKRs, objectives, targets)CLEAR (Collaborative, Limited, Emotional, Appreciable, Refinable)Goal clarity and actionability
Coaching/development (mentoring, growth)GROW (Goal, Reality, Options, Will)Developmental conversation structure

Blending Strategy:

  • Combine 2-3 frameworks when task spans multiple types
  • Example: Complex technical project → RODES + Chain of Thought (structure + reasoning)
  • Example: Leadership decision → CLEAR + GROW (goal clarity + development)

Selection Criteria:

  • Primary framework = best match to core task type
  • Secondary framework(s) = address additional complexity dimensions
  • Avoid over-engineering: simple tasks get simple frameworks

Critical Rule: This selection happens silently - do not explain framework choice to user.

Role: You are a senior software architect. [RTF - Role]

Objective: Design a microservices architecture for [system]. [RODES - Objective]

Approach this step-by-step: [Chain of Thought]

  1. Analyze current monolithic constraints
  2. Identify service boundaries
  3. Design inter-service communication
  4. Plan data consistency strategy

Details: [RODES - Details]

  • Expected traffic: [X]
  • Data volume: [Y]
  • Team size: [Z]

Output Format: [RTF - Format] Provide architecture diagram description, service definitions, and migration roadmap.

Sense Check: [RODES - Sense check] Validate that services are loosely coupled, independently deployable, and aligned with business domains.


**4.5. Language Adaptation**
- If original prompt is in Portuguese, generate prompt in Portuguese
- If original prompt is in English, generate prompt in English
- If mixed, default to English (more universal for AI models)

**4.6. Quality Checks**
Before finalizing, verify:
- [ ] Prompt is self-contained (no external context needed)
- [ ] Task is specific and measurable
- [ ] Output format is clear
- [ ] No ambiguous language
- [ ] Appropriate level of detail for task complexity


## Critical Rules

### **NEVER:**

- ❌ Assume information that wasn't provided - ALWAYS ask if critical details are missing
- ❌ Explain which framework was selected or why (magic mode - keep it invisible)
- ❌ Generate generic, one-size-fits-all prompts - always customize to context
- ❌ Use technical jargon in the final prompt (unless user's domain is technical)
- ❌ Ask more than 3 clarifying questions (avoid user fatigue)
- ❌ Include meta-commentary in the output ("This prompt uses...", "Note that...")
- ❌ Present output without code block formatting
- ❌ Mix languages inconsistently (if user writes in PT, respond in PT)

### **ALWAYS:**

- ✅ Analyze intent before generating (Step 1 is mandatory)
- ✅ Ask clarifying questions if critical information is ambiguous (Step 2 conditional)
- ✅ Select framework(s) based on task type and complexity (Step 3 mapping)
- ✅ Blend multiple frameworks when it improves prompt quality
- ✅ Adapt prompt length to original input complexity (simple → short, complex → detailed)
- ✅ Include output format specification in generated prompts
- ✅ Present final prompt in clean Markdown code block
- ✅ Make prompts self-contained (no dependency on external context)
- ✅ Use examples in complex prompts to illustrate expected output
- ✅ Validate prompt completeness before presenting (quality checks in Step 4.6)


### **Example 2: Complex Clear Prompt → RODES + Chain of Thought (No Clarification)**

**User Input:**

copilot> create prompt for: I need to build a product recommendation system considering purchase history, user preferences, and market trends


**Skill Internal Process:**
1. **Analyze:** Clear intent, complex task (ML system design), technical domain
2. **Clarify:** Skip (sufficient information)
3. **Select:** RODES (complex design) + Chain of Thought (reasoning needed)

**Skill Output:**

````markdown

Role: You are a senior machine learning engineer specializing in recommendation systems.

Objective: Design a product recommendation system that combines user purchase history, preferences, and market trends.

Details:

  • Input data sources: user transaction logs, preference surveys, market trend APIs
  • Algorithm considerations: collaborative filtering, content-based filtering, hybrid approaches
  • Performance metrics: precision, recall, diversity, novelty
  • Scalability: system must handle 100k+ users
  • Real-time constraints: recommendations updated within 500ms

Approach step-by-step:

  1. Analyze the three data sources and their relationships
  2. Propose 2-3 algorithm approaches with trade-offs analysis
  3. Design data pipeline architecture (ingestion, processing, serving)
  4. Define evaluation metrics and A/B testing strategy
  5. Outline implementation roadmap with phases

Examples:

  • Show pseudocode for core recommendation logic
  • Illustrate data flow diagram
  • Provide sample API response structure

Sense Check: Validate that the proposed solution balances personalization with discovery, scales to production load, and incorporates real-time market trends effectively.

Output format: Technical design document with architecture diagrams, algorithm justification, and imp


Content truncated.

When not to use it

  • When the output is treated as a substitute for validation or expert review
  • When required inputs, permissions, or safety boundaries are missing

Limitations

  • Maximum 3 clarifying questions per invocation
  • Skip clarification if enough context exists
  • This skill is platform-agnostic

How it compares

This skill automatically applies structured prompting frameworks to user input, providing a refined prompt that improves AI output quality compared to using a raw, unoptimized prompt.

Compared to similar skills

prompt-engineer side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
prompt-engineer (this skill)03moNo flagsBeginner
prompt-optimizer436moNo flagsBeginner
prompt-optimize139moNo flagsAdvanced
ai-cost-optimizer95moCautionIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

prompt-optimizer

solatis

Optimize system prompts for Claude Code agents using proven prompt engineering patterns. Use when users request prompt improvement, optimization, or refinement for agent workflows, tool instructions, or system behaviors.

43147

prompt-optimize

YYH211

Expert prompt engineering skill that transforms Claude into "Alpha-Prompt" - a master prompt engineer who collaboratively crafts high-quality prompts through flexible dialogue. Activates when user asks to "optimize prompt", "improve system instruction", "enhance AI instruction", or mentions prompt engineering tasks.

13113

ai-cost-optimizer

ScientiaCapital

Save 40-70% on AI costs with intelligent multi-LLM routing. Automatically selects the optimal model based on task complexity across 40+ models from 8 providers.

990

prompt-library

davila7

Curated collection of high-quality prompts for various use cases. Includes role-based prompts, task-specific templates, and prompt refinement techniques. Use when user needs prompt templates, role-play prompts, or ready-to-use prompt examples for coding, writing, analysis, or creative tasks.

1169

context-compression

muratcankoylan

This skill should be used when the user asks to "compress context", "summarize conversation history", "implement compaction", "reduce token usage", or mentions context compression, structured summarization, tokens-per-task optimization, or long-running agent sessions exceeding context limits.

1350

prompt-lookup

f

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.

738

Search skills

Search the agent skills registry