Makefile Generator
v1.0.0生成专业的 Makefile,支持 Node.js、Python、Go 项目,提供开发、测试、构建、部署等常用命令。
Security Scan
OpenClaw
Suspicious
high confidencePurpose & 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.
What to consider before installing
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.Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
🔨 Clawdis
automationbuildlatestmakemakefile
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 的好处
- 统一团队开发命令
- 减少记忆成本
- 自动化重复任务
- 跨平台兼容
Comments
Loading comments...
