ticket-guard

ticket-guard is a skill for Claude Code from Jeffallan/claude-skills. It costs 64 tokens per session (1,209 once invoked), scanned A, original, MIT.

A workflow guard for one software ticket. It keeps the ticket's failing tests recorded first, prevents those tests from being changed, checks that tests pass before stopping, and restores the ticket's context after a conversation is shortened.

In plain words
What is it for?
Use it during ticket execution to enforce a fail-first testing process, protect test files, check the passing state, and handle blocked or resumed tickets.
Why use it?
It prevents implementation changes from hiding or weakening the original failure. It also helps an interrupted work session resume with the correct ticket state and test status.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the fullstack-dev-skills plugin — 71 skills, 2 commands, 8 agents, 4 hooks shipped together

Good fit Use it during ticket execution to enforce a fail-first testing process, protect test files, check the passing state, and handle blocked or resumed tickets.

Compare 6 skills from other repositories ↓
About the project

claude-skills is a collection of specialized skills that extends Claude Code for full-stack development. Developers use it for programming languages, frameworks, infrastructure, APIs, testing, DevOps, security, data and machine learning, platform tasks, and project workflows.

Jeffallan/claude-skills · 12,556 stars · on GitHub

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Jeffallan/claude-skills
Claude Code
/plugin install fullstack-dev-skills

Made for: Claude Code.

Or install fullstack-dev-skills, the plugin that ships this one along with the rest of its 71 skills, 2 commands, 8 agents, 4 hooks.

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-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffallan/claude-skills/ticket-guard/github.svg)](https://agentmods.dev/skills/jeffallan/claude-skills/ticket-guard)
Your own site
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/ticket-guard"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/ticket-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ticket-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/ticket-guard"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/ticket-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00064 $0.01209
Opus 5.5 $0.00026 $0.00484
Sonnet 5.5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

Measured 6d ago against content hash b2d96ab96ec0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ticket-guard 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 6d 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.

plugin/skills/ticket-guard/SKILL.md · 83 lines

How it starts

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

Ticket Guard

Ticket rules, kept through compaction:

  1. RED first: the failing test and its guard run red record come before any implementation edit. A collection or import error is not RED.
  2. After RED the test files are frozen. Never edit, delete, skip or weaken them to get a pass.
  3. Under unattended rules: never call AskUserQuestion, never write to the tracker, never push. A stuck ticket goes through guard block <ticket> "<reason>"; its dependents get "depends on <ticket>".
  4. BLOCKED: ends a turn only for a spec-wide stop named in the goal prompt's <stops>.
  5. After a compaction, re-read the spec's goal-prompt.md (goal runs) and rebuild state from the Completion Status table and git log, then continue at the step the session-start hook names.

Role Definition

You are the guard for one ticket of a spec workflow. ticket:execute invokes this skill after guard marker start so the ticket rules above stay in context. The guard hooks ship in the plugin's hooks/hooks.json: they run on every edit, every stop and every compaction in every session, a resumed one included, and do nothing without a marker or for another session's marker. The work itself stays in ticket:execute and ticket:complete.

When to Use This Skill

  • ticket:execute has started or resumed a ticket and needs the hooks registered.
  • A session resumed or compacted mid-ticket and must pick the ticket back up.
  • You need to know what a guard hook did, or why it denied an edit or blocked a stop.

Core Workflow

  1. Check the marker. Run guard marker status; guard <command> means uv run -q --no-project --python ">=3.11" "${CLAUDE_PLUGIN_ROOT}/runtime/guard.pyz" <command> (typed out or as a shell function, never a variable, which zsh doesn't split), and spec files and goal prompts write it that way. No marker means no ticket is in progress: say so and stop.
  2. Load the ticket. Read the ticket's section of the spec's implementation-plan.md and the mode the marker records (goal or attended).
  3. Follow the ticket rules above for the rest of the ticket. The hooks enforce the freeze and the GREEN re-run; the rules cover what they can't see.
  4. Record evidence through the runtime only: guard run red and guard run green, never hand-written results.
  5. Hand off to ticket:complete, which runs the boundary checks, commits and clears the marker. Never clear the marker yourself.

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 83 lines · 64 tokens per session scan A b2d96ab96ec0

Subscribe to this mod's changes

ticket-guard is a skill published in the GitHub repository Jeffallan/claude-skills (12,556 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 1,209 once invoked, about $0.0003 per session on Opus 5.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-11-24.

Related

ticket-guard compared with skills from other repositories

ticket-guard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ticket-guardJeffallan/claude-skillsSkill13ktodayMITA64Claude Code
gitversionlandim32/awesome-ai-skillsSkill12d agoMITA81Claude Code
pr-desloptony/skillsSkill0todayMITA28Claude Code
applytony/skillsSkill0todayMITA20Claude Code
whattony/skillsSkill0todayMITA29Claude Code
refocustony/skillsSkill0todayMITA27Claude Code
release-prepivuorinen/skillsSkill4todaynoneA59Claude Code