AgentSkillsCN

prd-manager

当您需要以程序化的方式修改PRD故事——添加标准、更新状态、进行批量操作时,这一工具能为您提供帮助。涵盖PRD管理、添加故事、添加标准、批量更新。注意:此工具不适用于创建新的PRD(请使用prd),也不适用于查看PRD状态(请使用ralph-status)。

SKILL.md
--- frontmatter
name: prd-manager
description: Use when modifying PRD stories programmatically - add criteria, update status, bulk operations. Covers PRD management, add story, add criterion, bulk update. NOT for: creating new PRDs (use prd), viewing PRD status (use ralph-status).
execute: scripts/run.sh

PRD Manager

Manage PRD stories without manual jq commands.

Actions

bash
# Add story to index
./scripts/run.sh --action=add-to-index --story=US-099

# Add criterion to all pending stories
./scripts/run.sh --action=add-criterion --text="Commit changes" --scope=pending

# Add criterion to specific story
./scripts/run.sh --action=add-criterion --text="Run tests" --story=US-001

# List pending stories
./scripts/run.sh --action=list --scope=pending

# Show story details
./scripts/run.sh --action=show --story=US-099

# Set next story
./scripts/run.sh --action=set-next --story=US-100

Scope Options

  • pending - All pending stories
  • blocked - All blocked stories
  • all - Both pending and blocked

Examples

Add new story and update index

bash
# Create story file first, then:
./scripts/run.sh --action=add-to-index --story=BUG-020

Bulk add criterion

bash
./scripts/run.sh --action=add-criterion \
  --text="Run CodeRabbit before commit" \
  --scope=pending

Check story count

bash
./scripts/run.sh --action=stats

Show full progress (US-106)

bash
# Shows: nextStory, criteria progress, derived stats, Ralph status
./scripts/run.sh --action=check-progress