doc-from-jira

A command that turns a Jira ticket into a structured documentation file. Jira is a tool for tracking work; this command reads tickets in the DOCS project and uses their requirements to prepare the document.

In plain words
What is it for?
Use it when starting documentation from a DOCS Jira ticket, especially when the ticket includes acceptance criteria, specifications, or engineering links.
Why use it?
It removes the blank-page problem and keeps the document tied to the ticket’s requirements. It can also add the document to navigation and update the ticket’s status with approval.

Command for Claude Code

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/sumologic/sumologic-documentation/doc-from-jira
Clone the repo
git clone --depth 1 https://github.com/SumoLogic/sumologic-documentation

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,697 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 $0.00000 $0.02697
Opus 5 $0.00000 $0.01349
Sonnet 5 $0.00000 $0.00539
Haiku 4.5 $0.00000 $0.00270

Measured 2d ago against content hash 996568f4de3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc-from-jira 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.

.claude/commands/doc-from-jira.md · 360 lines

How it starts

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

Doc from Jira — Scaffold a Doc from a Jira Ticket

Pulls a Jira ticket from the DOCS project, extracts the content requirements, and scaffolds a fully structured documentation file ready for writing. Eliminates the blank-page problem and keeps the doc aligned with the ticket spec from the start.

What this command does

When you invoke /doc-from-jira, Claude will:

  1. Fetch the Jira ticket. Pull title, description, acceptance criteria, and linked resources
  2. Determine doc type. Feature, how-to, concept, reference, or troubleshooting
  3. Infer the file path. Based on the technical area and content type
  4. Scaffold the doc. Generate a file with correct frontmatter, structure, and placeholder sections pre-populated from the ticket
  5. Update sidebars.ts. Add the new doc to navigation (with user approval)
  6. Link back to Jira. Set the Jira ticket to In Progress if not already

When to use this command

  • Starting a new doc for a DOCS ticket
  • When a ticket has a detailed description or acceptance criteria worth preserving
  • For tickets with linked specs, PRDs, or engineering docs to pull context from
  • When you want to ensure the doc structure is aligned with what was requested

When NOT to use this command

  • App integrations — use /app-doc instead
  • Cloud-to-Cloud sources — use /c2c-source-doc instead
  • Release notes — use the appropriate /release-note-* command instead
  • Tickets that do not require a net-new doc (pure updates, typo fixes)

Workflow

Step 1: Get the ticket number

If the user provides a ticket number (e.g., DOCS-1234), use it directly.

If the user says "use my current ticket" or "use the branch ticket", extract the ticket number from the current git branch name (pattern: DOCS-\d+).

If no ticket is found, ask the user for the ticket number.

Step 2: Fetch the ticket

Use the Jira MCP tool to fetch the ticket:

  • Cloud ID: 247075db-3b0b-4f1b-92db-51683ab743a6
  • Issue key: the provided DOCS-XXXX number

Read the full file on GitHub · 360 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 · 360 lines · 0 tokens per session scan A 996568f4de3a

Subscribe to this mod's changes

doc-from-jira is a command published in the GitHub repository SumoLogic/sumologic-documentation (42 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,697 tokens. 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-08-30.