Communitygithub.com

ComeOnOliver/skillshub

PRDをralph-tui実行用のprd.json形式に変換します。ユーザーストーリー、受け入れ基準、依存関係を含むJSONタスクファイルを作成します。トリガー: create prd.json, convert to json, ralph json, create json tasks。

skillshub とは?

このスキルは、マークダウン形式のPRD(製品要件文書)を解析し、ralph-tui(自律型エージェント実行ツール)が直接読み込んで実行できるprd.jsonファイルを生成します。ファイルはフラットなJSON構造を持ち、ルートレベルに「name」と「userStories」フィールドを持ち、各ストーリーにはID、タイトル、説明、受け入れ基準、優先度、依存関係(dependsOn)が含まれます。品質ゲート(例: pnpm typecheck, lint)をPRDから抽出し、すべてのストーリーの受け入れ基準に自動付加する点が特長で、ralph-tuiの反復実行に最適化されています。将来的には、LinearやGitHub Issuesなど他のトラッカープラグインも同様のスキルをバンドルする予定です。このスキルは、開発者がPRDから直接、エージェント実行可能なタスクリストを迅速に生成できるように設計されています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/subsy/ralph-tui-create-json

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Ralph TUI - JSONタスク作成

PRDをralph-tuiの自律実行用のprd.json形式に変換します。

注: このスキルはralph-tuiのJSONトラッカープラグインにバンドルされています。将来のトラッカープラグイン(Linear、GitHub Issuesなど)は、それぞれ独自のタスク作成スキルをバンドルする予定です。

⚠️ 重要: 出力は必ずルートレベルに「name」と「userStories」を持つフラットなJSONオブジェクトでなければなりません。内容を「prd」オブジェクトでラップしたり、「tasks」配列を使用したりしないでください。以下の「スキーマアンチパターン」セクションを参照してください。


ジョブ

PRD(マークダウンファイルまたはテキスト)を取得し、prd.jsonファイルを作成します:

  1. PRDの「品質ゲート」セクションから品質ゲートを抽出する
  2. PRDからユーザーストーリーを解析する
  3. 各ストーリーの受け入れ基準に品質ゲートを追加する
  4. ストーリー間の依存関係を設定する
  5. ralph-tui run --prd <path> で実行可能な状態で出力する

ステップ1: 品質ゲートを抽出

PRD内の「品質ゲート」セクションを探します:

## 品質ゲート

以下のコマンドはすべてのユーザーストーリーで成功する必要があります:
- `pnpm typecheck` - 型チェック
- `pnpm lint` - リンター

UIストーリーの場合は、以下も含めます:
- dev-browserスキルを使用してブラウザで確認する

抽出するもの:

  • 普遍的なゲート: すべてのストーリーに適用されるコマンド(例: pnpm typecheck)
  • UIゲート: UIストーリーにのみ適用されるコマンド(例: ブラウザ確認)

品質ゲートセクションが存在しない場合: ユーザーにどのコマンドを成功させるべきか尋ねるか、npm run typecheck などの妥当なデフォルトを使用します。


出力形式

JSONファイルはルートレベルでフラットなオブジェクトでなければなりません:

{
  "name": "[PRDまたはディレクトリからのプロジェクト名]",
  "branchName": "ralph/[機能名-ケバブケース]",
  "description": "[PRDからの機能説明]",
  "userStories": [
    {
      "id": "US-001",
      "title": "[ストーリータイトル]",
      "description": "[ユーザー]として、[機能]をしたいので、[利点]を得たい",
      "acceptanceCriteria": [
        "PRDからの基準1",
        "PRDからの基準2",
        "pnpm typecheck が成功",
        "pnpm lint が成功"
      ],
      "priority": 1,
      "passes": false,
      "notes": "",
      "dependsOn": []
    },
    {
      "id": "US-002",
      "title": "[US-001に依存するUIストーリー]",
      "description": "...",
      "acceptanceCriteria": [
        "...",
        "pnpm typecheck が成功",
        "pnpm lint が成功",
        "dev-browserスキルを使用してブラウザで確認"
      ],
      "priority": 2,
      "passes": false,
      "notes": "",
      "dependsOn": ["US-001"]
    }
  ]
}

重要: スキーマアンチパターン(使用禁止)

以下のパターンは無効であり、バリデーションエラーが発生します:

❌ 誤り: ラッパーオブジェクト

{
  "prd": {
    "name": "...",
    "userStories": [...]
  }
}

これはすべてを「prd」オブジェクトでラップしています。絶対に行わないでください。 「name」と「userStories」フィールドはルートレベルに配置する必要があります。

❌ 誤り: 「tasks」の代わりに「userStories」を使用

{
  "name": "...",
  "tasks": [...]
}

配列名は「userStories」であり、「tasks」ではありません。

❌ 誤り: 複雑なネスト構造

{
  "metadata": {...},
  "overview": {...},
  "migration_strategy": {
    "phases": [...]
  }
}

PRDがフェーズやマイルストーンを記述していても、これらを単一の「userStories」配列にフラット化する必要があります。

❌ 誤り: 「status」の代わりに「passes」を使用

{
  "userStories": [{
    "id": "US-001",
    "status": "open"  // 誤り!
  }]
}

未完了のストーリーには "passes": false、完了したストーリーには "passes": true を使用します。

✅ 正しい: ルートレベルのフラット構造

{
  "name": "Android Kotlin移行",
  "branchName": "ralph/kotlin-migration",
  "userStories": [
    {"id": "US-001", "title": "Scraperインターフェースを作成", "passes": false, "dependsOn": []},
    {"id": "US-002", "title": "WeebCentralScraperを実装", "passes": false, "dependsOn": ["US-001"]}
  ]
}

ストーリーサイズ: 最も重要なルール

各ストーリーは、1回のralph-tuiイテレーション(約1エージェントコンテキストウィンドウ)で完了可能でなければなりません。

Ralph-tuiはイテレーションごとに新しいエージェントインスタンスを生成し、以前の作業のメモリは保持されません。ストーリーが大きすぎると、エージェントがコンテキストを使い切る前に終了できなくなります。

適切なサイズのストーリー:

  • データベース列とマイグレーションの追加
  • 既存ページへのUIコンポーネントの追加
  • サーバーアクションのロジック更新
  • リストへのフィルタードロップダウンの追加

大きすぎるストーリー(分割する):

  • 「ダッシュボード全体を構築する」→ スキーマ、クエリ、UIコンポーネント、フィルターに分割
  • 「認証を追加する」→ スキーマ、ミドルウェア、ログインUI、セッション管理に分割
  • 「APIをリファクタリングする」→ エンドポイントまたはパターンごとに1ストーリーに分割

目安: 変更内容を2〜3文で説明できない場合は、大きすぎます。


dependsOn を使った依存関係

dependsOn 配列を使用して、先に完了する必要があるストーリーを指定します:

{
  "id": "US-002",
  "title": "APIエンドポイントを作成",
  "dependsOn": ["US-001"],  // US-001が成功するまで選択されない
  ...
}

Ralph-tuiは:

  • US-001が完了するまでUS-002を「ブロック済み」と表示する
  • US-001が未完了の間、US-002を実行対象として選択しない
  • US-002に取り組む際のプロンプトに「前提条件: US-001」を含める

正しい依存関係の順序:

  1. スキーマ/データベース変更(依存関係なし)
  2. バックエンドロジック(スキーマに依存)
  3. UIコンポーネント(バックエンドに依存)
  4. 統合/洗練(UIに依存)

受け入れ基準: 品質ゲート + ストーリー固有

各ストーリーの受け入れ基準には以下を含めます:

  1. PRDからのストーリー固有の基準(このストーリーが達成すること)
  2. PRDの品質ゲートセクションからの品質ゲート(末尾に追加)

良い基準(検証可能):

  • 「タスクテーブルにデフォルト値'open'のstatus列を追加する」
  • 「フィルタードロップダウンにオプション: すべて、開く、閉じるを含む」
  • 「削除をクリックすると確認ダイアログが表示される」

悪い基準(曖昧):

  • ❌ 「正しく動作する」
  • ❌ 「ユーザーがXを簡単に実行できる」
  • ❌ 「優れたUX」
  • ❌ 「エッジケースを処理する」

変換ルール

  1. PRDから品質ゲートを抽出する
  2. 各ユーザーストーリー → 1件のJSONエントリ
  3. ID: 連番(US-001、US-002など)
  4. 優先度: 依存関係の順序に基づく(1 = 最高)
  5. dependsOn: このストーリーが必要とするストーリーIDの配列
  6. すべてのストーリー: passes: false と空の notes
  7. branchName: 機能名から派生、ケバブケース、先頭に ralph/ を付ける
  8. 受け入れ基準: ストーリー基準 + 品質ゲートを追加
  9. UIストーリー: UI固有のゲート(ブラウザ確認)も追加

出力場所

デフォルト: ./tasks/prd.json(PRDマークダウンファイルと同じ場所)

これにより、すべてのPRD関連ファイルが tasks/ ディレクトリにまとめられます。

または別のパスを指定することもできます。ralph-tuiは以下で使用します:

ralph-tui run --prd ./path/to/prd.json

例

入力PRD:

# PRD: タスク優先度システム

タスクに優先度レベルを追加します。

## 品質ゲート

以下のコマンドはすべてのユーザーストーリーで成功する必要があります:
- `pnpm typecheck` - 型チェック
- `pnpm lint` - リンター

UIストーリーの場合は、以下も含めます:
- dev-browserスキルを使用してブラウザで確認する

## ユーザーストーリー

### US-001: データベースに優先度フィールドを追加
**説明:** 開発者として、タスクの優先度を保存する必要があります。

**受け入れ基準:**
- [ ] 優先度列を追加: 1-4(デフォルト2)
- [ ] マイグレーションが正常に実行される

### US-002: タスクカードに優先度バッジを表示
**説明:** ユーザーとして、タスクの優先度を一目で確認したい。

**受け入れ基準:**
- [ ] バッジがP1/P2/P3/P4を色付きで表示する
- [ ] バッジがホバーなしでも表示される

### US-003: 優先度フィルタードロップダウンを追加
**説明:** ユーザーとして、優先度でタスクをフィルタリングしたい。

**受け入れ基準:**
- [ ] フィルタードロップダウン: すべて、P1、P2、P3、P4
- [ ] フィルターがURLに保持される

出力 prd.json:

{
  "name": "my-app",
  "branchName": "ralph/task-priority",
  "description": "タスクに優先度レベルを追加",
  "userStories": [
    {
      "id": "US-001",
      "title": "データベースに優先度フィールドを追加",
      "description": "開発者として、タスクの優先度を保存する必要があります。",
      "acceptanceCriteria": [
        "優先度列を追加: 1-4(デフォルト2)",
        "マイグレーションが正常に実行される",
        "pnpm typecheck が成功",
        "pnpm lint が成功"
      ],
      "priority": 1,
      "passes": false,
      "notes": "",
      "dependsOn": []
    },
    {
      "id": "US-002",
      "title": "タスクカードに優先度バッジを表示",
      "description": "ユーザーとして、タスクの優先度を一目で確認したい。",
      "acceptanceCriteria": [
        "バッジがP1/P2/P3/P4を色付きで表示する",
        "バッジがホバーなしでも表示される",
        "pnpm typecheck が成功",
        "pnpm lint が成功",
        "dev-browserスキルを使用してブラウザで確認"
      ],
      "priority": 2,
      "passes": false,
      "notes": "",
      "dependsOn": ["US-001"]
    },
    {
      "id": "US-003",
      "title": "優先度フィルタードロップダウンを追加",
      "description": "ユーザーとして、優先度でタスクをフィルタリングしたい。",
      "acceptanceCriteria": [
        "フィルタードロップダウン: すべて、P1、P2、P3、P4",
        "フィルターがURLに保持される",
        "pnpm typecheck が成功",
        "pnpm lint が成功",
        "dev-browserスキルを使用してブラウザで確認"
      ],
      "priority": 3,
      "passes": false,
      "notes": "",
      "dependsOn": ["US-002"]
    }
  ]
}

ralph-tuiでの実行

prd.json作成後:

ralph-tui run --prd ./tasks/prd.json

Ralph-tuiは:

  1. prd.jsonからストーリーを読み込む
  2. passes: false でブロックする依存関係がない最も優先度の高いストーリーを選択する
  3. ストーリーの詳細と受け入れ基準を含むプロンプトを生成する
  4. ストーリーを実装するエージェントを実行する
  5. 完了時に passes: true をマークする
  6. すべてのストーリーが成功するまで繰り返す

保存前のチェックリスト

  • PRDから品質ゲートを抽出した(または不足している場合はユーザーに尋ねた)
  • 各ストーリーが1回のイテレーションで完了可能である
  • ストーリーが依存関係の順序で並んでいる(スキーマ → バックエンド → UI)
  • 各ストーリーに dependsOn が正しく設定されている
  • 品質ゲートがすべてのストーリーの受け入れ基準に追加されている
  • UIストーリーにブラウザ確認が含まれている(品質ゲートで指定されている場合)
  • 受け入れ基準が検証可能である(曖昧ではない)
  • 循環依存がない

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

関連スキル