/utarn-skills:work-on-issuesfrom utarn-skills
Fetches, implements, and closes GitHub/GitLab issues sequentially. Handles parallel subtasks, dependency parsing, worktrees, and env propagation with verification before merging.
Ships in utarn-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
There are three phases to work on issues:
Detect host via git remote -v. Set $TRACKER to gh or glab.
Terminologies:
pr / commentmr / notegh issue list --state open --json number,title,labels or glab issue list -O json.PRD: or feat:). Others are skipped for auto/batch runs (but allowed if explicitly picked).PRD or title prefix PRD:. Skip implementation, add to $PRD_TRACKER for auto-close check.gh issue view --comments / glab issue view --comments).PRD: prefix or PRD label) for a body referencing #<number>, or use tracker sub-issue/blocked-by links — and fetch its body and comments. This context is passed to the implementer in Phase 2.in-progress (by applying in-progress label and removing ready-for-agent and needs-triage).Parse ## Blocked by in issue body (matches #42 or full issue URL) to build DEPS[issue] = [blockers].
If possible, create native tracker links (e.g., GitLab API /links with is_blocked_by or GitHub sub-issues API with blocked_by=true). Fall back to text references.
Sub-agent only. Every issue is implemented by a dispatched sub-agent, started with a fresh context window (never a fork of this conversation), in single-issue mode, batch mode, and onwards mode alike. The orchestrator fetches, triages, dispatches, and submits; it never edits files, writes code, or runs tests itself. If an issue looks too small to bother dispatching, that is exactly the case that still goes to a sub-agent.
git worktree add .claude/worktrees/issue-<number> -b work-on-issue-<number>
.env files: Copy .env and .env.* files into worktree directory..claude/worktrees/issue-<number>):
The sub-agent starts with no context beyond this prompt — a constraint not inlined here does not exist for the implementer. Fill every slot below; an AC line like "follows PRD #3" carries no weight until the PRD's actual constraints are inlined.
Prompt spec:
Implement issue #<number>: <title>.
Issue body (verbatim):
<full issue description — summary, acceptance criteria, everything in the body>
Issue comments (verbatim, in order, or "none"):
<all comments, attributing each to its author>
Parent PRD context (#<PRD number>: <PRD title>, or "none"):
<full PRD body and its comments, or "no comments">
Branch/Worktree: work-on-issue-<number> in .claude/worktrees/issue-<number>
API/best-practices: Search via `context7`, `/brightdata-plugin:search`, `/search`, or WebSearch before writing code if unsure.
Stuck on errors: If 2+ consecutive failures, you MUST research via `context7`, `/brightdata-plugin:search`, `/search`, or WebSearch first (they are available) to find the correct API/approach, then retry. Only escalate after researching.
Parallel subtasks: Decompose & dispatch sub-agents if tasks are independent (no shared files/dirs).
Post-implementation: Check output, diff, and run tests and run `/find-mismatch` skill on modified files only. If the programming language is typescript or javascript, run `npx fallow audit` (Make sure to install `fallow` if not present). If errors, fix and re-run tests.
Output: Summary, find-mismatch fixes, tests run, and commit hash.
Commit format: `fix: resolve #<number> — <short description>`
fix: resolve #<number> — <desc>). Then apply the resolved label and post a Resolved comment naming the commit./find-mismatch fixes, fallow output, tests run).in-progress, resolved), add closed, and close issue..env files: Copy modified env files back to main working directory before worktree removal:
WT=.claude/worktrees/issue-<number>
for wtf in "$WT"/.env "$WT"/.env.*; do
[ -f "$wtf" ] || continue
base=$(basename "$wtf")
if [ ! -f "$base" ] || ! cmp -s "$base" "$wtf"; then
cp "$wtf" "$base" && echo "Propagated $base back"
fi
done
git worktree remove .claude/worktrees/issue-<number>
git branch -d work-on-issue-<number>
After closing a sub-issue, check all PRDs in PRD_TRACKER. Read PRD description/links. If all referenced sub-issues (#42 etc.) are closed, close the PRD and remove from PRD_TRACKER.
The dispatched sub-agent decomposes the issue into subtasks if:
Sub-agents are fresh contexts too — each subtask prompt inlines the context bearing on that subtask (same rule as the main dispatch).
Implement subtask for issue #<number>: <title>.
Subtask: <details>
Issue context (verbatim excerpts bearing on this subtask): <issue body / comments / parent-PRD constraints>
Working Directory: .claude/worktrees/issue-<number>
Scope: Modify <MAY_MODIFY>, DO NOT modify <MUST_NOT_MODIFY>.
Compile/Lint errors: If 2+ consecutive failures or any 3rd party dependency issues, research via `context7`, `/brightdata-plugin:search`, `/search`, or WebSearch first (they are available) to find the correct API/approach, then retry. Check Reference Directories (<RefDirs>) to align configurations.
Post-implementation: Run `/find-mismatch` skill on modified files, auto-fix.
Verification: Run relevant tests. Return summary, modified files, test results.
PRD:, feat:).DEPS map from issue bodies, set formal links.| Issue | Title | Type | Blocked By | Agent | Status | PR/MR |resolved./find-mismatch, fallow) -> PR/MR merge -> close -> env propagation -> clean up -> check PRDs.Execute only the selected issue, end to end, via the same Phase 2 dispatch. Skip dependency graph processing.
| Label | Meaning | Color |
|---|---|---|
PRD | Parent tracking issue | #0075CA |
in-progress | Active | #E4E669 |
resolved | Implementation committed; PR pending | #FBCA04 |
ready-for-agent | Ready for agent | #0E8A16 |
closed | Closed by AI / Finished | #5319E7 |
To apply labels, try updating directly. If not found, create label first (e.g. color #E4E669 for in-progress) and retry.
gh/glab.fallow for JS/TS security audit.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
issue-management, github-issues, gitlab-issues, worktree, subtask
Generated from the plugin's indexed repository (utarn/engineer-skills) — no native marketplace selected
npx claudepluginhub p/utarn-utarn-skills53 skills in this plugin
/ask-utarnAsk which skill or flow fits your situation. A router over the skills in this repo./bug-trackerUse to work the actionable queue of a public GitHub bug tracker — investigating, tagging, solving issues in subagents, commenting on the tracker, and closing./chief-of-staffPursue a long-running goal in a single session by co-ordinating subagents./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".Other plugins' skills for the same job