ai-code-generator
AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/banxian87/ai-code-generatorAI Code Generator
AI-powered code generation tool that combines structured planning (Plan-and-Solve) with tool use (ReAct) to generate complete, production-ready code from natural language requirements.
Features
š Requirement Analysis
- Understanding: Parse natural language requirements
- Clarification: Ask clarifying questions when needed
- Specification: Generate technical specification
šļø Code Generation
- Full-stack Support: Frontend, backend, database
- Multiple Languages: JavaScript, Python, TypeScript, Go
- Best Practices: Clean code, design patterns
- Complete Projects: Full project structure
š§ Tool Integration
- File Generation: Create multiple files
- Dependency Management: package.json, requirements.txt
- Testing: Generate unit tests
- Documentation: README, API docs
Usage
Basic Code Generation
const generator = new CodeGenerator();
const project = await generator.generate({
requirements: 'Create a REST API for a todo app with user authentication',
language: 'javascript',
framework: 'express',
database: 'mongodb'
});
console.log(project.files);
console.log(project.instructions);
Advanced Options
const generator = new CodeGenerator({
style: 'professional',
includeTests: true,
includeDocs: true,
verbose: true
});
const project = await generator.generate({
requirements: 'Build a real-time chat application',
language: 'typescript',
framework: 'nestjs',
database: 'postgresql',
features: ['websocket', 'jwt-auth', 'message-history']
});
Example Output
project/
āāā src/
ā āāā controllers/
ā ā āāā todo.controller.js
ā āāā models/
ā ā āāā todo.model.js
ā āāā routes/
ā ā āāā todo.routes.js
ā āāā middleware/
ā āāā auth.middleware.js
āāā tests/
ā āāā todo.test.js
āāā package.json
āāā .env.example
āāā README.md
Workflow
User Requirements
ā
Plan-and-Solve Agent
āā Phase 1: Analyze requirements
āā Phase 2: Design architecture
āā Phase 3: Plan file structure
āā Phase 4: Generate code
ā
ReAct Agent (for each file)
āā Research best practices
āā Generate code
āā Review and fix
āā Write to file
ā
Complete Project
Installation
clawhub install ai-code-generator
License
MIT
Version
1.0.0
Created
2026-04-02
Metadata
Not sure this is the right skill?
Describe what you want to build ā we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-banxian87-ai-code-generator": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
agent-architecture-patterns
AI Agent architecture patterns library with 10 patterns for single and multi-agent systems
ai-email-master
Professional email writing assistant with tone adjustment, template library, grammar checking, and response suggestions. Supports formal, casual, persuasive, and empathetic tones for business communication.
research-assistant
Research assistant using ReAct + Plan-and-Solve for web research, information synthesis, and report generation with citations.
content-creator-assistant
AI writing assistant using Reflection + Tree of Thoughts for high-quality content creation. Generates articles, blogs, and documentation with iterative refinement.
code-review-expert
Multi-agent code review system using Manager-Worker pattern. Provides comprehensive code analysis from syntax, logic, security, and performance perspectives.