prompt-enhancer

110
8
Source

Transform vague prompts into actionable specs using intelligent analysis and session memory. Use when user input contains -e or --enhance flag.

Install

mkdir -p .claude/skills/prompt-enhancer && curl -L -o skill.zip "https://mcp.directory/api/skills/download/189" && unzip -o skill.zip -d .claude/skills/prompt-enhancer && rm skill.zip

Installs to .claude/skills/prompt-enhancer

About this skill

Prompt Enhancer

Transform: Vague intent → Structured specification (Memory-based, Direct Output)

Languages: English + Chinese (中英文语义识别)

Process (Internal → Direct Output)

Internal Analysis: Intelligently extract session context, identify tech stack, and structure into actionable format.

Output: Direct structured prompt (no intermediate steps shown)

Output Format

Dynamic Structure: Adapt fields based on task type and context needs. Not all fields are required.

Core Fields (always present):

  • INTENT: One-sentence technical goal
  • ACTION: Concrete steps with technical details

Optional Fields (include when relevant):

  • TECH STACK: Relevant technologies (when tech-specific)
  • CONTEXT: Session memory findings (when context matters)
  • ATTENTION: Critical constraints (when risks/requirements exist)
  • SCOPE: Affected modules/files (for multi-module tasks)
  • METRICS: Success criteria (for optimization/performance tasks)
  • DEPENDENCIES: Related components (for integration tasks)

Example (Simple Task):

📋 ENHANCED PROMPT

INTENT: Fix authentication token validation in JWT middleware

ACTION:
1. Review token expiration logic in auth middleware
2. Add proper error handling for expired tokens
3. Test with valid/expired/malformed tokens

Example (Complex Task):

📋 ENHANCED PROMPT

INTENT: Optimize API performance with caching and database indexing

TECH STACK:
- Redis: Response caching
- PostgreSQL: Query optimization

CONTEXT:
- API response times >2s mentioned in previous conversation
- PostgreSQL slow query logs show N+1 problems

ACTION:
1. Profile endpoints to identify slow queries
2. Add PostgreSQL indexes on frequently queried columns
3. Implement Redis caching for read-heavy endpoints
4. Add cache invalidation on data updates

METRICS:
- Target: <500ms API response time
- Cache hit ratio: >80%

ATTENTION:
- Maintain backward compatibility with existing API contracts
- Handle cache invalidation correctly to avoid stale data

Workflow

Trigger (-e/--enhance) → Internal Analysis → Dynamic Output
         ↓                       ↓                  ↓
   User Input           Assess Task Type      Select Fields
                    Extract Memory Context    Structure Prompt
  1. Detect: User input contains -e or --enhance
  2. Analyze:
    • Determine task type (fix/optimize/implement/refactor)
    • Extract relevant session context
    • Identify tech stack and constraints
  3. Structure:
    • Always include: INTENT + ACTION
    • Conditionally add: TECH STACK, CONTEXT, ATTENTION, METRICS, etc.
  4. Output: Present dynamically structured prompt

Enhancement Guidelines (Internal)

Always Include:

  • Clear, actionable INTENT
  • Concrete ACTION steps with technical details

Add When Relevant:

  • TECH STACK: Task involves specific technologies
  • CONTEXT: Session memory provides useful background
  • ATTENTION: Security/compatibility/performance concerns exist
  • SCOPE: Multi-module or cross-component changes
  • METRICS: Performance/optimization goals need measurement
  • DEPENDENCIES: Integration points matter

Quality Checks:

  • Make vague intent explicit
  • Resolve ambiguous references
  • Add testing/validation steps
  • Include constraints from memory

Best Practices

  • ✅ Trigger only on -e/--enhance flags
  • ✅ Use dynamic field selection based on task type
  • ✅ Extract memory context ONLY (no file reading)
  • ✅ Always include INTENT + ACTION as core fields
  • ✅ Add optional fields only when relevant to task
  • ✅ Direct output (no intermediate steps shown)
  • ❌ NO tool calls
  • ❌ NO file operations (Bash, Read, Glob, Grep)
  • ❌ NO fixed template - adapt to task needs

copyright-docs

catlog22

Generate software copyright design specification documents compliant with China Copyright Protection Center (CPCC) standards. Creates complete design documents with Mermaid diagrams based on source code analysis. Use for software copyright registration, generating design specification, creating CPCC-compliant documents, or documenting software for intellectual property protection. Triggers on "软件著作权", "设计说明书", "版权登记", "CPCC", "软著申请".

4110

command-guide

catlog22

Workflow command guide for Claude DMS3 (78 commands). Search/browse commands, get next-step recommendations, view documentation, report issues. Triggers "CCW-help", "CCW-issue", "ccw-help", "ccw-issue", "ccw"

984

clean

catlog22

Intelligent code cleanup with mainline detection, stale artifact discovery, and safe execution. Supports targeted cleanup and confirmation.

104

compact

catlog22

Compact current session memory into structured text for session recovery. Supports custom descriptions and tagging.

93

software-manual

catlog22

Generate interactive TiddlyWiki-style HTML software manuals with screenshots, API docs, and multi-level code examples. Use when creating user guides, software documentation, or API references. Triggers on "software manual", "user guide", "generate manual", "create docs".

192

review-code

catlog22

Multi-dimensional code review with structured reports. Analyzes correctness, readability, performance, security, testing, and architecture. Triggers on "review code", "code review", "审查代码", "代码审查".

22

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,5611,368

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,0941,178

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,4071,106

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,180741

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,138682

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,288604

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.