|
| 1 | +--- |
| 2 | +name: jira-intake |
| 3 | +description: Use when the user asks to read, start, inspect, or summarize a Jira issue/card such as TAP-12345, including parent, status, assignee, priority, description, comments, attachments, transitions, or moving an issue to In Progress through the Atlassian MCP. |
| 4 | +--- |
| 5 | + |
| 6 | +# Jira Intake |
| 7 | + |
| 8 | +Use this skill to interact with Jira through the Atlassian MCP in a stable, repeatable way. |
| 9 | + |
| 10 | +## Tool Discovery |
| 11 | + |
| 12 | +1. If Atlassian MCP tools are not already visible, call `tool_search` with a query such as `Atlassian Jira get issue transition issue`. |
| 13 | +2. Prefer direct Jira issue tools, especially `mcp__atlassian.getJiraIssue`, `mcp__atlassian.getTransitionsForJiraIssue`, and `mcp__atlassian.transitionJiraIssue`. |
| 14 | +3. Do not start with Atlassian search or resource discovery for known issue keys. In this environment those paths can fail with a 403 error such as `The app is not installed on this instance`, even when direct Jira issue lookup works. |
| 15 | + |
| 16 | +## Known Tapdata Defaults |
| 17 | + |
| 18 | +- Jira site/cloud id: `https://tapdata.atlassian.net` |
| 19 | +- Issue key format: `TAP-12345` |
| 20 | +- Direct lookup is the reliable first move when the user gives an issue key. |
| 21 | + |
| 22 | +## Read A Card |
| 23 | + |
| 24 | +For a request like "查看 TAP-12273" or "开始 TAP-12185": |
| 25 | + |
| 26 | +1. Extract the Jira key from the user message. |
| 27 | +2. Call `mcp__atlassian.getJiraIssue` directly: |
| 28 | + - `cloudId`: `https://tapdata.atlassian.net` |
| 29 | + - `issueIdOrKey`: the issue key |
| 30 | + - `fields`: include `summary`, `description`, `status`, `issuetype`, `priority`, `labels`, `components`, `assignee`, `reporter`, `created`, `updated`, `resolution`, `project`, `parent`, `attachment`, `comment`, and `issuelinks` |
| 31 | + - `expand`: include `names` when supported |
| 32 | + - `responseContentFormat`: `markdown` |
| 33 | +3. If the issue has a parent, call `getJiraIssue` for the parent key too, with at least summary, status, assignee, priority, and description. |
| 34 | +4. Report a concise summary in Chinese by default: |
| 35 | + - title and link |
| 36 | + - status, assignee, priority, issue type |
| 37 | + - parent issue if present |
| 38 | + - key requirements from the description |
| 39 | + - important comments |
| 40 | + - attachment names and whether they need follow-up reading |
| 41 | + - any ambiguity or implementation risk |
| 42 | + |
| 43 | +## Start Implementation |
| 44 | + |
| 45 | +When taking over a Jira issue for code work: |
| 46 | + |
| 47 | +1. Read the issue details first, including description, parent, attachments, comments, status, assignee, and priority. |
| 48 | +2. Get available transitions with `mcp__atlassian.getTransitionsForJiraIssue`. |
| 49 | +3. If a transition to `In Progress` is available and the user asked to start work, call `mcp__atlassian.transitionJiraIssue`. |
| 50 | +4. Before editing code, follow the repository's local instructions. In Tapdata frontend repos this usually means: |
| 51 | + - run `git status --short --branch` |
| 52 | + - create a branch containing the Jira key, such as `feat/TAP-12273-short-description` |
| 53 | + - keep changes scoped to the card |
| 54 | + - push the branch to associate it with Jira |
| 55 | + |
| 56 | +Repository-specific `AGENTS.md` instructions override this section when they are more specific. |
| 57 | + |
| 58 | +## Error Handling |
| 59 | + |
| 60 | +- If `mcp__atlassian.search` fails with 403 or says the app is not installed, do not treat that as proof Jira access is unavailable. Fall back to direct `getJiraIssue` by key. |
| 61 | +- If `getAccessibleAtlassianResources` or `authv2` transport fails, explain that the current session's Atlassian MCP connection is unhealthy or unavailable. A skill cannot grant missing tools or repair a broken MCP auth transport. |
| 62 | +- If direct `getJiraIssue` fails with permission denied, ask the user to confirm the Jira site/account access or open a session where Atlassian MCP is connected. |
| 63 | +- If attachments cannot be downloaded through the tool, summarize the attachment metadata and ask the user to provide the file only when the attachment content is necessary. |
| 64 | + |
| 65 | +## Good Prompts |
| 66 | + |
| 67 | +- `用 jira-intake 查看 TAP-12273` |
| 68 | +- `开始 TAP-12185,先读卡片和父卡,然后按流程建分支` |
| 69 | +- `读取 TAP-12345 的描述、评论和附件,告诉我实现点` |
0 commit comments