Skip to content
Back to skills

Ticket Context

ASecurity

Fetch ticket context from Jira (PROJ-123), Confluence, or GitHub (`#NNN`). Auto-loads on ticket references. Returns title, summary, acceptance criteria, links, and recent activity.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 28, 2026
developmentbashgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add lugassawan/swe-workbench --skill ticket-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ticket Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ticket Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lugassawan-ticket-context/badge)](https://www.skillsdirectory.com/skills/lugassawan-ticket-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ticket-context
description: Fetch ticket context from Jira (PROJ-123), Confluence, or GitHub (`#NNN`). Auto-loads on ticket references. Returns title, summary, acceptance criteria, links, and recent activity.
---

## When to invoke

Auto-loads when the caller references:

- **Jira key**: `[A-Z][A-Z0-9]+-\d+` — e.g. `PROJ-123`.
- **Atlassian Jira URL**: `*.atlassian.net/browse/<KEY>`.
- **Confluence URL**: `*.atlassian.net/wiki/spaces/...` or `*.atlassian.net/wiki/pages/...`.
- **GitHub issue/PR URL**: `github.com/<owner>/<repo>/(issues|pull)/\d+`.
- **GitHub short ref**: `#\d+` with current-repo context.

If no reference is present, exit cleanly.

## Fetch recipes

### Jira issue

First fetch in session: call `mcp__atlassian__getAccessibleAtlassianResources` for `cloudId` (cache for session). Then `mcp__atlassian__getJiraIssue` with the key. Extract: summary, issuetype, status, priority, description, labels, components, acceptance-criteria (check description body if no dedicated field), linked issues via `mcp__atlassian__getJiraIssueRemoteIssueLinks`, last 5 comments.

### Confluence page

Extract page ID from `/pages/<ID>` in the URL. Use `mcp__atlassian__getConfluencePage`; fall back to `mcp__atlassian__fetch` with raw URL if ID unclear. Extract: title, version, body (rendered text), footer comments via `mcp__atlassian__getConfluencePageFooterComments` if any.

### GitHub issue or PR

Use Bash:
- Issue: `gh issue view <number> --repo <owner>/<repo> --json title,body,state,labels,assignees,comments,url`
- PR: `gh pr view <number> --repo <owner>/<repo> --json title,body,state,labels,files,comments,url`

For `#NNN` short refs in the current repo, omit `--repo`.

## Output format

One block per reference, prepended to caller context:

```
## Ticket context: <KEY or #NUM or short URL>

**Title:** ...
**Type / Status:** ...
**Summary:** ... (1–3 sentences)
**Acceptance criteria / Definition of done:** ... (bulleted if present, otherwise "not specified")
**Linked references:** ...
**Recent activity:** ...
**Source:** <URL>
```

## Degradation

| Condition | Action |
|---|---|
| Atlassian MCP unavailable | Try `mcp__atlassian__fetch` with raw URL; if still failing, emit `ticket-context: Atlassian MCP unavailable; proceeding without context.` |
| `gh` CLI missing | Emit `ticket-context: gh CLI unavailable; proceeding without context.` |
| Auth error | Surface the raw error; never fabricate. |
| Fetch returns empty or 404 | Say so; do not guess. |

## Absolute rules

- Strip secrets and PII (API tokens, email addresses in comments) before returning.
- Cap at ~400 words per reference; summarize long descriptions without truncating mid-sentence.
- Do not editorialize. Output the ticket; downstream agents interpret it.

Files in this skill

  • SKILL.md2.7 KB
  • triggers.txt319 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.