prompt-improver

GitHub

用于优化用户提示词,通过澄清平台、优先级等上下文,将模糊请求转化为清晰、具体、可执行的指令,以提升AI响应质量。

skills/prompt-improver/SKILL.md happycapy-ai/Happycapy-skills

Trigger Scenarios

用户要求改进或优化提示词 使用/improve-prompt命令

Install

npx skills add happycapy-ai/Happycapy-skills --skill prompt-improver -g -y
More Options

Use without installing

npx skills use happycapy-ai/Happycapy-skills@prompt-improver

指定 Agent (Claude Code)

npx skills add happycapy-ai/Happycapy-skills --skill prompt-improver -a claude-code -g -y

安装 repo 全部 skill

npx skills add happycapy-ai/Happycapy-skills --all -g -y

预览 repo 内 skill

npx skills add happycapy-ai/Happycapy-skills --list

SKILL.md

Frontmatter
{
    "name": "prompt-improver",
    "description": "Optimize prompts for better AI responses. Use when user asks to improve a prompt, refine a prompt, make a prompt better, optimize prompting, review their prompt, or says \"\/improve-prompt\". Transforms vague requests into clear, specific, actionable prompts."
}

Prompt Improver

Transform vague prompts into clear, specific, actionable ones for better AI responses.

Workflow

  1. Gather context - Use AskUserQuestion to clarify:

    • Target platform (Claude Code, ChatGPT, API, image gen)
    • Priority (accuracy, speed, depth, creativity)
    • Missing context (technical stack, constraints, examples)
  2. Analyze - Identify what's unclear, missing, or ambiguous

  3. Improve - Apply the framework (see references/framework.md)

  4. Present - Show improved prompt with key changes explained

  5. Refine - Ask if user wants adjustments

AskUserQuestion Templates

Initial clarification:

questions:
  - header: "Platform"
    question: "What will you use this prompt for?"
    options:
      - label: "Claude Code"
        description: "Coding, file ops, terminal"
      - label: "ChatGPT/Claude.ai"
        description: "General conversation"
      - label: "API/Automation"
        description: "Programmatic use"
      - label: "Image gen"
        description: "DALL-E, Midjourney, etc."
  - header: "Priority"
    question: "What matters most?"
    options:
      - label: "Accuracy"
        description: "Correctness is critical"
      - label: "Speed"
        description: "Quick, concise"
      - label: "Depth"
        description: "Comprehensive"
      - label: "Creativity"
        description: "Novel approaches"

Post-improvement:

header: "Refine"
question: "Adjust the improved prompt?"
options:
  - label: "Looks good"
    description: "Use as-is"
  - label: "More specific"
    description: "Add constraints"
  - label: "More concise"
    description: "Shorten"
  - label: "Different focus"
    description: "Change emphasis"

Output Format

## Analysis
[Brief issues/opportunities]

## Improved Prompt
[Ready-to-use prompt]

## Key Changes
- [Change]: [Why]

Quick Mode

If user says "quick improve", skip questions and make reasonable assumptions. Note assumptions made.

Aristotelian Mode (First Principles)

Activated when user says "Aristotelian", "first principles", or "proof-based". Instead of the standard framework, produce a prompt that instructs the receiving LLM to reason from first principles when executing the task.

The prompt-improver does NOT do the Aristotelian reasoning itself. It crafts a prompt that tells the LLM to:

  1. Gather context from user - Ask what system capabilities, tools, and constraints exist. Bake known context (root access, AI model, available tools, domain) directly into the prompt as given axioms.

  2. Embed the reasoning directive - The improved prompt tells the LLM to:

    • Identify the atomic, irreducible truths of the task before acting
    • Interrogate each truth: "Can this be decomposed further? If removed, does the task break? Does it contradict anything?"
    • Discard anything that is not strictly necessary
    • Build the solution deductively, where every action traces to a stated axiom
    • Verify the result against the axioms at the end
  3. Structure the output prompt with these sections:

    REASONING DIRECTIVE: [Instruct the LLM to use first-principles reasoning]
    GIVEN AXIOMS: [Known truths about system, capabilities, domain -- baked in]
    TASK: [What to accomplish]
    METHOD: [Tell LLM to discover task-specific axioms, interrogate them, then build deductively]
    VERIFICATION: [Tell LLM to check its result against its axioms]
    

Output format for Aristotelian mode:

## Analysis
[What context was embedded and why]

## Improved Prompt (Aristotelian)
[The complete prompt with reasoning directive, given axioms, task, method, and verification]

## What This Prompt Does
- Tells the LLM to [specific reasoning behavior]
- Bakes in [specific context] so the LLM does not hallucinate it

See references/aristotelian.md for the full methodology and prompt structure.

References

  • Framework details: See references/framework.md for the 6-principle improvement framework
  • Aristotelian mode: See references/aristotelian.md for the proof-based first principles methodology
  • Examples: See references/examples.md for before/after transformations
  • Anti-patterns: See references/anti-patterns.md for common issues to fix

Version History

  • e2976bc Current 2026-08-20 07:46

Same Skill Collection

skills/3d-web-experience/SKILL.md
skills/better-auth-best-practices/SKILL.md
skills/building-native-ui/SKILL.md
skills/canvas-design/SKILL.md
skills/capy-cortex/SKILL.md
skills/capy-video-gen-skill/SKILL.md
skills/contract-first-agents/SKILL.md
skills/create-design-system-rules/SKILL.md
skills/data-storytelling/SKILL.md
skills/frontend-slides/SKILL.md
skills/gbro-collage-broll/SKILL.md
skills/goplaces/SKILL.md
skills/happycapy-feishu/SKILL.md
skills/happycapy-skill-creator/SKILL.md
skills/image-enhancer/SKILL.md
skills/mobile-design/SKILL.md
skills/next-best-practices/SKILL.md
skills/oss-contributor-swarm/SKILL.md
skills/pdf/SKILL.md
skills/pptx/SKILL.md
skills/redbook-creator-publish/SKILL.md
skills/reddit-post-skill/SKILL.md
skills/reddit-post-writer/SKILL.md
skills/resume-assistant/SKILL.md
skills/skill-creator/SKILL.md
skills/slack-gif-creator/SKILL.md
skills/supabase-postgres-best-practices/SKILL.md
skills/treatment-plans/SKILL.md
skills/video-downloader/SKILL.md
skills/video-frames/SKILL.md
skills/weather/SKILL.md
skills/writing-clearly-and-concisely/SKILL.md
skills/xiaohongshu-recruiter/SKILL.md
skills/youtube-music/SKILL.md
skills/360-panorama-viewer/SKILL.md
skills/apricot-ritual/SKILL.md
skills/azure-host/SKILL.md
skills/botanical-blur/SKILL.md
skills/coral-geyser/SKILL.md
skills/find-skills/SKILL.md
skills/html-over-markdown/SKILL.md
skills/latex-document/SKILL.md
skills/llm-council/SKILL.md
skills/mobile-app-developer/SKILL.md
skills/olive-rose/SKILL.md
skills/signal-green/SKILL.md
skills/world-class-carousel/SKILL.md
skills/ai-image-generation/SKILL.md
skills/ai-video-generation/SKILL.md

Metadata

Files
0
Version
e2976bc
Hash
7d1f3102
Indexed
2026-08-20 07:46

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 09:26
浙ICP备14020137号-1 $Carte des visiteurs$