claude-md
하는 일
프로젝트의 작동 방식을 Claude에게 알려 주는 CLAUDE.md 파일을 쓰거나 점검하도록 에이전트를 안내합니다. 세션마다 AI 어시스턴트가 올바른 맥락에서 시작하기를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓새 프로젝트를 시작하며 CLAUDE.md 파일을 작성하고 싶을 때.
- ✓기존 CLAUDE.md 파일이 너무 길거나 불분명해서 개선해야 할 때.
- ✓팀과 공유하기 전에 프로젝트의 CLAUDE.md 품질을 점검하고 싶은 경우.
스킬 링크
https://github.com/luongnv89/claude-howto/blob/main/03-skills/claude-md/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 CLAUDE.md를 감사해서, 짧고 유용하게 유지하려면 무엇을 줄여야 할지 제안해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 프로젝트를 분석하고 기존 CLAUDE.md 파일이 있는지 확인한 뒤, 원칙에 맞춰 파일을 만들거나 업데이트하거나 감사합니다. 모든 세션에 적용되는 정보만 남깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). User may specify:
create- Create new CLAUDE.md from scratchupdate- Improve existing CLAUDE.mdaudit- Analyze and report on current CLAUDE.md quality- A specific path to create/update (e.g.,
src/api/CLAUDE.mdfor directory-specific instructions)
Core Principles
LLMs are stateless: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules). It serves as the primary onboarding document for AI agents into your codebase.
The Golden Rules
Less is More: Frontier LLMs can follow ~150-200 instructions. Claude Code's system prompt already uses ~50. Keep your CLAUDE.md focused and concise.
Universal Applicability: Only include information relevant to EVERY session. Task-specific instructions belong in separate files.
Don't Use Claude as a Linter: Style guidelines bloat context and degrade instruction-following. Use deterministic tools (prettier, eslint, etc.) instead.
Never Auto-Generate: CLAUDE.md is the highest leverage point of the AI harness. Craft it manually with careful consideration.
Execution Flow
1. Project Analysis
First, analyze the current project state:
Check for existing CLAUDE.md files:
- Root level:
./CLAUDE.mdor.claude/CLAUDE.md - Directory-specific:
**/CLAUDE.md - Global user config:
~/.claude/CLAUDE.md
- Root level:
Identify the project structure:
- Technology stack (languages, frameworks)
- Project type (monorepo, single app, library)
- Development tools (package manager, build system, test runner)
Review existing documentation:
- README.md
- CONTRIBUTING.md
- package.json, pyproject.toml, Cargo.toml, etc.
2. Content Strategy (WHAT, WHY, HOW)
Structure CLAUDE.md around three dimensions:
WHAT - Technology & Structure
- Technology stack overview
- Project organization (especially important for monorepos)
- Key directories and their purposes
WHY - Purpose & Context
- What the project does
- Why certain architectural decisions were made
- What each major component is responsible for
HOW - Workflow & Conventions
- Development workflow (bun vs node, pip vs uv, etc.)
- Testing procedures and commands
- Verification and build methods
- Critical "gotchas" or non-obvious requirements
3. Progressive Disclosure Strategy
For larger projects, recommend creating an agent_docs/ folder:
agent_docs/
|- building_the_project.md
|- running_tests.md
|- code_conventions.md
|- architecture_decisions.md
In CLAUDE.md, reference these files with instructions like:
For detailed build instructions, refer to `agent_docs/building_the_project.md`
Important: Use file:line references instead of code snippets to avoid outdated context.
4. Quality Constraints
When creating or updating CLAUDE.md:
- Target Length: Keep it under 200 lines; shorter is better
- No Style Rules: Remove any linting/formatting instructions
- No Task-Specific Instructions: Move to separate files
- No Code Snippets: Use file references instead
- No Redundant Information: Don't repeat what's in package.json or README
5. Essential Sections
A well-structured CLAUDE.md should include:
# Project Name
Brief one-line description.
## Tech Stack
- Primary language and version
- Key frameworks/libraries
- Database/storage (if any)
## Project Structure
[Only for monorepos or complex structures]
- `apps/` - Application entry points
- `packages/` - Shared libraries
## Development Commands
- Install: `command`
- Test: `command`
- Build: `command`
## Critical Conventions
[Only non-obvious, high-impact conventions]
- Convention 1 with brief explanation
- Convention 2 with brief explanation
## Known Issues / Gotchas
[Things that consistently trip up developers]
- Issue 1
- Issue 2
6. Anti-Patterns to Avoid
DO NOT include:
- Code style guidelines (use linters)
- Documentation on how to use Claude
- Long explanations of obvious patterns
- Copy-pasted code examples
- Generic best practices ("write clean code")
- Instructions for specific tasks
- Auto-generated content
- Extensive TODO lists
7. Validation Checklist
Before finalizing, verify:
- Kept under 200 lines; shorter is better
- Every line applies to ALL sessions
- No style/formatting rules
- No code snipp
자주 묻는 질문
파일을 자동으로 생성해야 하나요?
아니요. 스킬은 자동 생성하지 말고 신중하게 직접 작성하라고 말합니다.
짧게 유지해야 하는 이유는 무엇인가요?
스킬에 따르면 최상위 모델이 따를 수 있는 지침은 약 150에서 200개이고, 시스템 프롬프트가 그중 일부를 이미 사용합니다.
하위 폴더의 파일도 다룰 수 있나요?
예. 하위 디렉터리처럼 경로를 주면, 그 폴더에만 적용되는 지침을 만들 수 있습니다.
상세 정보
작성자의 원본 설명
Create or update CLAUDE.md files following best practices for optimal AI agent onboarding
repo: luongnv89/claude-howto
인기도
- GitHub 스타
- 46k
- 순위
- #6321
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
lesson-quiz
46kClaude Code 튜토리얼의 강의 하나에 대해 10개 문항의 퀴즈를 내고, 답을 채점하며, 다시 볼 주제를 짚어 줍니다.
self-assessment
46kClaude Code의 10개 기능 영역에 대한 퀴즈를 내고, 주제별 점수와 다음에 공부할 학습 경로를 보여 줍니다.
blog-draft
46k아이디어와 자료를 바탕으로 블로그 글 초안을 단계별로 작성하도록 안내하며, 버전을 함께 추적합니다.
code-review-specialist
46k보안 문제, 성능 문제, 유지 보수성을 체크리스트와 명확한 발견 사항으로 검토하도록 돕습니다.