refine-ticket

refine-ticket is a skill for Claude Code, Codex from eai-org/agent-toolkit. It costs 40 tokens per session (2,259 once invoked), scanned A, original, MIT.

A process for turning a rough development idea or ticket into a complete requirements document, checked against the existing codebase.

In plain words
What is it for?
Use it to define the goal and scope, verify what the code already supports, identify dependencies, and surface unanswered questions before planning implementation.
Why use it?
It removes ambiguity and prevents requirements from being based on guesses or conflicting with the current project.

Skill for Claude CodeCodex

Part of the agent-toolkit plugin — 22 skills 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 skills/eai-org/agent-toolkit/refine-ticket
Any agent
npx skills add eai-org/agent-toolkit --skill refine-ticket
Clone the repo
git clone --depth 1 https://github.com/eai-org/agent-toolkit

Made for: Claude Code, Codex.

Or install agent-toolkit, the plugin that ships this one along with the rest of its 22 skills.

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 refine-ticket

README.md
[![agentmods](https://agentmods.dev/badge/skills/eai-org/agent-toolkit/refine-ticket.svg)](https://agentmods.dev/skills/eai-org/agent-toolkit/refine-ticket)
Your own site
<a href="https://agentmods.dev/skills/eai-org/agent-toolkit/refine-ticket"><img src="https://agentmods.dev/badge/skills/eai-org/agent-toolkit/refine-ticket.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,259 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.00040 $0.02259
Opus 5 $0.00020 $0.01130
Sonnet 5 $0.00008 $0.00452
Haiku 4.5 $0.00004 $0.00226

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

Security

Grade A, and why

refine-ticket 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 4d 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.

skills/refine-ticket/SKILL.md · 171 lines

How it starts

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

Refine ticket

The Refine phase of Refine → Plan → Act: turn a raw ticket — or an idea to brainstorm — into a validated requirements document a fresh session can plan from. Analysis only — it defines what must be true when the work is done, never how to build it, and never touches code.

An idea is a ticket that doesn't exist yet: treat the user's words as the ticket text, and grill to shape the idea itself — goal, in vs out of scope — before closing the branches that block implementation.

What, not how — but verified against the code

You cannot define the "what" in a vacuum. Every requirement must be checked against the actual code, config, and design — a ticket may be stale, ambiguous, contradicted by the codebase, or depend on upstream work that isn't implemented yet (e.g. a prerequisite ticket still open). Reading the code here is for validating requirements, not for designing the solution.

Golden rule: never guess — ask

  • Anything determinable by reading the code, resolve by reading the code — never ask the user about it.
  • Anything not determinable from ticket + code, ask — never fill the gap with a plausible assumption.
  • Local environment state (config files, DB contents, env vars) describes only the machine it's on — never assume it matches the environment where the reported behaviour occurred; ask the user to confirm such values.
  • Treat "this probably works like X" as a question, not a fact. Keep "I confirmed X", "the ticket claims X", and "I assume X" distinct; the latter two never become the first without evidence.
  • Before declaring something missing, broaden the search — "not found under the name the ticket used" is not "not present".
  • Verify both sides of an integration: if a requirement relies on another layer behaving a certain way, open that layer and confirm it.

Grill to resolve every branch

After gathering and code-verifying, grill the user — interview relentlessly, never guessing what they could clarify — to close every remaining decision:

Read the full file on GitHub · 171 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. 4d ago First seen · 171 lines · 40 tokens per session scan A a337763e3984

Subscribe to this mod's changes

refine-ticket is a skill published in the GitHub repository eai-org/agent-toolkit (43 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 2,259 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

ospec

Document-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.

clawplays/ospec · 26 tokens

html-doc

Generates a polished, static HTML reading view from an existing Markdown PRD or technical design. Use when a user asks to render, present, visualize, or make a PRD or design document easier for humans to read in a browser.

owainlewis/blueprint · 51 tokens

bmad-register-skill

Register a custom BMM-dependent skill in the governance registry (bmad/config/bmm-dependencies.csv). Use when the user says "register my skill", "register custom skill", "register bmm dependency", "/bmad-register-skill", or when responding to a convoke-doctor "unregistered-custom-skill" warning with intent to register.

amalik/convoke-agents · 78 tokens

skill-with-manual-entry

Fixture — skill with a frontmatter dep plus a pre-existing manual CSV row (AC9 case 4).

amalik/convoke-agents · 28 tokens

doc-sync

Use when code has moved and the documentation may not have, or when a documentation set needs auditing for stale claims. Detects documentation drift by checking prose claims against repository facts, classifies every document as current-state (correctable), contract (report-only, human-owned) or ledger (skipped), and…

hams-ollo/zen-agent-skills · 193 tokens

journey-map

Document a user journey from screen references and a user story input. Produces a journey spec doc matching the JOURNEYSPEC.md template with outcome, screen flow, components consumed, critical states, accessibility, security, and performance sections. Use when mapping a user flow across multiple screens. Do not use…

Mozurok/fhorja.dev · 82 tokens