otaviof

make

0
0
# Install this skill:
npx skills add otaviof/gosmith --skill "make"

Install specific skill from multi-skill repository

# Description

Run or discover Makefile targets. Use for build automation.

# SKILL.md


name: make
description: Run or discover Makefile targets. Use for build automation.
argument-hint: [target|--list|--help ]
allowed-tools: Bash, Read
model: haiku


Instructions

  1. Validate: Search for Makefile in cwd, parent dirs up to 3 levels

  2. Parse arguments:

  3. --list โ†’ List targets with descriptions
  4. --help <target> โ†’ Show target prerequisites and commands
  5. <target> โ†’ Execute target
  6. (none) โ†’ Run default target

  7. Execute:

  8. List mode: grep '^[a-zA-Z0-9_-]*:' Makefile to extract targets
  9. Help mode: Read Makefile, show target line and prerequisites
  10. Run mode: make <target>, capture stdout/stderr

  11. Report:

  12. List: Target names with inline comments as descriptions
  13. Help: Prerequisites and command lines
  14. Run: "Target <target> completed (exit: 0)" or error with stderr summary

  15. Edge cases:

  16. No Makefile: "No Makefile found in current or parent directories"
  17. Target not found: List available targets
  18. Make failure: Report exit code and last 10 lines of stderr

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.