claude-workspace: Command for Claude Code

.claude/commands/ticket.md

ticket is a command for Claude Code from Piyush8296/claude-workspace. It costs 15 tokens per session (515 once invoked), scanned A, original, MIT.

A command for taking a software ticket from its requirements through implementation and a pull request. A pull request is a proposed code change that others can review before it is merged.

In plain words
What is it for?
Read and summarize tickets, inspect the codebase, create a feature branch, plan the change, implement it with TDD, run checks, and prepare a pull request.
Why use it?
It gives the work a defined path so requirements, scope, tests, branching, and review are not skipped. TDD means writing a failing test first, then adding code to make it pass.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is Piyush8296/claude-workspace's own configuration. It tells Claude Code how to work on claude-workspace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Piyush8296/claude-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Piyush8296/claude-workspace/main/.claude/commands/ticket.md
Clone the repo
git clone --depth 1 https://github.com/Piyush8296/claude-workspace

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/piyush8296/claude-workspace/ticket.svg)](https://agentmods.dev/commands/piyush8296/claude-workspace/ticket)
Your own site
<a href="https://agentmods.dev/commands/piyush8296/claude-workspace/ticket"><img src="https://agentmods.dev/badge/commands/piyush8296/claude-workspace/ticket.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 515 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.00015 $0.00515
Opus 5 $0.00008 $0.00258
Sonnet 5 $0.00003 $0.00103
Haiku 4.5 $0.00002 $0.00052

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

Security

Grade A, and why

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

.claude/commands/ticket.md · 88 lines

What it actually says

Ticket Workflow

Work on ticket: $ARGUMENTS

Instructions

1. Understand the ticket

If a ticket tracker MCP is available, fetch ticket details. Otherwise, ask the user to provide:

  • Title and description
  • Acceptance criteria
  • Design links or screenshots
  • Dependencies or blockers

Summarize:

  • What needs to be done
  • Acceptance criteria (as checklist)
  • Scope boundaries (what's NOT included)

2. Explore the codebase

Before writing any code:

  • Search for related existing components/utilities
  • Understand current patterns in the area you'll modify
  • Identify files that need changes
  • Check for existing tests

3. Create a feature branch

git checkout main && git pull
git checkout -b feat/$ARGUMENTS-<brief-slug>

4. Plan the implementation

Before coding, outline:

  • Files to create or modify
  • Component hierarchy (if UI work)
  • State management approach
  • API integration points
  • Test strategy

Ask for confirmation before proceeding.

5. Implement with TDD

For each unit of work:

  1. Write a failing test that captures the requirement
  2. Implement the minimal code to pass
  3. Refactor for clarity and patterns
  4. Commit with descriptive conventional commit message

6. Verify quality

npx tsc --noEmit            # Type check
npx eslint src/             # Lint
npx vitest run              # Unit tests
npx prettier --check src/   # Format

7. Create PR

git push -u origin HEAD
gh pr create --title "feat($ARGUMENTS): <description>" --body "<generated PR description>"

Link the PR to the ticket if possible.

8. Checklist before marking done

  • All acceptance criteria met
  • Tests written and passing
  • No TypeScript errors
  • No lint warnings
  • Accessibility verified
  • Responsive across breakpoints
  • Loading, error, and empty states handled
  • PR description complete
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 · 88 lines · 15 tokens per session scan A 7feaa71ab2a6

Subscribe to this mod's changes

ticket is a command published in the GitHub repository Piyush8296/claude-workspace (2 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 515 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-08-31.