An intelligent AI prompt factory system that generates specialized, production-ready prompt instructions for creating any digital product, application, or artifact. Transform high-level specifications into detailed AI-readable implementation guides.
The Universal Prompt Generator creates comprehensive AI prompt files that contain detailed instructions for generating production-ready applications. Instead of generating code directly, it produces structured markdown files that AI systems can use to create complete, functional projects.
- 🎯 AI-Focused: Generates detailed prompts for AI systems to create applications
- 📋 Category-Specific: 10+ specialized prompt templates for different project types
- 🏗️ Production-Ready: Complete implementation instructions including architecture, testing, and deployment
- 🔧 Self-Contained: Each prompt contains everything needed for full project generation
- ⚡ CLI & Programmatic: Both command-line and API access
- 🔍 Quality Validated: Built-in validation for prompt completeness and accuracy
web-app- React, Vue, Angular applications with full-stack architecturemobile-app- React Native, Flutter, native iOS/Android applicationsdesktop-app- Electron, Tauri cross-platform desktop applicationscli-tool- Command line utilities and developer toolsbrowser-extension- Chrome, Firefox, Safari extensionspwa- Progressive Web Apps with offline capabilities
landing-page- Marketing websites with conversion optimizationportfolio-site- Personal and agency portfolio websitesblog-platform- Content management and blogging systemse-commerce- Online stores with payment integrationdocumentation-site- API docs, user guides, knowledge basescorporate-website- Business and enterprise websites
rest-api- RESTful services with authentication and documentationgraphql-api- GraphQL schemas with resolvers and subscriptionswebsocket-service- Real-time communication serviceswebhook-handler- Event processing and integration systemsauth-service- Authentication and authorization systemsdata-pipeline- ETL processes and data transformation
web-game- HTML5 canvas games with physics and audiomobile-game- 2D/3D mobile games with monetizationinteractive-story- Visual novels and narrative gamessimulation- Physics simulations and educational toolsar-vr-experience- Augmented and Virtual Reality applications
chatbot- Conversational AI with NLP integrationml-model- Machine learning training pipelinescomputer-vision- Image processing and recognition systemsnlp-service- Text analysis and language processingrecommendation-engine- Personalization and content recommendationdata-analysis-tool- Analytics dashboards and visualization
- Node.js 18.0.0 or higher
- npm or yarn package manager
- Git for version control
npm install -g @qoder/universal-prompt-generator# Clone the repository
git clone https://github.com/Kabi10/QoderAI.git
cd QoderAI
# Install dependencies
npm install
# Run the demo
node demo.js# Start interactive prompt generation
node src/cli.js generate --interactive# Generate React web application prompt
node src/cli.js generate \
--category web-app \
--name "TaskMaster Pro" \
--tech-stack "React,TypeScript,Node.js" \
--audience "Project managers" \
--deployment "Vercel"node src/cli.js list-categoriesnode src/cli.js info web-appimport { UniversalPromptGenerator } from './src/index.js';
// Initialize the generator
const generator = new UniversalPromptGenerator();
await generator.initialize();
// Generate AI prompts
const promptSuite = await generator.generatePromptSuite({
category: 'web-app',
projectName: 'My App',
techStack: ['React', 'TypeScript', 'Node.js'],
targetAudience: 'End users',
deploymentTarget: 'Vercel',
featureFlags: ['authentication', 'responsive-design']
});
console.log(`Generated ${promptSuite.fileCount} prompt files`);| Parameter | Type | Required | Description |
|---|---|---|---|
category |
string | ✅ | Project category (web-app, mobile-app, etc.) |
projectName |
string | ✅ | Name of the project to generate |
techStack |
array | ❌ | Technologies to use (React, Node.js, etc.) |
targetAudience |
string | ❌ | Intended users of the application |
deploymentTarget |
string | ❌ | Where to deploy (Vercel, AWS, etc.) |
featureFlags |
array | ❌ | Optional features to include |
constraints |
array | ❌ | Project constraints and requirements |
outputPath |
string | ❌ | Where to save generated prompts |
The system generates AI prompt files organized as follows:
prompts/
├── {project-name}/
│ ├── {category}-prompt.md # Main implementation prompt
│ ├── readme-documentation.md # Documentation prompt
│ └── demo-summary.json # Generation metadata
└── templates/
├── react-web-app.md # React application prompt
├── express-api.md # REST API prompt
├── mobile-app.md # Mobile app prompt
├── landing-page.md # Landing page prompt
└── desktop-app.md # Desktop app prompt
Each generated prompt file contains:
# React TypeScript Web Application - AI Generation Prompt
## Project Overview
**Project Name:** TaskMaster Pro
**Target Audience:** Project managers and team leads
**Deployment Target:** Vercel
## Technical Requirements
### Core Technology Stack
- React ^18.2.0
- TypeScript ^4.9.0
- Node.js ^18.0.0
## Detailed Implementation Instructions
### 1. Project Structure
[Detailed directory structure]
### 2. Component Architecture
[Component specifications]
### 3. State Management
[Redux/Context setup]
## Success Criteria
[Validation checkpoints]src/
├── core/ # Core system components
│ ├── PromptGenerator.js # Main generation engine
│ ├── CategoryRegistry.js # Category management
│ ├── TemplateEngine.js # Template processing
│ └── ValidationEngine.js # Quality assurance
├── output/ # Output formatting
├── utils/ # Utility functions
├── validation/ # Input validation
├── cli.js # Command line interface
└── index.js # Main entry point
templates/
└── prompts/ # AI prompt templates
├── react-web-app.md
├── express-api.md
├── mobile-app.md
└── [other templates]
config/
└── categories/ # Category configurations
tests/
└── integration/ # Test suites
docs/
└── api/ # Documentation
# Run demo to test system
node demo.js
# Test system fixes and improvements
node validate-fixes.js
# Run unit tests
node run-unit-tests.js
# Test CLI interface
node src/cli.js list-categories
# Run specific category generation
node src/cli.js generate --category web-app --name "Test App"
# Validate generated prompts
node src/cli.js validate ./prompts/test-app# Run unit tests (recommended)
node run-unit-tests.js
# Run unit tests with npm
npm test
# Run with coverage
npm run test:coverage
# Integration tests
npm run test:integration
# Validate system fixes
node validate-fixes.js# Code linting
npm run lint
# Fix linting issues
npm run lint:fix
# Validate templates
npm run validate:templates# .env.example
DEBUG=true # Enable debug logging
OUTPUT_PATH=./prompts # Default output directory
TEMPLATE_PATH=./templates # Template directory
LOG_LEVEL=info # Logging levelCreate custom prompt templates in templates/prompts/:
# My Custom Template - AI Generation Prompt
## Project Overview
**Category:** {{category}}
**Project Name:** {{projectName}}
## Technical Requirements
{{#techStack}}
- {{.}}
{{/techStack}}
[Your custom implementation instructions]We welcome contributions! Here's how to get started:
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/QoderAI.git - Install dependencies:
npm install - Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Ensure tests pass:
npm test - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow existing code style and conventions
- Write tests for new functionality
- Update documentation for API changes
- Use descriptive commit messages
- Ensure all tests pass before submitting
- Create a new
.mdfile intemplates/prompts/ - Follow the existing template structure
- Add the template to appropriate category configuration
- Test the template with the demo system
- Submit a pull request with documentation
- 10 Main Categories with 30+ subcategories
- 7+ Specialized Prompt Templates for different project types
- 4 Advanced Transformers (formatting, OpenAPI, testing, SEO)
- Comprehensive Validation with quality scoring (up to 96% accuracy)
- Complete Unit Test Suite with Jest integration
- CLI and Programmatic Access for flexibility
- Production-Ready Output with detailed implementation guides
Template Not Found
# Check available templates
node src/cli.js list-categories
# Verify template exists
ls templates/prompts/Generation Fails
# Enable debug mode
DEBUG=true node src/cli.js generate --category web-app --name "Test"
# Check input validation
node src/cli.js validate-input --category web-appOutput Directory Issues
# Specify custom output path
node src/cli.js generate --output ./custom-output --category web-appMIT License - see LICENSE file for details.
- Primary Developer: Kabi10
- Contributors: See Contributors
- Inspired by the need for standardized AI prompt generation
- Built for integration with Qoder IDE
- Community feedback and contributions
- Open source libraries and frameworks used
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with ❤️ for the AI development community