taskfile-authoring
Skill0 starsChanged 6 months agoMITView on GitHub
Use when writing, creating, or refactoring Taskfile.yml for any project (Go CLI, Python uv, or generic). Covers go-task v3 features — includes/sub-Taskfiles, sources/generates/method build cache, deps vs cmds, canonical CI/verify surface. Triggers on "write Taskfile", "create Taskfile.yml", "refactor Taskfile", "Taskfile.dev", "go-task", "sub-taskfile", "build cache", "task lint", "includes", "dotenv".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- sunsided/taskfile-skillstheir own version, first seen May 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- sunsided/taskfile-skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- attack-architectureSkill
- convention-engineeringSkill
- go-scriptingSkill
- harness-routerSkill
- paper-vettingSkill
- skill-builderSkill
- skill-cli-authoringSkill
- slock-epic-protocolSkill
- work-cliSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Write lean, composable, verification-first Taskfiles for go-task v3.
- Distinctive: line 13
Use this skill when:
- Distinctive: line 21
Do not use for:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Taskfile Authoring
Write lean, composable, verification-first Taskfiles for go-task v3. Keep the surface small, the cache correct, and the composition transparent.
When To Use
Use this skill when:
- Writing a new
Taskfile.ymlfrom scratch. - Adding tasks to an existing Taskfile (before, not after, the diff).
- Refactoring an overgrown Taskfile (too many tasks, duplicated cmds).
- Splitting work into included sub-Taskfiles (
includes:). - Wiring
sources:/generates:/method:for build caching.
Do not use for:
- CI platform configs (
.github/workflows/*.yml) — that is not go-task. - Makefiles,
justrecipes, or npm scripts — different tooling, different semantics. - Pure shell scripts with no task runner — use a
scripts/directory instead. - Designing the command contract for a skill-local CLI — use
skill-cli-authoring, then return here to wire build, smoke,ci, andverify.
Core Premise
Three properties keep a Taskfile healthy:
- Lean surface: few top-level tasks, each with a clear
desc:. If a contributor cannot read thetask --listoutput and guess what to run, there are already too many. - Composable: included sub-Taskfiles with explicit
{{.TASKFILE_DIR}}paths, so an overlay dropped into any repo Just Works. - Verification-first: one canonical
citask that CI runs verbatim, and oneverifytask that wrapsciplus any repo-specific extras (work checks, wiki lint, etc.). No branching logic in CI.
The Canonical Aggregate Surface (advisory)
Most repos benefit from this shape:
fmt— format in placelint— static checkstest— run testsbuild— produce artifact(s)ci— aggregate: depends onlint,test,build(plussmokewhere applicable). This is what CI runs.verify— wrapsciand adds repo-specific gates (e.g. work/wiki checks).
This is advisory — see references/canonical-surface.md for rationale and
per-stack task counts.
Build Cache: sources / status / preconditions
Three mechanisms, three different jobs:
preconditions:— fail loudly if the environment is wrong (tool missing, file absent). Runs before the task body.status:— skip if "already up to date." You write the check. All commands must exit 0 for the task to be skipped. No automatic source tracking.sources:+generates:+method:— automatic fingerprinting. Usemethod: checksum(default, CI-safe). Nevermethod: timestampin CI —git cloneresets mtimes, so the task always runs.
Full decision flow and per-use-case recipes in references/build-cache.md.
Composition (includes:)
Two composition modes:
flatten: true— transparent overlay. Included tasks become top-level. Use when a convention pack ships a Taskfile fragment and callers should typetask verify, nottask conventions:verify.- Explicit
dir:with a namespace key — genuine sub-domain. Use forwork:check,wiki:lint,docs:build— things that feel like separate areas of the repo.
Variable precedence is surprising: the included file's own vars: win over
the includer's includes.ns.vars: (pattern: use {{.FOO | default "..."}}
inside the included file to make values overridable). Full precedence table and
path-resolution rules in references/composition.md.
Reference & Template Index
| Topic | File |
Canonical ci / verify pattern | references/canonical-surface.md |
includes: deep dive, variable scope | references/composition.md |
sources / status / preconditions | references/build-cache.md |
| Go CLI patterns (advisory) | references/stack-go-cli.md |
| Python + uv patterns (advisory) | references/stack-uv-python.md |
| Before/after anti-patterns | references/anti-patterns.md |
| Minimal generic starter | references/templates/Taskfile.generic.yml |
| Go CLI starter (with build cache) | references/templates/Taskfile.go-cli.yml |
| uv + typer starter | references/templates/Taskfile.uv.yml |
Boundaries
- Stack guidance (Go, uv) is advisory.
- The skill does not opinionate on CI platform (
.github/workflows/*.yml). - For skill-local CLIs, this skill owns Taskfile wiring only. Command grammar,
safety classes, JSON contracts, and plan/apply semantics belong to
skill-cli-authoring.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

