← 返回 Skills 市场
sunshine-del-ux

Vue Component Generator

作者 Sunshine-del-ux · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
742
总下载
1
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install vue-component-generator
功能描述
生成 Vue 3 组件模板,支持 Composition API、Options API、TypeScript、SFC 单文件组件,一键生成完整 Vue 组件代码。
安全使用建议
This skill's documentation promises a multi-feature CLI but the included script only creates a very simple .vue file from a placeholder name. If you intend to use it, inspect or run the script in a safe directory first; it will write files to the current working directory. Do not expect support for flags like --api, --typescript, or --output unless you install or author a fuller implementation. If you need the advertised features, ask the author for the real CLI implementation or extend the script yourself. Because the discrepancy is significant, treat this skill as untrusted until its claimed features are actually implemented.
功能分析
Type: OpenClaw Skill Name: vue-component-generator Version: 1.0.0 The `vue-component-generator.sh` script is vulnerable to shell injection and path traversal. The `$NAME` variable, derived directly from user input (`$1`), is used unsanitized in the `sed` command (`sed -i "s/COMP_NAME/$NAME/g" "$NAME.vue"`) and in the filename creation (`"$NAME.vue"`). This allows an attacker to execute arbitrary commands (e.g., by providing `$(command)` as input) or write files to arbitrary locations (e.g., by providing `../sensitive_file` as input). While this is a critical vulnerability, there is no clear evidence of intentional malicious behavior like data exfiltration or persistence mechanisms.
能力评估
Purpose & Capability
The SKILL.md advertises many features (Composition/Options API, TypeScript, script-setup, SCSS, --api/--typescript/--output flags, multiple component types). The provided artifact (vue-component-generator.sh) only accepts an optional first positional name and writes a basic template by replacing a placeholder; it does not parse flags, support TypeScript/SCSS generation, or respect an output directory. This is a clear mismatch between declared capabilities and actual code.
Instruction Scope
Instructions show CLI usage examples that imply support for multiple flags and output control, but runtime behavior (the shell script) only uses the first argument as a component name and writes a file in the current directory. The instructions do not request credentials or access to unrelated files; generated files will be written to the current working directory. Also note sed -i is used (may behave differently on macOS), which is a portability issue but not a security concern.
Install Mechanism
No install spec is provided (instruction-only with an included shell script). No external downloads or package installs are declared. This minimizes install-time risk.
Credentials
No environment variables, credentials, or config paths are required or requested. The skill does not attempt to access unrelated secrets or system configuration.
Persistence & Privilege
The skill is not always-included and has no special persistence or system-wide configuration changes. It does not modify other skills or agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install vue-component-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /vue-component-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of vue-component-generator. - Instantly generates Vue 3 component templates with support for Composition API, Options API, and TypeScript. - Produces single-file Vue components (SFC) including SCSS style support. - Allows configuration of props, emits, and various component types (standard, routing, layout, form components). - Command-line tool with flexible options: API syntax, TypeScript, SCSS, and output directory. - No external dependencies required.
元数据
Slug vue-component-generator
版本 1.0.0
许可证
累计安装 5
当前安装数 5
历史版本数 1
常见问题

Vue Component Generator 是什么?

生成 Vue 3 组件模板,支持 Composition API、Options API、TypeScript、SFC 单文件组件,一键生成完整 Vue 组件代码。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 742 次。

如何安装 Vue Component Generator?

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

Vue Component Generator 是免费的吗?

是的,Vue Component Generator 完全免费(开源免费),可自由下载、安装和使用。

Vue Component Generator 支持哪些平台?

Vue Component Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Vue Component Generator?

由 Sunshine-del-ux(@sunshine-del-ux)开发并维护,当前版本 v1.0.0。

💬 留言讨论