174 lines
5.5 KiB
Markdown
174 lines
5.5 KiB
Markdown
---
|
|
name: advanced-prompt-crafter
|
|
title: Advanced Prompt Crafter
|
|
description: A sophisticated multi-layered prompt engineering system with analysis, optimization, customization, and validation engines for creating high-quality, domain-specific prompts
|
|
category: development-tools
|
|
tags:
|
|
- prompt-engineering
|
|
- ai-assistance
|
|
- productivity
|
|
- content-creation
|
|
- automation
|
|
- analysis
|
|
version: 1.0.0
|
|
author: Eduardo Menoncello
|
|
license: MIT
|
|
repository: https://github.com/bmad/bmm/skills/advanced-prompt-crafter
|
|
homepage: https://github.com/bmad/bmm/skills/advanced-prompt-crafter#readme
|
|
bugs: https://github.com/bmad/bmm/skills/advanced-prompt-crafter/issues
|
|
---
|
|
|
|
# Advanced Prompt Crafter
|
|
|
|
A sophisticated multi-layered prompt engineering system that combines analysis, optimization, customization, and validation engines to create high-quality, domain-specific prompts with unparalleled precision and effectiveness.
|
|
|
|
## Features
|
|
|
|
### Core Architecture
|
|
|
|
#### Layer 1: Analysis Engine
|
|
|
|
- **Prompt Analysis**: Deconstruct existing prompts using NLP techniques
|
|
- **Context Parser**: Extract contextual information and user intent
|
|
- **Goal Clarification**: Targeted questions to refine ambiguous requirements
|
|
- **User Profiling**: Adapt to user's expertise level and preferences
|
|
|
|
#### Layer 2: Optimization Engine
|
|
|
|
- **Advanced Techniques**: Chain-of-Thought, Tree-of-Thought, Self-Consistency, ReAct, Graph-of-Thought
|
|
- **Template Synthesis**: Generate reusable prompt frameworks
|
|
- **A/B Testing**: Create systematic variations for testing
|
|
- **Performance Prediction**: Estimate effectiveness before deployment
|
|
|
|
#### Layer 3: Customization Engine
|
|
|
|
- **Domain Adaptation**: Specialize for tech, business, creative, academic domains
|
|
- **Model Optimization**: Tailor for Claude, GPT, Gemini, Llama models
|
|
- **Format Standardization**: Ensure consistent output formats
|
|
- **Language Optimization**: Handle multilingual requirements
|
|
- **Compliance Integration**: Incorporate regulatory constraints
|
|
|
|
#### Layer 4: Validation Engine
|
|
|
|
- **Quality Metrics**: Evaluate specificity, clarity, completeness, efficiency
|
|
- **Iterative Refinement**: Continuous improvement based on feedback
|
|
- **Benchmark Testing**: Compare against industry standards
|
|
|
|
### Specialized Modes
|
|
|
|
1. **Technical Mode**: Code generation, API docs, system design, debugging
|
|
2. **Business Mode**: Strategy, marketing, financial analysis, risk assessment
|
|
3. **Creative Mode**: Writing, design, content creation, storytelling
|
|
4. **Research Mode**: Academic writing, data analysis, literature review
|
|
|
|
## Usage
|
|
|
|
### Basic Usage
|
|
|
|
```typescript
|
|
import { AdvancedPromptCrafter } from './src/index.js';
|
|
|
|
const crafter = new AdvancedPromptCrafter();
|
|
|
|
// Analyze and improve an existing prompt
|
|
const improvedPrompt = await crafter.analyzeAndOptimize('Write a blog post about AI', {
|
|
mode: 'creative',
|
|
targetModel: 'claude-3-sonnet',
|
|
outputFormat: 'markdown',
|
|
});
|
|
|
|
// Generate a prompt from scratch
|
|
const newPrompt = await crafter.createPrompt({
|
|
task: 'Generate TypeScript code for a REST API',
|
|
domain: 'technical',
|
|
mode: 'code-generation',
|
|
requirements: {
|
|
include: ['types', 'validation', 'error-handling'],
|
|
exclude: ['external-apis'],
|
|
},
|
|
});
|
|
```
|
|
|
|
### Advanced Configuration
|
|
|
|
```typescript
|
|
const crafter = new AdvancedPromptCrafter({
|
|
analysis: {
|
|
nlpProvider: 'openai',
|
|
analysisDepth: 'comprehensive',
|
|
userProfile: {
|
|
expertise: 'intermediate',
|
|
preferences: ['concise', 'structured'],
|
|
},
|
|
},
|
|
optimization: {
|
|
techniques: ['cot', 'tot', 'self-consistency'],
|
|
enableABTesting: true,
|
|
performanceThreshold: 0.85,
|
|
},
|
|
validation: {
|
|
qualityThreshold: 8.5,
|
|
enableBenchmarking: true,
|
|
metrics: ['clarity', 'specificity', 'completeness', 'efficiency'],
|
|
},
|
|
});
|
|
```
|
|
|
|
## Architecture
|
|
|
|
### Analysis Engine
|
|
|
|
The Analysis Engine uses natural language processing to deconstruct prompts, identify improvement opportunities, and understand user intent through context parsing and goal clarification.
|
|
|
|
### Optimization Engine
|
|
|
|
Applies advanced prompting techniques including Chain-of-Thought, Tree-of-Thought, and Self-Consistency to enhance prompt effectiveness and generate template frameworks.
|
|
|
|
### Customization Engine
|
|
|
|
Adapts prompts for specific domains, AI models, and output formats while ensuring compliance with regulatory requirements.
|
|
|
|
### Validation Engine
|
|
|
|
Evaluates prompts against quality metrics and implements continuous improvement through iterative refinement and benchmark testing.
|
|
|
|
## Integration
|
|
|
|
### API Integration
|
|
|
|
- RESTful endpoints for prompt management
|
|
- GraphQL support for complex queries
|
|
- Webhook support for real-time updates
|
|
- Batch processing capabilities
|
|
|
|
### Database Integration
|
|
|
|
- Prompt template storage and retrieval
|
|
- User preference management
|
|
- Performance analytics storage
|
|
- Version control for prompts
|
|
|
|
## Performance Metrics
|
|
|
|
- **95%+** prompt effectiveness score
|
|
- **<5%** error rate in generated prompts
|
|
- **99.9%** uptime for API endpoints
|
|
- **Sub-second** response times for common operations
|
|
- **100+** concurrent user support
|
|
|
|
## Documentation
|
|
|
|
- [API Documentation](./docs/api.md)
|
|
- [User Guide](./docs/user-guide.md)
|
|
- [Best Practices](./docs/best-practices.md)
|
|
- [Integration Guide](./docs/integration.md)
|
|
- [Troubleshooting](./docs/troubleshooting.md)
|
|
|
|
## Contributing
|
|
|
|
Please read our [Contributing Guide](./CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
|