Agent skill
task
Build, test, lint, or run the shizuku application. ALWAYS use this skill instead of invoking Go commands or out/shizuku directly.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/task-eleonorayaya-dotfiles
SKILL.md
Shizuku Task Runner
This project uses Task (taskfile.dev) as its build system. You MUST always use task commands instead of invoking Go commands directly.
Critical Rule
NEVER run these commands directly:
go buildgo rungo fmtgo test
ALWAYS use the corresponding task commands below.
Available Commands
Build
Compiles the shizuku binary to out/shizuku.
task build
What it does: Runs go build -o out/shizuku cmd/main.go
Run
Runs the application with arguments.
task run -- <args>
Examples:
task run -- init
task run -- sync
task run -- sync --verbose
task run -- --help
What it does: Runs go run cmd/main.go with the provided arguments
Lint
Formats all Go code in the project.
task lint
What it does: Runs go fmt ./... across the codebase
Test
Runs all tests or specific tests with optional arguments.
# Run all tests
task test
# Run tests for a specific package
task test -- ./internal/shizukuconfig
# Run a specific test
task test -- -run TestLoadConfig ./internal/shizukuconfig
# Run tests with verbose output
task test -- -v ./...
What it does: Runs go test with the provided arguments (defaults to ./...)
Usage Pattern
When you need to:
- Build the binary → Use
task build - Run the app → Use
task run -- <args> - Format code → Use
task lint - Run tests → Use
task test(with optional-- <args>)
Why Use Task?
- Source tracking - Task watches Go source files and only rebuilds when needed
- Consistency - All developers and CI use the same commands
- Simplicity - Single entry point for all build operations
- Project standard - This is the established pattern for this codebase
Passing Arguments
When passing arguments to task run or task test, always use the -- separator:
task run -- arg1 arg2 # Correct
task run arg1 arg2 # Wrong - task will interpret these as task flags
task test -- -v ./... # Correct
task test -v ./... # Wrong
Integration with Development Workflow
- After creating or modifying code, run
task lintto format - Run
task testto ensure tests pass - Run
task buildto compile the binary - Run
task run -- syncto test the built functionality
Automatic Invocation
This skill should be invoked automatically whenever:
- You're about to build the project
- You're about to run the application
- You're about to format code
- You're about to run tests
Always default to task commands. If you catch yourself about to use go build, go run, go fmt, or go test, STOP and use the appropriate task command instead.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?