mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 17:47:16 +00:00
Consolidate workflows and tools from commands repository
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.
This commit is contained in:
53
tools/prompt-optimize.md
Normal file
53
tools/prompt-optimize.md
Normal file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
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.
|
||||
Reference in New Issue
Block a user