← Back to Skills Marketplace
banxian87

Ai Code Generator

by banxian87 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
141
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ai-code-generator
Description
AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications.
README (SKILL.md)

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

Usage Guidance
This skill appears to do what it claims, but before installing consider: (1) Do not include secrets, private API keys, or proprietary code in prompts—generated prompts are sent to the LLM backend used by your agent. (2) Review all generated code and dependency manifests carefully for security issues and supply-chain risks before running or installing dependencies. (3) The package returns files in-memory; if you allow the agent to write files to disk automatically, ensure the agent is running in a safe environment (sandbox/isolated workspace). (4) If you want to limit data exposure, verify which LLM implementation your agent will use and its data-retention/privacy policy.
Capability Analysis
Type: OpenClaw Skill Name: ai-code-generator Version: 1.0.0 The skill bundle is a legitimate AI-powered code generation framework that uses structured prompting (Plan-and-Solve) to generate project structures, code, tests, and documentation. Analysis of index.js and SKILL.md shows no evidence of data exfiltration, malicious execution, or prompt injection; the code primarily orchestrates LLM prompts and returns structured data without performing sensitive system operations.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, package.json, and index.js all align: the package provides a CodeGenerator class that asks an LLM to produce analyses, architecture, files, tests, and docs. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md and index.js focus on analyzing requirements and generating code artifacts. Instructions do not direct reading of host files, unusual system paths, or external endpoints beyond the implied LLM usage. The README/example usage is specific and bounded.
Install Mechanism
No install spec is provided; this is instruction+library-only. No downloads or archive extraction occur in the package files.
Credentials
The skill requests no env vars or credentials itself. However, it depends on an LLM implementation (this.llm.generate). That LLM — supplied by the runtime/agent — will likely call external LLM providers and therefore will transmit user-provided prompts/requirements externally. Users should be aware that prompts may include sensitive information and could be sent to whichever LLM backend the agent uses.
Persistence & Privilege
Skill does not request always:true, does not modify other skills or system configuration, and has no install-time persistence. It only returns generated files in-memory (it does not write to disk itself).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ai-code-generator
  3. After installation, invoke the skill by name or use /ai-code-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
AI code generator with Plan-and-Solve + ReAct for full-stack code generation
Metadata
Slug ai-code-generator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Ai Code Generator?

AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications. It is an AI Agent Skill for Claude Code / OpenClaw, with 141 downloads so far.

How do I install Ai Code Generator?

Run "/install ai-code-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Ai Code Generator free?

Yes, Ai Code Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Ai Code Generator support?

Ai Code Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Ai Code Generator?

It is built and maintained by banxian87 (@banxian87); the current version is v1.0.0.

💬 Comments