Skip to main content
command

pac-update-status — Claude Code command: PAC ticket status

Moves a Product as Code ticket to a new status, reassigns it, or logs a progress note. Handy when your tickets live in .pac/ and you want to manage them without leaving the terminal.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --command project-management/pac-update-status
Open on GitHub

What pac-update-status does

The command reads YAML tickets from .pac/tickets/. It first checks the PAC setup and counts active tickets, then locates the one you mean, loads its current state and verifies the transition is allowed. The ticket file is rewritten with the new status and a timestamp, and the parent epic gets its progress refreshed.

Statuses are backlog, in-progress, review, blocked, done and cancelled. The main path runs backlog → in-progress → review → done, while blocked and cancelled sit off to the side as intermediate states. Flags decide what changes: --ticket <ticket-id>, --status <status>, --assignee <assignee>, --comment <comment>, plus --epic <epic-id> to narrow the list. Leave out --ticket and it asks you to pick one.

Tool access is limited to Read, Write, Edit and Bash. There is a git hook in the flow: in-progress prompts a branch, review prompts a pull request, done prompts a merge. Those are suggestions only, so in a repo that is not set up for git they stay plain text in the summary.

What it helps with

  • flip a ticket from backlog to in-progress in one call
  • hand a ticket to another assignee without editing YAML by hand
  • attach a progress comment to the ticket file
  • see which tickets changed over the past week
  • refresh epic progress once a child ticket closes

Example prompts for the agent

  • Move ticket PAC-12 to in-progress and assign it to me
  • Add a comment to PAC-7: waiting on review from the team
  • List tickets in the auth epic and suggest which ones to move to review

How to install pac-update-status

1claude-code-templates

npx claude-code-templates@latest --command project-management/pac-update-status

2Manually: put the files in place

.claude/commands/pac-update-status.md

Call it with /pac-update-status. For all projects use ~/.claude/commands/

Questions about pac-update-status

How do I install pac-update-status in Claude Code?

Run npx claude-code-templates@latest --command project-management/pac-update-status. The command then lands at .claude/commands/pac-update-status.md.

What does pac-update-status do?

It changes the status, assignee and comments of a PAC ticket in the YAML files under .pac/tickets/, and updates the parent epic's progress along the way.

Which ticket statuses are valid?

backlog, in-progress, review, blocked, done and cancelled. The main chain is backlog → in-progress → review → done, with blocked and cancelled as intermediate states.

Source text

pac-update-status.md · MIT
---
allowed-tools: Read, Write, Edit, Bash
argument-hint: "[ticket-id] | --status | --assignee | --comment"
description: Update PAC ticket status and track progress in Product as Code workflow
---

# Update PAC Ticket Status

Update ticket status and track progress in Product as Code workflow: **$ARGUMENTS**

## PAC Environment Check

- PAC directory: !`ls -la .pac/ 2>/dev/null || echo "No .pac directory found"`
- Active tickets: !`find .pac/tickets/ -name "*.yaml" 2>/dev/null | wc -l`
- Recent updates: !`find .pac/tickets/ -name "*.yaml" -mtime -7 2>/dev/null | wc -l`

## Task

Update PAC ticket status and track development progress:

**Arguments**:
- --ticket <ticket-id>: Ticket ID to update (or select interactively)
- --status <status>: New status (backlog/in-progress/review/blocked/done/cancelled)
- --assignee <assignee>: Update assignee
- --comment <comment>: Add progress comment
- --epic <epic-id>: Filter tickets by epic for selection

**Status Update Process**:
1. Validate PAC environment and locate ticket
2. Load current ticket state and validate status transitions
3. Update ticket YAML with new status and timestamp
4. Handle status-specific actions (branch creation, PR suggestions)
5. Update parent epic with ticket progress
6. Generate status update summary with next actions

**Valid Status Transitions**: backlog→in-progress→review→done, with blocked/cancelled as intermediate states.

**Git Integration**: Suggests branch creation for in-progress, PR creation for review, and merge for done status.

© davila7 · MIT · davila7/claude-code-templates

Similar slash commands

All slash commands for Notes, tasks and projects →

From the same set361

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor