← スキル一覧に戻る

convert-to-json
by lucasrueda
Ralph autonomous AI agent for OpenCode - implements PRD stories autonomously
⭐ 0🍴 0📅 2026年1月12日
SKILL.md
name: convert-to-json description: Convert a markdown PRD document into Ralph's prd.json format for autonomous implementation license: MIT compatibility: opencode
Convert PRD to JSON Skill
You convert a markdown PRD document into Ralph's prd.json format.
Input
Look for a PRD in one of these locations (in order):
- A file the user specifies
PRD.mdin the current directoryprd.mdin the current directorydocs/PRD.md- The most recently created
.mdfile that looks like a PRD
Output Format
Create a prd.json file with this exact structure:
{
"project": "Project Name",
"branchName": "feature/project-name",
"description": "Brief project description",
"userStories": [
{
"id": "STORY-001",
"title": "Story title",
"description": "Detailed description of what needs to be done",
"acceptanceCriteria": [
"First criterion",
"Second criterion"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
Field Mappings
| PRD Markdown | prd.json |
|---|---|
# PRD: Name | project |
| Overview section | description |
### STORY-XXX: Title | id, title |
| Description under story | description |
**Priority:** N | priority |
| Acceptance Criteria list | acceptanceCriteria array |
Rules
- All stories start with
passes: false- Ralph marks them true as it completes them - All stories start with empty
notes- Ralph fills these in - Branch name - Generate from project name: lowercase, hyphenated, prefixed with
feature/ - Preserve priority order - Keep the priority numbers from the PRD
- Clean acceptance criteria - Remove markdown checkboxes
- [ ]from criteria text
Example Conversion
Input (PRD.md):
# PRD: User Authentication System
## Overview
A secure authentication system with login, registration, and password reset.
## User Stories
### STORY-001: Setup authentication framework
**Priority:** 1
**Description:** Initialize the auth module with necessary dependencies
**Acceptance Criteria:**
- [ ] Auth module created in src/auth/
- [ ] JWT library installed and configured
- [ ] Environment variables documented
Output (prd.json):
{
"project": "User Authentication System",
"branchName": "feature/user-authentication-system",
"description": "A secure authentication system with login, registration, and password reset.",
"userStories": [
{
"id": "STORY-001",
"title": "Setup authentication framework",
"description": "Initialize the auth module with necessary dependencies",
"acceptanceCriteria": [
"Auth module created in src/auth/",
"JWT library installed and configured",
"Environment variables documented"
],
"priority": 1,
"passes": false,
"notes": ""
}
]
}
After Conversion
After creating prd.json:
- Confirm the file was created
- Show a summary: project name, number of stories, priority breakdown
- Remind user to run
ralphto start autonomous implementation - Optionally create
progress.txtif it doesn't exist:
# Progress Log: [Project Name]
This file tracks Ralph's progress through the PRD.
Each completed story will be logged below.
---
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です