← 返回 Skills 市场
smallest-ming

一键生成项目

作者 小明 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
274
总下载
3
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install optimized-one-click-project
功能描述
全自动项目生成和启动器 - 生成完整的Spring Boot + Vue3项目,包含前后端完整代码(RBAC+业务实体)、数据库初始化、编译启动、自动浏览器打开。支持完整CRUD(列表、查询、新增、修改、删除、查看)、多条件查询、状态下拉枚举、Redis配置、Swagger文档,使用JSON配置文件自定义参数。
安全使用建议
This skill appears internally consistent with its description, but it performs high‑impact actions: it will write project files, run build commands, and — importantly — connect to the database you provide and execute SQL scripts. Before running it: 1) Do NOT point it at a production database or critical Redis instance. Use a disposable/local DB or container. 2) Inspect the generated SQL (db init scripts) and the Python scripts to confirm they don't DROP or ALTER unintended schemas. 3) Run in an isolated environment (VM/container) so builds and services can't affect your host. 4) Be prepared to install Python deps (pymysql) in a virtualenv. 5) Backup any real data if you must test against an existing DB. 6) If you are uncomfortable providing DB/Redis credentials in a JSON file, do not run the skill. If you want a deeper review, share the generated SQL files (db/init.sql) and the full Python scripts so I can point out specific statements or subprocess calls to watch for.
功能分析
Type: OpenClaw Skill Name: optimized-one-click-project Version: 1.0.1 The skill bundle provides a project generator that automates the creation and deployment of Spring Boot and Vue3 applications. The primary concern lies in the Python scripts (optimized-start-win.py and optimized-start.py), which use os.system and subprocess.run to execute shell commands constructed directly from user-provided configuration values (e.g., project_name, database parameters) without sanitization. This creates a significant risk of command injection. Additionally, the scripts perform high-risk operations such as writing batch files to disk and executing them, and the generated code includes security weaknesses like hardcoded fallback passwords ('123456'). While these behaviors align with the tool's stated purpose, the execution model is inherently vulnerable to exploitation.
能力评估
Purpose & Capability
Name/description (one‑click project generator) matches the included artifacts: two Python 'starter' scripts that generate code, run builds, initialize a database, start services, and open a browser. The tools the scripts check for (Java, Maven, Node, NPM, optional Docker/MySQL client) are consistent with building and running a Spring Boot + Vue project.
Instruction Scope
SKILL.md and the scripts instruct the agent to read a JSON config containing database and Redis credentials, generate code, write files into a project directory, execute SQL against the configured database, run build commands (mvn, npm), launch services, and open the browser. Those actions are coherent with the purpose but high‑risk: executing arbitrary SQL on any DB you point at and running system commands can be destructive. The instructions do not include safeguards preventing use against production databases; the agent will run subprocess commands and create/modify files on disk.
Install Mechanism
There is no install spec (instruction-only skill) — the scripts run with the system Python interpreter. The code depends on Python packages (pymysql) and system tools (java/mvn/node/npm). Dependencies may be installed at runtime (the script returns an ImportError message suggesting 'pip install pymysql') but the skill does not manage package installation itself.
Credentials
The skill requests no environment variables but requires a config.json with database and optional Redis host/user/password. Those credentials are necessary for its advertised DB initialization functionality, but they are sensitive. No unrelated credentials or system-wide tokens are requested.
Persistence & Privilege
The skill is not 'always' enabled and does not request persistent platform privileges. It writes project files into a target directory and launches processes, but it does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install optimized-one-click-project
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /optimized-one-click-project 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
优化了配置文件
v1.0.0
optimized-one-click-project v1.0.0 - 首次发布:一键全自动生成和启动包含Spring Boot后端与Vue3前端的管理系统项目 - 支持基于JSON配置文件定义业务实体、数据库、Redis、端口、Swagger等参数 - 自动生成带RBAC(用户/角色/权限)和业务实体的完整CRUD代码及前端管理页面 - 包含数据库初始化、依赖安装、端口检测、编译构建、服务启动及自动浏览器打开的全流程 - 支持Swagger文档、Redis配置、前端Element Plus UI、API接口封装、多条件查询、分页、状态枚举等功能 - 提供详细项目结构、执行流程和配置文件示例,降低管理系统开发门槛
元数据
Slug optimized-one-click-project
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

一键生成项目 是什么?

全自动项目生成和启动器 - 生成完整的Spring Boot + Vue3项目,包含前后端完整代码(RBAC+业务实体)、数据库初始化、编译启动、自动浏览器打开。支持完整CRUD(列表、查询、新增、修改、删除、查看)、多条件查询、状态下拉枚举、Redis配置、Swagger文档,使用JSON配置文件自定义参数。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 274 次。

如何安装 一键生成项目?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install optimized-one-click-project」即可一键安装,无需额外配置。

一键生成项目 是免费的吗?

是的,一键生成项目 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

一键生成项目 支持哪些平台?

一键生成项目 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 一键生成项目?

由 小明(@smallest-ming)开发并维护,当前版本 v1.0.1。

💬 留言讨论