Commit Graph

2 Commits

  • feat(skills): add prompt-optimizer skill and /prompt-optimize command (#418)
    * feat(skills): add prompt-optimizer skill and /prompt-optimize command
    
    Adds a prompt-optimizer skill that analyzes draft prompts, matches them
    to ECC components (skills/commands/agents), and outputs a ready-to-paste
    optimized prompt. Advisory role only — never executes the task.
    
    Features:
    - 6-phase analysis pipeline (project detection, intent, scope, component
      matching, missing context, workflow + model recommendation)
    - Auto-detects project tech stack from package.json, go.mod, etc.
    - Maps intents to ECC commands, skills, and agents by type and tech stack
    - Recommends correct model tier (Sonnet vs Opus) based on task complexity
    - Outputs Full + Quick versions of the optimized prompt
    - Hard gate: never executes the task, only produces advisory output
    - AskUserQuestion trigger when 3+ critical context items are missing
    - Multi-prompt splitting guidance for HIGH/EPIC scope tasks
    - Feedback footer for iterative refinement
    
    Also adds /prompt-optimize command as an explicit invocation entry point.
    
    * fix: keep prompt optimizer advisory-only
    
    * fix: refine prompt optimizer guidance
    
    ---------
    
    Co-authored-by: Affaan Mustafa <affaan@dcube.ai>