スキル一覧に戻る
qte77

generating-prd

by qte77

Out-of-the-box Python project template using Ralph Loop autonomous development with Claude Code (plugins, skills, rules), TDD, uv, ruff, pyright, pytest. Also including interactive User Story and PRD generation.

0🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: generating-prd description: Generates prd.json task tracking file from PRD.md requirements document. Use when initializing Ralph loop or when the user asks to convert PRD to JSON format for autonomous execution.

PRD to JSON Conversion

Parses docs/PRD.md and generates ralph/state/prd.json for Ralph loop task tracking.

Purpose

The Ralph loop requires a structured JSON file to track task completion. This skill extracts implementation stories from PRD.md and creates the required prd.json format.

Workflow

  1. Read docs/PRD.md to extract functional requirements
  2. Identify atomic stories - tasks that fit in single context window
  3. Generate ralph/state/prd.json with proper schema
  4. Validate JSON format before saving

PRD.json Schema

See ralph/templates/prd.json.template for the complete schema and structure.

Required fields:

  • project: The current project name
  • desciption: A concise project description
  • source: 'docs/PRD.md'
  • generated: "YYYY-MM-DD HH:MM:SS"
  • stories: Array of story objects (see below)

Story Extraction Rules

Atomic Stories: Each story must complete within single context window

  • Single feature addition (100-300 lines)
  • Single bug fix
  • Single refactoring task
  • Single test suite addition

From PRD.md Extract:

  • Functional requirements → stories
  • API endpoints → implementation stories
  • CLI commands → feature stories
  • Evaluation metrics → metric implementation stories

Story Attributes:

  • id: Unique identifier (STORY-XXX format)
  • title: Brief 3-7 word description
  • description: What to implement (1-2 sentences)
  • acceptance: Testable completion criteria
  • files: Expected files to modify/create
  • passes: Boolean (false initially)
  • completed_at: Timestamp when marked passing

Validation Rules

Before saving prd.json:

  • All required fields present for each story
  • IDs are unique
  • All stories have passes: false initially
  • Acceptance criteria are specific and testable
  • File paths match project structure

Example Story Conversion

From PRD.md:

## Functional Requirements
### CLI
- Command Line Interface:
  - Environment setup commands: make setup_dev

To prd.json story:

{
  "id": "STORY-001",
  "title": "Add make setup_dev command",
  "description": "Create Makefile recipe for development environment setup",
  "acceptance": [
    "Makefile contains setup_dev recipe",
    "Recipe installs all dev dependencies",
    "Recipe passes validation checks"
  ],
  "files": ["Makefile"],
  "passes": false,
  "completed_at": null
}

Use ralph/templates/prd.json.template as the base structure and populate the stories array.

Usage

To generate prd.json:

# Run this skill to parse PRD.md
# Output will be saved to ralph/state/prd.json

Ralph loop will then use this file to track task completion.

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です