prd-build-cancel

prd-build-cancel is a skill for Claude Code from sjarmak/agent-workflows. It costs 13 tokens per session (443 once invoked), scanned D, original, MIT.

A control command for an active product requirements document (PRD) build, where a PRD describes what a product or feature should do.

In plain words
What is it for?
Use it to inspect an active build and choose whether to pause it, cancel it cleanly, or cancel it while keeping its branches for later inspection.
Why use it?
It allows an in-progress build to be paused with its state preserved or cancelled with its generated workspaces and state cleaned up.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-workflows plugin — 28 skills, 4 agents, 4 hooks shipped together

Good fit Use it to inspect an active build and choose whether to pause it, cancel it cleanly, or cancel it while keeping its branches for later inspection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjarmak/agent-workflows/prd-build-cancel
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.

Any agent
npx skills add sjarmak/agent-workflows --skill prd-build-cancel
Clone the repo
git clone --depth 1 https://github.com/sjarmak/agent-workflows

Made for: Claude Code.

Or install agent-workflows, the plugin that ships this one along with the rest of its 28 skills, 4 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 prd-build-cancel

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjarmak/agent-workflows/prd-build-cancel.svg)](https://agentmods.dev/skills/sjarmak/agent-workflows/prd-build-cancel)
Your own site
<a href="https://agentmods.dev/skills/sjarmak/agent-workflows/prd-build-cancel"><img src="https://agentmods.dev/badge/skills/sjarmak/agent-workflows/prd-build-cancel.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 443 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00013 $0.00443
Opus 5 $0.00006 $0.00221
Sonnet 5 $0.00003 $0.00089
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade D, and why

prd-build-cancel scanned grade D with 2 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat .claude/prd-build.state.json

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .claude/prd-build.state.json .claude/prd-build.log.md .claude/prd-build-artifacts/
skills/prd-build-cancel/SKILL.md · 49 lines

What it actually says

PRD Build Cancel

Check for an active run:

if [ -f .claude/prd-build.state.json ]; then
  cat .claude/prd-build.state.json
else
  echo "NO_STATE_FILE"
fi

If NO_STATE_FILE: tell the user there's no active run to cancel.

Otherwise, present the current status and ask the user which action they want:

  1. Pause — Update .claude/prd-build.state.json status to "paused". State is preserved. Resume later with /prd-build-resume.

    Also append a timestamped line to .claude/prd-build.log.md: "Run paused by user".

  2. Cancel (clean) — Remove all worktrees, branches, and state files:

    # Remove worktrees
    git worktree list --porcelain | grep -oP 'worktree \K.*prd-build.*' | while read wt; do git worktree remove --force "$wt"; done
    # Remove branches
    git branch --list 'prd-build/*' | xargs -r git branch -D
    # Remove state files
    rm -rf .claude/prd-build.state.json .claude/prd-build.log.md .claude/prd-build-artifacts/
    
  3. Cancel (keep branches) — Remove worktrees and state but keep git branches for manual inspection:

    # Remove worktrees only
    git worktree list --porcelain | grep -oP 'worktree \K.*prd-build.*' | while read wt; do git worktree remove --force "$wt"; done
    # Remove state files
    rm -rf .claude/prd-build.state.json .claude/prd-build.log.md .claude/prd-build-artifacts/
    

WAIT for the user to choose before taking any action.

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. 8d ago First seen · 49 lines · 13 tokens per session scan D ae7cbf861966

Subscribe to this mod's changes

prd-build-cancel is a skill published in the GitHub repository sjarmak/agent-workflows (9 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 443 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mission-control

Interact with Mission Control — AI agent orchestration dashboard. Use when registering agents, managing tasks, syncing skills, or querying agent/task status via MC APIs.

builderz-labs/mission-control · 34 tokens

incident-postmortem-report

Produce a thorough incident post-mortem report after an outage or customer-impacting event. Covers executive summary, impact, detailed timeline, root cause, contributing factors, corrective and preventive actions, and lessons learned. Use when the user asks to write, draft, or complete a post-mortem, blameless review…

caipe-io/ai-platform-engineering · 76 tokens

aws-cost-analysis

Analyze AWS costs by service, account, and time period. Identifies top spenders, cost anomalies, and optimization opportunities. Use when reviewing cloud spend, preparing cost reports, or investigating unexpected charges.

caipe-io/ai-platform-engineering · 44 tokens

release-readiness-check

Verify all prerequisites are met before a release by checking PRs, CI/CD status, environment health, and blocking issues across GitHub, ArgoCD, and Jira. Use before cutting a release, deploying to production, or during release planning.

caipe-io/ai-platform-engineering · 54 tokens

afrexai-compliance-engine

Your AI compliance officer. Guides startups and scale-ups through SOC 2, ISO 27001, GDPR, HIPAA, and PCI DSS — from zero to audit-ready. No consultants needed.

aAAaqwq/AGI-Super-Team · 0 tokens

competitive-offer-architect

Design irresistible offer packages with real salary benchmarks, negotiation playbooks, and competitive counter-strategies. Co-designed with Siku (司库). Includes total compensation calculator, negotiation scripts, and BATNA analysis.

aAAaqwq/AGI-Super-Team · 48 tokens