/bellosoft-default-skills:bellosoft-jirafrom bellosoft-default-skills
Central Jira integration layer for all bellosoft skills. Handles ALL Jira operations — create/update epics, stories, tasks, sprints, comments, and project scaffolding. Other bellosoft skills MUST delegate Jira operations here rather than calling Atlassian MCP tools directly. Triggers: /bellosoft-jira, "create jira epic", "push to jira", "update jira ticket", "sync to jira", or when any bellosoft skill needs to read/write Jira. Also the Jira backend for the mattpocock-skills plugin (to-spec, to-tickets, triage, wayfinder) via docs/agents/issue-tracker.md, and for its setup-matt-pocock-skills choosing Jira.
Ships in bellosoft-default-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is the Jira service layer for the bellosoft ecosystem.
All other bellosoft skills delegate Jira operations here. No other skill should call Atlassian MCP tools directly — route through this skill instead.
/bellosoft-jira setup ← first-time project scaffold
/bellosoft-jira create-epic ← create epic (called by plan-epic)
/bellosoft-jira create-story ← create story (called by plan-epic, dev-plan)
/bellosoft-jira create-task ← create sub-task (called by plan-epic, plan-adhoc)
/bellosoft-jira create-sprint ← create sprint (called by plan-epic)
/bellosoft-jira update ← transition/comment/assign/label/edit (called by sync, dev-review, Matt Pocock skills)
/bellosoft-jira link ← "blocks" link between two issues (called by Matt Pocock skills)
/bellosoft-jira search ← list issues by JQL (called by Matt Pocock skills)
/bellosoft-jira get ← fetch issue by key (called by dev-plan, sprint)
/bellosoft-jira list-sprint ← list active sprint (called by bellosoft-sprint)
/bellosoft-jira sync-epics ← bulk push docs/planning-artifacts/epics.md → Jira
/bellosoft-jira import ← import existing Jira project → docs/planning-artifacts/
At the start of every invocation, load:
references/jql-guide.md
This file contains the Jira API quirks, ADF format rules, custom field names, issue type hierarchy, and JQL patterns. Never skip this.
Subagent / terminal context: If you were spawned as a Task subagent or are running in a bash/terminal session,
mcp__atlassian__*tools will NOT be in your tool list. This is normal and expected. Skip the MCP path in Step 1b and go straight to REST. Do NOT try to detect MCP availability by readingmcp.json,.claude/settings.json, or any config file — tool availability is determined by what's in your tool list only.
Goal: resolve all credentials and identifiers upfront. Never ask mid-operation.
Jira REST API requires JIRA_URL, JIRA_USERNAME (email), and JIRA_API_TOKEN for all curl fallback calls.
Always check all credential sources first — in this exact order:
⚠️ Use direct file reads, not glob search. Run the
cat/Get-Contentcommands below. Do NOT use file-search or glob tools (e.g. searching**/.secrets/**) — that pattern does not match files directly inside.secrets/and will return no results.
1. Individual secret files:
# Windows (PowerShell):
if (Test-Path ".secrets/jira-url.txt") { (Get-Content ".secrets/jira-url.txt" -Raw).Trim() }
if (Test-Path ".secrets/jira-username.txt") { (Get-Content ".secrets/jira-username.txt" -Raw).Trim() }
if (Test-Path ".secrets/jira-api-token.txt") { (Get-Content ".secrets/jira-api-token.txt" -Raw).Trim() }
# Mac/Linux (bash):
cat .secrets/jira-url.txt 2>/dev/null | tr -d '\n'
cat .secrets/jira-username.txt 2>/dev/null | tr -d '\n'
cat .secrets/jira-api-token.txt 2>/dev/null | tr -d '\n'
2. Combined credentials file — check .secrets/jira-credentials.txt (any format):
cat .secrets/jira-credentials.txt 2>/dev/null
# Also check common variants:
cat .secrets/jira-credential.txt 2>/dev/null
cat .secrets/jira.txt 2>/dev/null
Parse whatever format is present — look for URL, email/username, and token/password values.
3. Profile file — read docs/planning-artifacts/jira-profile.md for jira_url (project config). Read .secrets/jira-identity.txt for email and account_id (personal identity, saved by previous runs).
4. Env vars — JIRA_URL, JIRA_USERNAME, JIRA_API_TOKEN
5. Only if a value is still missing after all above — prompt once:
"What is your Jira URL? (e.g. https://yourorg.atlassian.net)""What is your Jira email address?""What is your Jira API token? (get it from id.atlassian.com → Security → API tokens)"6. After obtaining any missing value — save to .secrets/jira-{url,username,api-token}.txt and ensure .secrets/ is gitignored:
grep -qxF '.secrets/' .gitignore || echo '.secrets/' >> .gitignore
All subsequent curl calls use: -u "{username}:{api-token}" "{jira_url}/rest/api/3/..."
MCP is the PRIMARY path when available — but only available in the main session.
⚠️ Subagent check: If you were spawned as a Task subagent or are running via bash/terminal, MCP tools (
mcp__atlassian__*) are NOT in your tool list. Do not attempt to call them. Check your available tools list — ifmcp__atlassian__jira_get_myselfis not present, skip directly to the REST fallback path. Do not readmcp.jsonor any config file — MCP availability is determined by whether the tool exists in your tool list, not by config.
If mcp__atlassian__jira_get_myself IS in your tool list:
mcp__atlassian__jira_get_myself()
If mcp__atlassian__jira_get_myself is NOT in your tool list → use REST for all operations.
MCP is faster and more reliable than REST. But REST is correct when MCP is unavailable — don't treat it as a failure.
Identity is personal — save to .secrets/, not to docs/planning-artifacts/jira-profile.md.
Resolution order:
.secrets/jira-identity.txt — if account_id line present, use silently.accountId, displayName, emailAddress)JIRA_URL=$(cat .secrets/jira-url.txt | tr -d '\n')
JIRA_USER=$(cat .secrets/jira-username.txt | tr -d '\n')
JIRA_TOKEN=$(cat .secrets/jira-api-token.txt | tr -d '\n')
curl -s -u "$JIRA_USER:$JIRA_TOKEN" -H "Accept: application/json" \
"$JIRA_URL/rest/api/3/myself" > /tmp/jira_myself.json
cat /tmp/jira_myself.json
Read the output file and extract: displayName, accountId, emailAddress.secrets/jira-identity.txt (ensure .secrets/ is gitignored):
account_id={accountId}
display_name={displayName}
email={emailAddress}
docs/planning-artifacts/status.md for jira_project_key: — use silently if foundmcp__atlassian__jira_get_all_projects()) or REST:
JIRA_URL=$(cat .secrets/jira-url.txt | tr -d '\n')
JIRA_USER=$(cat .secrets/jira-username.txt | tr -d '\n')
JIRA_TOKEN=$(cat .secrets/jira-api-token.txt | tr -d '\n')
curl -s -u "$JIRA_USER:$JIRA_TOKEN" -H "Accept: application/json" \
"$JIRA_URL/rest/api/3/project/search" > /tmp/jira_projects.json
cat /tmp/jira_projects.json
"Using project: {KEY} ({name})""No projects found. Type 'create' to scaffold one." → CREATE_PROJECTdocs/planning-artifacts/status.md under jira_project_key:The board type (board_type in jira-profile.md) decides which issue types exist. Never create any other type.
| Board | Issue types | Hierarchy |
|---|---|---|
| scrum | Epic, User Story, Sub-task, Sub-bug | Epic → User Story → Sub-task / Sub-bug |
| kanban | Task, Bug | None. Tasks and Bugs never have child issues |
Match these names against the issue types discovered in SETUP (case-insensitive; a project may call "User Story" just "Story"). If a required type is missing from the project, stop and tell the user rather than substituting another type.
These rules are non-negotiable. Violating them causes Jira API errors:
| Concern | ❌ Wrong | ✅ Correct |
|---|---|---|
| Issue description | plain string | ADF object (see jql-guide.md) |
| Epic link (next-gen) | Epic Link field | parent field with epic issue key |
| Epic link (classic) | parent field | customfield_10014 = epic key |
| Story points | story_points | discover via jira_get_fields first |
| Sprint assignment | sprint | customfield_10020 = sprint ID (integer, not name) |
| Transitions | status name | jira_get_issue_transitions → use transition ID |
| Subtask parent | subtask type only | parent: {key: "PROJ-123"} |
| Issue type name | hardcode "Story" | discover via jira_get_issue_types first |
Project type matters:
parent fieldcustomfield_10014; subtasks need parent fieldSub-task field quirks (classic projects):
description — Jira's create-meta incorrectly reports "type": "string". Always send ADF. Sending plain text causes 400.customfield_10033 (Story Points) — Not available on Sub-tasks. Omit entirely or you get 400.timetracking — Supported on Sub-tasks. Always set originalEstimate. If create rejects it, set via update immediately after. Never skip it.parent — Required. Must be {"key": "PROJ-123"} — do NOT use {"id": "..."} or a bare string.Always detect project type at setup:
mcp__atlassian__jira_search(jql="project = {KEY} AND issuetype = Epic", max_results=1)
Store detected type in docs/planning-artifacts/jira-profile.md.
ADF format for descriptions:
{
"type": "doc",
"version": 1,
"content": [
{ "type": "paragraph", "content": [{ "type": "text", "text": "Your text" }] }
]
}
See references/jql-guide.md for full ADF patterns.
⚠️ PowerShell REST fallback — ADF serialization pitfall:
When building Jira request bodies in PowerShell, do NOT construct ADF as nested hashtables
and pass through ConvertTo-Json. Deep nesting is silently truncated at the default -Depth 2.
# ❌ Wrong — ConvertTo-Json silently truncates nested ADF content
$body = @{ fields = @{ description = @{ type="doc"; version=1; content=@(...) } } }
$json = $body | ConvertTo-Json # WRONG: loses nested content
# ✅ Correct — build the entire JSON as a raw here-string
$json = @"
{
"fields": {
"description": {
"type": "doc", "version": 1,
"content": [{"type":"paragraph","content":[{"type":"text","text":"..."}]}]
}
}
}
"@
Invoke-RestMethod -Uri $url -Method Post -Headers $headers -Body $json -ContentType "application/json"
Or use ConvertTo-Json -Depth 10 minimum if you must use hashtables.
Custom field discovery: Always discover before first use — never assume field IDs:
mcp__atlassian__jira_get_fields()
Filter by name for: "Story Points", "Story point estimate", "Sprint", "Epic Link", "Epic Name".
Cache results in session. Store discovered IDs in docs/planning-artifacts/jira-profile.md.
Runs automatically on first use (triggered by Step 1 above). Discovers and caches everything needed so subsequent operations never need to ask questions.
ALREADY CONFIGURED CHECK — run this first:
docs/planning-artifacts/jira-profile.md exists and contains project_key, board_type and issue_types, and .secrets/jira-identity.txt contains account_id
board_type missing (profiles from before it existed) → run step 5 below alone, add it to the profile, then continue as complete.✅ Jira already configured:
Project: {project_key} ({project_name})
Type: {project_type}
Board: {board_type}
User: (from .secrets/jira-identity.txt)
Issue types: {issue types allowed for board_type}
No setup needed. To refresh, delete docs/planning-artifacts/jira-profile.md first.
Steps (only if not already configured):
mcp__atlassian__jira_get_issue_types(project_key) → save type IDsmcp__atlassian__jira_get_fields() → save custom field IDs (story points, sprint, epic link)GET /rest/agile/1.0/board?projectKeyOrId={KEY} → each board's type
(scrum | kanban) and id. One board, or all boards of the same type → record it silently.
Boards of both types → ask once which board this repo works against.docs/planning-artifacts/jira-profile.mdSETUP is silent and automatic. It asks nothing, except the board question in step 5 when the project has both a Scrum and a Kanban board.
Output — two separate files:
docs/planning-artifacts/jira-profile.md — project config only (safe to commit):
# Jira Profile
- **jira_url**: https://yourorg.atlassian.net
- **project_key**: PROJ
- **project_type**: next-gen | classic
- **board_id**: 42
- **board_type**: scrum | kanban
- **issue_types**: (only the types allowed for board_type, see "Bellosoft issue-type convention")
- Epic: 10000
- User Story: 10001
- Sub-task: 10003
- Sub-bug: 10005
- **custom_fields**:
- story_points: customfield_10058
- sprint: customfield_10020
- epic_link: customfield_10014 (classic only)
- **global_statuses**:
- To Do: 10007
- In Progress: 3
- Done: 10010
.secrets/jira-identity.txt — personal identity only (gitignored, never committed):
account_id={accountId}
display_name={displayName}
email={emailAddress}
Called by: tracker bootstrap (when user has no Jira project)
Creates a new Jira project with bellosoft-standard configuration.
Input:
project_name: string (e.g. "My App")
project_key: string (e.g. "MYAPP" — 2-10 uppercase letters, must be unique)
project_type: "scrum" | "kanban" | "next-gen"
lead_account_id: string (from jira-profile.md — current user)
Key selection rules:
Steps:
Confirm project details with user:
Creating Jira project:
Name: {project_name}
Key: {project_key}
Type: {project_type}
Proceed? [y/n]
Create via MCP:
mcp__atlassian__jira_create_project(
name = "{project_name}",
key = "{project_key}",
project_type_key = "software",
project_template_key = "com.pyxis.greenhopper.jira:gh-simplified-agility-scrum"
)
If MCP does not expose project creation → provide REST curl:
curl -s -X POST "{JIRA_URL}/rest/api/3/project" -u "{JIRA_USERNAME}:{JIRA_API_TOKEN}" -H "Content-Type: application/json" -d '{
"name": "{project_name}",
"key": "{project_key}",
"projectTypeKey": "software",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-simplified-agility-scrum",
"leadAccountId": "{lead_account_id}"
}'
After creation, run SETUP automatically to discover issue types, custom fields, board ID.
Save to :
tracker: jira
jira_project_key: {project_key}
Output:
✅ Jira project created: {project_name} ({project_key})
Board URL: {JIRA_URL}/jira/software/projects/{project_key}/boards
Setup complete — issue types, fields, and board ID saved to docs/planning-artifacts/jira-profile.md
Project template options (for Scrum teams):
Called by: bellosoft-plan-epic after approval; /mattpocock-skills:to-spec and /mattpocock-skills:wayfinder (Matt Pocock skills)
Input:
title: string
description: string (plain text or markdown — skill converts to ADF)
epic_number: string (optional, e.g. "E1" — bellosoft-plan-epic only)
labels: string[] (optional, added to "ai-generated")
Without epic_number (Matt Pocock skills): use the plain {title} as summary and
omit the Source: docs/planning-artifacts/epics.md paragraph.
Never summarize any title, description, AC nor test scenario, every text on the planning documents matter.
Execution:
Load docs/planning-artifacts/jira-profile.md. Build ADF description:
{
"type": "doc", "version": 1,
"content": [
{ "type": "paragraph", "content": [{ "type": "text", "text": "{description}" }] },
{ "type": "paragraph", "content": [
{ "type": "text", "text": "Source: docs/planning-artifacts/epics.md — Epic {epic_number}",
"marks": [{"type": "em"}] }
]}
]
}
Create issue:
mcp__atlassian__jira_create_issue(
project_key = "{KEY}",
summary = "Epic {N}: {title}",
issue_type = "Epic",
description = {ADF object},
additional_fields = { "labels": ["ai-generated"] }
)
For classic projects, also set in additional_fields:
{ "customfield_10011": "{title}" }
(Epic Name field — required in classic)
Returns: { epic_key (e.g. PROJ-5), id, url }
Called by: bellosoft-plan-epic, bellosoft-dev-plan (free-text flow), bellosoft-plan-adhoc;
/mattpocock-skills:to-tickets, /mattpocock-skills:triage, /mattpocock-skills:wayfinder (Matt Pocock skills)
Input:
title: string
user_story: string ("As a ... I want ... so that ...") — OR —
body: string (markdown; Matt Pocock skills pass their full ticket body instead)
acceptance_criteria: string[] (optional when body already contains them)
epic_key: string (optional, e.g. PROJ-5)
issue_type: "User Story" (scrum) | "Task" | "Bug" (kanban) — optional, default: "User Story" on scrum, "Task" on kanban
sprint_id: number (optional)
estimate_hours: number (optional — omit for Matt Pocock skills, which never estimate)
priority: "Highest" | "High" | "Medium" | "Low" | "Lowest"
assignee_id: string (optional — account_id)
labels: string[] (optional)
Never summarize any title, description, AC nor test scenario, every text on the planning documents matter.
Execution:
Build ADF description with user story + acceptance criteria list.
See references/jql-guide.md for the story ADF template.
Build additional_fields:
{
"{story_points_field}": {estimate_hours},
"timetracking": { "originalEstimate": "{estimate_hours}h" },
"customfield_10020": {sprint_id},
"labels": {labels},
"priority": {"name": "{priority}"},
"assignee": {"accountId": "{assignee_id}"}
}
⚠️ {story_points_field} must be resolved before this call. If jira-profile.md does not contain story_points under custom_fields, run:
mcp__atlassian__jira_get_fields()
or REST:
curl -s -u "{username}:{api-token}" "{jira_url}/rest/api/3/field" | ConvertFrom-Json | Where-Object { $_.name -match "story point|estimate" }
Cache the field ID in jira-profile.md. Never skip this — a missing field ID silently drops the estimate.
No estimate_hours given → omit {story_points_field} and timetracking entirely. Never invent an estimate.
Likewise omit customfield_10020, priority and assignee when not given.
For next-gen: add "parent": {"key": "{epic_key}"} to additional_fields.
For classic: add "customfield_10014": "{epic_key}" instead.
On a kanban board, epic_key is never set: Tasks and Bugs have no parent.
mcp__atlassian__jira_create_issue(
project_key = "{KEY}",
summary = "{title}",
issue_type = "{issue_type}",
description = {ADF object},
additional_fields = {fields}
)
Add source comment after creation, naming the calling skill:
mcp__atlassian__jira_add_comment(
issue_key = "{key}",
comment = "Created by {calling skill, e.g. bellosoft-plan-epic or /mattpocock-skills:to-tickets}"
)
Returns: { story_key (e.g. PROJ-12), id, url }
Called by: bellosoft-plan-epic (sub-tasks), bellosoft-plan-adhoc; /mattpocock-skills:to-tickets, /mattpocock-skills:triage (Matt Pocock skills)
Input:
title: string (short action phrase, max ~60 chars — NO implementation details here)
implementation_notes: string (the specifics: file paths, method names, field lists, patterns to follow)
body: string (Matt Pocock skills: full markdown body, used instead of implementation_notes + acceptance_criterion)
task_id: string (optional for Matt Pocock skills — e.g. "E1-S1-T1", epic.story.task numbers)
acceptance_criterion: string
estimate_hours: number (optional — omit for Matt Pocock skills, which never estimate)
parent_story_key: string (e.g. PROJ-12)
issue_type: "Sub-task" | "Sub-bug" (optional, default "Sub-task"; Sub-bug when the work fixes a defect)
area_tag: string (BE | FE | DEVOPS | QA)
labels: string[] (optional)
Matt Pocock skills (scrum only): summary is [{area_tag}] {title} (no task_id), description is
body converted to ADF, and there is no Estimate paragraph or timetracking. QA items use
area_tag = QA and title QA: {User Story title}.
Title rule: Keep title short, but at the same time never summarize it from the specification document — it is the Jira summary field shown in board/list views.
Move all specifics (file paths, method names, field lists) to implementation_notes.
Never summarize any title, description, AC nor test scenario, every text on the planning documents matter.
| ❌ Too long (don't do this) | ✅ Correct |
|---|---|
Create Tenant.cs POCO in 123auto.Core/Entities/Tenant.cs with fields: Id (Guid), Name, Slug... | Create Tenant entity |
Add ScheduleAsync(campaignId, runAt) method to CampaignService.cs following SendAsync pattern | Add campaign scheduling method |
Task summary format: {task_id} [{area_tag}] {title}
task_id = the decomposition ID (e.g. E1-S1-T1)area_tag = the tag from the area_tag parameter (e.g. BE, FE, DEVOPS, QA)title = short action phrase, NO tag prefix
Example: E8-S2-T1 [BE] Add campaign scheduling methodIssue type selection:
issue_type ("Sub-task" or "Sub-bug") with parent field. Scrum boards only.Execution:
Build ADF description (always ADF, even for Sub-tasks — plain text causes 400):
{
"type": "doc", "version": 1,
"content": [
{ "type": "heading", "attrs": {"level": 3},
"content": [{"type": "text", "text": "Description"}] },
{ "type": "paragraph", "content": [{"type": "text", "text": "{implementation_notes}"}] },
{ "type": "heading", "attrs": {"level": 3},
"content": [{"type": "text", "text": "Acceptance Criterion"}] },
{ "type": "paragraph", "content": [{"type": "text", "text": "{acceptance_criterion}"}] },
{ "type": "paragraph", "content": [
{"type": "text", "text": "Estimate: {estimate_hours}h", "marks": [{"type": "strong"}]}
]}
]
}
If implementation_notes is empty, omit the Description heading and paragraph entirely.
If issue_type is "Sub-task" or "Sub-bug" (has a parent story):
mcp__atlassian__jira_create_issue(
project_key = "{KEY}",
summary = "{task_id} [{area_tag}] {title}",
issue_type = "{issue_type}", // {area_tag} comes from the area_tag parameter
description = {ADF},
additional_fields = {
"parent": {"key": "{parent_story_key}"},
"timetracking": {"originalEstimate": "{estimate_hours}h"},
"labels": {labels}
}
)
⚠️ Do NOT include story-points (customfield_10033) for Sub-tasks — not available, causes 400.
timetracking IS supported on Sub-tasks and must be set whenever estimate_hours is given (omit it otherwise).
If create returns 400 on timetracking, create without it then immediately call:
mcp__atlassian__jira_update_issue(
issue_key = "{task_key}",
fields = {"timetracking": {"originalEstimate": "{estimate_hours}h"}}
)
If issue_type is "Task" (standalone, no parent):
mcp__atlassian__jira_create_issue(
project_key = "{KEY}",
summary = "{task_id} [{area_tag}] {title}",
issue_type = "Task", // {area_tag} comes from the area_tag parameter
description = {ADF},
additional_fields = {
"{story_points_field}": {estimate_hours},
"timetracking": { "originalEstimate": "{estimate_hours}h" },
"labels": {labels}
}
)
Returns: { task_key, id, url }
Called by: bellosoft-plan-epic before pushing stories
Input:
name: string (e.g. "Sprint 3")
start_date: string (ISO-8601: 2026-06-10T00:00:00.000Z)
end_date: string (ISO-8601: 2026-06-24T00:00:00.000Z)
board_id: number (from jira-profile.md)
First check for existing sprint with same name:
mcp__atlassian__jira_search(
jql = 'project = {KEY} AND sprint = "{name}"',
max_results = 1
)
If exists → confirm with user before creating duplicate.
If not exists → create:
mcp__atlassian__jira_create_sprint(
board_id = {board_id},
name = "{name}",
start_date = "{start_date}",
end_date = "{end_date}"
)
If jira_create_sprint is unavailable → inform user and output the curl command:
curl -s -X POST \
"{JIRA_URL}/rest/agile/1.0/sprint" \
-H "Authorization: Bearer {JIRA_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"name":"{name}","startDate":"{start_date}","endDate":"{end_date}","originBoardId":{board_id}}'
Returns: { sprint_id, name }
Called by: bellosoft-sync after dev milestones; bellosoft-qa-handoff; Matt Pocock skills (/mattpocock-skills:triage, /mattpocock-skills:wayfinder, /mattpocock-skills:implement)
Input:
issue_key: string (e.g. PROJ-42)
action: "transition" | "comment" | "assign" | "label" | "edit"
status_name: string (for transition — e.g. "In Progress", "In Review", "Done")
comment: string (for comment — plain text or markdown: headings, lists, bold)
assignee_id: string (for assign — account_id, or "me" for the current user)
label_op: "add" | "remove" (for label)
label: string (for label — no spaces; Jira labels can't contain them)
field: "summary" | "description" (for edit)
value: string (for edit — new full value; markdown for description)
Transition:
mcp__atlassian__jira_get_issue_transitions(issue_key) → map name → transition IDmcp__atlassian__jira_transition_issue(issue_key, transition_id)Comment:
mcp__atlassian__jira_add_comment(issue_key, comment)
MCP accepts markdown as-is. REST (POST /rest/api/3/issue/{issue_key}/comment) needs ADF: convert
headings, numbered/bulleted lists and bold to their ADF nodes (see references/jql-guide.md) so the
comment keeps its structure. Never flatten it to a single paragraph.
Assign:
mcp__atlassian__jira_update_issue(
issue_key,
fields = { "assignee": { "accountId": "{assignee_id}" } }
)
assignee_id = "me" → use account_id from .secrets/jira-identity.txt (Step 1c).
Label (add or remove one label without touching the others):
REST: PUT /rest/api/3/issue/{issue_key}
{ "update": { "labels": [ { "{label_op}": "{label}" } ] } }
With MCP, read the current labels first, then jira_update_issue(issue_key, fields={"labels": [...]})
with the full new list.
Edit (summary or description):
mcp__atlassian__jira_update_issue(issue_key, fields = { "{field}": {value} })
Description is always ADF. To append (e.g. a wayfinder Decisions-so-far pointer), GET the issue first and send the full description with the addition — never drop existing text.
Hard rule: Never transition to Done/Closed without explicit ✅ READY signal
from bellosoft-dev-review or explicit user instruction.
Called by: bellosoft-dev-plan, bellosoft-sprint
Input: issue_key: string (e.g. PROJ-42 or a full Jira URL)
If a full Jira URL is given, extract the issue key first:
selectedIssue=AP-29 → AP-29/browse/AP-29 → AP-29[A-Z]+-\d+ anywhere in the URLTry MCP first:
mcp__atlassian__jira_get_issue(issue_key)
If MCP unavailable, fall back to REST:
⚠️ Critical: save to a temp file, then read it. Do NOT pipe curl output to
jq,python3,node, or any external formatter — these are unreliable or absent on Windows. Write the response to a temp file andcatit so you can read the raw JSON directly.
# On Mac/Linux (bash) — save to temp file then read:
JIRA_URL=$(cat .secrets/jira-url.txt | tr -d '\n')
JIRA_USER=$(cat .secrets/jira-username.txt | tr -d '\n')
JIRA_TOKEN=$(cat .secrets/jira-api-token.txt | tr -d '\n')
curl -s -u "$JIRA_USER:$JIRA_TOKEN" \
-H "Accept: application/json" \
"$JIRA_URL/rest/api/3/issue/{issue_key}" > /tmp/jira_issue.json
cat /tmp/jira_issue.json
# On Windows (PowerShell) — Invoke-RestMethod returns a parsed object directly:
$url = (Get-Content .secrets/jira-url.txt -Raw).Trim()
$user = (Get-Content .secrets/jira-username.txt -Raw).Trim()
$token = (Get-Content .secrets/jira-api-token.txt -Raw).Trim()
$creds = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("${user}:${token}"))
$issue = Invoke-RestMethod -Uri "$url/rest/api/3/issue/{issue_key}" \
-Headers @{Authorization="Basic $creds"; Accept="application/json"}
# $issue is now a parsed object — access $issue.fields.summary etc. directly
After running the bash version, read the /tmp/jira_issue.json file and extract fields from the raw JSON string yourself — no external parser needed.
Parse and return structured object:
key, summary, description (extract text from ADF)status.name, assignee.displayName, priority.nameacceptance_criteria — extract from ADF (look for "Acceptance Criteria" heading)sprint — from customfield_10020story_points — from discovered story points fieldparent — epic key if setlabels, issuetype.name, createdissuelinks — as blocks: [keys] and is_blocked_by: [{key, status_category}]comments — author, date and text of each (Matt Pocock skills read the full thread)Returns: structured story object ready for bellosoft-dev-plan or a Matt Pocock skill to consume.
Called by: /mattpocock-skills:to-tickets, /mattpocock-skills:wayfinder (Matt Pocock skills)
Input: blocker: string, blocked: string (issue keys) — meaning "{blocker} blocks {blocked}".
mcp__atlassian__jira_get_link_types() or
GET /rest/api/3/issueLinkType. Use the type whose outward text is "blocks" and inward text
"is blocked by" (usually named "Blocks"). Never hardcode its id.mcp__atlassian__jira_create_issue_link(link_type = "Blocks",
inward_issue_key = "{blocked}", outward_issue_key = "{blocker}")
REST: POST /rest/api/3/issueLink
{ "type": {"name": "Blocks"}, "inwardIssue": {"key": "{blocked}"}, "outwardIssue": {"key": "{blocker}"} }{blocked} and check its issuelinks show "is blocked by {blocker}". If reversed,
delete that link (DELETE /rest/api/3/issueLink/{link_id}), recreate with the keys swapped, and
keep the swapped form for the rest of the session.Returns: { link_id }
Called by: Matt Pocock skills (/mattpocock-skills:triage buckets, /mattpocock-skills:wayfinder frontier, open-blocker counts)
Input: jql: string, fields: string (optional)
Always scope to the project: prepend project = {KEY} AND unless the JQL already names a project.
mcp__atlassian__jira_search(
jql = "{jql}",
fields = "summary,status,labels,assignee,issuetype,parent,created,{fields}",
max_results = 100
)
REST fallback: POST /rest/api/3/search/jql with {"jql": "...", "fields": [...], "maxResults": 100},
saved to a temp file and read as in GET. Page with nextPageToken until done.
Returns: list of { key, summary, status, status_category, labels, assignee, parent, created } and the total count.
Called by: bellosoft-sprint
Input: scope: "mine" | "team", account_id: string (optional)
Build JQL:
assignee = currentUser() AND sprint in openSprints() AND project = {KEY}sprint in openSprints() AND project = {KEY}mcp__atlassian__jira_search(
jql = "{JQL} ORDER BY priority DESC, updated DESC",
fields = "summary,status,assignee,priority,issuetype,{story_points_field}",
max_results = 100
)
Group by status category: To Do ⚪, In Progress 🟡, In Review 🔵, Done ✅.
Issues with "Blocked" label or active blocker links → 🔴.
Returns: grouped issue list with key, summary, status, assignee, priority.
Called by: bellosoft-sync (bulk push mode), or directly
Upsert every epic and story from docs/planning-artifacts/epics.md → Jira.
docs/planning-artifacts/epics.md is the source of truth — safe to re-run.
Behavior:
Steps:
docs/planning-artifacts/epics.md — extract all epics and stories"Push N epics, N stories to Jira? [y/n]"jql="project={KEY} AND labels=ai-generated"
Build summary → key lookup mapjira_update_issue for changed summary)docs/planning-artifacts/status.md with Jira keys (e.g. jira_epic_E1: PROJ-5)Name matching: strip [PROJ-N] suffix before comparing.
Summary output:
✅ SYNC_EPICS complete
Created: N epics, N stories
Updated: N epics, N stories
Skipped: N (already in sync)
Failed: N — markdown for manual creation below
Called by: bellosoft-sync import
Fetch existing Jira project structure → build docs/planning-artifacts/epics.md + docs/planning-artifacts/status.md.
Steps:
jql="project={KEY} AND issuetype=Epic ORDER BY created ASC"jql="project={KEY} AND issuetype=Story AND parent={epic_key}"docs/planning-artifacts/epics.md in bellosoft formatdocs/planning-artifacts/status.md with all Jira keysdocs/planning-artifacts/jira-profile.md with project metadataAsk before overwriting if docs/planning-artifacts/ already exists.
Matt Pocock's skills (/mattpocock-skills:to-spec, /mattpocock-skills:to-tickets, /mattpocock-skills:triage, /mattpocock-skills:wayfinder, /mattpocock-skills:implement, /mattpocock-skills:code-review)
read the project's tracker contract from docs/agents/issue-tracker.md. For Jira projects that
file is a copy of references/matt-issue-tracker-jira.md,
which routes every operation back to this skill.
Setting a project up (when /mattpocock-skills:setup-matt-pocock-skills reaches "Issue tracker", or the user asks
to connect Matt's skills to Jira):
docs/planning-artifacts/jira-profile.md doesn't exist yet.references/matt-issue-tracker-jira.md to docs/agents/issue-tracker.md.wontfix, which maps to our wont-do label. Bellosoft
has no "Won't Do" status: a won't-do issue gets the wont-do label and moves to Done.The template follows the Bellosoft issue-type convention above, so it reads board_type from
jira-profile.md. Run SETUP first if the profile has no board_type.
Matt's skills never estimate: create issues without story points or time tracking unless the user gives a value.
When more than one tracker may be configured:
docs/planning-artifacts/status.md for tracker: fieldtracker: jira → delegate here/bellosoft-jira setupbellosoft-plan-epic after approval:
→ bellosoft-jira: create-sprint "Sprint 3" 2026-06-10 2026-06-24
→ bellosoft-jira: create-epic E1 "User Auth" "Handles login, registration, JWT"
→ bellosoft-jira: create-story E1-S1 ... epic_key=PROJ-5 sprint_id=42
→ bellosoft-jira: create-task E1-S1-T1 "Add users table migration" parent=PROJ-12 area_tag=BE
bellosoft-sync after dev-review ✅ READY:
→ bellosoft-jira: update PROJ-42 transition "In Review"
→ bellosoft-jira: update PROJ-42 comment "Review passed. All ACs covered..."
bellosoft-sprint:
→ bellosoft-jira: list-sprint mine
bellosoft-dev-plan (free-text flow, user wants ticket):
→ bellosoft-jira: create-story ... (no epic, standalone)
references/jql-guide.md before any Jira operationcustomfield_* valuesparent field for next-gen epics — not customfield_10014What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bellosoft-limited/bellosoft-default-skills --plugin bellosoft-default-skills29 skills in this plugin
/ckm:banner-designDesign banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills./bellosoft-audit-codebaseUse this skill to analyse an existing codebase before planning. Triggers: /bellosoft-audit-codebase, "read the project", "understand what's built", "what already exists", "analyse the code", "what's implemented", "map the codebase". Produces a structured inventory of what is already built, what is partial, what is missing, and what technical patterns are in use. Saves the result to docs/planning-artifacts/codebase-audit.md so bellosoft-plan-epics and bellosoft-plan-epic can use it. Run this before /bellosoft-plan-epics on any existing project. Safe to re-run — detects changes since last audit.
/bellosoft-dev-executeExecutes a plan approved and saved by /bellosoft-dev-plan (docs/planning-artifacts/dev-plans/*.md). Use this skill when the user types /bellosoft-dev-execute [plan path], ideally in a new context window. Follows strict TDD: writes ALL test cases first, confirms they fail, then implements the code to make them pass, one step at a time. Never skip the red-phase. Do NOT invoke on general coding tasks or without an approved plan.
/bellosoft-dev-planInvoked when the developer wants AI help planning a story before coding. Use this skill when the user types /bellosoft-dev-plan, mentions a Jira ticket ID (PROJ-123), a story file path (.md), or says "start story", "plan this story", "help me implement STORY-123". Accepts a local .md file, a Jira ticket ID or URL, or pasted story content. Produces a short implementation plan with TDD approach — tests listed BEFORE implementation steps. Waits for explicit approval before any code is written. THIS SKILL IS OPTIONAL — devs can work directly from Jira without it. Do NOT auto-invoke on general coding tasks.
/bellosoft-dev-reviewInvoked after /bellosoft-dev-execute completes, or when the developer wants to validate their implementation against a story. Use when the user types /bellosoft-dev-review, says "review this", "check the story", "is this done?", or "validate AC". Reads the original story (local .md or Jira ticket), maps each acceptance criterion to the actual code and tests, and produces a pass/fail verdict per criterion. Highlights gaps, missing edge cases, and anything that would block the story from being marked Done. Does NOT rewrite code — only audits and reports. THIS SKILL IS OPTIONAL — devs can self-review directly in Jira.
/bellosoft-documentUse whenever the user wants a client-facing Bellosoft document — a proposal, quote, statement of work, report, memo, letter, brief, contract summary or any deliverable that goes out under the Bellosoft name, in English or Portuguese, as HTML, PDF or Word. Also use when the user mentions the Bellosoft template, Bellosoft branding, or asks to "put this on Bellosoft letterhead".