← 返回 Skills 市场
Ai Codegenerator
作者
jason513597
· GitHub ↗
· v1.0.0
346
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-codegenerator
功能描述
Automatically generates code based on task descriptions, with optional context and constraints, providing plans, results, and summaries.
使用说明 (SKILL.md)
AI_CodeGenerator
Purpose
自動程式生成
Primary Agents
Coder
Notes
可單獨使用
Inputs
- task: 要執行的任務描述
- context: 額外上下文(可選)
- constraints: 限制條件(可選)
Outputs
- plan/result/report(依任務類型)
- logs/summary
Workflow (default)
- Analyze task
- Plan subtasks
- Execute by role
- Validate result
- Return final summary
Safety
- 不執行破壞性操作,除非明確授權
- 外部動作(發送、部署到正式環境)需二次確認
- 記錄關鍵決策與錯誤
安全使用建议
This skill's name and docs imply a flexible code generator, but the bundled run.py only scaffolds a FastAPI app and writes files under /home/jason/.openclaw/workspace/generated/<project-name>. Before installing: (1) confirm you expect a FastAPI scaffolder (not a general code generator), (2) confirm where files will be written and whether that hard-coded path is acceptable or could overwrite data, (3) run the code in a safe sandbox first (it only writes files and prints JSON but will create directories), (4) inspect and/or run the generated code locally before deploying, and (5) note the script contains a likely runtime bug (imports UTC from datetime) and may fail — ask the author for a corrected, configurable output path and clarifications about how context/constraints are used.
功能分析
Type: OpenClaw Skill
Name: ai-codegenerator
Version: 1.0.0
The skill contains a hardcoded absolute path to a specific user's home directory (/home/jason/.openclaw/workspace/generated) in run.py, which is a significant privacy and portability concern. While the script's current behavior is limited to generating a benign FastAPI scaffold, the use of a specific local username and the lack of input-driven logic (it ignores the 'task' content to write a static template) are unusual and potentially indicative of a targeted or poorly constructed tool.
能力评估
Purpose & Capability
The skill description and SKILL.md describe a general 'automatically generates code' capability with task/context/constraints. The provided run.py, however, only creates a FastAPI project scaffold (requirements.txt, README, app/main.py) and uses the 'task' mainly to name the project. It does not implement general code generation or honor 'context'/'constraints' beyond naming. This mismatch (generic marketing vs single-purpose implementation) is disproportionate and unexplained.
Instruction Scope
SKILL.md is minimal and does not document file-system effects or output path, but run.py writes files to disk under a hard-coded path (/home/jason/.openclaw/workspace/generated/<name>). The instructions do not warn about creating or overwriting files at that location. While the actions themselves are limited to local file writes (no network/credentials), the silent filesystem writes and path choice expand scope beyond what the SKILL.md states.
Install Mechanism
There is no install specification (instruction-only skill plus a local runner script). No downloads, package installs, or external installers are declared. This is the lower-risk install pattern.
Credentials
The skill declares no required environment variables or credentials and run.py does not access environment secrets. That is proportionate to the observed functionality. Note: the script uses a hard-coded filesystem path tied to a specific username ('jason'), which is a configuration oddity but not a credentials request.
Persistence & Privilege
No 'always' privilege or elevated persistence is requested. The skill does write files to disk in a fixed directory under the running user's permissions, which is normal for a code-scaffolding tool but should be clearly documented.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ai-codegenerator - 安装完成后,直接呼叫该 Skill 的名称或使用
/ai-codegenerator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
AI_CodeGenerator 1.0.0 – Initial Release
- Provides automatic code generation based on user-described tasks.
- Accepts task description, optional context, and constraints as inputs.
- Produces a plan, results, and execution logs according to task requirements.
- Features a workflow including task analysis, planning, execution, validation, and summary.
- Includes safety measures to avoid destructive actions and requires confirmation for external operations.
- Logs key decisions and errors for auditability.
元数据
常见问题
Ai Codegenerator 是什么?
Automatically generates code based on task descriptions, with optional context and constraints, providing plans, results, and summaries. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 346 次。
如何安装 Ai Codegenerator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-codegenerator」即可一键安装,无需额外配置。
Ai Codegenerator 是免费的吗?
是的,Ai Codegenerator 完全免费(开源免费),可自由下载、安装和使用。
Ai Codegenerator 支持哪些平台?
Ai Codegenerator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ai Codegenerator?
由 jason513597(@jason513597)开发并维护,当前版本 v1.0.0。
推荐 Skills