[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MQK1F7HNXM4R0J31DHSVE":3,"skill-same:01M75MQK1F7HNXM4R0J31DHSVE":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75MQK1F7HNXM4R0J31DHSVE","acli",null,"Use acli (Atlassian CLI) to interact with Jira Cloud — create, search, view, link, and edit work items via shell commands instead of MCP tools. Prefer acli over Atlassian MCP to minimize token usage.","whimzyLive\u002Fnightshift-ai","whimzyLive","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F22066605?v=4","01M75MMH22XX6R3NTAFHD7HEN7","Rushi Patel","01M75MMH32DHVVC61XRSHWVEV2",3,"MIT","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Facli\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: acli\ndescription: Use acli (Atlassian CLI) to interact with Jira Cloud — create, search, view, link, and edit work items via shell commands instead of MCP tools. Prefer acli over Atlassian MCP to minimize token usage.\n---\n\n# acli — Atlassian CLI for Jira\n\n`acli` via Bash is the only Jira transport. Never use Atlassian MCP tools or direct HTTP to `api.atlassian.com` — not even as a fallback. An `acli` failure is a STOP (surface it), not a signal to switch transports.\n\n## ⚠️ Description formatting — ADF JSON required\n\n**Before writing any description or comment to Jira, read `.claude\u002Frefs\u002Fjira-adf.md`.**\n\n`acli --description-file` passes the file contents directly to the Jira API. Plain markdown renders as raw symbols (e.g. `**bold**` appears literally). All descriptions must be Atlassian Document Format (ADF) JSON, saved to a `.json` temp file. The ref contains the full node reference, mark types, and ready-to-use Epic and Story templates.\n\n## Why acli over MCP\n\nMCP tool calls return full JSON payloads into context. acli runs in Bash, outputs only what you request, and exits. Token cost per operation: acli ≈ 10–50 tokens vs MCP ≈ 500–2000 tokens.\n\n## Authentication\n\nacli reads credentials from `~\u002F.config\u002Facli\u002F`. Before any acli command, run this auth guard:\n\n```bash\n# 1. DNS reachability check — fail fast if Atlassian is blocked\nif ! getent hosts \"$ATLASSIAN_SITE\" >\u002Fdev\u002Fnull 2>&1; then\n  echo \"ERROR: $ATLASSIAN_SITE is DNS-blocked in this environment.\" >&2\n  echo \"Fix: allowlist $ATLASSIAN_SITE and api.atlassian.com in GitHub → Settings → Copilot → Policies.\" >&2\n  exit 1\nfi\n\n# 2. Re-authenticate if no valid profile (Copilot agent sessions don't share ~\u002F.config\u002Facli from setup steps)\nacli jira auth status 2>\u002Fdev\u002Fnull || \\\n  echo \"$ATLASSIAN_API_TOKEN\" | acli jira auth login \\\n    --site \"$ATLASSIAN_SITE\" \\\n    --email \"$ATLASSIAN_EMAIL\" \\\n    --token\n\n# 3. acli's active site is GLOBAL across every authenticated account (NA-77) — re-verify it\n#    matches this repo's project-context before any call, not just that some account is logged in.\n#    Skip (never hard-abort) when the script is unreachable — e.g. the Copilot agent runtime this\n#    section's env-var contract targets does not load plugin skills, so CLAUDE_PLUGIN_ROOT is\n#    unset there; that runtime already authenticates with an explicit --site above, so the guard\n#    has nothing to add and must not turn a working runtime into a dead one.\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\n```\n\n`ATLASSIAN_API_TOKEN` and `ATLASSIAN_EMAIL` are injected as environment variables by the Copilot agent runtime from repository Copilot secrets. If both are empty and auth fails, abort: \"ATLASSIAN_API_TOKEN\u002FATLASSIAN_EMAIL not set — configure in GitHub → Settings → Secrets → Copilot.\"\n\n`ATLASSIAN_SITE` must be set alongside `ATLASSIAN_EMAIL` \u002F `ATLASSIAN_API_TOKEN`. Its value is the Jira site hostname from the consumer's project-context (e.g. `your-org.atlassian.net`).\n\n## Core commands for story\u002Fworkitem management\n\n### Check available projects\n\n```bash\nacli jira project list --json 2>&1 | jq '.[].key'\n```\n\n### Search for existing epics\n\n```bash\nacli jira workitem search \\\n  --jql \"project = CER AND issuetype = Epic AND summary ~ \\\"feature keyword\\\"\" \\\n  --fields \"key,summary\" --json 2>&1\n```\n\n### Create a single work item\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem create \\\n  --project \"CER\" \\\n  --type \"Story\" \\\n  --summary \"Short action-oriented title\" \\\n  --description \"As a fire safety engineer\\nI want to...\\nSo that...\" \\\n  --label \"feature-slug\" \\\n  --parent \"CER-123\" \\\n  --json 2>&1\n```\n\nFlags reference:\n| Flag | Purpose |\n| --- | --- |\n| `-p, --project` | Jira project key (e.g. `CER`) |\n| `-t, --type` | Work item type: `Story`, `Task`, `Bug`, `Epic`, `Sub-task` |\n| `-s, --summary` | Title (max 255 chars) |\n| `-d, --description` | Body text — use `\\n` for newlines |\n| `--description-file` | Read description from a file (prefer for long ACs) |\n| `--parent` | Parent issue key — use for Epic linkage |\n| `-l, --label` | Comma-separated labels |\n| `-a, --assignee` | Email or `@me` |\n| `--json` | Output created issue as JSON (captures the new issue key) |\n\n**`--parent` takes the issue KEY (e.g. `CER-123`), not the numeric id** — despite the flag's own `--help` text reading \"Parent work item ID\". Passing the numeric id fails with `✗ Error: Please select valid parent issue.`\n\n### Bulk create from JSON (preferred for multiple stories)\n\n```bash\ndir=$(bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ftmp-dir.sh)   # session-scoped .\u002F.tmp\u002F\u003Ckey>\nbulk_file=$(mktemp \"$dir\u002Facli-bulk.XXXXXX\")\ntrap 'rm -f \"$bulk_file\"' EXIT\n\n# ... write JSON to $bulk_file, then:\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem create-bulk --from-json \"$bulk_file\" 2>&1\n```\n\nJSON format for the bulk file:\n\n```json\n[\n  {\n    \"summary\": \"Story title\",\n    \"projectKey\": \"CER\",\n    \"issueType\": \"Story\",\n    \"description\": \"As a...\\nI want to...\\nSo that...\",\n    \"labels\": [\"feature-slug\"],\n    \"parentKey\": \"CER-123\"\n  }\n]\n```\n\nGenerate a template:\n\n```bash\nacli jira workitem create --generate-json\n```\n\n### View a work item (full context)\n\nAlways extract all available context when using a ticket as a source. Use dedicated subcommands — not all data is embedded in the `view` response:\n\n```bash\nKEY=\"CER-456\"\n\n# Core fields (summary + description embedded in view)\nissue=$(acli jira workitem view \"$KEY\" --json 2>&1)\nsummary=$(echo \"$issue\" | jq -r '.fields.summary')\ndescription=$(echo \"$issue\" | jq -r '.fields.description \u002F\u002F \"\"')\n\n# All comments — use dedicated subcommand\ncomments=$(acli jira workitem comment list --key \"$KEY\" --json --paginate 2>&1 | \\\n  jq -r '[.[].body] | join(\"\\n---\\n\")' 2>\u002Fdev\u002Fnull || echo \"\")\n\n# Jira-to-Jira linked tickets only. NOTE: acli only exposes outwardIssueKey (= issue this one\n# BLOCKS). \"is blocked by\" links show outwardIssueKey=null and the blocker key is NOT returned.\njira_links=$(acli jira workitem link list --key \"$KEY\" --json 2>&1 | \\\n  jq -r '.issueLinks[]? | \"\\(.typeName): blocks \\(.outwardIssueKey \u002F\u002F \"(blocked-by upstream — key not exposed)\")\"' 2>\u002Fdev\u002Fnull || echo \"\")\n\n# Attachments — list only (filename + MIME type + URL), no download via acli\nattachments=$(acli jira workitem attachment list --key \"$KEY\" --json 2>&1 | \\\n  jq -r '[.[] | \"\\(.filename) [\\(.mimeType)]: \\(.content)\"] | join(\"\\n\")' 2>\u002Fdev\u002Fnull || echo \"\")\n\necho \"=== SUMMARY ===\" && echo \"$summary\"\necho \"=== DESCRIPTION ===\" && echo \"$description\"\necho \"=== COMMENTS ===\" && echo \"$comments\"\necho \"=== LINKED JIRA TICKETS ===\" && echo \"$jira_links\"\necho \"=== ATTACHMENTS ===\" && echo \"$attachments\"\n```\n\n**Known limitations:**\n\n- `acli jira workitem remote-links` does **not** exist — external\u002Fremote links (Confluence, Figma, Slack URLs) are NOT accessible via acli. Use the Jira REST API if you need them.\n- Attachment download is not supported by acli. The `content` URL in the attachment list requires Jira auth headers that acli does not expose.\n- `acli auth token` does **not** exist.\n- `view --json` returns `fields.parent: null` and `fields.labels: null` even when both **are** set on the issue — a read-side rendering gap, not a write failure. Do not diagnose a missing `--parent`\u002F`--label` write from this field being null on read-back.\n- `acli jira workitem search --fields parent` is rejected (`✗ Error: field 'parent' is not allowed`) — not a usable fallback. To verify parent\u002Flabels actually landed, use JQL instead (see \"Capturing created issue keys\" below):\n\n```bash\nacli jira workitem search --jql \"parent = \u003CEPIC-KEY>\" --count            # confirm the story is parented\nacli jira workitem search --jql \"key = \u003CKEY>\" --fields labels --json     # labels DO render here\n```\n\nRaw JSON (when you need to parse specific fields):\n\n```bash\nacli jira workitem view CER-456 --json 2>&1\n```\n\n### Edit a work item\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem edit CER-456 \\\n  --summary \"Updated title\" \\\n  --description \"Updated description\" 2>&1\n```\n\n**`edit` has no `--parent` flag** (`✗ Error: unknown flag: --parent`) — the parent can only be set at `create` time. Also note `edit` uses `--labels` (plural, with `-k\u002F--key`) where `create` uses `--label` (singular).\n\n**⚠️ acli cannot set custom-field VALUES** (verified through 1.3.22 — there is no `--custom-field` flag, and the `--from-json` schema exposes no custom fields; `acli jira field update` edits field _definitions_, not values). Where a custom-field stamp is unavoidable (e.g. workflow-mode selects), use the plugin's REST helper. **Story Points are the exception: the plugin never writes them** — report the estimate for manual entry instead (requiring the helper's token env contract of every consumer proved too fragile; revisit if acli gains native custom-field support):\n\n```bash\nbash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-set-field.sh \u003CISSUE-KEY> \"\u003CField Display Name>[,\u003CAlt Name>...]\" \u003Cvalue> [number|string|option] [--if-empty]\n```\n\n### Link work items (dependencies)\n\n```bash\nacli jira workitem link type 2>&1   # available link type names (e.g. Blocks, Relates, Cloners)\n```\n\nUse the `link create` form with `--out`\u002F`--in` — NOT the positional `link A B` form (unreliable).\n\n**⚠️ acli direction is counter-intuitive (verified against the Jira UI): `--in` is the BLOCKER, `--out` is the BLOCKED issue.** To express \"**A blocks B**\" (A is the prerequisite that B depends on):\n\n```bash\n# A blocks B   →   --out \u003CB, blocked\u002Fdownstream>   --in \u003CA, blocker\u002Fprerequisite>\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem link create --out CER-102 --in CER-101 --type Blocks --yes 2>&1\n```\n\n**Reading links back** — `acli jira workitem link list --key \u003CKEY> --json` returns\n`{ \"issueLinks\": [ { \"id\", \"typeName\", \"outwardIssueKey\" } ] }`:\n\n- `outwardIssueKey` (non-null) = an issue this story **blocks** (downstream).\n- A null `outwardIssueKey` = an \"**is blocked by**\" (upstream) link — acli does **NOT** expose the blocker's key.\n- To find what blocks `\u003CKEY>`, invert: a sibling `S` blocks `\u003CKEY>` iff `S`'s link list has `outwardIssueKey == \u003CKEY>`. Or read the Jira UI's \"is blocked by\" section.\n\n```bash\n# Delete a link by its id (from link list)\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem link delete --id \u003CLINK-ID> --yes 2>&1\n```\n\n### Search with JQL\n\n```bash\n# Stories in a project\nacli jira workitem search \\\n  --jql \"project = CER AND issuetype = Story AND labels = \\\"feature-slug\\\"\" \\\n  --fields \"key,summary,status\" \\\n  --json 2>&1\n\n# Count only\nacli jira workitem search \\\n  --jql \"project = CER AND issuetype = Story\" \\\n  --count 2>&1\n```\n\n### Add comment\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem comment create --key CER-456 --body \"Spec ready: docs\u002Fsuperpowers\u002Fspecs\u002F...\" 2>&1\n```\n\n## Workflow pattern for story creation\n\nAlways follow this order to avoid creating orphaned stories:\n\n```\n1. Search for existing Epic matching feature area\n2. Write all story descriptions to mktemp files (avoids shell escaping issues AND collisions)\n3. Use create-bulk with --from-json for efficiency\n4. Capture returned issue keys\n5. Link blocking dependencies between stories\n6. Comment on each story with the feature doc path\n7. Temp files are auto-cleaned by the EXIT trap\n```\n\n## Shell escaping rules\n\nDescription text often contains special characters. Use files instead of inline strings.\n\nAlways use `mktemp` for temp files — write them under the session-scoped temp dir from\n`scripts\u002Ftmp-dir.sh` (worker → `.\u002F.tmp\u002F\u003CSDLC_SESSION_KEY>`, interactive → `.\u002F.tmp\u002F\u003CCLAUDE_CODE_SESSION_ID>`;\ninside the permission scope, gitignored), never `\u002Ftmp` (prompts on every access). The dir is\nunique per session in BOTH modes, so the `SessionEnd` hook (`cleanup-tmp.sh`) and\n`session-complete.sh` reliably remove it at teardown. This guarantees a unique path, keeps each\nsession's temp files isolated, and pairs with a `trap` for per-file cleanup:\n\n```bash\n# Create a unique temp file in the session temp dir; clean it up automatically on exit\ndir=$(bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ftmp-dir.sh)   # session-scoped .\u002F.tmp\u002F\u003Ckey>\ndesc_file=$(mktemp \"$dir\u002Facli-desc.XXXXXX\")   # X's at end (macOS), no .txt suffix\ntrap 'rm -f \"$desc_file\"' EXIT\n\ncat > \"$desc_file\" \u003C\u003C 'EOF'\nAs a fire safety engineer\nI want to view a list of penetrations by room\nSo that I can track certification status without opening each record\n\n**Acceptance Criteria**\n- [ ] List shows penetration ID, type, status, and last inspection date\n- [ ] List filters by status (certified \u002F pending \u002F failed)\n- [ ] Empty state shown when no penetrations exist\n\n**Out of Scope**\n- Editing penetrations from this view\nEOF\n\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem create \\\n  --project \"CER\" \\\n  --type \"Story\" \\\n  --summary \"View penetrations list by room\" \\\n  --description-file \"$desc_file\" \\\n  --parent \"CER-123\" \\\n  --json 2>&1\n```\n\n> `mktemp` returns a path like `.\u002F.tmp\u002F\u003Csession>\u002Facli-desc.A3f9kB` — unique per invocation, never collides with parallel runs. `trap ... EXIT` fires on normal exit, errors, and interrupts.\n\n## Capturing created issue keys\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nresult=$(acli jira workitem create --project CER --type Story --summary \"Title\" --json 2>&1)\nkey=$(echo \"$result\" | jq -r '.key')\necho \"Created: $key\"\n```\n\nTo verify a `--parent`\u002F`--label` write actually landed, use JQL — `view --json` and `search --fields parent` cannot confirm it (see \"Known limitations\" above):\n\n```bash\nacli jira workitem search --jql \"parent = \u003CEPIC-KEY>\" --count            # confirm the story is parented\nacli jira workitem search --jql \"key = \u003CKEY>\" --fields labels --json     # labels DO render here\n```\n\n## Error handling\n\n- DNS block (`getent hosts \"$ATLASSIAN_SITE\"` fails) → abort immediately with the DNS-block error message above; do NOT attempt auth or any other acli command\n- Auth error (DNS resolves but acli returns auth failure) → run the auth guard block above; if env vars empty, abort with \"ATLASSIAN_API_TOKEN\u002FATLASSIAN_EMAIL not set\"\n- Project not found → run `acli jira project list` to confirm key\n- Parent not found → verify epic key exists with `acli jira workitem view \u003Ckey>`\n- Rate limit → add `sleep 1` between bulk operations\n","# acli — Atlassian CLI for Jira\n\n`acli` via Bash is the only Jira transport. Never use Atlassian MCP tools or direct HTTP to `api.atlassian.com` — not even as a fallback. An `acli` failure is a STOP (surface it), not a signal to switch transports.\n\n## ⚠️ Description formatting — ADF JSON required\n\n**Before writing any description or comment to Jira, read `.claude\u002Frefs\u002Fjira-adf.md`.**\n\n`acli --description-file` passes the file contents directly to the Jira API. Plain markdown renders as raw symbols (e.g. `**bold**` appears literally). All descriptions must be Atlassian Document Format (ADF) JSON, saved to a `.json` temp file. The ref contains the full node reference, mark types, and ready-to-use Epic and Story templates.\n\n## Why acli over MCP\n\nMCP tool calls return full JSON payloads into context. acli runs in Bash, outputs only what you request, and exits. Token cost per operation: acli ≈ 10–50 tokens vs MCP ≈ 500–2000 tokens.\n\n## Authentication\n\nacli reads credentials from `~\u002F.config\u002Facli\u002F`. Before any acli command, run this auth guard:\n\n```bash\n# 1. DNS reachability check — fail fast if Atlassian is blocked\nif ! getent hosts \"$ATLASSIAN_SITE\" >\u002Fdev\u002Fnull 2>&1; then\n  echo \"ERROR: $ATLASSIAN_SITE is DNS-blocked in this environment.\" >&2\n  echo \"Fix: allowlist $ATLASSIAN_SITE and api.atlassian.com in GitHub → Settings → Copilot → Policies.\" >&2\n  exit 1\nfi\n\n# 2. Re-authenticate if no valid profile (Copilot agent sessions don't share ~\u002F.config\u002Facli from setup steps)\nacli jira auth status 2>\u002Fdev\u002Fnull || \\\n  echo \"$ATLASSIAN_API_TOKEN\" | acli jira auth login \\\n    --site \"$ATLASSIAN_SITE\" \\\n    --email \"$ATLASSIAN_EMAIL\" \\\n    --token\n\n# 3. acli's active site is GLOBAL across every authenticated account (NA-77) — re-verify it\n#    matches this repo's project-context before any call, not just that some account is logged in.\n#    Skip (never hard-abort) when the script is unreachable — e.g. the Copilot agent runtime this\n#    section's env-var contract targets does not load plugin skills, so CLAUDE_PLUGIN_ROOT is\n#    unset there; that runtime already authenticates with an explicit --site above, so the guard\n#    has nothing to add and must not turn a working runtime into a dead one.\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\n```\n\n`ATLASSIAN_API_TOKEN` and `ATLASSIAN_EMAIL` are injected as environment variables by the Copilot agent runtime from repository Copilot secrets. If both are empty and auth fails, abort: \"ATLASSIAN_API_TOKEN\u002FATLASSIAN_EMAIL not set — configure in GitHub → Settings → Secrets → Copilot.\"\n\n`ATLASSIAN_SITE` must be set alongside `ATLASSIAN_EMAIL` \u002F `ATLASSIAN_API_TOKEN`. Its value is the Jira site hostname from the consumer's project-context (e.g. `your-org.atlassian.net`).\n\n## Core commands for story\u002Fworkitem management\n\n### Check available projects\n\n```bash\nacli jira project list --json 2>&1 | jq '.[].key'\n```\n\n### Search for existing epics\n\n```bash\nacli jira workitem search \\\n  --jql \"project = CER AND issuetype = Epic AND summary ~ \\\"feature keyword\\\"\" \\\n  --fields \"key,summary\" --json 2>&1\n```\n\n### Create a single work item\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem create \\\n  --project \"CER\" \\\n  --type \"Story\" \\\n  --summary \"Short action-oriented title\" \\\n  --description \"As a fire safety engineer\\nI want to...\\nSo that...\" \\\n  --label \"feature-slug\" \\\n  --parent \"CER-123\" \\\n  --json 2>&1\n```\n\nFlags reference:\n| Flag | Purpose |\n| --- | --- |\n| `-p, --project` | Jira project key (e.g. `CER`) |\n| `-t, --type` | Work item type: `Story`, `Task`, `Bug`, `Epic`, `Sub-task` |\n| `-s, --summary` | Title (max 255 chars) |\n| `-d, --description` | Body text — use `\\n` for newlines |\n| `--description-file` | Read description from a file (prefer for long ACs) |\n| `--parent` | Parent issue key — use for Epic linkage |\n| `-l, --label` | Comma-separated labels |\n| `-a, --assignee` | Email or `@me` |\n| `--json` | Output created issue as JSON (captures the new issue key) |\n\n**`--parent` takes the issue KEY (e.g. `CER-123`), not the numeric id** — despite the flag's own `--help` text reading \"Parent work item ID\". Passing the numeric id fails with `✗ Error: Please select valid parent issue.`\n\n### Bulk create from JSON (preferred for multiple stories)\n\n```bash\ndir=$(bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ftmp-dir.sh)   # session-scoped .\u002F.tmp\u002F\u003Ckey>\nbulk_file=$(mktemp \"$dir\u002Facli-bulk.XXXXXX\")\ntrap 'rm -f \"$bulk_file\"' EXIT\n\n# ... write JSON to $bulk_file, then:\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem create-bulk --from-json \"$bulk_file\" 2>&1\n```\n\nJSON format for the bulk file:\n\n```json\n[\n  {\n    \"summary\": \"Story title\",\n    \"projectKey\": \"CER\",\n    \"issueType\": \"Story\",\n    \"description\": \"As a...\\nI want to...\\nSo that...\",\n    \"labels\": [\"feature-slug\"],\n    \"parentKey\": \"CER-123\"\n  }\n]\n```\n\nGenerate a template:\n\n```bash\nacli jira workitem create --generate-json\n```\n\n### View a work item (full context)\n\nAlways extract all available context when using a ticket as a source. Use dedicated subcommands — not all data is embedded in the `view` response:\n\n```bash\nKEY=\"CER-456\"\n\n# Core fields (summary + description embedded in view)\nissue=$(acli jira workitem view \"$KEY\" --json 2>&1)\nsummary=$(echo \"$issue\" | jq -r '.fields.summary')\ndescription=$(echo \"$issue\" | jq -r '.fields.description \u002F\u002F \"\"')\n\n# All comments — use dedicated subcommand\ncomments=$(acli jira workitem comment list --key \"$KEY\" --json --paginate 2>&1 | \\\n  jq -r '[.[].body] | join(\"\\n---\\n\")' 2>\u002Fdev\u002Fnull || echo \"\")\n\n# Jira-to-Jira linked tickets only. NOTE: acli only exposes outwardIssueKey (= issue this one\n# BLOCKS). \"is blocked by\" links show outwardIssueKey=null and the blocker key is NOT returned.\njira_links=$(acli jira workitem link list --key \"$KEY\" --json 2>&1 | \\\n  jq -r '.issueLinks[]? | \"\\(.typeName): blocks \\(.outwardIssueKey \u002F\u002F \"(blocked-by upstream — key not exposed)\")\"' 2>\u002Fdev\u002Fnull || echo \"\")\n\n# Attachments — list only (filename + MIME type + URL), no download via acli\nattachments=$(acli jira workitem attachment list --key \"$KEY\" --json 2>&1 | \\\n  jq -r '[.[] | \"\\(.filename) [\\(.mimeType)]: \\(.content)\"] | join(\"\\n\")' 2>\u002Fdev\u002Fnull || echo \"\")\n\necho \"=== SUMMARY ===\" && echo \"$summary\"\necho \"=== DESCRIPTION ===\" && echo \"$description\"\necho \"=== COMMENTS ===\" && echo \"$comments\"\necho \"=== LINKED JIRA TICKETS ===\" && echo \"$jira_links\"\necho \"=== ATTACHMENTS ===\" && echo \"$attachments\"\n```\n\n**Known limitations:**\n\n- `acli jira workitem remote-links` does **not** exist — external\u002Fremote links (Confluence, Figma, Slack URLs) are NOT accessible via acli. Use the Jira REST API if you need them.\n- Attachment download is not supported by acli. The `content` URL in the attachment list requires Jira auth headers that acli does not expose.\n- `acli auth token` does **not** exist.\n- `view --json` returns `fields.parent: null` and `fields.labels: null` even when both **are** set on the issue — a read-side rendering gap, not a write failure. Do not diagnose a missing `--parent`\u002F`--label` write from this field being null on read-back.\n- `acli jira workitem search --fields parent` is rejected (`✗ Error: field 'parent' is not allowed`) — not a usable fallback. To verify parent\u002Flabels actually landed, use JQL instead (see \"Capturing created issue keys\" below):\n\n```bash\nacli jira workitem search --jql \"parent = \u003CEPIC-KEY>\" --count            # confirm the story is parented\nacli jira workitem search --jql \"key = \u003CKEY>\" --fields labels --json     # labels DO render here\n```\n\nRaw JSON (when you need to parse specific fields):\n\n```bash\nacli jira workitem view CER-456 --json 2>&1\n```\n\n### Edit a work item\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem edit CER-456 \\\n  --summary \"Updated title\" \\\n  --description \"Updated description\" 2>&1\n```\n\n**`edit` has no `--parent` flag** (`✗ Error: unknown flag: --parent`) — the parent can only be set at `create` time. Also note `edit` uses `--labels` (plural, with `-k\u002F--key`) where `create` uses `--label` (singular).\n\n**⚠️ acli cannot set custom-field VALUES** (verified through 1.3.22 — there is no `--custom-field` flag, and the `--from-json` schema exposes no custom fields; `acli jira field update` edits field _definitions_, not values). Where a custom-field stamp is unavoidable (e.g. workflow-mode selects), use the plugin's REST helper. **Story Points are the exception: the plugin never writes them** — report the estimate for manual entry instead (requiring the helper's token env contract of every consumer proved too fragile; revisit if acli gains native custom-field support):\n\n```bash\nbash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-set-field.sh \u003CISSUE-KEY> \"\u003CField Display Name>[,\u003CAlt Name>...]\" \u003Cvalue> [number|string|option] [--if-empty]\n```\n\n### Link work items (dependencies)\n\n```bash\nacli jira workitem link type 2>&1   # available link type names (e.g. Blocks, Relates, Cloners)\n```\n\nUse the `link create` form with `--out`\u002F`--in` — NOT the positional `link A B` form (unreliable).\n\n**⚠️ acli direction is counter-intuitive (verified against the Jira UI): `--in` is the BLOCKER, `--out` is the BLOCKED issue.** To express \"**A blocks B**\" (A is the prerequisite that B depends on):\n\n```bash\n# A blocks B   →   --out \u003CB, blocked\u002Fdownstream>   --in \u003CA, blocker\u002Fprerequisite>\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem link create --out CER-102 --in CER-101 --type Blocks --yes 2>&1\n```\n\n**Reading links back** — `acli jira workitem link list --key \u003CKEY> --json` returns\n`{ \"issueLinks\": [ { \"id\", \"typeName\", \"outwardIssueKey\" } ] }`:\n\n- `outwardIssueKey` (non-null) = an issue this story **blocks** (downstream).\n- A null `outwardIssueKey` = an \"**is blocked by**\" (upstream) link — acli does **NOT** expose the blocker's key.\n- To find what blocks `\u003CKEY>`, invert: a sibling `S` blocks `\u003CKEY>` iff `S`'s link list has `outwardIssueKey == \u003CKEY>`. Or read the Jira UI's \"is blocked by\" section.\n\n```bash\n# Delete a link by its id (from link list)\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem link delete --id \u003CLINK-ID> --yes 2>&1\n```\n\n### Search with JQL\n\n```bash\n# Stories in a project\nacli jira workitem search \\\n  --jql \"project = CER AND issuetype = Story AND labels = \\\"feature-slug\\\"\" \\\n  --fields \"key,summary,status\" \\\n  --json 2>&1\n\n# Count only\nacli jira workitem search \\\n  --jql \"project = CER AND issuetype = Story\" \\\n  --count 2>&1\n```\n\n### Add comment\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem comment create --key CER-456 --body \"Spec ready: docs\u002Fsuperpowers\u002Fspecs\u002F...\" 2>&1\n```\n\n## Workflow pattern for story creation\n\nAlways follow this order to avoid creating orphaned stories:\n\n```\n1. Search for existing Epic matching feature area\n2. Write all story descriptions to mktemp files (avoids shell escaping issues AND collisions)\n3. Use create-bulk with --from-json for efficiency\n4. Capture returned issue keys\n5. Link blocking dependencies between stories\n6. Comment on each story with the feature doc path\n7. Temp files are auto-cleaned by the EXIT trap\n```\n\n## Shell escaping rules\n\nDescription text often contains special characters. Use files instead of inline strings.\n\nAlways use `mktemp` for temp files — write them under the session-scoped temp dir from\n`scripts\u002Ftmp-dir.sh` (worker → `.\u002F.tmp\u002F\u003CSDLC_SESSION_KEY>`, interactive → `.\u002F.tmp\u002F\u003CCLAUDE_CODE_SESSION_ID>`;\ninside the permission scope, gitignored), never `\u002Ftmp` (prompts on every access). The dir is\nunique per session in BOTH modes, so the `SessionEnd` hook (`cleanup-tmp.sh`) and\n`session-complete.sh` reliably remove it at teardown. This guarantees a unique path, keeps each\nsession's temp files isolated, and pairs with a `trap` for per-file cleanup:\n\n```bash\n# Create a unique temp file in the session temp dir; clean it up automatically on exit\ndir=$(bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ftmp-dir.sh)   # session-scoped .\u002F.tmp\u002F\u003Ckey>\ndesc_file=$(mktemp \"$dir\u002Facli-desc.XXXXXX\")   # X's at end (macOS), no .txt suffix\ntrap 'rm -f \"$desc_file\"' EXIT\n\ncat > \"$desc_file\" \u003C\u003C 'EOF'\nAs a fire safety engineer\nI want to view a list of penetrations by room\nSo that I can track certification status without opening each record\n\n**Acceptance Criteria**\n- [ ] List shows penetration ID, type, status, and last inspection date\n- [ ] List filters by status (certified \u002F pending \u002F failed)\n- [ ] Empty state shown when no penetrations exist\n\n**Out of Scope**\n- Editing penetrations from this view\nEOF\n\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nacli jira workitem create \\\n  --project \"CER\" \\\n  --type \"Story\" \\\n  --summary \"View penetrations list by room\" \\\n  --description-file \"$desc_file\" \\\n  --parent \"CER-123\" \\\n  --json 2>&1\n```\n\n> `mktemp` returns a path like `.\u002F.tmp\u002F\u003Csession>\u002Facli-desc.A3f9kB` — unique per invocation, never collides with parallel runs. `trap ... EXIT` fires on normal exit, errors, and interrupts.\n\n## Capturing created issue keys\n\n```bash\n[ -x \"${CLAUDE_PLUGIN_ROOT:-}\u002Fscripts\u002Fjira-site-guard.sh\" ] && { bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fjira-site-guard.sh\" || exit 1; }\nresult=$(acli jira workitem create --project CER --type Story --summary \"Title\" --json 2>&1)\nkey=$(echo \"$result\" | jq -r '.key')\necho \"Created: $key\"\n```\n\nTo verify a `--parent`\u002F`--label` write actually landed, use JQL — `view --json` and `search --fields parent` cannot confirm it (see \"Known limitations\" above):\n\n```bash\nacli jira workitem search --jql \"parent = \u003CEPIC-KEY>\" --count            # confirm the story is parented\nacli jira workitem search --jql \"key = \u003CKEY>\" --fields labels --json     # labels DO render here\n```\n\n## Error handling\n\n- DNS block (`getent hosts \"$ATLASSIAN_SITE\"` fails) → abort immediately with the DNS-block error message above; do NOT attempt auth or any other acli command\n- Auth error (DNS resolves but acli returns auth failure) → run the auth guard block above; if env vars empty, abort with \"ATLASSIAN_API_TOKEN\u002FATLASSIAN_EMAIL not set\"\n- Project not found → run `acli jira project list` to confirm key\n- Parent not found → verify epic key exists with `acli jira workitem view \u003Ckey>`\n- Rate limit → add `sleep 1` between bulk operations\n",{"name":5,"description":7},"main","7d4ebd573a4218d5e92eced411b259f34e9203fe","plugins\u002Fsdlc\u002Fskills\u002Facli",0,"https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai","https:\u002F\u002Fwithnightshift.com\u002F","https:\u002F\u002Fgithub.com\u002FwhimzyLive","Creator of @typedorm","2026-11-14 22:45:42",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add whimzyLive\u002Fnightshift-ai --skill acli",{"tool":39,"command":40},"bunx","bunx skills add whimzyLive\u002Fnightshift-ai --skill acli",{"tool":42,"command":43},"pnpm","pnpm dlx skills add whimzyLive\u002Fnightshift-ai --skill acli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Facli\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M7BCEWYHDS1FWAJ6G4CD9P54","designing-in-patterns","Use when designing, planning or auditing UI against a component library — naming surfaces with the repo's pattern vocabulary, deciding reuse versus extend versus new, exploring compositions, or writing the reuse table (component-plan.md, a spec's `## Reuse`, a UI audit). Carries the design method; the repo's own vocabulary, bundle and board rules come from project-context and the designer override.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fdesigning-in-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M75MVN6GACAC87SV9RBPBMKH","typeorm","Use when defining TypeORM entities, writing migrations, or building repository\u002Fquery-builder code in TypeScript. Covers entity and relation decorators, the Data Mapper pattern, migrations, the query builder, transactions, and multi-database configuration.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Ftypeorm\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M75MTEZV8SAZNS20YDSB7KG2","hono-api","Use when building or extending REST APIs with Hono + @hono\u002Fzod-openapi. Covers schema-first route declaration with createRoute, feature-grouped composable routers, a class-based service layer behind interfaces, the strategy pattern for multi-event webhooks, typed request validation, and auto-generated OpenAPI docs.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fhono-api\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M75MTB91SB6HPB3ZRT20F950","electrodb","Use when defining DynamoDB entities, modeling indexes, or writing queries\u002Fmutations with the ElectroDB ORM. Covers entity schema, access patterns, CRUD operations, update expressions, and single-table design patterns.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Felectrodb\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M75MT7KT9A3XYX38TX5MY6MA","atomic-design","Use when structuring or decomposing any frontend UI into reusable components, regardless of framework. Applies Brad Frost's atomic design methodology — atoms, molecules, organisms, templates, and pages — to guide consistent component hierarchy, naming, and composition decisions.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fskills\u002Fatomic-design\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M75MSTQ54EY0K29PKBF212K1","writing-docs","Use when writing, restructuring, or reviewing any prose documentation — a tutorial, how-to guide, reference page, or explanation\u002Fconceptual doc — for a public docs site (e.g. Mintlify MDX, docs\u002F, README material), a getting-started guide, an API\u002FCLI reference page, or a \"why we built it this way\" conceptual page. Applies the Diátaxis framework (see https:\u002F\u002Fdiataxis.fr\u002F) — every document belongs to exactly one of the four quadrants (tutorial \u002F how-to guide \u002F reference \u002F explanation), and mixing quadrants inside one document is the single most common documentation failure. Covers the four-quadrant compass for picking the right form, per-quadrant structure templates, an anti-pattern list for quadrant drift, and generic voice\u002Fcraft rules — repo-specific voice and target output format (e.g. Mintlify MDX) are resolved from the repo's docs-manifest (falling back to project-context), never hardcoded here.","https:\u002F\u002Fgithub.com\u002FwhimzyLive\u002Fnightshift-ai\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fwriting-docs\u002FSKILL.md",[],[]]