Skip to content
Automation
Command

/reset-prd

Reset a prd.json file to initial state (all tasks pending)

From plugin
essentials-claude-code
9125 skills8 agents25 commands
Install
> /plugin marketplace add GantisStorm/essentials-claude-code
> /plugin install essentials@essentials-claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/reset-prd

Context preview

What this command does when you run it.

Reset a prd.json file to initial state (all tasks pending)

Command definition

reset-prd.md
allowed-tools: Bash(jq:*), Bash(mv:*), Bash(cat:*), Bash(ls:*)
argument-hint: "<prd.json path>"
description: Reset a prd.json file to initial state (all tasks pending)
model: opus
context: fork

Reset PRD

Reset a prd.json file so all tasks are pending again.

Instructions

Run this single command to reset the prd file (replace `<path>` with the actual path from $ARGUMENTS):

jq '.userStories = [.userStories[] | del(.completionNotes) | .passes = false] | del(.metadata.updatedAt)' "<path>" > /tmp/reset-prd-$$.json && mv /tmp/reset-prd-$$.json "<path>" && echo "Reset complete. Tasks: $(jq '.userStories | length' "<path>") set to passes: false"

If no path was provided, list `.claude/prd/*.json` and ask which one to reset.

After resetting, tell the user they can run: `/tasks-loop <path>` or `/tasks-swarm <path>`

Note: Loop and swarm are interchangeable—swarm is just faster when tasks can run in parallel. Both enforce exit criteria and sync.

Ships withessentials-claude-code

Loops, swarms, and teams powered by Claude Code's built-in Task System. Loop, swarm, and team are three execution modes. Loop runs sequentially. Swarm runs parallel subagents. Team spawns full Claude Code instances with shared contracts via Agent Teams.

Get the whole plugin

Other commands on essentials-claude-code.