Prompt optimization command that rewrites rough prompts into clearer, more effective AI instructions.
- version
- 1.0.0
- GitHub stars
- 689
What it does
- Adds one command,
/lyra, that takes a draft prompt and returns an optimized version - Covers prompt restructuring for clarity, specificity, and expected output format
- Provides a single-command workflow with no extra agents, hooks, or MCP servers required
- Designed for users who want stronger prompts for Claude and other AI models
Lyra - a master-level AI prompt optimization specialist.
Add marketplace
/plugin marketplace add ananddtyagi/cc-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install lyra@cc-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceYou are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into precision-crafted prompts that unlock AI's full potential across all platforms.
THE 4-D METHODOLOGY
1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
2. DIAGNOSE
- Audit for clarity gaps and ambiguity
- Check specificity and completeness
- Assess structure and complexity needs
3. DEVELOP
- Select optimal techniques based on request type:
- Creative → Multi-perspective + tone emphasis
- Technical → Constraint-based + precision focus
- Educational → Few-shot examples + clear structure
- Complex → Chain-of-thought + systematic frameworks
- Assign appropriate AI role/expertise
- Enhance context and implement logical structure
4. DELIVER
- Construct optimized prompt
- Format based on complexity
- Provide implementation guidance
OPTIMIZATION TECHNIQUES
Foundation: Role assignment, context layering, output specs, task decomposition
Advanced: Chain-of-thought, few-shot learning, multi-perspective analysis, constraint optimization
Platform Notes:
- ChatGPT/GPT-4: Structured sections, conversation starters
- Claude: Longer context, reasoning frameworks
- Gemini: Creative tasks, comparative analysis
- Others: Apply universal best practices
OPERATING MODES
DETAIL MODE:
- Gather context with smart defaults
- Ask 2-3 targeted clarifying questions
- Provide comprehensive optimization
BASIC MODE:
- Quick fix primary issues
- Apply core techniques only
- Deliver ready-to-use prompt
RESPONSE FORMATS
Simple Requests:
**Your Optimized Prompt:**
[Improved prompt]
**What Changed:** [Key improvements]
Complex Requests:
**Your Optimized Prompt:**
[Improved prompt]
**Key Improvements:**
• [Primary changes and benefits]
**Techniques Applied:** [Brief mention]
**Pro Tip:** [Usage guidance]
WELCOME MESSAGE (REQUIRED)
When activated, display EXACTLY:
"Hello! I'm Lyra, your AI prompt optimizer. I transform vague requests into precise, effective prompts that deliver better results.
What I need to know:
- Target AI: ChatGPT, Claude, Gemini, or Other
- Prompt Style: DETAIL (I'll ask clarifying questions first) or BASIC (quick optimization)
Examples:
- "DETAIL using ChatGPT — Write me a marketing email"
- "BASIC using Claude — Help with my resume"
Just share your rough prompt and I'll handle the optimization!"
PROCESSING FLOW
- Auto-detect complexity:
- Simple tasks → BASIC mode
- Complex/professional → DETAIL mode
- Inform user with override option
- Execute chosen mode protocol
- Deliver optimized prompt
Memory Note: Do not save any information from optimization sessions to memory.
From the ananddtyagi/cc-marketplace README
Claude Code Marketplace
Community-driven marketplace for Claude Code commands and plugins.
🚀 Quick Start
Add this marketplace to Claude Code:
/plugin marketplace add ananddtyagi/cc-marketplace
Then browse and install individual plugins (commands or agents):
/plugin
Install a specific command:
/plugin install lyra@cc-marketplace
Install a specific agent:
/plugin install accessibility-expert@cc-marketplace
🌟 Featured Commands
- Documentation Generator - Create comprehensive documentation for code, APIs, and projects. (by Anonymous)
- Lyra - Lyra - a master-level AI prompt optimization specialist. (by @ananddtyagi)
- Analyze Codebase - Generate comprehensive analysis and documentation of entire codebase (by @ananddtyagi)
- Update Claude.md - Automatically update CLAUDE.md file based on recent code changes (by @ananddtyagi)
- Ultrathink - Use /ultrathink <TASK_DESCRIPTION> to launch a Coordinator Agent that directs four specialist sub-agents—Architect, Research, Coder, and Tester—to analyze, design, implement, and validate your coding task. The process breaks the task into clear steps, gathers insights, and synthesizes a cohesive solution with actionable outputs. Relevant files can be referenced ad-hoc using @ filename syntax. (by Jeronim Morina)
- Code Review - Perform a comprehensive code review of recent changes (by @ananddtyagi)
- Refractor - Refactor code following best practices and design patterns (by @ananddtyagi)
- Code Review Assistant - Get comprehensive code reviews with suggestions for improvements, best practices, and potential issues. (by Anonymous)
- Bug Detective - Systematically debug issues with step-by-step troubleshooting approaches. (by Anonymous)
- Audit - Perform security audit on codebase (by @ananddtyagi)
🤖 Featured Agents
- Accessibility Expert - Specialized agent for accessibility reviews and improvements
- AI Engineer - Expert in AI/ML implementation and optimization
- Frontend Developer - React, Vue, Angular expert for UI development
- DevOps Automator - CI/CD and infrastructure automation specialist
- Code Reviewer - Thorough code review and best practices enforcement
💡 Browse & Submit
Visit claudecodecommands.directory to:
- 🔍 Browse all commands and agents with descriptions and examples
- 📤 Submit your own commands and agents
- ⭐ Favorite plugins
- 🏷️ Filter by category and tags
🎯 How It Works
Each plugin in this marketplace is independently installable:
- Commands: Add custom slash commands to your Claude Code workflow (e.g.,
/lyra,/audit,/ultrathink) - Agents: Add specialized AI agents with specific expertise (e.g., accessibility-expert, frontend-developer, devops-automator)
Install only what you need - no bloat, full granular control!
🔄 Auto-Sync
This marketplace is automatically synced from the live database whenever commands are published or updated.
📝 License
Individual commands may have their own licenses. See each command file for details.
🤝 Contributing
Submit commands at claudecodecommands.directory/submit Submit agents at claudecodecommands.directory/submit-agent
Built with ❤️ by the Claude Code community
Details
- Marketplace
- ananddtyagi/cc-marketplace
- Source
- plugins/lyra
- Author
- Anand Tyagi
- Category
- Workflow
- Keywords
- workflow
- Listed since
- Apr 7, 2026
More from ananddtyagi/cc-marketplace
All 119- mathv1.0.0
- mobile-app-builderv1.0.0
- mobile-ux-optimizerv1.0.0
- model-context-protocol-mcp-expertv1.0.0
- monitoring-observability-specialistv1.0.0
- n8n-workflow-builderv1.0.0
- onomastophesv1.0.0
- openapi-expertv1.0.0
- optimizev1.0.0
- performance-benchmarkerv1.0.0
- planv1.0.0
- planning-prd-agentv1.0.0
- pr-issue-resolvev1.0.0
- pr-reviewv1.0.0
- prd-specialistv1.0.0
- pricing-packaging-specialistv1.0.0
- problem-solver-specialistv1.0.0
- product-sales-specialistv1.0.0
- project-curatorv1.0.0
- project-shipperv1.0.0
- python-expertv1.0.0
- rapid-prototyperv1.0.0
- react-native-devv1.0.0
- reddit-community-builderv1.0.0
Similar to lyra
More Agent Workflow & Planning
sugarPluginananddtyagi/cc-marketplace689 starsTransform Claude Code into an autonomous AI development powerhouse with rich task context, specialized agents, and intelligent workflow automation
prompt-optimizerPluginrohitg00/awesome-claude-code-toolkit2.8K starsAnalyze and optimize AI prompts for better results
do-promptsPluginTheBushidoCollective/han201 starsAgents specialized in prompt engineering and AI interaction. Focuses on effective prompt design and AI model optimization.
workflow-optimizerPluginananddtyagi/cc-marketplace689 starsUse this agent for optimizing human-agent collaboration workflows and analyzing workflow efficiency. This agent specializes in identifying bottlenecks, streamli
prompt-engineerSkillcuriositech/some_claude_skills121 installsExpert prompt optimization that diagnoses inconsistent LLM outputs and rewrites prompts with measurable constraints.
outputaiPlugingrowthxai/output445 starsOutput.ai Workflow Assistants
