bmad-project-context
できること
このスキルは、リポジトリでAIエージェントの作業方法を伝える指示ファイルを、AIエージェントに書かせて確認させます。プロジェクトのルールにAIを従わせたい開発者向けです。
使う場面
- ✓リポジトリでAIエージェントを使い始め、AGENTS.mdが必要なとき。
- ✓プロジェクトのルールが変わり、エージェントの指示を更新する必要があるとき。
- ✓エージェントが同じ間違いを繰り返し、それを落とし穴として記録したいとき。
スキルのリンク
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-project-context/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“リポジトリのAGENTS.mdを設定して、AIが私たちのセキュリティとコーディングのルールに従うようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはリポジトリを読み、見つけたコマンドとルールを確認し、指示ファイルに入れる小さな検証済みのブロックを提案します。書き込まれる前に、あなたが各変更を承認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Overview
A conversation that produces a repository's agent instructions: a small verified block inside AGENTS.md. The user brings rules they want followed — governance, security, standards — and the repository supplies the rest, verified.
Conversational always; the user approves every write.
Args: intent (setup | adopt | refresh | record | audit); a target repo or path; extra source paths or URLs.
Resolution rules
- Bare paths and
{skill-root}(e.g.references/best-practices.md) resolve from this skill's installed directory. {project-root}→ the project working directory.- Target → the repository being described, defaulting to
{project-root}. If it resolves to more than one working tree, or to one the user cannot commit in, ask before writing.
On Activation
Resolve customization:
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.- Script not found: BMad is not set up here. Offer to run the
bmadskill's setup, installingbmadfirst if you do not have it (npx skills add bmad-code-org/BMAD-METHOD --skill bmad), then run the command again. - Any other failure: read
{skill-root}/customize.tomldirectly and use defaults.
Execute
{workflow.activation_steps_prepend}; treat{workflow.persistent_facts}entries as standing context (file:= paths/globs to load, others verbatim).- Script not found: BMad is not set up here. Offer to run the
Config: if
{project-root}/_bmadexists,uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root}and read{output_folder}. Standalone: skip.Load
references/best-practices.mdandreferences/template.mdbefore anything else. Every decision below is made against them.Detect intent and greet the user: setup (no instruction file in the target carries meaningful content — scaffolding alone, empty headings, a comment, a lone import line, is not meaningful; when unsure, adopt, since adopting a near-empty file costs one small ledger while setting up a meaningful one loses instructions), adopt (an instruction file has content but no managed block, whatever its state and whoever wrote it — the migration form of refresh; that file is the baseline and every instruction in it enters the ledger of step 1), refresh (a managed block exists), record (the user reports a mistake agents made), audit (re-verify and prune). A supplied intent that contradicts what detection finds — e.g.
setupagainst a file with content — is surfaced and confirmed, never silently obeyed. Fold{workflow.external_sources}into the source list. Execute{workflow.activation_steps_append}.
Setup, Adoption, and Refresh Steps
No writes until step 5!
1. Assess and report
Read AGENTS.md, harness or agent specific rule files, docs folders, and any notes carrying lessons. Report what exists and how it measures up, per best-practices.md.
Existing instructions are the baseline being improved, never raw material to discard. Open a ledger: one entry per existing section and per independently meaningful instruction, opened at retain or rewrite, carrying what an agent would get wrong without it. Entries settle as evidence arrives in steps 2–4 — retain | rewrite | relocate | automate | delete, each with its reason, its evidence, the risk if it goes, a destination for a relocation, and an approval flag. Deletion needs one of the four grounds in best-practices.md, and a relocation destination must itself be loaded or sit behind an observable trigger — a move into a file nothing reads is a deletion and needs its ground. Setup has nothing to map and opens no ledger; refresh opens entries for the lines it proposes to change or remove, the block's own included. A lesson found outside the instruction files — a warning in a README, a notes file — is an ordinary candidate, not a ledger entry.
If the target contains separable units — a workspace manifest listing members, or directories carrying their own build manifest — name them and ask whether this run covers the root only, all of them, or which. Absent that evidence, do not ask. Sibling repositories are not children; each is its own target, offered in turn.
2. Ask what they bring
Rules to follow regardless of what the repo does: governance, security and compliance, coding standards, style guides, frozen areas. Ask for outside documents too — handbooks, wikis, architecture docs, MCP knowledgebases. Note the
よくある質問
確認なしで書き込みますか?
いいえ。スキルによると、すべての書き込みはあなたが承認します。
この文脈での落とし穴とは何ですか?
落とし穴は、エージェントが犯した記録された間違いで、次回は指示でそれを警告します。
既存の指示を監査できますか?
はい。現在の指示を確認する監査モードがあります。
詳細
作者による元の説明
Set up, adopt, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfalls. Use when invoked by name
人気
- GitHubのスター
- 55k
- ランキング
- #3358
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
bmad-advanced-elicitation
55kエージェントが、批評の手法で下書きを検討し、改善案を1つ提示できるよう支援します。その案は採用も却下もできます。
bmad-agent-analyst
55kエージェントが、業務アナリストのMaryとして、市場調査や競合分析を行い、曖昧なニーズを明確な要件に変えられるよう支援します。
bmad-agent-architect
55kエージェントが、システムアーキテクトのWinstonとして、要件を実用的な技術設計に変え、そのトレードオフを説明できるよう支援します。
bmad-agent-dev
55kエージェントが、シニアソフトウェアエンジニアのAmeliaとして、承認されたユーザーストーリーをテストファーストの手順で作り、受け入れ基準を一つずつ確認できるよう支援します。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。