skills/atlassian/SKILL.md
Interact with Jira and Confluence via REST API - search, create, update issues and pages
npx skillsauth add boazy/skills atlassianInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Access Jira and Confluence directly via REST APIs. This skill provides full CRUD operations for issues and pages without requiring the MCP server.
Requires environment variables in ~/.local/secrets/atlassian.env:
ATLASSIAN_SITE - Your Atlassian site (e.g., yourcompany.atlassian.net)ATLASSIAN_EMAIL - Your Atlassian account emailATLASSIAN_API_TOKEN - API token from https://id.atlassian.com/manage-profile/security/api-tokensbunx tsx scripts/jira-search.ts "<JQL query>" [maxResults] [nextPageToken]
Examples:
bunx tsx scripts/jira-search.ts "assignee = currentUser() AND status != Done"bunx tsx scripts/jira-search.ts "project = PROJ AND type = Bug" 50bunx tsx scripts/jira-search.ts "project = PROJ" 50 "token..." (pagination)See docs/jql-guide.md for JQL syntax reference.
bunx tsx scripts/jira-get.ts <issueKey>
Example: bunx tsx scripts/jira-get.ts PROJ-123
bunx tsx scripts/jira-create.ts '<JSON>'
Single issue:
bunx tsx scripts/jira-create.ts '{"project": "PROJ", "type": "Story", "summary": "New feature", "description": "Details here"}'
Bulk create (array):
bunx tsx scripts/jira-create.ts '[{"project": "PROJ", "type": "Bug", "summary": "Bug 1"}, {"project": "PROJ", "type": "Bug", "summary": "Bug 2"}]'
bunx tsx scripts/jira-update.ts <issueKey> '<JSON updates>'
Example: bunx tsx scripts/jira-update.ts PROJ-123 '{"status": "In Progress", "assignee": "[email protected]"}'
# Get comments
bunx tsx scripts/jira-comment.ts <issueKey> get
# Add comment - inline markdown
bunx tsx scripts/jira-comment.ts <issueKey> add "<markdown text>"
# Add comment - read markdown from a file
bunx tsx scripts/jira-comment.ts <issueKey> add -f <path>
# Add comment - read markdown from stdin (pipe-friendly)
cat notes.md | bunx tsx scripts/jira-comment.ts <issueKey> add --stdin
Comment bodies support full markdown via the same converter used for issue
descriptions: headings, bold/italic/strike/underline/inline-code, bullet/
ordered/task lists, fenced code blocks (with language), tables, blockquotes,
GitHub-style alerts (> [!NOTE] etc.), <details> expand blocks, footnotes,
and links.
For long or multi-line comment bodies, prefer -f <path> or --stdin over
inline arguments to avoid shell argument-length limits and quoting issues.
bunx tsx scripts/jira-attachment.ts <issueKey> <filePath> [fileName]
Examples:
bunx tsx scripts/jira-attachment.ts PROJ-123 ./diagram.pngbunx tsx scripts/jira-attachment.ts PROJ-123 ./image.png architecture.pngImage embedding note:
), the converter uses mediaSingle only for Atlassian-hosted URLs.INVALID_INPUT errors.jira-attachment.ts, then use the returned Atlassian contentUrl in your markdown image URL.When the user asks to work with their personal space (e.g., "write a page in my personal space", "search my personal space", "read a page from my space"), you MUST first discover their personal space before performing the requested operation.
Auto-detection rule: Any mention of "my space", "my personal space", "personal space", or "my Confluence space" means the user's personal Confluence space. Always run the discovery script first to get the space key and ID, then use those values in subsequent operations (create, search, get, etc.).
bunx tsx scripts/confluence-personal-space.ts
No arguments needed. Returns the current user's personal space key, ID, name, and URL.
Example output:
{
"accountId": "5b10a2844c20165700ede21g",
"displayName": "Jane Smith",
"space": {
"id": 98304,
"key": "~5b10a2844c20165700ede21g",
"name": "Jane Smith",
"type": "personal",
"status": "current",
"url": "https://yourcompany.atlassian.net/wiki/spaces/~5b10a2844c20165700ede21g"
}
}
Then use the returned space.key as the space key for other Confluence operations. For example:
bunx tsx scripts/confluence-create.ts '{"space": "~5b10a2844c20165700ede21g", "title": "My Notes", "body": "<p>Content</p>"}'bunx tsx scripts/confluence-search.ts "space = ~5b10a2844c20165700ede21g AND type = page"bunx tsx scripts/confluence-get.ts "My Notes" ~5b10a2844c20165700ede21gNote: Personal space keys on Confluence Cloud use the format ~accountId (not ~username). The discovery script handles this automatically.
bunx tsx scripts/confluence-search.ts "<CQL query>" [maxResults]
Examples:
bunx tsx scripts/confluence-search.ts "title ~ 'Roadmap'"bunx tsx scripts/confluence-search.ts "space = DEV AND type = page" 25See docs/cql-guide.md for CQL syntax reference.
bunx tsx scripts/confluence-get.ts <pageId>
# or by title
bunx tsx scripts/confluence-get.ts "<page title>" <spaceKey>
bunx tsx scripts/confluence-create.ts '<JSON>'
Example:
bunx tsx scripts/confluence-create.ts '{"space": "DEV", "title": "New Page", "body": "<p>Content here</p>"}'
Optional parent page:
bunx tsx scripts/confluence-create.ts '{"space": "DEV", "title": "Child Page", "body": "<p>Content</p>", "parentId": "123456"}'
bunx tsx scripts/confluence-update.ts <pageId> '<JSON updates>'
Example: bunx tsx scripts/confluence-update.ts 123456 '{"title": "Updated Title", "body": "<p>New content</p>"}'
# List properties
bunx tsx scripts/confluence-properties.ts <pageId> get
# Get a single property
bunx tsx scripts/confluence-properties.ts <pageId> get <propertyKey>
# Set a property
bunx tsx scripts/confluence-properties.ts <pageId> set '<JSON>'
# Delete a property
bunx tsx scripts/confluence-properties.ts <pageId> delete <propertyKey>
# Get page emoji
bunx tsx scripts/confluence-properties.ts <pageId> get-emoji
# Set page emoji (updates both emoji-title-published and emoji-title-draft)
bunx tsx scripts/confluence-properties.ts <pageId> set-emoji "🚀"
# Remove page emoji
bunx tsx scripts/confluence-properties.ts <pageId> remove-emoji
Example property payloads:
'{"key": "my-property", "value": {"foo": "bar"}}''{"properties": [{"key": "one", "value": 1}, {"key": "two", "value": "two"}]}'Note: Page CRUD uses the Confluence REST API v2. CQL search still uses the legacy endpoint because the v2 API does not expose CQL search.
For generating correct queries:
docs/jql-guide.md for JQL syntax, fields, operators, and functionsdocs/cql-guide.md for CQL syntax and fieldsAll scripts that accept a '<JSON>' argument also support @<filepath> syntax: write the JSON to a file first, then pass @path/to/file.json instead of the inline JSON string. This avoids shell argument-length limits that cause failures with large page bodies or issue descriptions.
You MUST use file-based input when creating or updating Confluence pages or Jira issues with non-trivial body/description content. Inline JSON is fine only for short payloads (simple metadata updates, status changes, etc.).
/tmp/confluence-payload.json)@/tmp/confluence-payload.json as the argument instead of the raw JSON stringCreate a Confluence page with a large body:
# 1. Write payload to file
cat > /tmp/page.json << 'ENDJSON'
{"space": "DEV", "title": "Architecture Overview", "body": "<h1>Architecture</h1><p>Long content here...</p>"}
ENDJSON
# 2. Pass with @filepath
bunx tsx scripts/confluence-create.ts @/tmp/page.json
Update a Confluence page:
bunx tsx scripts/confluence-update.ts 123456 @/tmp/update-payload.json
Create a Jira issue with a long description:
bunx tsx scripts/jira-create.ts @/tmp/issue.json
Update a Jira issue:
bunx tsx scripts/jira-update.ts PROJ-123 @/tmp/update.json
Important: When generating content programmatically (as an AI agent), always use the Write tool to create the JSON file, then invoke the script with @filepath. Never attempt to pass large HTML or markdown content as an inline shell argument.
bunx tsx scripts/jira-search.ts "assignee = currentUser() AND status != Done"bunx tsx scripts/jira-update.ts PROJ-123 '{"status": "Done"}'bunx tsx scripts/jira-create.ts '[{...}, {...}, {...}]'bunx tsx scripts/confluence-search.ts "title ~ 'API Documentation'"bunx tsx scripts/confluence-get.ts 123456bunx tsx scripts/confluence-create.ts '{"space": "DEV", "title": "API Guide", "body": "<h1>API Guide</h1><p>...</p>"}'bunx tsx scripts/confluence-personal-space.ts → note the space.key valuebunx tsx scripts/confluence-search.ts "space = <space.key> AND type = page"bunx tsx scripts/confluence-create.ts '{"space": "<space.key>", "title": "My Page", "body": "<p>Content</p>"}'bunx tsx scripts/confluence-get.ts "<page title>" <space.key>development
Read channels, DMs, and threads; post and edit messages; search messages and users; add reactions; upload custom emojis — all via the Slack Web API.
tools
Create self-contained Python scripts that run with `uv run --script`. Covers PEP 723 inline metadata, ergonomic CLI design (argparse / Cyclopts), rich output formatting, progress bars (alive-progress), interactive prompts (questionary), and fuzzy selection (iterfzf). Use when asked to create a Python script, CLI tool, or automation script.
development
Search and read AI-generated documentation for any public GitHub repository. Use when asked about how an open-source library works, its architecture, API, or internals.
testing
Generate diagrams from declarative text using D2 - modern text-to-diagram language with automatic layouts, themes, and advanced styling. Use when creating architecture diagrams, flowcharts, decision trees, workflow diagrams, sequence flows, or ERDs from text definitions.