Jira 标志

Jira

社区
kv0906
jira

Jira integration via acli CLI. Use when user says '/jira', 'check Jira board', 'create Jira ticket', 'move ticket to done', 'search Jira', 'sync blockers from Jira', 'what's in the sprint', 'Jira status', 'assign ticket', 'view backlog', or wants to interact with Jira issues, sprints, or boards from the terminal.

Add to TypingMind

概览

发布者kv0906
代码仓库pm-kit
技能名称jira
星标数
140
复刻数
35
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 kv0906 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Jira AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/kv0906/pm-kit/tree/main/.claude/skills/jira
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kv0906/pm-kit.git /tmp/pm-kit
mkdir -p .claude/skills
cp -r /tmp/pm-kit/.claude/skills/jira .claude/skills/jira
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Jira,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Jira。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Jira 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

/jira — Jira Integration

Bridge your PM-Kit vault with Jira issue tracking via the acli (Atlassian CLI) command-line tool. View boards, create/edit/transition issues, search via JQL, and sync Jira state with vault notes.

Prerequisites

Context

Today's date: !date +%Y-%m-%d Config: @_core/config.yaml Processing rules: @_core/PROCESSING.md Active projects: !ls 01-index/*.md 2>/dev/null | sed 's|01-index/||;s|\.md||'

Input

User input: $ARGUMENTS

Sub-commands

Parse the first word of $ARGUMENTS to determine the sub-command:

Input starts withSub-commandPurposeRead/Write
setupSetupGuide installation + auth configurationConfig write
boardBoardShow board columns with issue countsRead-only
createCreateCreate a Jira issueJira write + optional vault note
statusStatusShow details for a specific issueRead-only
moveMoveTransition an issue to a new statusJira write + vault note update
editEditUpdate issue fieldsJira write
assignAssignAssign an issue to someoneJira write
backlogBacklogShow backlog itemsRead-only
searchSearchFind issues via JQL or natural languageRead-only
sprintSprintShow active sprint detailsRead-only
syncSyncPull Jira state into vault notesVault write (additive only)
(empty)HelpShow help + quick status summaryRead-only

Step 0: Connection Check

Before any sub-command (except setup), verify acli is installed and authenticated:

bash
# 1. Check acli is installed
command -v acli &>/dev/null

# 2. Check auth works with a simple query
acli jira --action getServerInfo 2>/dev/null

If either fails:

Jira CLI (acli) is not connected yet.

Run `/jira setup` to install and configure — it takes about 2 minutes.

Then stop. Don't attempt other operations without a working connection.

Project Resolution

Many sub-commands accept an optional [PROJECT] argument. Resolve it:

  1. If user provides a Jira project key directly (e.g., TEAM), use it
  2. If user provides a vault project ID (e.g., project-a), look up integrations.jira.project_mapping in _core/config.yaml
  3. If no project specified, check for a single active project or use integrations.jira.default_board
  4. If ambiguous, ask the user

setup — Install & Configure

Guide the user through installing acli and connecting to their Jira instance.

Steps to present:

## Jira CLI Setup

### Step 1: Install acli
  brew install acli

Or download from: https://bobswift.atlassian.net/wiki/spaces/ACLI

### Step 2: Authenticate
  acli jira --server https://YOUR-ORG.atlassian.net --user your@email.com --token YOUR_API_TOKEN --action getServerInfo

Generate an API token at: https://id.atlassian.com/manage-profile/security/api-tokens

### Step 3: Save credentials
Create ~/.acli/credentials with:

  jira.server = https://YOUR-ORG.atlassian.net
  jira.user = your@email.com
  jira.token = YOUR_API_TOKEN

### Step 4: Verify
  /jira

You should see your Jira instance info and recent activity.

After presenting, ask the user for their Jira site URL and email to help configure.

Then update _core/config.yaml integrations block:

yaml
integrations:
  jira:
    enabled: true
    site: "your-org.atlassian.net"
    email: "your@email.com"
    project_mapping:
      project-a: TEAM        # vault project ID: JIRA PROJECT KEY
    default_board: ""
    status_mapping:
      "To Do": wip
      "In Progress": wip
      "Done": shipped
      "Blocked": blocked

Confirm each value with the user before writing.


board — View Board

Show the current board state with issues grouped by column.

Processing

  1. Resolve project (see Project Resolution above)
  2. Fetch board data:
bash
acli jira --action getIssueList --project "PROJECT" --outputType json
  1. Group issues by status and present:
## Jira Board — {PROJECT}

### To Do ({count})
- [{KEY}] {summary} — {assignee} ({priority})

### In Progress ({count})
- [{KEY}] {summary} — {assignee} ({priority})

### Done ({count} recent)
- [{KEY}] {summary} — completed {date}
  1. Highlight any issues matching vault blockers (cross-reference by jira_key in frontmatter)

create — Create Issue

Create a Jira issue, optionally from vault note context.

Processing

  1. Determine source — Check if user provided:

    • A vault file path or wikilink → Read that note for context
    • --type, --summary, --description flags → Use directly
    • Freeform text → Parse into fields
    • Nothing → Ask what to create
  2. Extract issue fields:

    • Project: From vault project mapping or ask
    • Type: Task (default), Bug, Story, Epic — from --type or inferred from note type (blocker→Bug)
    • Summary: From --summary, note H1, or frontmatter title
    • Description: From note body or --description (convert wikilinks to plain text)
    • Priority: Map from blocker severity (high→Highest, medium→High, low→Medium) or ask
    • Assignee: From --assignee or ask (optional)
  3. Confirm with user before creating:

Creating Jira issue:
  Project: {PROJECT}
  Type: {type}
  Summary: {summary}
  Priority: {priority}
  Assignee: {assignee}

Proceed? (y/n)
  1. Create the issue:
bash
acli jira --action createIssue --project "PROJECT" --type "Task" --summary "summary" --description "description" --priority "Medium"
  1. Link back — If created from a vault note, update the note:

    • Add jira_key: KEY-123 to frontmatter
    • Add to ## Links > ### Related:
    markdown
    - [KEY-123](https://site.atlassian.net/browse/KEY-123) — Jira issue
  2. Report the created issue key and URL.


status — Issue Details

Show detailed information for a specific issue.

Processing

  1. Parse issue key from $ARGUMENTS (e.g., TEAM-42)
  2. Fetch issue details:
bash
acli jira --action getIssue --issue "KEY-123" --outputType json
  1. Present formatted output:
## TEAM-42: {summary}

**Status**: {status} | **Priority**: {priority} | **Type**: {type}
**Assignee**: {assignee} | **Reporter**: {reporter}
**Sprint**: {sprint} | **Created**: {date}

### Description
{description}

### Comments ({count})
- {author} ({date}): {comment snippet}...

### Vault Links
- [[blockers/project-a/2026-03-01-api-rate-limit|API Rate Limit]] (jira_key: TEAM-42)
  1. Check vault for any notes with jira_key: KEY-123 in frontmatter and show cross-references.

move — Transition Issue

Move an issue to a new status (e.g., "In Progress" → "Done").

Processing

  1. Parse issue key and target status from $ARGUMENTS
    • e.g., /jira move TEAM-42 "Done" or /jira move TEAM-42 done
  2. Fetch available transitions:
bash
acli jira --action getTransitionList --issue "KEY-123"
  1. Match target status (case-insensitive, fuzzy match)
  2. Confirm before executing:
Moving TEAM-42: "API Rate Limit Fix"
  From: In Progress
  To: Done

Proceed? (y/n)
  1. Execute transition:
bash
acli jira --action transitionIssue --issue "KEY-123" --transition "Done"
  1. Update vault — If a vault note has jira_key: KEY-123:
    • If moved to a "shipped" status (per status_mapping): Update note status: resolved or status: shipped
    • If moved to a "blocked" status: Flag in daily note
    • Check if archive_on_status_change applies

edit — Update Issue Fields

Update fields on an existing Jira issue.

Processing

  1. Parse issue key and fields from $ARGUMENTS
    • --summary "new title", --description "new desc", --priority High, --labels "label1,label2"
  2. Confirm before executing:
Updating TEAM-42:
  summary: "New Title"
  priority: High

Proceed? (y/n)
  1. Execute update:
bash
acli jira --action updateIssue --issue "KEY-123" --summary "New Title" --priority "High"

assign — Assign Issue

Assign an issue to a team member.

Processing

  1. Parse issue key and assignee from $ARGUMENTS
    • /jira assign TEAM-42 "john.doe" or /jira assign TEAM-42 me
  2. If me, resolve current user from config
  3. Confirm before executing:
Assigning TEAM-42 to john.doe

Proceed? (y/n)
  1. Execute:
bash
acli jira --action updateIssue --issue "KEY-123" --assignee "john.doe"

backlog — View Backlog

Show backlog items not in the active sprint.

Processing

  1. Resolve project
  2. Fetch backlog issues:
bash
acli jira --action getIssueList --project "PROJECT" --filter "sprint not in openSprints()" --outputType json
  1. Present sorted by priority:
## Backlog — {PROJECT} ({count} items)

### High Priority
- [{KEY}] {summary} — {type} ({assignee})

### Medium Priority
- [{KEY}] {summary} — {type} ({assignee})

### Low / Unset
- [{KEY}] {summary} — {type}

search — Search Issues

Find issues using JQL or natural language queries.

Processing

  1. Parse query from $ARGUMENTS (everything after "search")

  2. Determine if it's JQL or natural language:

    • Contains JQL operators (=, in, AND, ORDER BY, field names like assignee, status) → Use as JQL
    • Otherwise → Convert natural language to JQL
  3. Natural language → JQL conversion examples:

    • "my open bugs" → assignee = currentUser() AND type = Bug AND status != Done
    • "high priority in TEAM" → project = TEAM AND priority in (Highest, High)
    • "created this week" → created >= startOfWeek()
    • "blocked items" → status = Blocked OR labels = blocked

    When unsure, refer to references/jql-cheatsheet.md for patterns.

  4. Execute search:

bash
acli jira --action getIssueList --jql "YOUR_JQL" --outputType json
  1. Present results:
## Jira Search: "{query}"

Found {count} issues:

| Key | Summary | Status | Assignee | Priority | Updated |
|-----|---------|--------|----------|----------|---------|
| {key} | {summary} | {status} | {assignee} | {priority} | {date} |
  1. Offer follow-up actions: "Want to /jira status KEY for details or /jira move KEY status to transition?"

sprint — Active Sprint

Show the active sprint with progress metrics.

Processing

  1. Resolve project
  2. Fetch active sprint data:
bash
acli jira --action getIssueList --project "PROJECT" --filter "sprint in openSprints()" --outputType json
  1. Present with metrics:
## Active Sprint — {sprint name}

**Dates**: {start} → {end} ({days remaining} days left)
**Progress**: {done}/{total} issues ({percent}%)

### Done ({count})
- [{KEY}] {summary}

### In Progress ({count})
- [{KEY}] {summary} — {assignee}

### To Do ({count})
- [{KEY}] {summary} — {assignee}

### Blocked ({count})
- [{KEY}] {summary} — ⚠ {blocker reason}

sync — Pull Jira State Into Vault

Sync Jira issue state with vault notes. Additive only — creates/updates vault notes, never deletes.

Processing

  1. Create a session task for progress tracking
  2. Resolve project (or sync all mapped projects)
  3. Read integrations.jira.status_mapping and integrations.jira.project_mapping from config
  4. Fetch recent issues (updated in last 7 days, or --days N):
bash
acli jira --action getIssueList --project "PROJECT" --jql "updated >= -7d" --outputType json
  1. For each issue, determine vault action based on status_mapping:

    Blocked issues → Create/update blocker notes:

    • Check if a blocker note with jira_key: KEY already exists
    • If not, create one using _templates/blocker.md:
      • jira_key: KEY-123 in frontmatter
      • tags: [KEY-123]
      • severity mapped from Jira priority
      • ## Links includes [KEY-123](https://site/browse/KEY-123)
    • If exists and still blocked, skip (no-op)
    • If exists but now resolved in Jira, update status: resolved

    Shipped issues → Update daily note:

    • Check today's daily note exists
    • Append shipped items under the relevant project's ### Shipped section
    • Format: - [{KEY}] {summary} ✓

    Resolved blockers → Archive:

    • Find vault blockers with matching jira_key where Jira status maps to "shipped"
    • Update status: resolved (auto-archive rules will handle the rest)
  2. Bulk safety: If sync would create 5+ new notes, show summary and confirm:

Sync will create:
  - 3 new blocker notes
  - 7 shipped items added to daily note
  - 2 blockers resolved

Proceed? (y/n)
  1. Report what was synced:
## Jira Sync Complete — {date}

Created: 3 blocker notes
Updated: 2 blockers → resolved
Daily: 7 shipped items added
Skipped: 12 issues (no vault action needed)

Flags

  • --days N — Look back N days (default: 7)
  • --dry-run — Show what would change without writing
  • --project {name} — Sync only one project

(empty) — Help & Quick Status

When called with no arguments, show help and a quick status summary.

Processing

  1. Check acli connection status
  2. Read Jira config from _core/config.yaml
  3. Count vault notes linked to Jira issues:
bash
grep -rl "^jira_key:" --include="*.md" | wc -l
  1. Present:
## Jira Integration

**Status**: Connected to {site}
**Mapped projects**: {project-a} → TEAM, ...
**Vault links**: {count} notes linked to Jira issues

### Commands

| Command | Example | Purpose |
|---------|---------|---------|
| board | `/jira board TEAM` | View board columns |
| create | `/jira create TEAM --summary "..."` | Create issue |
| status | `/jira status TEAM-42` | Issue details |
| move | `/jira move TEAM-42 Done` | Transition issue |
| edit | `/jira edit TEAM-42 --summary "..."` | Update fields |
| assign | `/jira assign TEAM-42 john` | Assign issue |
| backlog | `/jira backlog TEAM` | View backlog |
| search | `/jira search "my open bugs"` | Search via JQL |
| sprint | `/jira sprint TEAM` | Active sprint |
| sync | `/jira sync` | Pull state into vault |
| setup | `/jira setup` | Configure connection |

Vault Integration Patterns

Frontmatter Tagging

When a vault note is linked to a Jira issue, add to frontmatter:

yaml
jira_key: TEAM-42
tags: [TEAM-42]

Cross-Reference Format

In note body and ## Links sections, use:

markdown
[TEAM-42](https://your-org.atlassian.net/browse/TEAM-42)

Status Mapping

Map Jira statuses to PM-Kit categories via integrations.jira.status_mapping in config:

Jira StatusPM-Kit Category
To Dowip
In Progresswip
Doneshipped
Blockedblocked

Users can customize this mapping for their Jira workflow (e.g., add "In Review" → wip).

Safety Rules

  1. Read-only commands execute without confirmation: board, status, search, sprint, backlog
  2. Mutating commands require confirmation: create, move, edit, assign
  3. Sync is additive only — creates/updates vault notes, never deletes vault content
  4. Bulk operations (5+ changes) show summary before proceeding
  5. API tokens are handled by acli — never log, display, or store tokens in vault files
  6. Never auto-transition Jira issues based on vault changes — Jira writes only happen via explicit commands

Error Handling

ErrorResponse
acli not installedShow install instructions, suggest /jira setup
Not authenticatedShow auth steps, link to API token page
Invalid project keyShow available projects from config mapping
Issue not foundSuggest search, check key format
Transition not availableShow available transitions for the issue
No project mappingAsk user to configure in _core/config.yaml or run /jira setup

Additional Resources

Reference Files

  • references/jql-cheatsheet.md — Common JQL patterns for PMs

Scripts

  • scripts/check-jira.sh — Verify acli installation and auth status

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Jira AI 技能有什么作用?

Jira integration via acli CLI. Use when user says '/jira', 'check Jira board', 'create Jira ticket', 'move ticket to done', 'search Jira', 'sync blockers from Jira', 'what's in the sprint', 'Jira status', 'assign ticket', 'view backlog', or wants to interact with Jira issues, sprints, or boards from the terminal.

为什么在 TypingMind 中使用 Jira?

因为您只需安装一次,就能搭配任何模型使用。Jira 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Jira?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/kv0906/pm-kit/tree/main/.claude/skills/jira。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Jira?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Jira 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Jira 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Jira AI 技能免费吗?

是的。kv0906 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇