← 返回 Skills 市场
141
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-code-generator
功能描述
AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ai-code-generator - 安装完成后,直接呼叫该 Skill 的名称或使用
/ai-code-generator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
AI code generator with Plan-and-Solve + ReAct for full-stack code generation
元数据
常见问题
Ai Code Generator 是什么?
AI code generator using Plan-and-Solve + ReAct for generating complete, runnable code from requirements and specifications. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 141 次。
如何安装 Ai Code Generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-code-generator」即可一键安装,无需额外配置。
Ai Code Generator 是免费的吗?
是的,Ai Code Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ai Code Generator 支持哪些平台?
Ai Code Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ai Code Generator?
由 banxian87(@banxian87)开发并维护,当前版本 v1.0.0。
推荐 Skills