mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
Repository Restructure: - Move all 83 agent .md files to agents/ subdirectory - Add 15 workflow orchestrators from commands repo to workflows/ - Add 42 development tools from commands repo to tools/ - Update README for unified repository structure The commands repository functionality is now fully integrated, providing complete workflow orchestration and development tooling alongside agents. Directory Structure: - agents/ - 83 specialized AI agents - workflows/ - 15 multi-agent orchestration commands - tools/ - 42 focused development utilities No breaking changes to agent functionality - all agents remain accessible with same names and behavior. Adds workflow and tool commands for enhanced multi-agent coordination capabilities.
54 lines
1.4 KiB
Markdown
54 lines
1.4 KiB
Markdown
---
|
|
model: claude-sonnet-4-0
|
|
---
|
|
|
|
# AI Prompt Optimization
|
|
|
|
Optimize the following prompt for better AI model performance: $ARGUMENTS
|
|
|
|
Analyze and improve the prompt by:
|
|
|
|
1. **Prompt Engineering**:
|
|
- Apply chain-of-thought reasoning
|
|
- Add few-shot examples
|
|
- Implement role-based instructions
|
|
- Use clear delimiters and formatting
|
|
- Add output format specifications
|
|
|
|
2. **Context Optimization**:
|
|
- Minimize token usage
|
|
- Structure information hierarchically
|
|
- Remove redundant information
|
|
- Add relevant context
|
|
- Use compression techniques
|
|
|
|
3. **Performance Testing**:
|
|
- Create prompt variants
|
|
- Design evaluation criteria
|
|
- Test edge cases
|
|
- Measure consistency
|
|
- Compare model outputs
|
|
|
|
4. **Model-Specific Optimization**:
|
|
- GPT-4 best practices
|
|
- Claude optimization techniques
|
|
- Prompt chaining strategies
|
|
- Temperature/parameter tuning
|
|
- Token budget management
|
|
|
|
5. **RAG Integration**:
|
|
- Context window management
|
|
- Retrieval query optimization
|
|
- Chunk size recommendations
|
|
- Embedding strategies
|
|
- Reranking approaches
|
|
|
|
6. **Production Considerations**:
|
|
- Prompt versioning
|
|
- A/B testing framework
|
|
- Monitoring metrics
|
|
- Fallback strategies
|
|
- Cost optimization
|
|
|
|
Provide optimized prompts with explanations for each change. Include evaluation metrics and testing strategies. Consider both quality and cost efficiency.
|