bmad-project-context
하는 일
이 스킬은 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에이전트가 초안에 비판 기법을 적용해 검토하고 수정안 하나를 제안하면, 사용자가 받아들이거나 거절할 수 있도록 돕습니다.
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에이전트가 벵골어 텍스트를 처리하도록 돕습니다. 언어를 이해하고 다루며, 텍스트를 정규화하고 고유한 특징을 처리합니다.