Watch Jira cards for new comments and changes without polluting the session, with one sub-session per card and per subtask. Tracks cards by key, by assignee email, or by JQL. Use when the user wants to track Jira cards, to be notified about comments or description changes, or to add or remove a tracked card or query.
Ships in general. 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.
Read when SKILL.md points to them; scripts run unread.
This session is the host. A background script polls Jira and exits at the first event. The exit wakes this session. The session handles the events and starts the script again. While nothing happens, the transcript gets no lines.
Each tracked card has one sub-session. The script decides the title of each sub-session (see "Session titles").
Data lives in the home of this skill, ${CLAUDE_PLUGIN_DATA}/jira-watch. ${CLAUDE_PLUGIN_DATA} is the data directory of the general plugin, and all its skills share it. It survives plugin updates. Write no state in ${CLAUDE_PLUGIN_ROOT}. All paths below are in the home.
credentials.env holds JIRA_EMAIL, JIRA_API_TOKEN and JIRA_BASE (for example https://example.atlassian.net). All projects share it.
projects/<project>/cards.txt holds one entry per line. The user edits it by hand. The script ignores blank lines and lines that start with #. There are three kinds of line:
MHA-231. A key with (*), for example MHA-231(*), also tracks every subtask of the card that is not done, and the done subtasks in their grace period (see "Done subtasks").[email protected]. It tracks every card that is assigned to this person and is not done.project = MHA AND labels = backend AND statusCategory != Done. It tracks every card that the query finds.Each card that an email or a query finds gets one sub-session, the same as a listed card.
projects/<project>/child-brief.md is optional. It holds rules that every sub-session gets in its brief.
projects/<project>/state/ is the script's memory. Do not edit it.
projects/<project>/project.env is optional. It overrides JIRA_BASE, INTERVAL (seconds, default 300), INCLUDE_MINE (default 1, set 0 to skip the user's own changes), WATCH_FIELDS (default description summary status assignee priority), RETRY_AFTER (seconds, default 600) or MAX_MATCHES (default 20, the maximum number of cards for one email or query line) or DONE_GRACE_DAYS (default 7, how many days a done subtask keeps sending updates, see "Done subtasks").
The title of a sub-session is <prefixes><KEY> - <card summary>, for example 🫡 MHA-231 - Fix login. A card without prefixes has the title MHA-231 - Fix login.
The prefix rules, in this order:
🫡 : the card is assigned to the user of credentials.env.🫥 : the card was assigned to the user of credentials.env before, but is not now. Rule 1 wins. Jira checks the history on the server (assignee WAS currentUser()), so the script reads no history for this rule.The script computes the title. It is the single source of truth. The host only copies the title of the script.
TITLE when the title changes. A change of the assignee or of the summary changes the title.... <project> titles prints <KEY> <title> for each tracked card that has a title.titles. If the key has no title yet, use <KEY> - <card summary>. The next TITLE event corrects it.A relevant answer can arrive after a subtask is done. So a done subtask keeps sending updates for a grace period:
DONE_GRACE_DAYS days. It reports the comments and the changes of the card as for any other card.cards.txt or removes its (*).SUBTASK RETIRED one time and stops. The script never sends SUBTASK PENDING for a done subtask.The script does not know the sessions. The host does. So the host decides what to do with an event of a done subtask: it acts only when a session for the key exists. If no session exists, the host ignores the event and creates no session. The user sees nothing about such a subtask.
A key is dismissed when the archived session of the key exists and no session of the key exists (see step 3). The user dismisses a card when the user archives its session. For a dismissed key:
CARDS ADDED, CARDS MATCHED or SUBTASK PENDING. For SUBTASK PENDING, run ... <project> ack <KEY>, so that the script stops the retries.NEW COMMENT, EDITED COMMENT, CARD CHANGED, TITLE, SUBTASK DONE, SUBTASK RETIRED, SUBTASK GONE and the others): no user line, no PushNotification, no forward, no rename.To track the key again, the user unarchives the session. Then the session is active, and the normal rules apply.
$ARGUMENTS names the project. If it does not, ask the user.
The data was in the folder of the old jira-watch plugin before. If ${CLAUDE_PLUGIN_DATA}/jira-watch does not exist and ${CLAUDE_PLUGIN_DATA}/../jira-watch-harkairt-claude-marketplace exists, copy the old folder to the home. Keep the old folder. The copy keeps the mode 600 of credentials.env:
/bin/cp -Rp "${CLAUDE_PLUGIN_DATA}/../jira-watch-harkairt-claude-marketplace" "${CLAUDE_PLUGIN_DATA}/jira-watch"
Check that credentials.env exists with ls -l. Never read it, print it or ask for the token in chat. If it is missing, give the user this command for a real terminal (not the chat box), then wait:
umask 077; mkdir -p "${CLAUDE_PLUGIN_DATA}/jira-watch"; read "e?Atlassian email: "; read -s "t?API token: "; read "b?Jira base URL: "; printf 'JIRA_EMAIL=%s\nJIRA_API_TOKEN=%s\nJIRA_BASE=%s\n' "$e" "$t" "$b" > "${CLAUDE_PLUGIN_DATA}/jira-watch/credentials.env"; unset e t b; echo; echo saved
The user creates the token at https://id.atlassian.com/manage-profile/security/api-tokens.
Each argument after the project is a card key, an email, or a quoted JQL query. Add each argument as one line to projects/<project>/cards.txt (create the folder and file when missing). Do not add a line twice.
Do this at the start and after each card event. List the sessions with list_sessions and linked: true, include_archived: true, limit: 1000. The tool has no pages and does not tell when the limit cuts the list. So if the row count equals the limit, call again with a 2× higher limit until the count is lower. The text "No other sessions found." is an empty list. Keep only the sessions of this host: a session whose startedBy is this host, and a subtask session whose startedBy is one of those sessions. Another host owns all other sessions, also when their titles match a key. If a card session that this host started is missing from the result, or the result has no archived rows while the user says that some are archived, call again without linked (same include_archived and limit rule) and apply the same filter.
"The session of a key" in this skill always means an active session of this host (isArchived: false). "The archived session of a key" means a session of this host with isArchived: true. A session belongs to a key when its title, after its leading characters that are not letters (the prefixes, for example 🫡 ), starts with the key and the next character is not a digit (MHA-23 must not match MHA-231). Keys always start with a letter, and prefixes have no letters. This rule applies to archived sessions too. A session whose title only contains the key elsewhere is ambiguous: ask the user and do not create a second session.
Get the tracked keys with JIRA_WATCH_HOME="${CLAUDE_PLUGIN_DATA}/jira-watch" "${CLAUDE_PLUGIN_ROOT}/skills/jira-watch/scripts/jira-watch.sh" <project> tracked. It prints one key per line: the listed keys, the open subtasks of (*) cards, the done subtasks of (*) cards that are in their grace period, and the cards that an email or a query finds. A session of a done subtask in its grace period is not stale. It reads only the state of the script, so it does not include the cards of a new email or query line before the watch runs.
cards.txt without a session that is not dismissed (see "Dismissed cards"): create one (see "New card"). The cards of an email or a query get their sessions from the CARDS MATCHED event. Subtasks get their sessions from the SUBTASK PENDING event.tracked output: report it as stale (see "Removed card"). Report it once for each key per host session.JIRA_WATCH_HOME="${CLAUDE_PLUGIN_DATA}/jira-watch" "${CLAUDE_PLUGIN_ROOT}/skills/jira-watch/scripts/jira-watch.sh" <project> pending. It prints <KEY> <PARENT> for each subtask that waits for a session. Handle each one as a SUBTASK PENDING event.JIRA_WATCH_HOME="${CLAUDE_PLUGIN_DATA}/jira-watch" "${CLAUDE_PLUGIN_ROOT}/skills/jira-watch/scripts/jira-watch.sh" <project> titles. Rename each session of this host whose title differs from the title of its key with set_session_title (see "Session titles"). This also covers the subtask sessions that a parent session created after the TITLE event.Run this with Bash and run_in_background: true. Do not use Monitor: it stops after 30 minutes.
JIRA_WATCH_HOME="${CLAUDE_PLUGIN_DATA}/jira-watch" "${CLAUDE_PLUGIN_ROOT}/skills/jira-watch/scripts/jira-watch.sh" <project>
The script does not receive CLAUDE_PLUGIN_DATA from Claude Code, so the command passes the home as JIRA_WATCH_HOME. The script notices a change of cards.txt within 5 seconds.
Read the output file. Each line is one event. Some events have indented lines below them. Handle all events, then start the watch again (step 4). Ignore each event of a dismissed key, except the ack for SUBTASK PENDING (see "Dismissed cards").
NEW COMMENT <KEY> id=<id> by <name>: <text> and EDITED COMMENT ...
CARD CHANGED <KEY> by <name>: <change>: the description, summary, status, assignee or priority changed. A description change comes with - (removed) and + (added) lines. Handle it as a comment: tell the user in one line what changed, for example "added requirement: ...", push when the author is someone else, and forward the full text to the session of the card. For a done subtask, follow the rules of NEW COMMENT for the note, the missing session and the archive reminder.
CARDS ADDED: <KEY> ...: create a session for each key (see "New card").
CARDS REMOVED: <KEY> ...: report each key (see "Removed card").
CARDS MATCHED: <line>: <KEY> ...: an email or a query line of cards.txt finds these cards. Create a session for each key that has no session (see "New card"). Tell the user in one line which line found the cards.
CARDS UNMATCHED: <line>: <KEY> ...: the email or query line does not find these cards any more, or the user removed the line. No other line tracks them. Report each key (see "Removed card").
QUERY TOO BROAD: <line> (<n>+ cards, limit <MAX>): the line finds more than MAX_MATCHES cards. The script does not change the cards of this line until it finds fewer. Tell the user and suggest a narrower line or a higher MAX_MATCHES in project.env. The script sends this event one time while the line stays too broad.
QUERY ERROR: <line>: <message>: Jira rejects the JQL, or no single Jira user has this email. Tell the user and suggest a fix for the line. The script sends this event one time while the error stays.
SUBTASK PENDING: <PARENT> <KEY> (try <n>): a subtask needs a session under the session of its parent.
<KEY> exists and was started by the parent session (startedBy in list_sessions), run ... <project> ack <KEY>. Done.ack.<PARENT> and send it a message: start a sub-session for <KEY> with start_session, the title of <KEY> (see "Session titles"), the model and the brief from "New card". Never create the session here: the app links a session to the session that started it, and that link is the hierarchy.<PARENT> is dismissed, run ack and create no session. If <PARENT> has no session, create it first (see "New card") and ask it as soon as it exists.ack after sending. The script repeats the event after RETRY_AFTER seconds, up to 3 tries. A session that now exists ends the retry (step 1).SUBTASK STUCK: <PARENT> <KEY>: 3 tries did not create the session. Tell the user. Do not create a flat session. The user decides.
SUBTASK DONE: <PARENT> <KEY>: the subtask is resolved. Its session still gets updates for DONE_GRACE_DAYS days. If a session for <KEY> exists, tell the user that the card is done and ask whether to archive the session. Archive it only after a clear yes. Mark the key as reminded, so the reminder in NEW COMMENT does not repeat. If no session exists, do nothing.
SUBTASK RETIRED: <PARENT> <KEY>: the grace period of the subtask ended. The script sends no more events for it. If a session for <KEY> exists, tell the user one time that the session gets no more updates and the user can archive it. Do not archive it. If no session exists, do nothing.
SUBTASK GONE: <PARENT> <KEY> and SUBTASKS OFF: <PARENT>: <KEY> ...: the subtask is not under a tracked parent any more (this includes done subtasks in their grace period). Report each as a stale session (see "Removed card").
TITLE <KEY>: <title>: the title for the key changed (see "Session titles"). Handle it after the events that create sessions. If the session of the key exists and its title differs, rename it to <title> with set_session_title. Rename it silently, with no user line and no PushNotification. If no session exists, do nothing: the session gets the title when it is created.
WATCHER ERROR ...: the set-up is wrong. Tell the user and do not restart in a loop.
start_session. Use initiation: "user_asked", because the user asked for this by adding the key. Use context: "fresh" and use_worktree: false. Use model: "claude-opus-5-5" (Opus 5.5), so that the sub-session does not inherit the model of the host. start_session ignores a model that costs more than the model of the host. So after the start, read the model of the new session with get_session. If it is not claude-opus-5-5, set it with set_session_model.set_session_title when start_session names it otherwise.child-brief.md when the file exists.If the key is in the tracked output, another line still tracks it: do nothing. If the key is dismissed, do nothing (see "Dismissed cards"). Otherwise find the session of the key. Tell the user in one line: the sub-session title is stale because the card is not tracked any more, and it gets no more updates. The user decides: add the key back to cards.txt, or archive the session. Do not archive the session and do not edit cards.txt without a clear yes. If no session matches, say so and do nothing else.
The watch stops when the session or the app closes. Start it again in the next session.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/general:jira-watch <project> [card keys | emails | "JQL"...]from general
npx claudepluginhub harkairt/harkairt-claude-marketplace --plugin general5 skills in this plugin
/demo-recordingTurn a mobile-app scenario into a short captioned demo video, portrait or landscape with an explanation panel and arrows, with evidence that the demonstrated feature really works. Use to record a demo of an iOS simulator app, to trim or caption a screen recording, or to prove an effect that the screen does not show (analytics events, backend writes, emails, logs) with an annotated chart or screenshot./interviewInterview the user when they ask for an interview, ask for questions on a page, or want to answer several open questions in one place./open-pr-reviewReview each open PR into .git/reviews, draw diagrams for code changes, and post one diagram comment, with Claude or Codex per step. Use when a scheduled task or the user asks to review the open PRs with diagrams.