Jira REST API
Knowledge for invoking the Jira REST API via jira_client.py. Used by commands (generate-jira-task, update-generated-report) as a fallback when the Atlassian MCP plugin is unavailable. Contains credential configuration, script invocation syntax, action reference, error handling, and security guidance.
What this skill does
# Jira REST API Client
This skill documents the REST API fallback tier for the Jira integration. When the
Atlassian MCP plugin is unavailable, commands use the `jira_client.py` script to
interact with Jira directly via REST API v2 — except for issue search, which uses
the v3 `/search/jql` endpoint after Atlassian removed the v2/v3 `/search` routes
(HTTP 410, see [CHANGE-2046](https://developer.atlassian.com/changelog/#CHANGE-2046)).
## Architecture
```
Phase 0 Cascade:
1. Try MCP → JIRA_MODE = "MCP"
2. Try REST → JIRA_MODE = "REST"
3. Fallback → JIRA_MODE = "OFFLINE"
```
Agents are completely insulated — they produce identical output regardless of JIRA_MODE.
Only commands and this script interact with the transport layer.
## Script Location
Locate the script before invoking:
```
1. Glob: **/agent-team-creator/scripts/jira_client.py
2. Fallback: ~/.claude/plugins/agent-team-creator/scripts/jira_client.py
3. Not found → REST mode unavailable, fall to OFFLINE
```
## Invocation Syntax
```bash
python3 {SCRIPT_PATH} \
--action {action-name} \
--config .claude/jira-rest-config.json \
[--issue-key PROJ-123] \
[--project PROJ] \
[--query "search term"] \
[--payload-file .claude/tmp/jira-payload.json] \
[--file-path /abs/path/to/file] \
[--no-cascade]
```
Credentials are ALWAYS read from the config file. Never pass tokens as CLI arguments.
## Action Reference
| Action | Required Flags | Optional Flags | Returns |
|--------|---------------|----------------|---------|
| `verify-auth` | `--config` | — | `{ok, email, displayName, accountId}` |
| `get-current-user` | `--config` | — | `{ok, email, displayName, accountId}` (clearer-named alias for `verify-auth`) |
| `get-projects` | `--config` | `--query` | `{ok, projects: [{key,name,id}]}` |
| `search-issues` | `--config --payload-file` | — | `{ok, issues: [{key,summary,status,created}], total, nextPageToken?}` |
| `get-issue-types` | `--config --project` | — | `{ok, issueTypes: [{name,id,subtask}]}` |
| `create-issue` | `--config --payload-file` | — | `{ok, key, url}` |
| `update-issue` | `--config --issue-key --payload-file` | — | `{ok, key, url, updated: [field-names]}` |
| `delete-issue` | `--config --issue-key` | `--no-cascade` | `{ok, key, deleted, cascade}` |
| `attach-file` | `--config --issue-key --file-path` | — | `{ok, key, attachmentId, filename, size}` |
| `get-issue` | `--config --issue-key` | — | `{ok, key, summary, description, status, comments}` |
| `add-comment` | `--config --issue-key --payload-file` | — | `{ok, commentId}` |
| `get-accessible-resources` | `--config` | — | `{ok, baseUrl}` (alias for `verify-auth`) |
### Notes on `search-issues`
- Endpoint: `POST /rest/api/3/search/jql` (the v2/v3 `/search` routes were removed by Atlassian).
- `total` is an **approximate** count fetched from `/rest/api/3/search/approximate-count`
in a separate non-fatal call. If that secondary call fails, `total` falls back to
`len(issues)` so the search still returns useful data.
- Pagination is **token-based**, not offset-based. When more results exist beyond
`maxResults`, the response includes `nextPageToken`; pass it back in the next
payload's `nextPageToken` field to fetch the next page. There is no `startAt`.
- Default `maxResults` is `5`; payload may override (Jira caps at 100).
### Payload pattern: `create-issue`
```json
{
"project_key": "GCI",
"issue_type": "Task",
"summary": "Short title",
"description": "Markdown body. Converted to wiki markup automatically.",
"labels": ["claude-code", "automation"],
"priority": "Medium",
"assignee_account_id": "712020:abc-...",
"parent_key": "GCI-40"
}
```
- `project_key`, `issue_type`, `summary` are required; everything else is optional.
- `priority` accepts the **name** as it appears in Jira (e.g. `Highest`, `High`, `Medium`,
`Low`, `Lowest`, or custom names like `P0`–`P3` if defined).
- `assignee_account_id` must be an Atlassian accountId (get yours via `get-current-user`).
- `parent_key` makes the new issue a child. Pair with `issue_type: "Subtask"` when the
project's subtask type is named `Subtask` (call `get-issue-types --project KEY` to
confirm the exact name).
### Payload pattern: `update-issue`
```json
{
"summary": "New title (optional)",
"description": "New markdown body (optional)",
"labels": ["replaces", "existing", "labels"],
"priority": "Low",
"assignee_account_id": "712020:abc-...",
"fields": { "duedate": "2026-12-31" }
}
```
- All top-level keys are optional but at least one must be set.
- `labels` **replaces** the existing label list (Jira's PUT semantics).
- Set `assignee_account_id` to `null` to unassign.
- `fields` is a raw escape hatch: any key/value here is merged into the Jira `fields`
object verbatim. Use for fields the script doesn't model (e.g., `duedate`, `customfield_10001`).
### Invocation pattern: `attach-file`
```bash
python3 {SCRIPT_PATH} \
--action attach-file \
--config .claude/jira-rest-config.json \
--issue-key GCI-40 \
--file-path /abs/path/to/report.md
```
- No payload file. The file is uploaded as `multipart/form-data`.
- Endpoint sends header `X-Atlassian-Token: no-check` (required by Atlassian for attachments).
- Markdown attachments display inline in the Jira UI; logs/screenshots/PDFs are linked.
- Multiple files require multiple invocations.
### Invocation pattern: `delete-issue`
```bash
python3 {SCRIPT_PATH} \
--action delete-issue \
--config .claude/jira-rest-config.json \
--issue-key GCI-40 \
[--no-cascade]
```
- Default cascades subtask deletion (`?deleteSubtasks=true`).
- `--no-cascade` makes Jira refuse to delete an issue that has subtasks.
- This is irreversible — commands should confirm with the user first.
### Notes on `search-issues`
- Endpoint: `POST /rest/api/3/search/jql` (the v2/v3 `/search` routes were removed by Atlassian).
- `total` is an **approximate** count fetched from `/rest/api/3/search/approximate-count`
in a separate non-fatal call. If that secondary call fails, `total` falls back to
`len(issues)` so the search still returns useful data.
- Pagination is **token-based**, not offset-based. When more results exist beyond
`maxResults`, the response includes `nextPageToken`; pass it back in the next
payload's `nextPageToken` field to fetch the next page. There is no `startAt`.
- Default `maxResults` is `5`; payload may override (Jira caps at 100).
## Exit Codes
| Code | Meaning | Command Recovery |
|------|---------|-----------------|
| 0 | Success | Parse stdout JSON |
| 1 | Auth failure | Fall to OFFLINE, suggest re-running credential setup |
| 2 | Validation error | Fix payload/config, retry |
| 3 | Network error | Fall to OFFLINE |
| 4 | Jira API error | Show error message, fall to OFFLINE |
## Credential Configuration
Config file: `.claude/jira-rest-config.json` (MUST be in .gitignore)
```json
{
"baseUrl": "https://your-site.atlassian.net",
"email": "[email protected]",
"apiToken": "your-api-token",
"configuredAt": "2026-02-24T10:00:00Z"
}
```
Generate API tokens at: https://id.atlassian.com/manage-profile/security/api-tokens
**Security**: API tokens have full account scope. The config file must NEVER be committed.
## MCP-to-REST Parameter Mapping
| MCP Parameter | REST Equivalent | Notes |
|--------------|-----------------|-------|
| `cloudId` | (not needed) | REST uses `baseUrl` from config |
| `issueIdOrKey` | `--issue-key` | Same value |
| `commentBody` | `body` field in payload file | Written as JSON file |
| `jql` | `jql` field in payload file | Written as JSON file |
| `maxResults` | `maxResults` in payload | Part of payload JSON |
| `projectKey` | `--project` or `project_key` in payload | Depends on action |
| `searchString` | `--query` | URL-encoded by script |
## Response Normalization
MCP and REST return different structures. Commands must normalize:
| Data | MCP Path | REST Script Path |
|------|----------|------------------|
| Summary | `fields.suRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.