authoring-mage-targets
Developer ToolsGuides creating and maintaining Mage build scripts for Go repositories, where exported functions in files carrying the mage build tag become command-line targets. Covers the four valid target signatures and doc comments, dependency ordering through the mg package, running and capturing external commands with the sh helpers, timestamp-based up-to-date checks with the target package, namespaced target groups, a pinned tools sub-module using Go 1.24 tool directives, and confirmation gates around credential logins, file-rewriting lint fixes and publishing. Use when the user wants to write, extend, explain or debug a magefile or Go task automation such as build, test, lint, generate or clean targets. Not for Makefiles, Taskfiles, plain shell scripts, or CI provider configuration unrelated to Mage.
- Version
- v1.0.0
- Size
- 18 KB
- Updated
- 2026-10-10
$ skilvault read --manual authoring-mage-targetsYour client verifies the signature before reading. This explicit manual read is available on every plan. Free automatically loads five chosen skills; paid plans automatically load relevant skills across the library.