pre-refinement
БесплатноЗапускает вложенные скриптыНе проверенPre-refine new Jira cards before a team's refinement session. Checks each card for duplicates, against its issue type's template and readiness criteria, and…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Name
jira:pre-refinement
Synopsis
/jira:pre-refinement [ISSUE_KEY ...] [--jql <query>] [--label ai-pre-refined] [--supported-types <types>] [--mode propose|confirm|dry-run]
Description
Reviews new cards the way a careful teammate would before refinement: find duplicates, check each card against its template and readiness criteria, and propose a shorter, clearer card that keeps everything the team needs. Every Jira change goes to a human first. A card is pre-refined once; a label marks it so it is never reviewed again.
This skill defines the procedure; the project's conventions file defines the
judgment. Find it through the jira:jira-conventions router (for TRT,
reference/trt.md) and read it in full before
reviewing any card. It holds the templates, readiness criteria, duplicate
rules, summary rules, the concision rubric, the stricter review for
assistant-drafted cards, and the preservation rules. Apply them as written
there. If the project has no conventions file with templates and a concision
rubric, stop and say so.
Installed outside this repository, reference/ may sit beside the skills
directory; the caller names its location. If it can't be found, stop: never
review cards from memory.
Arguments
ISSUE_KEY ...: review only these cards (still subject to eligibility).--jql: select cards with this query instead. Default for TRT, with<label>replaced by the--labelvalue:
Keep theproject = TRT AND status = New AND created >= -30d AND (labels is EMPTY OR labels not in (<label>)) ORDER BY created ASClabels is EMPTY OR ...form:labels != xdrops unlabelled cards.--label: marks a pre-refined card. Defaultai-pre-refined. Use the same value in the query, the checker and every label write.--supported-types: types to review. Default: the conventions file's list (TRT: Story, Bug, Spike, Task, Ticket). Other types, and listed types with no template, areunsupported.--mode(defaultconfirm):- propose: stage one proposal per card through the caller's approval framework; write only what a person approves. For scheduled runs.
- confirm: interactive; write each card's proposal only after the user confirms it.
- dry-run: assess and report, with each card's full draft, writing nothing.
No mode grants permissions. If a write is denied or needs an approval the run
cannot get, record the card as blocked with the exact operation and move on.
Tools
The same instructions run on a laptop and as the chai-bot coordinator. Use whichever column the session provides:
| Operation | chai-bot | Atlassian MCP |
|---|---|---|
| Select cards | query_jira (at most 50 per call) |
searchJiraIssuesUsingJql |
| Read a card: summary, description, type, status, labels, creator, links, comments | get_jira_issue |
executeRead with name: "getJiraIssue" and view: "evidence"; comments via listJiraIssueComments with view: "evidence", paginating with startAt until isLast is true |
| Search for duplicates by meaning | search_datastore on jira-ocp-issues, filter jira_project_key: ANY("TRT") |
none; use the JQL pass only |
| Search for duplicates by text | query_jira |
searchJiraIssuesUsingJql |
| Stage a proposal (propose mode) | check_proposal, make_proposal, then send_response |
not available; use confirm mode |
| Replace summary or description, or set labels | priv_jira_update_issue (pass the description inline, never by buffer ID, so approvers see it) |
editJiraIssue |
| Post the gap comment | comment_on_jira_issue |
addOrEditJiraIssueComment |
Link a related card (Related) |
priv_jira_link_issues, where offered. Never link_jira_issues or another link tool that writes without an approval |
executeWrite with name: "createJiraIssueLink" and linkType: "Related" |
| Close as duplicate (link, close, comment, label in one step) | priv_jira_close_duplicate with add_label and expected_status: New |
In this order: addOrEditJiraIssueComment (the closure comment, naming the target), executeWrite with name: "createJiraIssueLink" and linkType: "Duplicate", editJiraIssue for the label, then executeRead with name: "listJiraIssueTransitions" and transitionJiraIssue with resolution Duplicate (see "Partial duplicate closure") |
| Load another skill | find_skills, get_skill |
the Skill tool |
Writing labels replaces the whole list: re-read the labels right before
writing and add only this workflow's label. Do not use a labelling tool that
posts its own comment (chai-bot's manage_jira_labels).
Deterministic checks
scripts/check_card.py (beside this file) computes the mechanical facts. Run
it on every card before judging, and again with your proposal before showing
or staging it. Build its input with jq or Python so quotes and newlines
survive:
jq -n --arg key "$KEY" --arg type "$TYPE" --arg stat
Установить pre-refinement в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pre-refinement?
Pre-refine new Jira cards before a team's refinement session. Checks each card for duplicates, against its issue type's template and readiness criteria, and against the team's concision rubric, then proposes a concise summary and description, a gap comment, links to related cards, or a duplicate closure for a human to approve. Use when pre-refining new cards for a team whose conventions file has a pre-refinement rubric (TRT today); not for implementation, bug triage, or cards the team has already refined.
Как установить скилл pre-refinement?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pre-refinement запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic