ticket-guard
Guards one workflow ticket with marker-scoped hooks that freeze its RED tests, re-run GREEN before a goal-mode stop, and restore the ticket's context after compaction
Install / Use
npx skills add Jeffallan/claude-skills --skill ticket-guardInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of ticket-guard
ticket-guard scores 89/100 on our quality scale, 1248th of 2,760 Automation skills we index (top 46%).
Its SKILL.md is 4.9 KB long, well organised into 10 sections with 1 code example: a solid amount of guidance for an agent.
With 12,509 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated yesterday, so ticket-guard is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
ticket-guard compared with similar skills
All 4 of these similar skills score higher than ticket-guard; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ticket-guard (this skill)by Jeffallan | 89 | 12.5k | 1d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 114.5k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.4k | today | CLAUDE.md |
| Claude-Code-Game-Studiosby Donchitos | 100 | 40.8k | 15d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 105.5k | today | MCP Server |
Frequently asked questions
- How do I install ticket-guard?
- Run
npx skills add Jeffallan/claude-skills --skill ticket-guard. The install tabs above show the steps for each supported agent. - Which AI agents does ticket-guard work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is ticket-guard safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ticket-guard still maintained?
- The repository was last updated yesterday, so ticket-guard is actively maintained.
Skill content
View source on GitHubname: ticket-guard description: Guards one workflow ticket with marker-scoped hooks that freeze its RED tests, re-run GREEN before a goal-mode stop, and restore the ticket's context after compaction. Use when ticket:execute starts or resumes a ticket, or when a session must pick a ticket back up after compaction. license: MIT metadata: author: https://github.com/Jeffallan company: https://synergetic.solutions version: "1.0.0" domain: workflow triggers: ticket guard, ticket marker, RED evidence, GREEN evidence, test freeze, goal run, compaction recovery role: engineer scope: testing output-format: report related-skills: test-master, debugging-wizard
Ticket Guard
Ticket rules, kept through compaction:
- RED first: the failing test and its
guard run redrecord come before any implementation edit. A collection or import error is not RED. - After RED the test files are frozen. Never edit, delete, skip or weaken them to get a pass.
- Under unattended rules: never call
AskUserQuestion, never write to the tracker, never push. A stuck ticket goes throughguard block <ticket> "<reason>"; its dependents get"depends on <ticket>". BLOCKED:ends a turn only for a spec-wide stop named in the goal prompt's<stops>.- After a compaction, re-read the spec's
goal-prompt.md(goal runs) and rebuild state from the Completion Status table andgit 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:executehas 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
- Check the marker. Run
guard marker status;guard <command>meansuv 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. - Load the ticket. Read the ticket's section of the spec's
implementation-plan.mdand the mode the marker records (goalorattended). - 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.
- Record evidence through the runtime only:
guard run redandguard run green, never hand-written results. - Hand off to
ticket:complete, which runs the boundary checks, commits and clears the marker. Never clear the marker yourself.
Reference Guide
| Topic | Reference | Load When |
|-------|-----------|-----------|
| Hooks and guard commands | references/hooks-and-commands.md | A hook denied or blocked something, or you need a guard command's behavior |
Constraints
MUST DO
- Keep every edit in the main session; subagents only read
- Leave the marker in place until
ticket:completeclears it - Report a hook denial in your next message, with the file and the rule
- In goal mode, block a ticket the Stop hook keeps failing instead of looping
- Update every doc
guard docs-affectedlists, or record it withguard docs-checkedand the reason, before handing off
MUST NOT DO
- Delete, move or edit
marker.json, the evidence record ordecisions.jsonl - Run
guard decide, or pass--reasonor--accept-lost-markerunder unattended rules - Edit files under
text.ticketsDirin goal mode - Treat the hooks as the only check:
ticket:completere-runs everything in a clean worktree
Output Templates
After a compaction, before continuing:
Resuming <ticket> (<mode>) on <branch>, started at <start SHA>.
Evidence so far: RED <yes/no>, GREEN <yes/no>.
Next step: <the step the session-start hook named>.
Knowledge Reference
Claude Code hooks (PreToolUse and Stop in skill frontmatter, SessionStart with the compact source in the plugin's hooks.json), the bundled guard runtime, uv run -q --no-project --python ">=3.11" "${CLAUDE_PLUGIN_ROOT}/runtime/guard.pyz" (marker, evidence JSONL, RED and GREEN records, test freeze, Stop-hook GREEN re-run, block, summary), goal runs and /goal evaluator behavior.
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
Related Skills
Agent-Reach
114.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
82.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Claude-Code-Game-Studios
40.8kTurn Claude Code into a full game dev studio — 49 AI agents, 75 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Scrapling
105.5k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
