bmad-project-context

Creates and maintains a verified AGENTS.md instruction block for AI agents in a repository.

1|Updated Sep 18, 2026
One-click install
npx skills add https://github.com/PastaSus/egg-defender --skill bmad-project-context-pastasus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bmad-project-context
Source: https://github.com/PastaSus/egg-defender/tree/main/.agents/skills/bmad-project-context
Command: npx skills add https://github.com/PastaSus/egg-defender --skill bmad-project-context-pastasus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? AI coding agents repeatedly make the same mistakes in a repository because project-specific rules, caveats, and pitfalls are scattered, stale, or never written down. This Skill produces a small, verified, managed block inside AGENTS.md so agents load the right instructions every session. ## Core Features & Use Cases - Setup, adopt, and refresh: Scaffold a new instruction block, migrate an existing CLAUDE.md or AGENTS.md into a managed block with a per-instruction ledger, or re-verify an existing block against the current repository state. - Record and audit: Capture observed agent mistakes as pitfalls the moment they happen, and audit every line for staleness, broken paths, and contradictions. - Use Case: A team adopts an existing CLAUDE.md full of handwritten rules. The Skill opens a ledger for every instruction, verifies each claim against the repo, proposes a compact AGENTS.md block, and shows exactly where each original rule landed before writing anything. ## Quick Start Ask the agent to run bmad-project-context to set up or refresh the AGENTS.md instructions for this repository.

Frequently Asked Questions about bmad-project-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up AGENTS.md instructions for AI coding agents?

Run the setup intent to scan the repository, interview for rules no scan can find, and write a small verified block into AGENTS.md. Every claim is path-checked against the repo and you approve the complete block before anything is written.

How do I migrate an existing CLAUDE.md to AGENTS.md?

Use the adopt intent, which treats the existing file as the baseline and opens a ledger entry for every instruction. Each rule is retained, rewritten, relocated, automated, or deleted with a stated reason, and the file typically reduces to an @AGENTS.md import once loading is verified.

What belongs in an AGENTS.md file for AI agents?

Include policy the code cannot express, command caveats configs cannot state, conventions differing from ecosystem defaults, and pitfalls with observed evidence. Exclude directory trees, stack lists, style rules a linter enforces, and anything derivable fresh from the repo.

Can AGENTS.md instructions be split across nested directories?

Yes, a subdirectory can get its own AGENTS.md when its rules are subtree-exclusive, substantial, and loading is verified for every harness in use. Otherwise rules stay in the root block as path-qualified lines, which cost less than a file no session loads.

When should agent instructions be deleted during an audit?

Deletion requires one of four grounds: the instruction is stale or incorrect, a hook or CI check mechanically enforces it, it is harmful or contradictory, or the user approves the deletion as a line item. Brevity or discoverability alone is never grounds.