ticket-attach-docs

ticket-attach-docs is a command for Claude Code from fprochazka/claude-code-plugins. It costs 24 tokens per session (1,317 once invoked), scanned A, original, MIT.

A command for putting existing plans and research documents on a work ticket as documents, attachments, or comments.

In plain words
What is it for?
Use it at the end of a task to attach relevant files from the project’s plan and research folders.
Why use it?
It keeps important work material with the ticket instead of leaving it only on one machine or in one session.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the sdlc plugin — 1 skill, 8 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/fprochazka/claude-code-plugins/ticket-attach-docs
Clone the repo
git clone --depth 1 https://github.com/fprochazka/claude-code-plugins

Made for: Claude Code.

Or install sdlc, the plugin that ships this one along with the rest of its 1 skill, 8 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ticket-attach-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/fprochazka/claude-code-plugins/ticket-attach-docs.svg)](https://agentmods.dev/commands/fprochazka/claude-code-plugins/ticket-attach-docs)
Your own site
<a href="https://agentmods.dev/commands/fprochazka/claude-code-plugins/ticket-attach-docs"><img src="https://agentmods.dev/badge/commands/fprochazka/claude-code-plugins/ticket-attach-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01317
Opus 5 $0.00012 $0.00659
Sonnet 5 $0.00005 $0.00263
Haiku 4.5 $0.00002 $0.00132

Measured 2d ago against content hash 04810d014d4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ticket-attach-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/sdlc/commands/ticket-attach-docs.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Attach Documents to the Ticket

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.

Scope

$ARGUMENTS

Process

  1. 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 branch name or the MR title, 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. If you do not know which tracker that is, invoke sdlc:team-workflow-identify first.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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. 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.
  7. Report what landed where, with URLs, and one line per skipped file saying why.

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 68 lines · 24 tokens per session scan A 04810d014d4e

Subscribe to this mod's changes

ticket-attach-docs is a command published in the GitHub repository fprochazka/claude-code-plugins (13 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,317 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.