/sdlc:ticket-attach-docsfrom sdlc
Attaches session plan and research documents to a ticket as tracker documents, attachments, or comments, ensuring work artifacts persist beyond the local workspace.
Ships in sdlc. 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.
None: SKILL.md is the whole skill.
Put the work's durable documents where the next person looks: on the ticket. The plan and the research behind it live in ./.claude/plans/ in one worktree on one machine; the ticket outlives both. Attach only what already exists.
$ARGUMENTS
Resolve the ticket. Take it from the session; this command usually runs at the end of the work, so the ticket is already in the conversation. The scope above only narrows or overrides that. Fall back to the MR title, the branch name or the MR description the way teamwork:workflow-identify says, and ask the user only when the session covered several tickets. Load the skill for the tracker in play if it is not loaded yet; invoke teamwork:workflow-identify first when you do not know which tracker that is.
Collect the candidates. Every file in ./.claude/plans/, plus any dump this session wrote elsewhere (a chat thread export, a query result, a dashboard reading). Match them to the ticket by ID or slug. Where the slugs do not line up, use what the session knows about which files it wrote.
Judge each candidate by the rules under "What is worth attaching". Read a file before you attach it; you are copying it to a place other people read.
Inventory the ticket through one subagent (model: sonnet). Open its prompt with the skill-load instruction so it does not guess CLI syntax: First, invoke the <skill-name> skill to load its usage guidance before running any commands. Ask it for what the ticket already holds: its documents with their identifiers and titles, its attachments, and any comment that carries an earlier copy of the same material. Name the candidate files' titles so it can compare. Ask it also which carriers the tracker offers: documents, file attachments, comments. It returns the inventory as a list, nothing else. Keep this subagent; step 6 resumes it.
The auto mode classifier reads this first prompt as the user's instruction and the step 6 message as a coordinator's, so the first prompt carries the whole task. Quote the user's request verbatim (the command as they typed it, with its arguments), name the later writes by action and target, and scope the turn: The user asked: "<their words>". The task: attach this session's documents to <ticket> as documents, attachments or comments, after an inventory. This turn: take the inventory, return it, and end your turn. A later message will ask you to create or update those documents on <ticket>; that is part of the request above. When the caller has writes of its own for this subagent, /sdlc:wrap-up for example, name them in the same way. Never write "read-only", "change nothing" or "inventory only": a later message cannot lift that boundary, and the classifier then blocks the upload.
Decide and propose once. The inventory decides create, update, or skip per file, and it shows which carrier the ticket already uses. Show the user one list: per file, the verdict, the carrier, and whether it creates or updates. Confirm before anything is uploaded.
Resume the same subagent for the upload. Message it the confirmed list, not a fresh subagent: it already holds the ticket state and the skill, and a new one would load both again. Open the message by pointing back to the first prompt — Next step of the task in your first prompt: upload these files to <ticket> — and add no approval claim such as "confirmed" or "the user approved". When the user changed the list in step 5, quote their words verbatim instead. Per file give the path, the title, the carrier, and create or update with the identifier from its own inventory. It reads each file into the command from disk, never pastes content into the prompt or the reply. It returns one line per file: what it did and the URL. It does not judge, reorder, or edit anything. If an upload fails, it reports the failure; it does not retry with another carrier.
Report what landed where, with URLs, and one line per skipped file saying why.
Always, without asking:
<slug>-briefing.md): the conclusion in implementation order.Never:
pre-plan-<slug>-ticket.md. It is the ticket's own content read back out. Attaching it to the ticket duplicates the ticket.Judge the rest. The test: does this file carry something that exists nowhere else, and would someone have to redo the work to get it back? A chat thread nobody mirrored into the ticket passes. So does a production query with its results, and the pre-plan synthesis when it explains how the code works today. A superseded draft fails. So does anything the wrap-up comment already states, and a file that only restates the diff.
Two things stop an attachment regardless of value:
The tracker decides. Resolve the carrier at run time, never assume the tracker has documents, and prefer the form the ticket already uses.
Title every document with the ticket ID and what it is, for example ABC-123 — implementation plan. The title is the key that the next run matches on.
Repeat runs are normal: you attach the same work once the plan is approved and again at wrap-up.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fprochazka/claude-code-plugins --plugin sdlc8 skills in this plugin
/brief-next-stepssdlc:brief-next-stepsWrite a short briefing of the proposed next steps into ./.claude/plans/ so the conclusion can be read instead of the argument/mr-babysitsdlc:mr-babysitBabysit MR(s) or PR(s) — a watcher reports every change, an actor triages, fixes and posts, and you decide, until every MR is rebased, green, quiet and handed over/mr-opensdlc:mr-openOpen a draft MR for the current branch — the Why in the ticket, the reviewer's guide in comments, a one-screen description, then babysit it/pre-plansdlc:pre-planGather context for a problem (ticket + code exploration) before discussing a solution and writing a plan/ticket-newsdlc:ticket-newDraft and create a ticket from the current conversation context/wrap-upsdlc:wrap-upAttach the session's documents to the ticket, post a condensed wrap-up comment — outcome, verification numbers, findings, follow-ups — and mark it completedOther plugins' skills for the same job