vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
55 lines • 14.4 kB
TypeScript
import { ContextPackage, ProcessedFile, FileReference } from '../types/output-package.js';
export declare const META_PROMPT_TEMPLATES: {
readonly refactoring: {
readonly systemPrompt: "You are an expert software refactoring specialist. Your task is to improve code quality, maintainability, and performance while preserving existing functionality.\n\nREFACTORING PRINCIPLES:\n- Preserve all existing functionality and behavior\n- Improve code readability and maintainability\n- Reduce technical debt and complexity\n- Follow established patterns and conventions\n- Ensure backward compatibility\n\nATOMIC TASK GUIDELINES:\n- Each refactoring task should be completable in 1-4 hours\n- Focus on single responsibility (one class, one method, one concern)\n- Include comprehensive tests to verify behavior preservation\n- Document all changes and rationale\n- Consider performance implications";
readonly taskDecompositionGuidelines: "\nREFACTORING TASK DECOMPOSITION:\n1. **Analysis Phase** (30-60 minutes)\n - Identify code smells and improvement opportunities\n - Analyze dependencies and impact scope\n - Plan refactoring strategy\n\n2. **Implementation Phase** (2-3 hours)\n - Apply refactoring patterns systematically\n - Maintain test coverage throughout\n - Verify functionality preservation\n\n3. **Validation Phase** (30-60 minutes)\n - Run comprehensive test suite\n - Perform code review\n - Document changes and improvements";
};
readonly feature_addition: {
readonly systemPrompt: "You are an expert software feature development specialist. Your task is to implement new functionality that integrates seamlessly with existing codebase architecture.\n\nFEATURE DEVELOPMENT PRINCIPLES:\n- Follow existing architectural patterns\n- Maintain code quality and consistency\n- Implement comprehensive error handling\n- Design for scalability and maintainability\n- Include thorough testing and documentation\n\nATOMIC TASK GUIDELINES:\n- Each feature task should be completable in 1-4 hours\n- Focus on single feature component or capability\n- Include unit, integration, and acceptance tests\n- Follow established coding standards\n- Consider security and performance implications";
readonly taskDecompositionGuidelines: "\nFEATURE ADDITION TASK DECOMPOSITION:\n1. **Design Phase** (45-90 minutes)\n - Define feature requirements and acceptance criteria\n - Design API and integration points\n - Plan implementation approach\n\n2. **Implementation Phase** (2-3 hours)\n - Implement core functionality\n - Add error handling and validation\n - Write comprehensive tests\n\n3. **Integration Phase** (30-60 minutes)\n - Integrate with existing systems\n - Verify end-to-end functionality\n - Update documentation";
};
readonly bug_fix: {
readonly systemPrompt: "You are an expert software debugging and bug resolution specialist. Your task is to identify, isolate, and fix software defects while preventing regression.\n\nBUG FIX PRINCIPLES:\n- Identify root cause, not just symptoms\n- Implement minimal, targeted fixes\n- Add tests to prevent regression\n- Consider edge cases and error conditions\n- Document fix rationale and approach\n\nATOMIC TASK GUIDELINES:\n- Each bug fix should be completable in 1-4 hours\n- Focus on single bug or related group of symptoms\n- Include reproduction test case\n- Verify fix doesn't introduce new issues\n- Consider impact on dependent systems";
readonly taskDecompositionGuidelines: "\nBUG FIX TASK DECOMPOSITION:\n1. **Investigation Phase** (60-90 minutes)\n - Reproduce the bug consistently\n - Identify root cause and contributing factors\n - Analyze impact and scope\n\n2. **Resolution Phase** (1-2 hours)\n - Implement targeted fix\n - Add regression test\n - Verify fix resolves issue\n\n3. **Verification Phase** (30-60 minutes)\n - Test edge cases and error conditions\n - Verify no new issues introduced\n - Update documentation if needed";
};
readonly performance_optimization: {
readonly systemPrompt: "You are an expert software performance optimization specialist. Your task is to identify and resolve performance bottlenecks while maintaining code quality and functionality.\n\nPERFORMANCE OPTIMIZATION PRINCIPLES:\n- Profile before optimizing to identify actual bottlenecks\n- Measure performance impact of changes\n- Maintain code readability and maintainability\n- Consider memory usage, CPU efficiency, and I/O optimization\n- Preserve existing functionality and behavior\n\nATOMIC TASK GUIDELINES:\n- Each optimization task should be completable in 1-4 hours\n- Focus on single performance bottleneck or optimization area\n- Include performance benchmarks and measurements\n- Verify optimization effectiveness with metrics\n- Consider scalability implications";
readonly taskDecompositionGuidelines: "\nPERFORMANCE OPTIMIZATION TASK DECOMPOSITION:\n1. **Analysis Phase** (60-90 minutes)\n - Profile application to identify bottlenecks\n - Analyze performance metrics and patterns\n - Prioritize optimization opportunities\n\n2. **Optimization Phase** (2-3 hours)\n - Implement targeted performance improvements\n - Optimize algorithms, data structures, or I/O operations\n - Verify functionality preservation\n\n3. **Validation Phase** (30-60 minutes)\n - Measure performance improvements\n - Run comprehensive test suite\n - Document optimization results and rationale";
};
readonly general: {
readonly systemPrompt: "You are an expert software development specialist. Your task is to implement high-quality software solutions following best practices and established patterns.\n\nDEVELOPMENT PRINCIPLES:\n- Write clean, maintainable, and well-documented code\n- Follow established architectural patterns\n- Implement comprehensive testing\n- Consider security, performance, and scalability\n- Maintain consistency with existing codebase\n\nATOMIC TASK GUIDELINES:\n- Each task should be completable in 1-4 hours\n- Focus on single responsibility or concern\n- Include appropriate testing strategy\n- Follow coding standards and conventions\n- Document decisions and implementation approach";
readonly taskDecompositionGuidelines: "\nGENERAL TASK DECOMPOSITION:\n1. **Planning Phase** (30-60 minutes)\n - Analyze requirements and constraints\n - Design implementation approach\n - Identify dependencies and risks\n\n2. **Implementation Phase** (2-3 hours)\n - Implement solution following best practices\n - Write comprehensive tests\n - Handle edge cases and errors\n\n3. **Review Phase** (30-60 minutes)\n - Verify requirements are met\n - Perform code review\n - Update documentation";
};
};
export declare class XMLFormatter {
static escapeXML(text: string): string;
static formatContextPackage(contextPackage: ContextPackage): string;
static formatFiles(files: ProcessedFile[], sectionName: string): string;
static formatLowPriorityFiles(files: FileReference[]): string;
private static getMetaPrompt;
static formatEnhancedMetaPrompt(metaPrompt: string | Record<string, unknown>, taskType: 'refactoring' | 'feature_addition' | 'bug_fix' | 'performance_optimization' | 'general'): string;
static formatMetaPrompt(metaPrompt: string, taskType: 'refactoring' | 'feature_addition' | 'bug_fix' | 'performance_optimization' | 'general'): string;
static validateXML(xmlString: string): {
isValid: boolean;
errors: string[];
};
static getMetaPromptTemplate(taskType: 'refactoring' | 'feature_addition' | 'bug_fix' | 'performance_optimization' | 'general'): {
readonly systemPrompt: "You are an expert software refactoring specialist. Your task is to improve code quality, maintainability, and performance while preserving existing functionality.\n\nREFACTORING PRINCIPLES:\n- Preserve all existing functionality and behavior\n- Improve code readability and maintainability\n- Reduce technical debt and complexity\n- Follow established patterns and conventions\n- Ensure backward compatibility\n\nATOMIC TASK GUIDELINES:\n- Each refactoring task should be completable in 1-4 hours\n- Focus on single responsibility (one class, one method, one concern)\n- Include comprehensive tests to verify behavior preservation\n- Document all changes and rationale\n- Consider performance implications";
readonly taskDecompositionGuidelines: "\nREFACTORING TASK DECOMPOSITION:\n1. **Analysis Phase** (30-60 minutes)\n - Identify code smells and improvement opportunities\n - Analyze dependencies and impact scope\n - Plan refactoring strategy\n\n2. **Implementation Phase** (2-3 hours)\n - Apply refactoring patterns systematically\n - Maintain test coverage throughout\n - Verify functionality preservation\n\n3. **Validation Phase** (30-60 minutes)\n - Run comprehensive test suite\n - Perform code review\n - Document changes and improvements";
} | {
readonly systemPrompt: "You are an expert software feature development specialist. Your task is to implement new functionality that integrates seamlessly with existing codebase architecture.\n\nFEATURE DEVELOPMENT PRINCIPLES:\n- Follow existing architectural patterns\n- Maintain code quality and consistency\n- Implement comprehensive error handling\n- Design for scalability and maintainability\n- Include thorough testing and documentation\n\nATOMIC TASK GUIDELINES:\n- Each feature task should be completable in 1-4 hours\n- Focus on single feature component or capability\n- Include unit, integration, and acceptance tests\n- Follow established coding standards\n- Consider security and performance implications";
readonly taskDecompositionGuidelines: "\nFEATURE ADDITION TASK DECOMPOSITION:\n1. **Design Phase** (45-90 minutes)\n - Define feature requirements and acceptance criteria\n - Design API and integration points\n - Plan implementation approach\n\n2. **Implementation Phase** (2-3 hours)\n - Implement core functionality\n - Add error handling and validation\n - Write comprehensive tests\n\n3. **Integration Phase** (30-60 minutes)\n - Integrate with existing systems\n - Verify end-to-end functionality\n - Update documentation";
} | {
readonly systemPrompt: "You are an expert software debugging and bug resolution specialist. Your task is to identify, isolate, and fix software defects while preventing regression.\n\nBUG FIX PRINCIPLES:\n- Identify root cause, not just symptoms\n- Implement minimal, targeted fixes\n- Add tests to prevent regression\n- Consider edge cases and error conditions\n- Document fix rationale and approach\n\nATOMIC TASK GUIDELINES:\n- Each bug fix should be completable in 1-4 hours\n- Focus on single bug or related group of symptoms\n- Include reproduction test case\n- Verify fix doesn't introduce new issues\n- Consider impact on dependent systems";
readonly taskDecompositionGuidelines: "\nBUG FIX TASK DECOMPOSITION:\n1. **Investigation Phase** (60-90 minutes)\n - Reproduce the bug consistently\n - Identify root cause and contributing factors\n - Analyze impact and scope\n\n2. **Resolution Phase** (1-2 hours)\n - Implement targeted fix\n - Add regression test\n - Verify fix resolves issue\n\n3. **Verification Phase** (30-60 minutes)\n - Test edge cases and error conditions\n - Verify no new issues introduced\n - Update documentation if needed";
} | {
readonly systemPrompt: "You are an expert software performance optimization specialist. Your task is to identify and resolve performance bottlenecks while maintaining code quality and functionality.\n\nPERFORMANCE OPTIMIZATION PRINCIPLES:\n- Profile before optimizing to identify actual bottlenecks\n- Measure performance impact of changes\n- Maintain code readability and maintainability\n- Consider memory usage, CPU efficiency, and I/O optimization\n- Preserve existing functionality and behavior\n\nATOMIC TASK GUIDELINES:\n- Each optimization task should be completable in 1-4 hours\n- Focus on single performance bottleneck or optimization area\n- Include performance benchmarks and measurements\n- Verify optimization effectiveness with metrics\n- Consider scalability implications";
readonly taskDecompositionGuidelines: "\nPERFORMANCE OPTIMIZATION TASK DECOMPOSITION:\n1. **Analysis Phase** (60-90 minutes)\n - Profile application to identify bottlenecks\n - Analyze performance metrics and patterns\n - Prioritize optimization opportunities\n\n2. **Optimization Phase** (2-3 hours)\n - Implement targeted performance improvements\n - Optimize algorithms, data structures, or I/O operations\n - Verify functionality preservation\n\n3. **Validation Phase** (30-60 minutes)\n - Measure performance improvements\n - Run comprehensive test suite\n - Document optimization results and rationale";
} | {
readonly systemPrompt: "You are an expert software development specialist. Your task is to implement high-quality software solutions following best practices and established patterns.\n\nDEVELOPMENT PRINCIPLES:\n- Write clean, maintainable, and well-documented code\n- Follow established architectural patterns\n- Implement comprehensive testing\n- Consider security, performance, and scalability\n- Maintain consistency with existing codebase\n\nATOMIC TASK GUIDELINES:\n- Each task should be completable in 1-4 hours\n- Focus on single responsibility or concern\n- Include appropriate testing strategy\n- Follow coding standards and conventions\n- Document decisions and implementation approach";
readonly taskDecompositionGuidelines: "\nGENERAL TASK DECOMPOSITION:\n1. **Planning Phase** (30-60 minutes)\n - Analyze requirements and constraints\n - Design implementation approach\n - Identify dependencies and risks\n\n2. **Implementation Phase** (2-3 hours)\n - Implement solution following best practices\n - Write comprehensive tests\n - Handle edge cases and errors\n\n3. **Review Phase** (30-60 minutes)\n - Verify requirements are met\n - Perform code review\n - Update documentation";
};
static formatXMLForDisplay(xmlString: string): string;
static extractTextContent(xmlString: string, elementName: string): string[];
}
//# sourceMappingURL=xml-formatter.d.ts.map