// Transform vague prompts into actionable specs using intelligent analysis and session memory. Use when user input contains -e or --enhance flag.
| name | Prompt Enhancer |
| description | Transform vague prompts into actionable specs using intelligent analysis and session memory. Use when user input contains -e or --enhance flag. |
| allowed-tools | (none) |
Transform: Vague intent → Structured specification (Memory-based, Direct Output)
Languages: English + Chinese (中英文语义识别)
Internal Analysis: Intelligently extract session context, identify tech stack, and structure into actionable format.
Output: Direct structured prompt (no intermediate steps shown)
Dynamic Structure: Adapt fields based on task type and context needs. Not all fields are required.
Core Fields (always present):
Optional Fields (include when relevant):
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
Trigger (-e/--enhance) → Internal Analysis → Dynamic Output
↓ ↓ ↓
User Input Assess Task Type Select Fields
Extract Memory Context Structure Prompt
-e or --enhanceAlways Include:
Add When Relevant:
Quality Checks:
-e/--enhance flags