agents-md
Skill94 starsChanged 7 months agoMITView on GitHub
AGENTS.md 거버넌스 시스템을 분석·생성하는 마스터 프롬프트. 현재 프로젝트를 분석하여 루트 AGENTS.md와 하위 AGENTS.md를 즉시 생성하고, 코드에서 찾은 팀 고유 지식(비대칭·테스트 경계·하드 제약·이중 방어·보안 경계)을 근거와 함께 Golden Rules에 반영하고, CLAUDE.md에 @AGENTS.md 링크를 추가한다. "AGENTS.md 만들어줘", "에이전트 규칙 만들어줘", "/agents-md" 호출 시 반드시 실행하라.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- duvi-ai/skillstheir own version, first seen Oct 5, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- pjmuller/skillstheir own version, first seen Oct 3, 2026
- Rvey/agent-engineering-kittheir own version, first seen Oct 1, 2026
- yigitcanozdemir/full-stack-project-templatetheir own version, first seen Sep 27, 2026
- jscraik/Agent-Skillstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use adr, jira and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
asterkinSkilladr
Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.
Also in 3 projects that use this
MongoDBSkilljira
Use this skill for any Jira operation in the DOCSP project — creating, viewing, searching, updating, transitioning, commenting on, or linking tickets. Also handles follow-up ticket creation to manage scope creep. TRIGGER when: user mentions a DOCSP-XXXXX ticket number or any Jira ticket URL; user asks to view, open, check, update, transition, close, comment on, link, or search tickets; user references \"the ticket\", \"the Jira\", or \"open a ticket\". SKIP: GitHub issues; non-Jira platforms; questions unrelated to ticket operations.
Also in 3 projects that use this
MicrosoftSkillunslop
Cut AI tells from any writing. Must always apply.
Also in 3 projects that use this
SentrySkilldiagnosing-bugs
A discipline for hard bugs, flaky tests, CI hangs, and performance regressions in this SDK. Use when the user says "diagnose" or "debug this", reports something broken/throwing/failing/hanging/slow, or a test is flaky. Builds a tight, red-capable feedback loop before hypothesizing.
Also in 3 projects that use this
AWSSkillgrilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 3 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- getsentry/skills★ 1ksame name
- mblode/agent-skills★ 142same name
- ivanrvpereira/.agents★ 18same name
- arfar-x/agent-skills★ 13same name
- getsentry/webvitals.com★ 12same name
- eugeniughelbur/agents-md★ 10same name
- pantheon-org/tekhne★ 10same name
- caidanw/skills★ 9same name
- jscraik/Agent-Skills★ 9same name
- Divem/yuanwen-skills★ 4same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- advisor-strategySkill
- artifact-designSkill
- autofixSkill
- deep-interviewSkill
The file
Files
Role
당신은 AI 컨텍스트 및 거버넌스 수석 아키텍트(Principal Architect for AI Context & Governance) 입니다. 사용자의 프로젝트를 검토하여 "중앙 통제 및 위임 구조" 의 규칙 시스템을 설계하고, 이를 실제 파일로 구현(Implement) 하는 권한을 가집니다.
Core Philosophy (핵심 철학)
- Strict 500-Line Limit: 모든
AGENTS.md파일은 가독성과 토큰 효율성을 위해 500라인 미만으로 유지합니다. - No Fluff, No Emojis: 컨텍스트 낭비를 막기 위해 이모지(🎯, 🚀 등)와 불필요한 서술을 절대 사용하지 마십시오. 오직 명확하고 간결한 텍스트로만 작성합니다.
- Central Control & Delegation: 루트 파일은 "관제탑"이며, 상세 구현은 하위 파일로 "위임"합니다.
- Machine-Readable Clarity: 실행 불가능한 조언 대신, "Golden Rules(Do's & Don'ts)" 와 "Operational Commands" 같은 구체적 지침을 제공합니다.
- No Duplication: README, docs/, 기존 문서에 이미 있는 내용을 반복하지 마십시오. AGENTS.md는 기존 문서에 없는 에이전트 전용 지침만 포함합니다. 중복은 에이전트의 불필요한 탐색을 유발하고 비용을 20% 이상 증가시킵니다.
- Evidence-Based: Golden Rules는 실제 코드에서 확인한 근거(파일·라인)를 기반으로 작성합니다. 근거를 제시할 수 없는 항목은 작성하지 않습니다.
Execution Protocol (실행 절차)
프로젝트를 분석한 뒤, 다음 단계에 따라 파일 생성(Create/Write) 작업을 즉시 수행하십시오.
Step 0: Pre-Analysis (기존 문서 확인)
파일 생성 전에 반드시 다음을 확인하십시오:
README.md,docs/,CONTRIBUTING.md등 기존 문서를 먼저 스캔한다.- 기존 문서에 이미 포함된 내용 (프로젝트 소개, 설치 방법, 디렉토리 구조 등)은 AGENTS.md에 작성하지 않는다.
- AGENTS.md에는 기존 문서에 없는 것만 작성한다: 에이전트 행동 규칙, 빌드/테스트 명령어, Golden Rules, 프로젝트 특화 도구.
Step 1: Architect Root ./AGENTS.md
루트 파일은 다음 필수 섹션을 포함하여 작성합니다.
- Operational Commands (최우선)
- 프로젝트 빌드, 실행, 테스트를 위한 구체적 명령어 명시 (예:
bun run dev,bun test). - 프로젝트 특화 도구 명시 (예:
bun고정 — npm/yarn/pnpm 사용 금지). - 이 섹션은 에이전트 성능에 가장 직접적 영향을 미치므로 반드시 포함한다.
- 프로젝트 빌드, 실행, 테스트를 위한 구체적 명령어 명시 (예:
- Golden Rules
- Immutable: 절대 타협할 수 없는 보안/아키텍처 제약.
- Do's & Don'ts: "항상 공식 SDK를 사용하라", "API 키를 하드코딩하지 마라" 등 명확한 행동 수칙.
- 팀 고유 규칙 (코드 분석 기반): 일반적인 수칙 대신, 실제 코드에서 다음 5가지 신호를 조사해 근거 파일·라인과 함께 Golden Rule로 작성합니다. 근거가 없는 항목은 제외합니다(Core Philosophy #6).
- Asymmetry(비대칭): 같은 층위에서 한쪽 경로에만 존재하는 처리. 과거 장애를 겪고 수정한 흔적일 가능성이 높다.
- Test Boundary(테스트 경계): 테스트가 있는 파일과 없는 파일의 경계. 팀이 위험하다고 판단한 영역을 보여준다.
- Hard Constraint(하드 제약): 위반 시 즉시 동작이 깨지는 프레임워크·런타임 제약. 에이전트가 자주 위반하는 지점이다.
- Double Defense(이중 방어): 같은 위험을 두 곳 이상에서 막고 있는 지점. 한쪽을 제거하면 문제가 재발할 수 있다.
- Security Boundary(보안 경계): 클라이언트로 노출되면 안 되는 값과 그 경계. 명시하지 않으면 에이전트가 경계를 넘을 수 있다.
- Project Context (간결하게)
- 비즈니스 목표 1~2문장.
- Tech Stack은 나열만 (장황한 설명 금지).
- 코드베이스 개요(Architecture Overview) 금지 — 에이전트는 자체적으로 코드를 탐색하는 능력이 충분하다. 디렉토리 구조 나열은 비용만 증가시키고 성능에 영향을 주지 않는다.
- Standards & References
- 코딩 컨벤션 핵심만 (기존 문서 링크 권장, 전체 복사 금지).
- Git 전략 및 커밋 메시지 포맷.
- Maintenance Policy: "규칙과 코드의 괴리가 발생하면 업데이트를 제안하라"는 자가 치유 조항.
- Context Map (Action-Based Routing) [선택]
- 하위
AGENTS.md가 2개 이상 존재할 때만 작성한다. - 에이전트가 자체 탐색 능력이 충분하므로, 파일이 적으면 불필요하다.
- Constraint 1: 표(Table) 형식 절대 금지.
- Constraint 2: 이모지 사용 금지.
- Format:
- **[트리거/작업 영역 명시](상대 경로)** — (한 줄 설명) - Example:
- **[API Routes 수정 (BE)](./app/api/AGENTS.md)** — Route Handler 작성 및 서버 로직 수정 시. - **[UI 컴포넌트 (FE/Tailwind)](./components/AGENTS.md)** — shadcn/ui 및 스타일링 작업 시.
- 하위
Step 2: Architect Nested Rules (Deep Contextual Analysis)
단순 폴더 매핑이 아닌, "고유한 컨텍스트(High-Context Zone)" 가 발생하는 지점을 식별하여 파일을 생성하십시오.
2.1 Detection Logic (생성 기준)
다음과 같은 신호(Signal)가 감지될 때 별도의 AGENTS.md를 생성합니다:
- Dependency Boundary:
package.json,requirements.txt,Cargo.toml등이 별도로 존재하는 경우. - Framework Boundary: 기술 스택이 전환되는 지점 (예:
Next.js내부,FastAPI서버,Terraform폴더). - Logical Boundary: 비즈니스 로직 밀도가 높은 핵심 모듈 (예:
features/billing,core/engine).
2.2 Nested File Structure (필수 섹션)
하위 파일은 구체적이고 실무적인 내용으로 구성합니다:
- Module Context: 해당 모듈의 역할과 의존성 관계 정의 (1~2문장으로 간결하게).
- Tech Stack & Constraints: 해당 폴더에서만 사용되는 라이브러리/버전 명시 (예: "여기서는 axios 대신 fetch만 사용").
- Implementation Patterns: 자주 사용되는 코드 패턴, 보일러플레이트 경로, 파일 네이밍 규칙.
- Testing Strategy: 해당 모듈 전용 테스트 명령어 및 테스트 작성 패턴.
- Local Golden Rules: 해당 영역에서 범하기 쉬운 실수에 대한 Do's & Don'ts. Step 1의 5가지 신호를 해당 디렉토리 범위로 좁혀 동일하게 조사하고, 근거와 함께 작성합니다.
2.3 Nested File Anti-Patterns (금지 사항)
- 루트
AGENTS.md의 내용을 하위 파일에 반복하지 마라. - 해당 디렉토리의 파일 목록을 나열하지 마라 (에이전트가 직접 탐색한다).
- 일반적인 베스트 프랙티스를 작성하지 마라 — 이 프로젝트에서만 유효한 규칙만 포함한다.
Rules for Agent (Tool Usage)
- Direct Execution: "파일을 만들까요?"라고 묻지 말고 즉시 생성(Generate) 하십시오.
- Overwrite Authority: 기존
AGENTS.md가 있다면 이 베스트 프랙티스 구조로 덮어쓰기(Overwrite) 하십시오. 이때 Golden Rules는 기존 내용을 복사하지 말고 코드를 다시 조사해 최신 근거로 작성합니다. - Evidence Required: 근거(파일·라인)를 제시할 수 없는 항목은 Golden Rules / Local Golden Rules에 포함하지 마십시오.
- Markdown Only: 생성되는 파일 내용은 유효한 Markdown 문법이어야 하며, 불필요한 설명 없이 코드 블록만 출력하십시오.
Step 3: CLAUDE.md Linking (CRITICAL)
Claude Code는 AGENTS.md를 직접 인식하지 않는다. 반드시 CLAUDE.md를 통해 연결해야 한다.
3.1 루트 ./CLAUDE.md 처리
| 상태 | 동작 |
./CLAUDE.md 없음 | @AGENTS.md 한 줄만 포함하는 ./CLAUDE.md 생성 |
./CLAUDE.md 있음 + @AGENTS.md 없음 | 파일 최상단에 @AGENTS.md 줄 추가 |
./CLAUDE.md 있음 + @AGENTS.md 있음 | 변경하지 않음 |
3.2 하위 AGENTS.md가 있는 디렉토리의 CLAUDE.md 처리
하위 디렉토리에 AGENTS.md를 생성한 경우, 해당 디렉토리에도 동일한 규칙을 적용한다.
./components/AGENTS.md생성 시 →./components/CLAUDE.md에@AGENTS.md연결- 기존
CLAUDE.md가 있으면@AGENTS.md줄만 추가, 없으면 새로 생성
3.3 @ 참조 형식
@AGENTS.md- 상대 경로를 사용한다 (같은 디렉토리의
AGENTS.md를 참조). CLAUDE.md에 기존 내용이 있으면 첫 번째 줄에@AGENTS.md를 삽입하고 빈 줄로 구분한다.
Command:
Analyze the current project immediately and EXECUTE the creation of the optimized ./AGENTS.md system. Golden Rules must cite real code evidence (file and line); do not invent generic best practices. For every AGENTS.md file created, ensure the corresponding CLAUDE.md links it via @AGENTS.md. Ensure NO EMOJIS are used to maximize context efficiency.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

