/spwf:tracker-commentfrom spwf
Post an audience-aware comment on an existing tracker issue (YouTrack default; Jira and others supported). Classifies the audience as human (e.g. product manager) or record (technical/posterity), rewrites accordingly, and posts via the tracker dispatch. Human comments are succinct plain English with at most one clear ask; record comments allow full technical detail. Use when sending a status update, asking for feedback, or logging a decision on a tracker thread.
Ships in spwf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Post an audience-aware comment on an existing tracker issue. The skill classifies whether the comment is for a real person (e.g. a product manager) or for the record (technical/posterity), rewrites human-targeted comments to be plain, succinct, and ask-driven, and posts via the existing tracker dispatch.
This is distinct from capture's create_issue (which records new
issues for the team) — tracker-comment posts to existing issue threads,
typically to update a stakeholder or log progress.
Read $ARGUMENTS. The first whitespace-separated token is the issue id
or option flag; the rest is the draft comment text (if provided
inline).
| Input | Resolution |
|---|---|
| Empty | Read ticket: from the active todo file (most recent in todo/ matching the current branch or change-id; falls back to todo/_done/ for archived). If found, use it. Else ask. |
Issue id (e.g. ACAD-42, PROJ-123) | Use directly. |
Todo path ending .md | Read frontmatter ticket: field. |
If no issue id can be resolved, halt with: "No tracker issue id
provided and none found in the active todo file. Pass an id (e.g.
/spwf:tracker-comment ACAD-42 your draft comment) or run from a repo
with a todo file containing a ticket: field."
Recognised flags (strip from $ARGUMENTS before parsing the rest):
--for=human / --for=record — override audience classification--draft — save the prepared comment to disk instead of posting--no-fetch — skip the get_issue call that grounds context
(faster but less informed; rarely needed)Resolve the active tracker per _shared/tracker-dispatch.md. If the tracker
is not available in this session (and tracker: isn't none), fail fast:
tracker: none in
.spwf/tracker.yaml to opt out. (For an in-repo tracker, set
tracker: beads and install spwf-beadsify.)"tracker: beads set but spwf-beadsify
missing) → use the verbatim error from _shared/tracker-dispatch.md
§ "Configured-but-not-installed error".If tracker: none is set, halt with: "Tracker integration is opted out
for this repo (tracker: none). Cannot post a comment."
Unless --no-fetch was passed, fetch the issue:
get_issue(id="{ticket}")
Capture: title, type, current state, reporter, recent commenter usernames if returned, labels. This grounds audience classification (e.g. issue type "Feature Request" with non-technical reporter strongly suggests human-target).
If the fetch fails, surface the tracker error verbatim and stop — posting a comment to an issue you can't even read is suspicious.
If the user provided text inline after the issue id in $ARGUMENTS,
use that as the draft.
Otherwise prompt:
"What's the comment? Paste or type the draft (multi-line OK; finish with a blank line and Enter):"
Wait for input. An empty draft halts with: "No draft text provided. Cancelled."
Reason about the audience using the cues below. Do not use regex; this is a model-reasoning task — read the draft, the issue context, and judge.
Human-target cues (favour human classification):
@-mentions of named people in the draftpm.*, product.*, design.*,
support.*)Record-target cues (favour record classification):
Cost-asymmetric default when unsure: human. Rewriting a
record-style comment to plain English is cheap; posting a wall of
code to a PM is expensive. When the cues are mixed or weak, treat as
human and let the user override.
If --for=human or --for=record was passed, trust it without
re-classifying.
If the cues are genuinely split (e.g. the draft has code blocks AND an @-mention to a named person), ask the user:
"Audience for this comment is mixed. Is this primarily for: a real person (rewrite plain), or the record (light cleanup)?"
Use the loaded AskUserQuestion tool with the two clear options.
human: rewriteApply these rules. They mirror recap's anti-padding regime
(plugins/spwf/skills/recap/SKILL.md Step 5) but adapted for
stakeholder communication.
path/to/file (no line
numbers unless specifically requested by the recipient).@-mentions exactly. Both Jira and YouTrack render
them with autocomplete linkage; don't paraphrase a @bob to
"Bob".Show the rewrite alongside the original. Format:
─── Original draft ───────────────────────────────────────
{original text}
─── Rewrite (audience: human) ────────────────────────────
{rewritten text}
({N} → {M} words, audience inferred from: {1-2 cue phrases})
record: light cleanup only``` not ````; closing fence
present)Show the cleaned text:
─── Comment (audience: record) ───────────────────────────
{cleaned text}
(audience inferred from: {1-2 cue phrases}; light cleanup applied)
If the prepared text exceeds ~32,000 characters (Jira's documented comment limit; YouTrack is similar), halt with:
"Prepared comment is {N} chars; tracker max is ~32KB. Split into multiple comments or shorten before posting."
Do not auto-truncate.
Prompt:
Post this comment to {tracker} {issue-id}? [Y/n/edit]
Y (or enter): proceed to Step 9.n: cancel cleanly. Report: "Cancelled. No comment posted."edit: open $EDITOR (or $VISUAL) on a temp file containing the
prepared text. On save, use the saved content. If the saved file
is empty (zero bytes or whitespace only), treat as cancel — do
not post empty comments.add_commentDispatch per _shared/tracker-dispatch.md:
add_comment(id="{ticket}", body="{prepared text}")
mcp__youtrack__*
glob (the JetBrains MCP server advertises its comment-posting tool
at handshake; the model picks the right one).mcp__atlassian__jira_add_comment.If the call fails (closed issue, auth, network, rate limit): surface the tracker error verbatim and stop. Do not retry, do not silently swallow, do not pretend success.
--draft mode (alternative to Step 9)If --draft was passed, do NOT call add_comment. Instead:
mkdir -p todo/.tracker-drafts
DRAFT_PATH="todo/.tracker-drafts/${TICKET}-$(date +%Y-%m-%d-%H%M).md"
Write the prepared text to $DRAFT_PATH, including a small header
recording: ticket id, timestamp, audience classification, original
draft (preserved at the bottom for re-edit).
Drafts accumulate (the timestamp suffix is unique to the minute;
collisions are rare and tolerable). The hidden .tracker-drafts/
directory is excluded from active todo scans (challenge, spec,
wfstatus use top-level todo/*.md globs that don't recurse).
Report: "✓ Draft saved: {path}. Run /spwf:tracker-comment {ticket}
again with the draft text to post."
✓ Posted comment on {tracker} {ticket}
Audience: {human | record}
Length: {N} words ({M} chars)
URL: {issue url + comment anchor if available}
Original: {N_orig} words
Posted: {N_posted} words ({delta} change)
For --draft mode, report the saved path instead of the post URL.
--for= override — the user knows their audience
better than the model when they tell you.@-mentions during cleanup.add_comment call.update_comment) — v1 only adds new
comments. Editing is a separate operation and rarely needed.get_issue. A --with-thread flag could
be added later if real cases demand it.recap — sister skill for audience-aware writing. Recap is for
the user (concept consolidation at close); tracker-comment is for
stakeholders (status updates posted to tracker). Same primitive
(audience-aware writing), different audience and channel. The
banned-phrases list is shared.capture — different scenario (creates new issues). Capture's
create_issue body is for the team/record by default and is not
routed through audience-check.close — close uses set_state only (no body); does not
invoke this skill. After running close, you may want to post a
completion update on the linked issue — /spwf:tracker-comment is
the right manual follow-up if a stakeholder needs to know.tracker-comment-nudge.sh hook — fires PreToolUse on tracker
write tools and warns if the body looks heavy-technical. The hook
is advisory; it suggests this skill but doesn't force its use.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./agent-optimiseCross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list./npx claudepluginhub simon-potter/spwf --plugin spwf