jpskill.com
📦 その他 コミュニティ

crud-with-spec-kit

Spec-KitとClaude Codeを活用し、仕様に基づいたCRUD機能を実装するための概念的な知識を、ビジネスの現場で応用できるように体系的に理解し実践するSkill。

📜 元の英語説明(参考)

A conceptual skill for implementing CRUD features driven by Spec-Kit and Claude Code

🇯🇵 日本人クリエイター向け解説

一言でいうと

Spec-KitとClaude Codeを活用し、仕様に基づいたCRUD機能を実装するための概念的な知識を、ビジネスの現場で応用できるように体系的に理解し実践するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o crud-with-spec-kit.zip https://jpskill.com/download/16926.zip && unzip -o crud-with-spec-kit.zip && rm crud-with-spec-kit.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/16926.zip -OutFile "$d\crud-with-spec-kit.zip"; Expand-Archive "$d\crud-with-spec-kit.zip" -DestinationPath $d -Force; ri "$d\crud-with-spec-kit.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して crud-with-spec-kit.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → crud-with-spec-kit フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

CRUD with Spec-Kit Skill

この Skill を使用すべき時

Spec-Kit と Claude Code を使用するアプリケーションに対して CRUD (Create, Read, Update, Delete) 操作を実装する必要がある場合に、この概念的な Skill を使用します。この Skill は以下の場合に適しています。

  • 明確に定義された仕様を持つデータ駆動型アプリケーションの構築
  • 機能仕様からのバックエンド API の生成
  • CRUD API を利用するフロントエンドクライアントの作成
  • 実装が指定された成功基準に沿っていることの保証
  • 仕様に基づいた CRUD 機能の迅速なスキャフォールディング
  • 仕様と実装の一貫性の維持

この Skill は、以下の場合には使用すべきではありません。

  • 明確な仕様がないアプリケーション
  • 基本的な CRUD を超える複雑なビジネスロジックを必要とするシステム
  • 仕様がまだ急速に進化しているプロトタイプ
  • 非標準のデータアクセスパターンを持つアプリケーション

前提条件

  • 必要な機能を記述した Spec-Kit 仕様ファイル
  • AI 支援開発のための Claude Code
  • CRUD 操作と REST API の概念の理解
  • ターゲットプラットフォームに適したツールを備えた開発環境
  • データモデルとリレーションシップの明確な理解

概念的な実装フレームワーク

仕様読み取り機能

  • spec ファイルから機能仕様を解析および解釈する
  • エンティティ定義、属性、およびリレーションシップを抽出する
  • 各エンティティに必要な CRUD 操作を特定する
  • 仕様の要件を実装パターンにマッピングする
  • 実装を開始する前に仕様の完全性を検証する

バックエンドルート生成機能

  • エンティティ定義に基づいて RESTful API エンドポイントを生成する
  • 各操作に対して適切な HTTP メソッド (GET, POST, PUT, DELETE) を作成する
  • 仕様に従って適切なリクエスト/レスポンス処理を実装する
  • リクエストの検証とエラー処理パターンを生成する
  • 仕様の要件に一致するデータアクセス層メソッドを作成する

フロントエンドクライアント生成機能

  • CRUD エンドポイントを利用するための API クライアントコードを生成する
  • バックエンドエンティティに一致するデータモデルを作成する
  • CRUD 操作のための UI コンポーネント (フォーム、リストなど) を実装する
  • API 通信のためのサービス層を生成する
  • フロントエンドアプリケーションのための状態管理パターンを作成する

成功基準強制機能

  • 仕様で定義された成功基準に対して実装を検証する
  • 必要な機能がすべて実装されていることを確認する
  • エラー処理が仕様の要件と一致することを確認する
  • データ検証が仕様の制約に沿っていることを確認する
  • API レスポンスが指定された形式に準拠していることをテストする

コードスキャフォールディング機能

  • ベストプラクティスに従って一貫したコード構造を生成する
  • 標準化されたファイル編成パターンを作成する
  • 再利用可能なコンポーネントとユーティリティを実装する
  • 一般的な操作のためのボイラープレートコードを生成する
  • アプリケーション全体で一貫したコーディング標準を維持する

期待される入力/出力

入力要件:

  1. 仕様ファイル:

    • Spec-Kit 形式の機能仕様
    • 属性とリレーションシップを持つエンティティ定義
    • 必要な操作と制約
    • 成功基準と検証ルール
    • API エンドポイント定義
  2. 仕様要素:

    • エンティティ名と説明
    • 属性の型と制約
    • リレーションシップ定義
    • 必要な CRUD 操作
    • 期待されるレスポンス形式

出力形式:

  1. 生成されたバックエンドルート:

    • 仕様に従った RESTful エンドポイント
    • エンティティ定義に一致するリクエスト/レスポンスモデル
    • さまざまな操作に対する適切な HTTP ステータスコード
    • 仕様の要件に一致するエラーレスポンス
  2. 生成されたフロントエンドクライアント:

    • 型安全な API クライアントコード
    • バックエンドエンティティに一致するデータモデル
    • 各 CRUD 操作のためのサービスメソッド
    • データ操作のための UI コンポーネントテンプレート
  3. スキャフォールディング出力:

    • 一貫したファイル構造と編成
    • 標準化されたコードパターンと規約
    • すぐに使用できる実装テンプレート
    • 仕様に一致するドキュメント
  4. 検証結果:

    • 基準強制の成功/失敗ステータス
    • 実装された機能と指定された機能のリスト
    • 仕様に対するコンプライアンスレポート
    • 仕様と実装の間のギャップ分析

開発ワークフロー統合

仕様分析フェーズ

  • 仕様ファイルを読み込んで解析し、要件を理解する
  • すべてのエンティティとそのリレーションシップを特定する
  • 検証ルールと制約を抽出する
  • 仕様要素を実装パターンにマッピングする

コード生成フェーズ

  • エンティティ定義に基づいてバックエンド API ルートを生成する
  • API を利用するためのフロントエンドクライアントコードを作成する
  • 仕様に一致するデータアクセスパターンを実装する
  • CRUD 操作のための UI コンポーネントを生成する

検証フェーズ

  • 生成されたコードが仕様の要件を満たしていることを確認する
  • すべての成功基準が満たされていることを確認する
  • API レスポンスが仕様の形式と一致することを検証する
  • エラー処理が仕様パターンに従っていることを確認する

品質保証フレームワーク

仕様コンプライアンス

  • 指定されたすべてのエンティティが実装されていることを確認する
  • 必要な操作がすべて利用可能であることを確認する
  • 制約が適切に適用されていることを検証する
  • 成功基準が満たされていることを確認する

コード品質標準

  • 生成されたコード全体で一貫したコーディングパターンを維持する
  • プラットフォーム固有のベストプラクティスに従う
  • 生成されたコードが保守しやすく、読みやすいことを確認する
  • エラー処理が包括的であることを検証する

テスト統合

  • 仕様の要件に基づいてテストケースを生成する
  • CRUD 操作のための検証テストを作成する
  • API エンドポイントのための統合テストを実装する
  • 個々のコンポーネントのためのユニットテストを生成する

統合パターン

Spec-Kit 統合

  • Spec-Kit 形式で仕様ファイルを読み込む
  • 仕様要素を実装パターンにマッピングする
  • 仕様の要件を直接反映するコードを生成する
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

CRUD with Spec-Kit Skill

When to Use This Skill

Use this conceptual skill when you need to implement CRUD (Create, Read, Update, Delete) operations for applications using Spec-Kit and Claude Code. This skill is appropriate for:

  • Building data-driven applications with well-defined specifications
  • Generating backend APIs from feature specifications
  • Creating frontend clients that consume CRUD APIs
  • Ensuring implementation aligns with specified success criteria
  • Rapidly scaffolding CRUD functionality based on specifications
  • Maintaining consistency between specification and implementation

This skill should NOT be used for:

  • Applications without clear specifications
  • Systems requiring complex business logic beyond basic CRUD
  • Prototypes where specifications are still evolving rapidly
  • Applications with non-standard data access patterns

Prerequisites

  • Spec-Kit specification files describing the desired features
  • Claude Code for AI-assisted development
  • Understanding of CRUD operations and REST API concepts
  • Development environment with appropriate tools for target platform
  • Clear understanding of data models and relationships

Conceptual Implementation Framework

Specification Reading Capability

  • Parse and interpret feature specifications from spec files
  • Extract entity definitions, attributes, and relationships
  • Identify required CRUD operations for each entity
  • Map specification requirements to implementation patterns
  • Validate specification completeness before starting implementation

Backend Route Generation Capability

  • Generate RESTful API endpoints based on entity definitions
  • Create appropriate HTTP methods (GET, POST, PUT, DELETE) for each operation
  • Implement proper request/response handling according to specification
  • Generate request validation and error handling patterns
  • Create data access layer methods matching specification requirements

Frontend Client Generation Capability

  • Generate API client code for consuming CRUD endpoints
  • Create data models matching backend entities
  • Implement UI components for CRUD operations (forms, lists, etc.)
  • Generate service layers for API communication
  • Create state management patterns for frontend applications

Success Criteria Enforcement Capability

  • Validate implementation against specification-defined success criteria
  • Ensure all required functionality is implemented
  • Verify that error handling matches specification requirements
  • Confirm that data validation aligns with specification constraints
  • Test that API responses conform to specified formats

Code Scaffolding Capability

  • Generate consistent code structure following best practices
  • Create standardized file organization patterns
  • Implement reusable components and utilities
  • Generate boilerplate code for common operations
  • Maintain consistent coding standards across the application

Expected Input/Output

Input Requirements:

  1. Specification Files:

    • Feature specifications in Spec-Kit format
    • Entity definitions with attributes and relationships
    • Required operations and constraints
    • Success criteria and validation rules
    • API endpoint definitions
  2. Specification Elements:

    • Entity names and descriptions
    • Attribute types and constraints
    • Relationship definitions
    • Required CRUD operations
    • Expected response formats

Output Formats:

  1. Generated Backend Routes:

    • RESTful endpoints following specification
    • Request/response models matching entity definitions
    • Proper HTTP status codes for different operations
    • Error responses matching specification requirements
  2. Generated Frontend Clients:

    • Type-safe API client code
    • Data models matching backend entities
    • Service methods for each CRUD operation
    • UI component templates for data manipulation
  3. Scaffolding Output:

    • Consistent file structure and organization
    • Standardized code patterns and conventions
    • Ready-to-use implementation templates
    • Documentation matching the specification
  4. Validation Results:

    • Success/failure status of criteria enforcement
    • List of implemented vs. specified features
    • Compliance report against specification
    • Gap analysis between specification and implementation

Development Workflow Integration

Specification Analysis Phase

  • Read and parse specification files to understand requirements
  • Identify all entities and their relationships
  • Extract validation rules and constraints
  • Map specification elements to implementation patterns

Code Generation Phase

  • Generate backend API routes based on entity definitions
  • Create frontend client code for API consumption
  • Implement data access patterns matching specification
  • Generate UI components for CRUD operations

Validation Phase

  • Verify generated code against specification requirements
  • Ensure all success criteria are met
  • Validate API responses match specification formats
  • Confirm error handling follows specification patterns

Quality Assurance Framework

Specification Compliance

  • Verify that all specified entities are implemented
  • Ensure all required operations are available
  • Validate that constraints are properly enforced
  • Confirm that success criteria are met

Code Quality Standards

  • Maintain consistent coding patterns across generated code
  • Follow platform-specific best practices
  • Ensure generated code is maintainable and readable
  • Validate that error handling is comprehensive

Testing Integration

  • Generate test cases based on specification requirements
  • Create validation tests for CRUD operations
  • Implement integration tests for API endpoints
  • Generate unit tests for individual components

Integration Patterns

Spec-Kit Integration

  • Read specification files in Spec-Kit format
  • Map specification elements to implementation patterns
  • Generate code that directly reflects specification requirements
  • Maintain traceability between specification and implementation

Claude Code Integration

  • Leverage AI assistance for code generation
  • Use Claude Code for complex implementation patterns
  • Generate code that follows best practices and standards
  • Ensure generated code is consistent and maintainable

Development Pipeline Integration

  • Integrate with CI/CD pipelines for automated generation
  • Support version control for specification-driven changes
  • Enable collaborative development based on specifications
  • Facilitate specification-driven testing and validation

Performance Considerations

  • Optimize code generation for large specification files
  • Consider performance implications of generated code
  • Balance automation with maintainability requirements
  • Monitor generation time for complex specifications
  • Plan for scalability of generated applications

Error Handling and Validation

  • Validate specification files before code generation
  • Handle malformed or incomplete specifications gracefully
  • Provide clear error messages for specification issues
  • Generate appropriate error handling in generated code
  • Validate generated code against specification requirements