twg-jira-resolve-merged-work
Skill35 starsChanged 6 months agoApache-2.0View on GitHub
Clean up stale or unresolved Jira workitems. Dry-run single items, lists, boards, sprints, epics, or projects by matching Jira keys/titles to merged PRs, repos, Rovo/search-code hits, and assignee activity.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- ByronScottJones/Agentsedited, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- ByronScottJones/Agents★ 797% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- twg-agentic-searchSkill
- twg-artifactsSkill
- twg-code-reviewSkill
- twg-confluenceSkill
- twg-context-discoverySkill
- twg-engineering-workSkill
- twg-jiraSkill
- twg-operational-healthSkill
- twg-responsibility-routingSkill
- twg-setupSkill
- twgSkill
- twg-space-creationSkill
- twg-status-rollupsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use root twg: plan from twg help-map and reuse its batched describe contracts.
- Very specific: line 15
Use twg help describe <path> only when required details are missing.
- Very specific: line 20
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg (macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe …
- Distinctive: line 37
Default to dry run. Ask before mutating unless the user requests reviewed execution.
- Distinctive: line 61
Use completed peers to infer common repos, assignees, Jira-key title/branch conventions, PR links, and merge-to-transition lag.
- Distinctive: line 64
Check optional discovery signals.
- Very specific: line 65
If rovo list-apps shows Bitbucket or GitHub connected, use Rovo search for keys, titles, PR URLs, branches, and repos.
- Very specific: line 68
If search-code is available, search exact keys first, then distinctive title terms in discovered repos.
- Distinctive: line 73
Prefer assignees from completed peer items and candidates.
- Distinctive: line 78
Search merged PRs in batches.
- Distinctive: line 79
Prefer one merged-PR query per repo/window, then match locally across all candidate keys.
- Distinctive: line 102
Only mutate after explicit approval of the exact rows or plan.
- Distinctive: line 116
Do not transition medium-confidence items automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
twg-jira-resolve-merged-work
Resolve stale Jira workitems only when merged PR evidence is strong. Plan first; mutate only after approval.
Use root twg: plan from twg help-map and reuse its batched describe contracts.
Use twg help describe <path> only when required details are missing. Never guess board,
sprint, transition, workspace, repo, PR, or field syntax.
CLI launcher fallback
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg
(macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe (PowerShell), then
tell user to add that directory to PATH. Do not treat auth or command errors as
PATH failures.
Agents: use host-set TWG_AGENT_DEFAULTS=1 or TWG_AGENT_DEFAULTS=1 twg <command>. If assignments are blocked, pass --mode agent with explicit output flags. Respect host permissions. --mode user overrides the opt-in.
Scope
Accept one Jira scope:
- One Jira workitem key/URL.
- A small explicit list of Jira workitem keys/URLs.
- Board or sprint ID/URL.
- Epic key.
- Jira space/project key.
Default to dry run. Ask before mutating unless the user requests reviewed execution. Use a bounded window; otherwise inspect recent active/completed sprint work and nearby PR merge dates.
Workflow
- Load Jira candidates.
- Single/list: hydrate each provided workitem directly.
- Sprint:
jira sprint workitems query. - Board: board/backlog/sprint commands advertised by live help.
- Epic or space: JQL-backed
jira workitem query. - Hydrate key, title, status/category, assignee, updated time, parent, subtasks/blockers, and URL.
- Split the set.
- Candidates are not done/resolved. Peers are done in the same board, sprint, epic, or space.
- Exclude epics/parents. Skip unresolved blockers or incomplete subtasks unless the user explicitly allows them.
- Discover shared repo context set-wise.
- Even for one item or a short list, infer context for the set together.
- Extract repos/workspaces from linked PRs, commits, branches, project links, Compass/components, context queries, and resolved peers.
- Use completed peers to infer common repos, assignees, Jira-key title/branch conventions, PR links, and merge-to-transition lag.
- Check optional discovery signals.
- If
rovo list-appsshows Bitbucket or GitHub connected, use Rovo search for keys, titles, PR URLs, branches, and repos. Treat it as discovery until hydrated through TWG/provider/Jira evidence. - If
search-codeis available, search exact keys first, then distinctive title terms in discovered repos. Strong hits are branch names, commit text, changed files, or symbols; broad fuzzy hits stay weak.
- If
- Expand likely implementers.
- Prefer assignees from completed peer items and candidates. Treat reporters and commenters as weak hints.
- Query merged PRs authored by these assignees in the window, scoped by discovered repos first; if unknown, infer repos from author/date results.
- Search merged PRs in batches.
- Prefer one merged-PR query per repo/window, then match locally across all candidate keys. One PR may satisfy multiple exact keys.
- Match exact keys in PR title, description, branch, commits, and linked issue metadata.
- Fall back to per-workitem lookup only for no evidence, priority items, or ambiguity.
- Score confidence.
- High: exact key in merged PR or linked PR metadata, plausible timing, no open same-key PR, no blockers/subtasks, and target transition exists.
- Medium: same assignee/repo with strong title similarity, or exact key only in commit/search-code evidence.
- Low: fuzzy similarity, same author only, unknown repo, or ambiguity.
- Produce the dry-run plan.
- Table columns: workitem key/title, current status, proposed transition, confidence, brief rationale, PR title/URL, merge date, last Jira update, link/repo proposal, PR title-fix proposal, skipped reason, and verification.
- Include exact commands only after live-help verification. Never present low-confidence rows as executable.
Mutations
Only mutate after explicit approval of the exact rows or plan.
- Transition: list transitions first, then use only the approved done/resolved target.
- Link enrichment: if links are missing, offer
jira workitem link weblinkfor PR/repo URLs after querying links and verifying help. Do not claim this creates native development-panel links. - PR title fix: for Bitbucket, update title only when a verified
bitbucket pull-requests getleaf can read the PR, write access is verified, the PR is confidently tied to the item, and the user approved it. For GitHub, update only when an authenticated write tool is available and access is verified; otherwise skip with the reason. - Verification: re-read each changed workitem and PR. Report changed keys, statuses, URLs, and failed rows.
Do not transition medium-confidence items automatically. Do not transition declined/superseded PRs or rows supported only by same author, same repo, or fuzzy similarity.
Output
Lead with the decision summary:
- executable high-confidence rows,
- review-needed medium-confidence rows,
- skipped unsafe rows,
- missing repo/auth/permission coverage.
Then provide the dry-run table and exact approval question. Include URLs or stable IDs for every workitem and PR used as evidence.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

