gza-task-add
Create a well-formed gza task with appropriate type, tags, and prompt
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create a well-formed gza task with appropriate type, tags, and prompt
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | gza-task-add |
| description | Create a well-formed gza task with appropriate type, tags, and prompt |
| allowed-tools | Read, Bash(uv run gza add:*), AskUserQuestion |
| version | 1.0.0 |
| public | true |
Create a well-scoped gza task with the appropriate type and configuration.
Read /workspace/AGENTS.md to understand:
Ask the user what they want to accomplish. Use AskUserQuestion to gather:
What needs to be done? - The core objective or problem to solve
Task type - Present options:
task (default) - General purpose taskexplore - Research, investigation, or discovery workplan - Planning and design work that produces a specificationimplement - Code implementation based on clear requirementsreview - Code review or quality assessmentimprove - Address review feedback and/or unresolved task comments on an implementation. Runs from review findings, from unresolved comments, or from both; comments-only improve is supported when no usable review exists (use uv run gza improve <impl-id> --run)Additional context (optional):
Create a clear, specific prompt that:
plan tasks: Explains what needs to be designed/exploredimplement tasks: Specifies what to build, clear acceptance criteria, and any important constraintsreview tasks: Identifies what to review and what to look forFor implement tasks, include at least these prompt elements when they are relevant:
If those details are unknown and the work is ambiguous or cross-cutting, recommend a plan task first instead of writing a vague implement task.
Execute the command with appropriate flags:
uv run gza add [FLAGS] "prompt text"
Important: there is no --prompt flag. gza add takes the prompt as a positional argument or via --prompt-file FILE. If you pass --prompt "text", argparse prefix-matches it to --prompt-file and tries to open your text as a filename — you will get [Errno 63] File name too long.
Single-line prompts: pass as the positional arg.
uv run gza add "fix the thing"
Multi-line prompts: always Write a tempfile and use --prompt-file.
Do not use "$(cat <<'EOF' ... EOF)" heredoc-in-command-substitution. It is fragile — backticks, $, parens, or indented code blocks in the body cause the EOF terminator to be missed, and the prompt body leaks out as bash commands. The failure mode silently mangles the prompt or fails with confusing "command not found" errors. The tempfile path is always safe.
Write tool to put the prompt body in a file under /tmp/ (e.g. /tmp/gza-prompt-<short-name>.md).gza add:
uv run gza add --type implement --prompt-file /tmp/gza-prompt-<short-name>.md
Common flag combinations:
uv run gza add "description"uv run gza add --type explore "what to investigate"uv run gza add --type plan "what to design"uv run gza add --type implement "what to build"uv run gza add --type implement --review "what to build"uv run gza add --tag auth --type implement "add login endpoint" (repeatable; use multiple --tag flags)uv run gza add --depends-on gza-5 "build on task gza-5's foundation"uv run gza add --type implement --based-on gza-5 "implement the approach from task gza-5"uv run gza add --type implement --based-on gza-5 (opens editor with default: "Implement plan from task gza-5: ")After running the command:
plan task first, then implement tasks based on it--depends-on or --based-on--review flag for significant implementation workExploration:
uv run gza add --type explore "investigate how authentication is currently implemented and identify areas for improvement"
Planning:
uv run gza add --type plan "design a task chaining system that allows tasks to reference previous task outputs"
Implementation (multi-line prompt):
For any prompt longer than one line, write it to a tempfile first and pass --prompt-file. Do not use "$(cat <<'EOF' ... EOF)" — heredoc-in-command-substitution is fragile (backticks, $, parens, or indented code blocks in the body break it, and the failure mode silently mangles the prompt).
/tmp/gza-prompt-<short-name>.md with the prompt body.uv run gza add --type implement --review --prompt-file /tmp/gza-prompt-<short-name>.md
Example prompt body to put in the file:
Add JWT authentication to the API endpoints in src/api/routes.py.
Acceptance criteria:
- Authenticated endpoints accept valid JWT bearer tokens.
- Invalid and expired tokens return the expected error response.
- Add targeted regression coverage for token validation paths.
Non-goals:
- Do not redesign session management.
- Do not change unrelated auth middleware behavior.
Tagged workflow:
uv run gza add --tag metrics --type plan "design metrics collection system"
uv run gza add --tag metrics --type implement --depends-on gza-c "implement metrics collector"
uv run gza add --tag metrics --type implement --depends-on gza-d "add metrics export to CSV/JSON"
Improve workflow (addressing review findings and/or unresolved comments):
# After a review requests changes, create an improve task
uv run gza improve gza-t --run # where gza-t is the implementation task ID
uv run gza improve gza-t --run --review # auto-create review after improvements
# Comments-only improve: when no usable review exists but unresolved task
# comments do, improve still runs using comments-only feedback. Add comments
# first via `gza comment <task_id> "<text>"`, then:
uv run gza improve gza-t --run
uv run gza add - Never edit task files manually--review flag for implementations that warrant code reviewReview changes on current branch and output a structured review. Optionally post to PR with --pr flag, or apply non-blocking follow-ups inline with --apply-followups.
Run an interactive code-only review for a gza task's implementation branch and produce structured review output compatible with gza-task-improve
Check the implementation against the behavior specs in specs/behavior/. Reports where the code diverges from intended behavior — each divergence is either a code bug or a spec gap. The behavior spec is the source of truth; this skill never edits code or the spec.
Check the behavior spec set for coherence, ownership boundaries, and plain-language discipline without editing the spec or the code
Turn the recurring `watch` stuck-task pile into (1) a diagnosis of why each class is stuck, (2) the existing stuck rows actually cleared now, and (3) systemic prevention so it does not recur. Snapshots watch/incomplete/queue, buckets stuck tasks by failure class, dedups against already-tracked `system` work, unsticks each row by its clearing action (drop moot/dead/stale, spawn follow-up, hand review-loop rows to /gza-task-fix), then ranks and files `system`-tagged prevention fixes by blast radius (cascade-preventer first). Never merges, retries, resumes, deletes branches, or edits code.
Triage `gza incomplete` rows — classify each unresolved merge-unit lineage and recommend the right corrective action (drop moot leaves, escalate to fix, surface manual-resolve rebases, etc.). Never merges, retries, resumes, or deletes branches; never edits code.