gza-task-info
Gather comprehensive info about a specific gza task including status, branch, commits, and logs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Gather comprehensive info about a specific gza task including status, branch, commits, and logs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Review 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.
| name | gza-task-info |
| description | Gather comprehensive info about a specific gza task including status, branch, commits, and logs |
| allowed-tools | Read, Bash(uv run python -c:*), Bash(git:*) |
| version | 1.0.0 |
| public | true |
Gather comprehensive information about a specific gza task, including database details, git branch status, commits, and execution logs.
The user should provide a full prefixed task ID (for example, gza-1234). Extract it from the input.
Run a Python one-liner to get all task details as JSON:
uv run python -c "from gza.db import get_task; import json; print(json.dumps(get_task(<ID>), indent=2, default=str))"
This will show:
If the task has a branch field set, gather git information.
First, determine the base branch by running git rev-parse --abbrev-ref @{upstream} 2>/dev/null | sed 's|.*/||'. If that fails (no upstream set), fall back to main. Store this as BASE_BRANCH.
Check if branch exists:
git branch -a | grep <branch-name>
Show recent commits on the branch:
git log <branch-name> --oneline -10
Check if branch is merged to base branch:
git branch --merged $BASE_BRANCH | grep <branch-name> || echo "Not merged to $BASE_BRANCH"
Check for uncommitted changes (if on this branch):
git diff <branch-name> --stat
Show branch comparison with base branch:
git log $BASE_BRANCH..<branch-name> --oneline
If the task has a log_file field:
Check if log file exists:
ls -lh <log_file>
Show the tail of the log (last 50-100 lines) to see how it ended:
tail -100 <log_file>
Or if you want to focus on the end:
tail -50 <log_file>
If the task has a report_file field:
Read the entire report:
cat <report_file>
Or if it's very long, show the first part:
head -200 <report_file>
If the task has output_content in the database (stored directly), display it.
Create a clear, concise summary of the task state. Examples:
Completed task with commits:
Task gza-i: completed
Type: implement
Branch: 20260115-add-authentication (3 commits, not yet merged)
Duration: 245.3s (4:05)
Cost: $0.42
Prompt: "Add JWT authentication to API endpoints"
Failed task:
Task gza-n: failed
Type: implement
Duration: 89.2s (1:29)
Cost: $0.15
Prompt: "Fix database migration script"
Log shows: verify_command failed — mypy found 3 type errors in src/gza/db.py
Pending task with dependency:
Task gza-v: pending
Type: implement
Depends on: Task gza-u (still in_progress)
Tags: metrics-v2
Prompt: "Implement CSV export for metrics data"
Completed task with report:
Task gza-f: completed (exploration)
Duration: 156.7s (2:37)
Cost: $0.28
Report: Found 3 authentication patterns in codebase (see below)
.gza/gza.db relative to cwd (in project root)