← 返回 Skills 市场
Makefile Generator
作者
Sunshine-del-ux
· GitHub ↗
· v1.0.0
352
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install makefile-generator
功能描述
生成专业的 Makefile,支持 Node.js、Python、Go 项目,提供开发、测试、构建、部署等常用命令。
使用说明 (SKILL.md)
Makefile Generator
生成专业的 Makefile,统一项目构建命令。
功能
- ⚡ 一键生成
- 📝 多语言支持
- 🎯 常用命令
- 🔧 自定义目标
支持的语言
| 语言 | 命令 |
|---|---|
| Node.js | install, test, build, dev, clean |
| Python | install, test, run, clean |
| Go | build, test, run, clean |
使用方法
Node.js 项目
makefile-generator --lang node
Python 项目
makefile-generator --lang python
Go 项目
makefile-generator --lang go
输出示例
# Makefile for Node.js Project
.PHONY: help install dev build test clean lint format deploy
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make dev - Start development server"
@echo " make build - Build for production"
@echo " make test - Run tests"
@echo " make lint - Run linter"
@echo " make format - Format code"
@echo " make clean - Clean build artifacts"
install:
npm install
dev:
npm run dev
build:
npm run build
test:
npm test
lint:
npm run lint
format:
npm run format
clean:
rm -rf node_modules dist build
高级用法
添加自定义目标
makefile-generator --lang node --custom "docker,docker-build,docker-run"
指定包管理器
makefile-generator --lang node --pm yarn
makefile-generator --lang node --pm pnpm
安装
# 无需额外依赖
变现思路
- 项目模板 - 销售项目模板
- 开发服务 - 为企业配置开发环境
使用 Makefile 的好处
- 统一团队开发命令
- 减少记忆成本
- 自动化重复任务
- 跨平台兼容
安全使用建议
The README promises more features than exist. Before installing or running this skill: 1) Inspect the makefile-generator.sh (it always writes a Node.js Makefile and will overwrite ./Makefile). 2) Back up any existing Makefile or run the script in an empty/test directory. 3) Don’t rely on advertised flags (--lang, --custom, --pm) — they are not implemented. 4) Be aware the generated Makefile’s clean target includes rm -rf node_modules dist (only runs if you invoke make clean, but could remove files if targets are edited). 5) If you need Python or Go support or customizable outputs, ask the author for a real implementation or use a different, actively maintained tool.
功能分析
Type: OpenClaw Skill
Name: makefile-generator
Version: 1.0.0
The OpenClaw skill bundle 'makefile-generator' is benign. The `makefile-generator.sh` script generates a static Node.js Makefile using a here-document. While the `SKILL.md` documentation describes multi-language support and custom targets, the current script ignores the `--lang` argument and does not implement these advanced features, which is a functional bug or incomplete implementation, not a security vulnerability. There is no evidence of malicious intent, data exfiltration, unauthorized execution, or prompt injection against the agent.
能力评估
Purpose & Capability
The SKILL.md claims support for Node.js, Python, and Go, plus flags like --custom and --pm (yarn/pnpm). The included makefile-generator.sh always writes a Node.js Makefile and ignores any flags; this is a clear mismatch between stated purpose and actual capability.
Instruction Scope
Instructions tell the user to run e.g. makefile-generator --lang python / --lang go and demonstrate advanced options, but there is no implementation for those behaviors. The script will overwrite ./Makefile in the current directory unconditionally. The generated Makefile contains a clean target that runs rm -rf node_modules dist (potentially destructive if run in the wrong directory).
Install Mechanism
No install spec or external downloads; the skill is instruction-only with a small bundled shell script. Risk from installation is low.
Credentials
No environment variables, credentials, or config paths are requested or used. The skill does not require secrets or unrelated system access.
Persistence & Privilege
always is false and the skill does not request persistent privileges or modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install makefile-generator - 安装完成后,直接呼叫该 Skill 的名称或使用
/makefile-generator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of makefile-generator.
- Generate professional Makefile files for Node.js, Python, and Go projects.
- Includes standard commands for development, testing, building, deployment, and cleaning.
- Supports custom targets and choice of package manager.
- One-command generation with multi-language support.
- Promotes unified project commands and cross-platform automation.
元数据
常见问题
Makefile Generator 是什么?
生成专业的 Makefile,支持 Node.js、Python、Go 项目,提供开发、测试、构建、部署等常用命令。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 352 次。
如何安装 Makefile Generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install makefile-generator」即可一键安装,无需额外配置。
Makefile Generator 是免费的吗?
是的,Makefile Generator 完全免费(开源免费),可自由下载、安装和使用。
Makefile Generator 支持哪些平台?
Makefile Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Makefile Generator?
由 Sunshine-del-ux(@sunshine-del-ux)开发并维护,当前版本 v1.0.0。
推荐 Skills