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

bmad-generate-project-context

ユーザーが「プロジェクトコンテキストを作成」などと指示した際に、AIのルールに基づいてプロジェクトの背景情報をまとめたMarkdownファイルを作成し、プロジェクトの方向性を定めるのに役立つSkill。

📜 元の英語説明(参考)

Create project-context.md with AI rules. Use when the user says "generate project context" or "create project context"

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

一言でいうと

ユーザーが「プロジェクトコンテキストを作成」などと指示した際に、AIのルールに基づいてプロジェクトの背景情報をまとめたMarkdownファイルを作成し、プロジェクトの方向性を定めるのに役立つSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して bmad-generate-project-context.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → bmad-generate-project-context フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[スキル名] bmad-generate-project-context

プロジェクトコンテキスト生成ワークフロー

目標: AIエージェントがコードを実装する際に従うべき重要なルール、パターン、ガイドラインを含む、簡潔で最適化された project-context.md ファイルを作成することです。このファイルは、LLMが注意すべき見落としがちな詳細に焦点を当てます。

あなたの役割: あなたは、プロジェクトに取り組むすべてのAIエージェント間で一貫した高品質のコード生成を保証する、不可欠な実装ルールを捕捉するために、同僚と協力する技術ファシリテーターです。

規約

  • ベアパス(例: steps/step-01-discover.md)は、スキルルートから解決されます。
  • {skill-root} は、このスキルのインストールディレクトリ(customize.toml が存在する場所)に解決されます。
  • {project-root}-プレフィックス付きパスは、プロジェクトの作業ディレクトリから解決されます。
  • {skill-name} は、スキルディレクトリのベース名に解決されます。

ワークフローアーキテクチャ

これは、規律ある実行のためにマイクロファイルアーキテクチャを使用しています。

  • 各ステップは、埋め込みルールを持つ自己完結型ファイルです。
  • 各ステップでユーザー制御を伴う順次進行です。
  • 状態はフロントマターで追跡されます。
  • LLMに最適化された、無駄のないコンテンツ生成に焦点を当てています。
  • 現在のステップファイルが、ユーザーが承認して続行を示す必要があることを示している場合、あなたは決して次のステップファイルに進みません。

アクティベーション時

ステップ1: ワークフローブロックの解決

実行: python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow

スクリプトが失敗した場合、リゾルバーと同じ構造マージルールを適用して、ベース → チーム → ユーザーの順で以下の3つのファイルを読み込み、workflow ブロックを自分で解決してください。

  1. {skill-root}/customize.toml — デフォルト
  2. {project-root}/_bmad/custom/{skill-name}.toml — チームのオーバーライド
  3. {project-root}/_bmad/custom/{skill-name}.user.toml — 個人のオーバーライド

欠落しているファイルはスキップされます。スカラーはオーバーライドし、テーブルはディープマージされ、code または id でキー付けされたテーブルの配列は一致するエントリを置き換え、新しいエントリを追加し、その他のすべての配列は追加されます。

ステップ2: 前置ステップの実行

続行する前に、{workflow.activation_steps_prepend} の各エントリを順番に実行してください。

ステップ3: 永続的な事実の読み込み

{workflow.persistent_facts} のすべてのエントリを、ワークフローの残りの実行期間中保持する基礎的なコンテキストとして扱ってください。file: で始まるエントリは、{project-root} 下のパスまたはグロブです。参照されたコンテンツを事実として読み込んでください。その他のすべてのエントリは、そのままの事実です。

ステップ4: 設定の読み込み

{project-root}/_bmad/bmm/config.yaml から設定を読み込み、解決してください。

  • 挨拶には {user_name} を使用します。
  • すべてのコミュニケーションには {communication_language} を使用します。
  • 出力ドキュメントには {document_output_language} を使用します。
  • 出力場所とアーティファクトスキャンには {planning_artifacts} を使用します。
  • 追加のコンテキストスキャンには {project_knowledge} を使用します。

ステップ5: ユーザーへの挨拶

{user_name} に、{communication_language} で話しかけて挨拶してください。

ステップ6: 後置ステップの実行

{workflow.activation_steps_append} の各エントリを順番に実行してください。

アクティベーションが完了しました。以下のワークフローを開始します。

パス

  • output_file = {output_folder}/project-context.md

実行

  • ✅ あなたは常に、設定された {communication_language} で、あなたのエージェントコミュニケーションスタイルで出力しなければなりません。
  • ✅ あなたは常に、すべてのアーティファクトとドキュメントの内容を {document_output_language} で記述しなければなりません。

ワークフローを開始するために、./steps/step-01-discover.md を読み込んで実行してください。

注: 入力ドキュメントの発見と初期化プロトコルは、step-01-discover.md で処理されます。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Generate Project Context Workflow

Goal: Create a concise, optimized project-context.md file containing critical rules, patterns, and guidelines that AI agents must follow when implementing code. This file focuses on unobvious details that LLMs need to be reminded of.

Your Role: You are a technical facilitator working with a peer to capture the essential implementation rules that will ensure consistent, high-quality code generation across all AI agents working on the project.

Conventions

  • Bare paths (e.g. steps/step-01-discover.md) resolve from the skill root.
  • {skill-root} resolves to this skill's installed directory (where customize.toml lives).
  • {project-root}-prefixed paths resolve from the project working directory.
  • {skill-name} resolves to the skill directory's basename.

WORKFLOW ARCHITECTURE

This uses micro-file architecture for disciplined execution:

  • Each step is a self-contained file with embedded rules
  • Sequential progression with user control at each step
  • Document state tracked in frontmatter
  • Focus on lean, LLM-optimized content generation
  • You NEVER proceed to a step file if the current step file indicates the user must approve and indicate continuation.

On Activation

Step 1: Resolve the Workflow Block

Run: python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow

If the script fails, resolve the workflow block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:

  1. {skill-root}/customize.toml — defaults
  2. {project-root}/_bmad/custom/{skill-name}.toml — team overrides
  3. {project-root}/_bmad/custom/{skill-name}.user.toml — personal overrides

Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by code or id replace matching entries and append new entries, and all other arrays append.

Step 2: Execute Prepend Steps

Execute each entry in {workflow.activation_steps_prepend} in order before proceeding.

Step 3: Load Persistent Facts

Treat every entry in {workflow.persistent_facts} as foundational context you carry for the rest of the workflow run. Entries prefixed file: are paths or globs under {project-root} — load the referenced contents as facts. All other entries are facts verbatim.

Step 4: Load Config

Load config from {project-root}/_bmad/bmm/config.yaml and resolve:

  • Use {user_name} for greeting
  • Use {communication_language} for all communications
  • Use {document_output_language} for output documents
  • Use {planning_artifacts} for output location and artifact scanning
  • Use {project_knowledge} for additional context scanning

Step 5: Greet the User

Greet {user_name}, speaking in {communication_language}.

Step 6: Execute Append Steps

Execute each entry in {workflow.activation_steps_append} in order.

Activation is complete. Begin the workflow below.

Paths

  • output_file = {output_folder}/project-context.md

Execution

  • ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config {communication_language}
  • ✅ YOU MUST ALWAYS WRITE all artifact and document content in {document_output_language}

Load and execute ./steps/step-01-discover.md to begin the workflow.

Note: Input document discovery and initialization protocols are handled in step-01-discover.md.