What problem does it solve? Repositories accumulate stale, bloated, or missing agent instructions, causing AI coding agents to repeat mistakes, violate team policies, and run wrong commands. This Skill produces a small, verified AGENTS.md block containing only what agents cannot derive from the repo itself. ## Core Features & Use Cases - Setup and Refresh: Scans the repository, interviews the user for governance and conventions, and writes a verified instruction block between markers in AGENTS.md, with provenance tracking via commit SHA. - Record and Audit: Captures observed agent mistakes as pitfall lines the moment they happen, and re-verifies every line on audit, pruning what no longer changes agent behavior. - Use Case: A team lead notices agents keep running plain pytest instead of uv run pytest and pushing to main. They invoke the skill, which verifies the correct invocation from project config, interviews for branch policy, and writes a concise AGENTS.md block the whole team shares. ## Quick Start Ask the AI to set up the AGENTS.md agent instructions for this repository using the bmad-project-context skill.