bmad-project-context
Skill này làm gì
Skill này khiến agent AI viết và kiểm tra file hướng dẫn cho biết các agent AI nên làm việc trong repository như thế nào. Skill dành cho lập trình viên muốn agent tuân theo quy tắc của dự án.
Khi nào nên dùng
- ✓Khi bạn bắt đầu dùng agent AI trong một repository và cần file AGENTS.md.
- ✓Khi quy tắc dự án thay đổi và hướng dẫn cho agent cần cập nhật.
- ✓Khi một agent lặp lại cùng một lỗi và bạn muốn ghi nó thành một pitfall.
Liên kết skill
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-project-context/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập file AGENTS.md cho repo của tôi để AI tuân theo các quy tắc bảo mật và viết mã của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc repository, kiểm tra các lệnh và quy tắc tìm được, rồi đề xuất một khối nhỏ đã được xác minh cho file hướng dẫn. Bạn duyệt từng thay đổi trước khi nó được ghi.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có ghi thay đổi mà không hỏi không?
Không. Skill cho biết bạn duyệt mọi lần ghi.
Pitfall trong ngữ cảnh này là gì?
Pitfall là một lỗi đã được ghi lại của agent, để hướng dẫn cảnh báo về nó lần sau.
Nó có kiểm tra hướng dẫn hiện có không?
Có. Nó có một chế độ audit để kiểm tra hướng dẫn hiện tại.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 55k
- Vị trí xếp hạng
- #3358
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
bmad-advanced-elicitation
55kGiúp agent của bạn cải thiện một bản nháp bằng cách đưa nó qua các phương pháp phê bình và đề xuất một bản sửa, bạn có thể chấp nhận hoặc từ chối.
bmad-agent-analyst
55kGiúp agent của bạn đóng vai Mary, một chuyên viên phân tích kinh doanh làm nghiên cứu thị trường, phân tích cạnh tranh và biến nhu cầu mơ hồ thành yêu cầu rõ ràng.
bmad-agent-architect
55kGiúp agent của bạn đóng vai Winston, một kiến trúc sư hệ thống biến yêu cầu thành thiết kế kỹ thuật thực tế và giải thích các đánh đổi.
bmad-agent-dev
55kGiúp agent của bạn đóng vai Amelia, kỹ sư phần mềm cao cấp, xây dựng user story đã duyệt theo hướng viết test trước và kiểm tra từng tiêu chí.
Skill tương tự
writing-skills
311kDạy agent của bạn viết skill mới và kiểm thử từng skill trước, kiểm tra xem skill có thực sự thay đổi cách agent hành xử hay không.
writing-for-agents
310kGiải thích cách viết hướng dẫn rõ ràng cho agent AI, gồm skill, tệp AGENTS.md và CLAUDE.md, để agent cư xử nhất quán.
bengali-nlp
280kGiúp agent của bạn xử lý văn bản tiếng Bengali, hỗ trợ hiểu ngôn ngữ này, chuẩn hóa văn bản và xử lý các đặc điểm riêng của nó.