repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

opencode/skills/jira/SKILL.md

Raw

description: Start work on a Jira ticket โ€” fetch details via Atlassian MCP, create branch, plan implementation, set up todos. Use /jira PROJ-123 to begin. arguments:


Jira Ticket Workflow

You are helping the user start work on a Jira ticket. Follow this workflow:

Step 1: Fetch Ticket Details

Use the Atlassian MCP to get the ticket information:

mcp_atlassian_getIssue issueIdOrKey: "<ticket_key>"

Extract and present:

Step 2: Create Git Branch

Based on the ticket type and summary, create an appropriately named branch:

Ticket Type Branch Prefix
Bug fix/
Story/Task feat/
Improvement improve/
Hotfix hotfix/

Branch naming convention: <prefix>/<ticket-key>-<slugified-summary>

Example: feat/PROJ-123-add-user-authentication

Use the git-branch skill to create the branch:

Use the git-branch skill to create branch: <branch-name>

Step 3: Analyze & Plan

  1. Understand the requirements - Parse the description and acceptance criteria
  2. Identify affected areas - What files/components will likely need changes
  3. Create implementation plan - Break down into actionable steps

Step 4: Set Up Todo List

Use the todowrite tool to create a structured todo list based on the ticket:

{
  "todos": [
    {"content": "Understand ticket requirements", "status": "completed", "priority": "high"},
    {"content": "Create implementation plan", "status": "in_progress", "priority": "high"},
    {"content": "<specific task from plan>", "status": "pending", "priority": "medium"},
    ...
  ]
}

Step 5: Summary Report

Provide a concise summary:

๐Ÿ“‹ Ticket: PROJ-123 - Add User Authentication
๐Ÿท๏ธ  Type: Story | Priority: High
๐ŸŒฟ Branch: feat/PROJ-123-add-user-authentication

๐Ÿ“ Summary:
<brief description of what needs to be done>

โœ… Acceptance Criteria:
- [ ] Criterion 1
- [ ] Criterion 2

๐Ÿ“‹ Implementation Plan:
1. First step
2. Second step
3. ...

๐Ÿš€ Ready to start! What would you like to tackle first?

Error Handling

Notes

Markdown source
File outline
---
description: Start work on a Jira ticket โ€” fetch details via Atlassian MCP, create branch, plan implementation, set up todos. Use /jira PROJ-123 to begin.
arguments:
  - name: ticket
    description: Jira ticket key (e.g., PROJ-123)
    required: true
---

# Jira Ticket Workflow

You are helping the user start work on a Jira ticket. Follow this workflow:

## Step 1: Fetch Ticket Details

Use the Atlassian MCP to get the ticket information:

```
mcp_atlassian_getIssue issueIdOrKey: "<ticket_key>"
```

Extract and present:
- **Summary**: The ticket title
- **Description**: Full description
- **Type**: Bug, Story, Task, etc.
- **Priority**: High, Medium, Low
- **Status**: Current status
- **Labels/Components**: Any relevant tags
- **Acceptance Criteria**: If present in description

## Step 2: Create Git Branch

Based on the ticket type and summary, create an appropriately named branch:

| Ticket Type | Branch Prefix |
|-------------|---------------|
| Bug         | `fix/`        |
| Story/Task  | `feat/`       |
| Improvement | `improve/`    |
| Hotfix      | `hotfix/`     |

Branch naming convention: `<prefix>/<ticket-key>-<slugified-summary>`

Example: `feat/PROJ-123-add-user-authentication`

Use the git-branch skill to create the branch:
```
Use the git-branch skill to create branch: <branch-name>
```

## Step 3: Analyze & Plan

1. **Understand the requirements** - Parse the description and acceptance criteria
2. **Identify affected areas** - What files/components will likely need changes
3. **Create implementation plan** - Break down into actionable steps

## Step 4: Set Up Todo List

Use the todowrite tool to create a structured todo list based on the ticket:

```json
{
  "todos": [
    {"content": "Understand ticket requirements", "status": "completed", "priority": "high"},
    {"content": "Create implementation plan", "status": "in_progress", "priority": "high"},
    {"content": "<specific task from plan>", "status": "pending", "priority": "medium"},
    ...
  ]
}
```

## Step 5: Summary Report

Provide a concise summary:

```
๐Ÿ“‹ Ticket: PROJ-123 - Add User Authentication
๐Ÿท๏ธ  Type: Story | Priority: High
๐ŸŒฟ Branch: feat/PROJ-123-add-user-authentication

๐Ÿ“ Summary:
<brief description of what needs to be done>

โœ… Acceptance Criteria:
- [ ] Criterion 1
- [ ] Criterion 2

๐Ÿ“‹ Implementation Plan:
1. First step
2. Second step
3. ...

๐Ÿš€ Ready to start! What would you like to tackle first?
```

## Error Handling

- If ticket not found: Report error and verify the ticket key
- If not in a git repo: Skip branch creation, continue with planning
- If Atlassian MCP unavailable: Ask user to provide ticket details manually

## Notes

- Always confirm the branch name before creating
- Link commits back to the ticket using the ticket key in commit messages
- Consider adding the ticket key to PR titles when ready