{"aiPlatform":"claude-code@2025.06","category":"performance-optimization","commandName":"/prompt-optimize","content":"---\nname: AI Prompt Optimization\ndescription: Optimize prompts for better AI model performance using chain-of-thought reasoning, few-shot examples, and advanced prompt engineering techniques.\nallowed_tools:\n  - filesystem      # Access prompt templates and examples\n  - memory          # Track optimization patterns and performance metrics\n  - sqlite          # Store prompt variations and effectiveness data\ntags:\n  - prompt-engineering\n  - ai-optimization\n  - chain-of-thought\n  - few-shot-learning\n  - performance-tuning\ncategory: development\nversion: 1.0.0\nauthor: AI Commands Team\n---\n\n# AI Prompt Optimization\n\nOptimize the following prompt for better AI model performance: $ARGUMENTS\n\nAnalyze and improve the prompt by:\n\n1. **Prompt Engineering**:\n   - Apply chain-of-thought reasoning\n   - Add few-shot examples\n   - Implement role-based instructions\n   - Use clear delimiters and formatting\n   - Add output format specifications\n\n2. **Context Optimization**:\n   - Minimize token usage\n   - Structure information hierarchically\n   - Remove redundant information\n   - Add relevant context\n   - Use compression techniques\n\n3. **Performance Testing**:\n   - Create prompt variants\n   - Design evaluation criteria\n   - Test edge cases\n   - Measure consistency\n   - Compare model outputs\n\n4. **Model-Specific Optimization**:\n   - GPT-4 best practices\n   - Claude optimization techniques\n   - Prompt chaining strategies\n   - Temperature/parameter tuning\n   - Token budget management\n\n5. **RAG Integration**:\n   - Context window management\n   - Retrieval query optimization\n   - Chunk size recommendations\n   - Embedding strategies\n   - Reranking approaches\n\n6. **Production Considerations**:\n   - Prompt versioning\n   - A/B testing framework\n   - Monitoring metrics\n   - Fallback strategies\n   - Cost optimization\n\nProvide optimized prompts with explanations for each change. Include evaluation metrics and testing strategies. Consider both quality and cost efficiency.","contentHash":"a47e2db9110db6f70adcc8d20dd295c8adf6384af68627ed991847928444cab7","copies":0,"createdAt":"2025-08-12T16:09:35.899Z","description":"Optimize AI prompts for performance and quality","github":{"repoUrl":"https://github.com/Commands-com/commands","lastSyncDirection":"from-github","metadata":{"importedFrom":"github_repository","repoPrivate":false,"repoDefaultBranch":"main","connectedAt":"2025-08-12T16:09:35.899Z"},"importedAt":"2025-08-12T16:09:35.899Z","lastSyncAt":"2025-08-17T17:57:49.418Z","fileMapping":{"license":null,"readme":null,"assets":[],"mainFile":"tools/prompt-optimize.md"},"selectedCommand":"prompt-optimize","fileShas":{"mainFile":"ce345256ce451c306cff0cb0751a40655ae67fd7","yamlPath":"313647b1fb381389da33b7913e95baf617c4b392"},"branch":"main","connectionType":"commands_yaml","connected":true,"lastSyncCommit":"01591bc061d236bde47bf23b0f47e8afcf1a5144","importSource":"repository_import","installationId":"69232615","syncStatus":"synced"},"githubRepoUrl":"https://github.com/Commands-com/commands","id":"f9457b16-794d-44bf-bd0f-4e5ab7dd3d7c","inputParameters":[{"defaultValue":"accuracy","name":"optimization_goal","options":["accuracy","speed","cost","consistency","safety","balanced"],"description":"What to optimize the prompts for","label":"Optimization Goal","type":"select","required":false}],"instructions":"Optimize AI prompts for performance and quality","likes":0,"mcp_search_content":"","organizationUsername":"commands-com","price":"free","search_content":"prompt optimize optimize ai prompts for performance and quality /prompt-optimize performance-optimization claude-code@2025.06","title":"Prompt Optimize","type":"command","updatedAt":"2025-08-17T17:57:49.418Z","userId":"W0V8NAw5AhWRwcuwSoFLOi1Yem83","visibility":"public","name":"prompt-optimize","userInteraction":{"userHasStarred":false}}