ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

ai-code-generator

AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/banxian87/ai-code-generator
Or

AI 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

Author@banxian87
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-banxian87-ai-code-generator": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.