Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

update-jira-ticketupdate Jira ticket 搜索

Agent Skill

用于处理 Jira 项目、任务、缺陷、Sprint、负责人和状态流转。它适合让 Agent 辅助查询工单、汇总迭代进展、创建任务或整理需求和缺陷信息。使用时要确认项目权限、字段配置和工作流规则,不同团队的 Issue 类型、状态和必填字段可能不同;涉及批量改状态、改负责人或创建工单时,应先预览变更内容再执行。

总安装

1,536

周安装

64

GitHub Stars

公开资料未说明

下载量

512
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:update-jira-ticket(update Jira ticket 搜索)
来源仓库:https://github.com/morphet81/cheat-sheets
仓库路径:skills/update-jira-ticket
安装命令:
npx skills add https://github.com/morphet81/cheat-sheets --skill update-jira-ticket
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/morphet81/cheat-sheets --skill update-jira-ticket

简介

用于处理 Jira 项目、任务和缺陷流转。

  • 适合辅助查询工单、汇总迭代进展或整理需求和缺陷信息。
  • 通过 GitHub 安装并使用 npx skills add 命令集成。
  • 需确认项目权限和字段配置,避免误改状态或负责人。
  • update-jira-ticket 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Compare the JIRA ticket associated with the current branch against the actual changes made, and propose updates to keep the ticket accurate. Edits the description for missing information, adds comments for unrelated changes or implementation decisions, or both.

Usage:

  • /update-jira-ticket - Analyze branch changes and propose JIRA ticket updates

Instructions:

  1. Check prerequisites:

- Atlassian CLI (acli): Run acli auth status to check if the CLI is installed and authenticated. - If the command is not found, display the following message and STOP: ` ## Missing Prerequisite: Atlassian CLI The acli command is not installed. This skill requires the Atlassian CLI to fetch and update JIRA issue details. Install it with: brew tap atlassian/acli && brew install acli - If the command fails with an authentication error, display the following message and **STOP**: ## Missing Prerequisite: Atlassian CLI Authentication The Atlassian CLI is not authenticated. Please run acli auth login to authenticate before using this skill. `

  1. Extract the JIRA ID from the current branch name:

- Run git branch --show-current to get the current branch name - Extract the JIRA ID by matching the pattern [A-Z][A-Z0-9]+-[0-9]+ (e.g., PROJ-123, AB-1, MYAPP-4567) - The JIRA ID can appear anywhere in the branch name (e.g., fix/PROJ-123, feat/PROJ-123, PROJ-123-some-description) - The match should be case-insensitive — normalize the extracted ID to uppercase for the JIRA API lookup - If no JIRA ID is found, display the following message and STOP: No JIRA ID found in branch name: "<current-branch>" Expected a branch name containing a JIRA ID (e.g., fix/proj-123, feat/MYAPP-456).

  1. Fetch the JIRA ticket:

- Use the Atlassian CLI to retrieve the issue by its JIRA ID: acli jira workitem view <JIRA-ID> --fields '*all' --json - Parse all available fields: summary, description, issue type, priority, comments, acceptance criteria, custom fields, etc. - Store the original description for comparison — this is the baseline - If the fetch fails, display the error and STOP

  1. Determine the base branch:

- Check if a .agent file exists in the current directory - If it exists, read it and look for a baseBranch=<value> line to extract the base branch - If no .agent file or no baseBranch key, default to main

  1. Analyze the branch changes:

- Run git log <base-branch>..HEAD --oneline to get the commit history on this branch - Run git diff <base-branch>...HEAD --stat to get a summary of files changed - Run git diff <base-branch>...HEAD to get the full diff - Read key modified files to understand the nature of the changes - Build a comprehensive understanding of: - What was implemented — new features, bug fixes, refactors, etc. - How it was implemented — technical approach, patterns used, key decisions - What was changed beyond the original scope — any additions, adjustments, or deviations from the ticket description

  1. Compare changes to the ticket description: For each significant change or aspect of the implementation, categorize it into one of three types: a) Missing from description — EDIT the description: b) Unrelated to the ticket — ADD a comment: c) Implementation decision — EDIT the description AND ADD a comment: Skip silently any changes that are:

- Information that should have been in the ticket but wasn't (e.g., missing acceptance criteria that were implemented, undocumented requirements discovered during implementation, scope that was implicit but should be explicit) - The description should be edited to include this information for documentation and tracking - Changes that were made alongside the ticket work but aren't part of the ticket's scope (e.g., opportunistic refactors, small fixes in adjacent code, dependency updates) - These should be documented as comments so the ticket history captures what happened, without polluting the description - Changes where a deliberate technical or product decision was made that affects the ticket (e.g., choosing approach A over approach B, adjusting acceptance criteria based on technical constraints, scope adjustments agreed during implementation) - The description should be updated to reflect the final state, and a comment should explain the reasoning behind the decision - Already accurately reflected in the current description - Trivial implementation details that don't affect the ticket's documentation value (e.g., variable names, minor formatting)

  1. Prepare the list of proposed edits: Present all proposed changes as a numbered list, grouped by action type: ## Proposed JIRA Ticket Updates for <JIRA-ID> ### Description Edits These changes update the ticket description to reflect the actual implementation. **#1** — <Brief title of the edit> - **Reason:** <Why this edit is needed> - **Change:** <What will be added/modified in the description> **#2** — <Brief title> - **Reason:** <Why> - **Change:** <What> ### Comments to Add These document changes that don't belong in the description. **#3** — <Brief title of the comment> - **Reason:** <Why a comment is appropriate here> - **Content:** <The comment text to be added> ### Description Edits + Comments These require both a description update and a comment explaining the decision. **#4** — <Brief title> - **Reason:** <Why both are needed> - **Description change:** <What will be updated> - **Comment:** <The comment explaining the reasoning> ### Summary - **Description edits:** <N> - **Comments:** <N> - **Description edits + comments:** <N> - **Total updates:** <N> If there are no proposed changes (the ticket is already accurate), display: ✅ The JIRA ticket description for <JIRA-ID> is already in sync with the branch changes. No updates needed. And STOP.
  2. Get developer confirmation: Use AskUserQuestion to ask the developer to review and approve the proposed updates: If "Let me choose":

- "Apply all" — apply all proposed edits and comments - "Let me choose" — the developer will specify which items to apply (by number) - "Skip" — cancel, don't update the ticket - Use AskUserQuestion to ask which item numbers to apply (e.g., "1, 3, 4") - Only apply the selected items

  1. Apply the approved updates: a) Description edits: b) Comments:

- Read the current ticket description - Apply all approved description edits, integrating them naturally into the existing description structure - Preserve the original description's tone, formatting, and structure — don't rewrite sections that aren't being updated - Write the description as an ADF (Atlassian Document Format) JSON payload and use --from-json to update: acli jira workitem edit --from-json <temp-file.json> --yes The JSON file must contain the full edit payload with the description as an ADF object (see ADF Format Reference below). - If the update fails, show the error and provide the proposed description as copyable text - For each approved comment, use the Atlassian CLI: acli jira workitem comment create --key <JIRA-ID> --body "<comment text>" - Each comment should be self-contained and clearly explain the context - Prefix implementation decision comments with "Implementation note:" for clarity - If a comment fails to post, show the error and provide the comment text as copyable text

  1. Show results: Display a summary of what was applied: ## JIRA Ticket Updated: <JIRA-ID> ### ✅ Description Updated - #1 — <title> - #4 — <title> ### ✅ Comments Added - #2 — <title> - #3 — <title> - #4 — <title> (implementation note) ### ❌ Skipped - #5 — <title> (developer chose to skip) Ticket: https://<site>.atlassian.net/browse/<JIRA-ID>
  2. Handle edge cases:

- If the ticket description is empty, all implementation details count as "missing from description" — propose a complete description based on the changes - If there are no commits on the branch yet, display "No changes found on this branch compared to." and STOP - If the diff is too large to analyze in full, focus on the most significant changes (new files, large modifications) and note that some minor changes were not reviewed - If the JIRA update fails partially (e.g., description updated but a comment failed), report what succeeded and what failed - If the branch has changes from multiple tickets (e.g., cherry-picks), only propose updates for the ticket matching the branch name


ADF Format Reference

JIRA does not render Markdown. Descriptions must use Atlassian Document Format (ADF) — a JSON-based document format. The --description-file flag treats file content as a plain text string, so it cannot be used for rich descriptions. Use --from-json instead.

Important: --from-json expects a structured JSON file with the full edit payload. The description field must be an ADF object, not a string. You can run acli jira workitem edit --generate-json to see the expected schema.

Edit payload format (--from-json):

{
  "issues": ["<JIRA-ID>"],
  "description": {
    "version": 1,
    "type": "doc",
    "content": [
      {
        "type": "heading",
        "attrs": { "level": 2 },
        "content": [{ "type": "text", "text": "Description" }]
      },
      {
        "type": "paragraph",
        "content": [
          { "type": "text", "text": "Regular text. " },
          { "type": "text", "text": "Bold text", "marks": [{ "type": "strong" }] }
        ]
      },
      {
        "type": "bulletList",
        "content": [
          {
            "type": "listItem",
            "content": [
              { "type": "paragraph", "content": [{ "type": "text", "text": "List item" }] }
            ]
          }
        ]
      },
      {
        "type": "orderedList",
        "content": [
          {
            "type": "listItem",
            "content": [
              { "type": "paragraph", "content": [{ "type": "text", "text": "Numbered item" }] }
            ]
          }
        ]
      },
      {
        "type": "taskList",
        "attrs": { "localId": "unique-id" },
        "content": [
          {
            "type": "taskItem",
            "attrs": { "localId": "task-1", "state": "TODO" },
            "content": [{ "type": "text", "text": "Acceptance criterion" }]
          }
        ]
      },
      {
        "type": "codeBlock",
        "attrs": { "language": "typescript" },
        "content": [{ "type": "text", "text": "const x = 1;" }]
      }
    ]
  }
}

Common ADF node types:

MarkdownADF typeNotes
## Headingheading with attrs.levelLevels 1–6
Plain textparagraph with text children
**bold**text with marks: [{"type": "strong"}]
*italic*text with marks: [{"type": "em"}]
- itembulletList > listItem > paragraph
1. itemorderedList > listItem > paragraph
- [] tasktaskList > taskItem (state: TODO/DONE)
` code `text with marks: [{"type": "code"}]Inline code
Code blockcodeBlock with attrs.language
---ruleHorizontal rule
[link](url)text with marks: [{"type": "link", "attrs": {"href": "url"}}]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.08%
按下载量换算169

Claude

31.54%
按下载量换算161

Cursor

18.73%
按下载量换算96

Gemini CLI

10.21%
按下载量换算52

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills