본문으로 건너뛰기
Skillpedia
문서화48k · #4634

folder-specific-claude-and-agents-md

하는 일

이 도구는 프로젝트의 특정 폴더를 위한 CLAUDE.md라는 지침 파일을 만듭니다. 또한 CLAUDE.md를 가리키는 AGENTS.md라는 바로가기도 만듭니다. 이 파일들은 다른 AI가 그 폴더의 맥락과 규칙을 이해하도록 돕습니다.

사용하는 경우

  • ✓AI가 특정 폴더의 규칙을 이해하기를 원할 때.
  • ✓앞으로 AI가 프로젝트의 지역적 맥락을 알아야 할 때.
  • ✓코드의 특정 영역에 대한 중요한 정보를 정리하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/folder-specific-claude-and-agents-md/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/folder-specific-claude-and-agents-md/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'~/Documents/code/workspace/my-web-project' 폴더를 위해 CLAUDE.md와 AGENTS.md를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 폴더 안의 모든 파일을 읽어 무엇이 있는지 파악합니다. 그다음 목적, 규칙, 관례에 대해 묻고, 그 정보를 CLAUDE.md에 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Folder CLAUDE.md Creation

When to Use

  • Use when the user asks for folder-specific agent instructions or local context files.
  • Use when a subdirectory needs a CLAUDE.md and AGENTS.md handoff for future agents.

Generate a focused CLAUDE.md inside a target folder, plus an AGENTS.md symlink pointing at it. The file gives any future agent (Claude Code, Codex, etc.) the folder-specific context the global CLAUDE.md doesn't cover.

Background reference: library/claude-code/claude-and-agents-md.md.

Process

Step 1: Confirm the target folder + sanity-check it deserves a file

Ask the user which folder. Use absolute path under ~/Documents/code/workspace/.

Only create a file if the folder has context needed across multiple sessions — active evolving work, specific conventions, ongoing decisions. A folder of static reference files does NOT need one (agents can read on demand). If unsure, ask the user.

Step 2: Read every file in the folder IN FULL

  • Use ls -la first to enumerate files and subfolders.
  • Read every markdown, config, and key source file.
  • For large tldraw/Vite subprojects: read package.json, src/App.tsx, one representative module file, and the folder's own module-details.md-style files.
  • Do NOT skim. Do NOT skip. The user's later edits depend on you having full context.

Step 3: Draft a bullet list of candidate content

Before writing the file, give the user a bullet list grouped by section — let them react first. Candidate sections (skip any that don't apply):

  • Product / Purpose — what this folder/project is, current state, key metrics
  • Avatar / Audience — who it's for (if applicable)
  • Essential Files — one-line role for each important file, including cross-folder references (use @path/file.md import syntax)
  • Constraints (MUST NOT) — explicit hard negatives. Highest-ROI content in the file.
  • Conventions — the user's lingo, status emojis (✅ 🟡), naming patterns, "usually do" patterns
  • Locked Decisions — things agreed + dated, must not re-litigate
  • Context — history, authority, credibility that frames the work
  • How to work with the user — collaboration style for this specific folder
  • Marketing Angles / Positioning — if public-facing
  • Top Insights — 3-5 most glaring signals from research (if research exists)

Step 4: Iterate with the user

  • Keep answers short. The user will edit directly in the IDE.
  • When they edit the file, RE-READ it and flag: contradictions, typos, missing rules, wrong categorization.
  • Do not revert their edits unless asked.

Step 5: Write the file

  • Path: <folder>/CLAUDE.md
  • Start with a one-line header explaining the file's purpose.
  • Subdir file marker: if this is a subdirectory file (parent folder already has its own CLAUDE.md), open with Apply root CLAUDE.md first, then this file.
  • Use ## section headers matching the sections the user approved.
  • Bullets over prose. Short bullets.
  • Cross-folder references: use @relative/path/file.md import syntax, not prose mentions.
  • Heavy reference docs: annotate with **Read when:** triggers (e.g. "Read when: writing offer copy"). Prevents loading every session.

Step 6: Create the AGENTS.md symlink

cd <folder> && ln -s CLAUDE.md AGENTS.md

Verify with ls -la CLAUDE.md AGENTS.md.

Step 7: Commit only when asked

Do NOT stage or push unless the user says to. When they do: git add -A, commit with a Day N: style message, push.

Rules

  • Never invent content. Every bullet must trace back to something you read in the folder or something the user said. No generic boilerplate.
  • Brevity wins. The user edits aggressively to make things shorter. Start tight.
  • Folder-scoped only. Don't duplicate the global CLAUDE.md (personality, dates, ports, etc.). Only include what's specific to this folder.
  • No file trees, no directory dumps, no stack details the code already shows. Anything an agent can derive from ls or grep rots fast and wastes tokens. Pin decisions, rules, and context — not structure.
  • Constraints vs Conventions. Hard "MUST NOT" rules go in Constraints (explicit negatives). "Usually do X" patterns go in Conventions. Splitting these improves adherence.
  • No absolute ALWAYS/NEVER without explicit exceptions. Edge cases make absolute rules get ignored. "Never commit secrets EXCEPT .env.example" beats "never commit secrets."

…

자주 묻는 질문

왜 폴더마다 CLAUDE.md를 만드나요?

프로젝트의 각 부분이 자체적인 지침을 가지도록 해서, AI가 일반적인 정보에 혼란스러워하지 않고 각 영역에서 더 잘 작업하도록 돕기 위해서입니다.

CLAUDE.md에는 무엇이 들어가나요?

폴더의 목적, 중요한 파일, 절대 어기면 안 되는 규칙, 명명 규칙, 그 프로젝트에 대해 이미 내려진 결정에 관한 정보가 들어갑니다.

AGENTS.md란 무엇인가요?

CLAUDE.md로 연결되는 바로가기(심볼릭 링크)입니다. 다른 도구나 AI 에이전트가 폴더의 지침에 쉽게 접근하도록 합니다.

상세 정보

작성자의 원본 설명

Create folder-scoped CLAUDE.md and AGENTS.md guidance for future agents working in that area.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4634
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬