跳到正文
cccskills
免费在 GitHub 公开

makefile-pro

Generate, scaffold, validate and lint Makefiles and .mk files: .PHONY targets, build automation, common mistakes. Use for any Makefile work.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(20)

  • SKILL.md3.0 KB
  • generator/assets/templates/.gitkeep43 B
  • generator/docs/makefile-structure.md10.9 KB
  • generator/docs/optimization-guide.md15.9 KB
  • generator/docs/patterns-guide.md12.3 KB
  • generator/docs/security-guide.md8.0 KB
  • generator/docs/targets-guide.md12.9 KB
  • generator/docs/variables-guide.md12.5 KB
  • generator/GUIDE.md21.2 KB
  • generator/scripts/add_standard_targets.sh13.9 KB
  • generator/scripts/generate_makefile_template.sh15.0 KB
  • generator/test/test_helper_scripts.sh8.9 KB
  • validator/docs/bake-tool.md20.6 KB
  • validator/docs/best-practices.md17.8 KB
  • validator/docs/common-mistakes.md18.7 KB
  • validator/examples/bad-makefile.mk1.6 KB
  • validator/examples/good-makefile.mk2.6 KB
  • validator/GUIDE.md6.8 KB
  • validator/scripts/test_validate.sh16.3 KB
  • validator/scripts/validate_makefile.sh27.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Makefile Pro

One entry point for Makefile work, covering two phases: generating a new production-ready Makefile and validating or linting an existing one. Covers C/C++, Python, Go, Java and generic projects, GNU Coding Standards targets, security hardening and CI integration.

Generation is requirements-first (language, structure, targets, install layout) with validation as a mandatory final step; validation is a local-first, deterministic pipeline whose exit codes decide whether fixes are optional, recommended, or required. Pick the section below by the request: "create/generate/write a Makefile" → Generate; "validate/lint/check/review a Makefile" → Validate.

Generate

  • Use when a Makefile is created from scratch or manual build steps are converted to targets; do not use it for validating existing files or running builds.
  • Gather requirements first: language (C/C++, Python, Go, Java), project structure (single/multi-directory), build artifacts, install layout (default PREFIX=/usr/local), and which standard targets (all, install, clean, test, dist, help) are needed.
  • Ask the user only when information is missing or ambiguous (language, structure, registry, single vs. multiple binaries, cross-compilation); otherwise proceed with standard defaults.
  • Perform a documentation lookup for unfamiliar territory: Docker/container targets, CI platform integration (GitHub Actions, GitLab CI, Jenkins), cross-compilation, package managers (Conan, vcpkg, Homebrew), multi-binary projects, or version embedding via ldflags.
  • Built-in quality bar: GNU Coding Standards compliance, security hardening, dependency tracking, and automatic validation as the final step of every generation.
  • Always run validation on the generated file before handing it back (see Validate).
  • Full guide: generator/GUIDE.md
  • Helper scripts live in generator/scripts/.

Validate

  • Use when checking an existing Makefile or .mk file: quality, linting, hardening, security or troubleshooting before CI.
  • Default entrypoint, run for every check:
bash scripts/validate_makefile.sh <makefile-path>
  • Layers run in order: dependency preflight (python3, pip3, make), GNU make syntax check (make -n --dry-run), mbake validate, mbake format --check, custom security/best-practice/optimization checks, plus optional checkmake and unmake when installed.
  • Exit codes: 0 = passed, 1 = passed with warnings (fix recommended, merge-policy dependent), 2 = failed — errors must be fixed and the run repeated.
  • Record the command, exit code, and error/warning/info counts from every run; open reference docs only for the finding types actually reported.
  • Fix, rerun, and stop when no new errors appear; document any warnings accepted intentionally and always report the latest exit code.
  • Full guide: validator/GUIDE.md

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Use when a hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Reference for how BDB structures autonomous software engineering work — the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle-graph actually runs. Use when you need the high-level lifecycle framing without inventing your own process.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

Harness patterns for coding agents — memory, permissions, context engineering, delegation, skills, hooks, bootstrap.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.

中文简介正在准备中。当前显示原文说明。

hybridlabor-api/aos62026年10月16日 更新

查看 hybridlabor-api 的全部技能

报告此技能的问题