AGENT SKILL

issue-tracker

File, update, and close GitHub work as one epic with native sub-issues. Use when the user asks to file, track, update, or close a GitHub issue, or to open, update, or refresh an epic and its sub-issues.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 7
Forks
1

01 前言 Front Matter

name
issue-tracker
description
File, update, and close GitHub work as one epic with native sub-issues. Use when the user asks to file, track, update, or close a GitHub issue, or to open, update, or refresh an epic and its sub-issues.
argument-hint
[issue action - file | update | close | refresh-epic | full handoff]

02 资源文件 3

03 SKILL.md 正文

Issue tracker

User wants an issue action done. Here is how those actions work.

dedup -> do the work -> markers only -> numbers + URLs

Run every step the ask needs in one go (file, label, attach, refresh, and so on).

Prefer the same warm pstack:poteto-agent for follow-ups on the same issue or a related issue on the same epic. Spawn a new agent only for an unrelated work-stream or when the warm agent is gone.

Voice

End with the issue number(s) and URL(s) the caller must keep, and nothing else.

Gotchas

Append a bullet when an action fails in a new way.

  • Use REST .id, not display #N, to attach a sub-issue - operation-matrix.
  • gh attach: -F sub_issue_id=<n> (typed int), never -f.
  • Status goes in markers, not comments - comments are cross-links only.
  • Dedup open and closed; closed twin -> reopen vs file new, never silent refile.
  • Edit only between markers - free-form epic edits break the children checklist.
  • Auto-close is PR-body-first: a related-only UI link does not close the issue on merge.

The model

One epic issue owns a work-stream. Each unit of work is a native GitHub sub-issue under it. The epic checklist and every status block live inside marker pairs. Skeletons and refresh steps: reference/epic-and-sub-issue-model.md.

Labels

  • Parent: epic.
  • Sub-issue: type: roadblock, type: task, type: bug, or type: enhancement.

Create a missing label, then apply it. Label create is in the operation matrix.

Markers

  • Status (any issue): <!-- issue-tracker:status --> … <!-- /issue-tracker:status -->
  • Children checklist (epic only): <!-- issue-tracker:children --> … <!-- /issue-tracker:children -->

Update path: read body -> replace only the text between the target pair -> write the full body back.

Dedup

Search open and closed issues on the target repo before create. Open twin -> update in place. Closed twin -> ask reopen vs file new.

Tools

Prefer GitHub MCP. Fall back to gh on the same REST endpoints. Full map and .id rule: reference/operation-matrix.md.

Before issue creation, a full issue body edit, or an issue comment, write the body to a UTF-8 file. Resolve the active managed root (CLAUDE_CONFIG_DIR when set, ~/.claude otherwise), then run <managed-root>/scripts/durable_post_lint.py. Use issue-create, issue-edit, or issue-comment as the action. Send the server write only after exit code 0.

Handoff input

Optional issue-candidate JSON from orchestrator or closeout. Full schema and consume path: reference/handoff-schema.md.

Close the sub-issue through the PR (required when a fix ships)

GitHub closes the sub-issue when someone merges a pull request into the default branch and that PR carries a closing keyword for the issue.

Required on the PR that merges into the default branch: put Closes #N in the PR body for each finished sub-issue. One keyword per issue: write Closes #12 and Closes #13, not Closes #12, #13 (only the first number closes in the comma form).

Preferred on commits: also put Closes #N in the first commit message when the fix starts. Commit alone is backup; the PR body is the contract.

Stacked / intermediate PRs that do not merge into the default branch: use a plain #N reference in the body so the issue links without a false close promise. Put Closes #N only on the PR that lands on the default branch.

Not enough: a Development "related" link with no closing keyword. Not enough: closing the PR without merging.

A defect found while working the issue stays on the issue. Keep the issue open and fix the defect through this issue's pull request. A close that routes the defect to another issue or epic leaves the work unfinished, and hooks/blocking/issue_close_handoff_gate.py denies it.

Who owns #N: the agent or session writing the PR must use the correct sub-issue number. Nothing in this package verifies the number matches the fix.

Return shape

Reply with every affected issue number and URL - no narration after that payload.

File index

File Purpose
SKILL.md Hub: how issue actions work, gotchas, model, markers, dedup, PR auto-close, return shape
reference/operation-matrix.md MCP + gh per action; sub-issue .id rule
reference/epic-and-sub-issue-model.md Epic model, markers, body skeleton, checklist refresh
reference/handoff-schema.md Issue-candidate JSON and consume flow

04 同仓库更多 Skills

jl-cmd-projects
jl-cmd-projects/claude-dev-env

update

Fast-forwards a local repository's main branch to a remote's main after confirming the repo path and source remote through AskUserQuestion. Use when the user says '/update', 'update main', 'fast-forward main', 'sync main from origin', 'pull latest main into <path>', or 'bring main up to date'.

★ 7
jl-cmd-projects
jl-cmd-projects/claude-dev-env

source-command-sr-loop

Converging cleanup loop: repeat /simplify until clean, then repeat /code-review --fix until clean

★ 7
jl-cmd-projects
jl-cmd-projects/claude-dev-env

skill-builder

Skill lifecycle: classify, scaffold, write via the skill-writer-agent, self-audit, compose sub-skills, polish description triggers, enforce deterministic scripts. Triggers: build a skill, new skill workflow, improve this skill, optimize skill description, skill development lifecycle, skill modularity, skill composition, description trigger catalog, deterministic skill scripts.

★ 7
jl-cmd-projects
jl-cmd-projects/claude-dev-env

session-tidy

Audit, clean, and consolidate session logs in the Obsidian vault. Fixes format drift, resolves orphaned next-steps, updates stale statuses, and generates project rollup summaries. Use when session logs feel cluttered or before starting a new project milestone. Triggers on '/session-tidy', 'tidy sessions', 'clean up session logs', 'session audit'.

★ 7
jl-cmd-projects
jl-cmd-projects/claude-dev-env

session-log

Logs a session report as an HTML page, tracks vault context, extracts decisions, and outputs a /rename command. Use for /session-log, 'journal this session', 'log this work', 'session report', 'summarize/log/record this session', 'save session', 'capture session', or 'document what we did'.

★ 7
jl-cmd-projects
jl-cmd-projects/claude-dev-env

run-claude-dev-env

Build, install, run, and test the claude-dev-env installer. Use when asked to run claude-dev-env, install the Claude Code config into ~/.claude, drive the installer, smoke-test it against a sandbox, or run its test suite.

★ 7