본문으로 건너뛰기
cccskills
무료GitHub에 공개

claude-md-writer

Use when creating or refactoring CLAUDE.md files - enforces best practices for size, structure, and content organization

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md6.4 KB
  • assets/illustration.png585.2 KB
  • README.md1.5 KB
  • README.ru.md2.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

CLAUDE.md Writer

Creates and refactors CLAUDE.md files following official Anthropic best practices (2025).

Golden Rules

RuleWhy
CLAUDE.md < 200 linesLoads on EVERY request, costs tokens
Rules files < 500 lines eachOfficial recommendation per file
Critical rules FIRSTTop = highest priority
Modular rules → .claude/rules/Conditional loading, organized
Use paths: frontmatterLoad rules only for matching files
No linting rulesUse ESLint/Prettier/Biome instead
Pointers over copiesFiles change, references stay valid

Memory Hierarchy

Claude Code loads memory in this order (higher = higher priority):

PriorityTypeLocation
HighestEnterprise/Library/Application Support/ClaudeCode/CLAUDE.md
↓Project./CLAUDE.md or ./.claude/CLAUDE.md
↓Rules./.claude/rules/*.md (conditional)
↓User~/.claude/CLAUDE.md
LowestLocal./CLAUDE.local.md (gitignored)

Use /memory command to see currently loaded files.

3-Tier Documentation System

Official recommendation for large projects:

TierLocationLoadsTarget
1. FoundationCLAUDE.mdAlways< 200 lines
2. Component.claude/rules/{component}/When working in component< 500 lines
3. FeatureCo-located with codeWhen working on featureAs needed

Example structure:

.claude/
├── CLAUDE.md                 # Tier 1: always loaded
└── rules/
    ├── database.md           # Tier 2: SQL, migrations
    ├── api.md                # Tier 2: API patterns
    └── frontend/             # Tier 2: subdirectory
        ├── components.md     # paths: src/**/*.tsx
        ├── layout.md         # paths: src/pages/**/*.tsx
        └── tokens.md         # paths: **/*.tsx

Structure Template

# Project Name

One-line description.

## Commands

- `npm run dev` - Development
- `npm run build` - Production
- `npm run test` - Tests

## Architecture

| Path | Purpose |
|------|---------|
| `lib/` | Core logic |
| `app/api/` | API routes |

## Key Patterns

**Pattern Name**: One-line explanation.

## Database (if applicable)

| Table | Key Fields |
|-------|------------|

## Modular Docs

See `.claude/rules/` for:
- `database.md` - queries, schema
- `deploy.md` - deployment

## Tech Stack

One line: Next.js 15, PostgreSQL, TypeScript

Conditional Rules (Path-Specific)

Use YAML frontmatter for file-type-specific rules:

---
paths: "src/api/**/*.ts"
---

# API Rules

- All endpoints must validate input
- Use standard error format

Glob Patterns

PatternMatches
**/*.tsAll .ts files anywhere
src/**/*All files under src/
*.mdMarkdown in project root
src/components/*.tsxComponents in specific dir

Combining Patterns

# Multiple extensions
paths: "src/**/*.{ts,tsx}"

# Multiple directories
paths: "{src,lib}/**/*.ts, tests/**/*.test.ts"

Note: Wrap patterns in quotes for YAML safety.

Rules with paths: only load when working with matching files → saves tokens.

Workflow: New Project

  1. Run /init for base CLAUDE.md
  2. Review and trim generated content
  3. Identify critical rules — what breaks if ignored?
  4. Create .claude/rules/ for domain-specific docs
  5. Keep main file < 100 lines

Workflow: Refactor Existing

  1. Count lines — if > 300, must split
  2. Find task-specific content — SQL, debugging, deploy → extract
  3. Create .claude/rules/:
    • database.md - queries, schema, connection
    • deploy.md - deployment process
    • messaging.md - integrations (Telegram, etc.)
  4. Use @file references — don't duplicate
  5. Keep in CLAUDE.md — only what applies to EVERY task

What Goes Where

ContentLocation
Project descriptionCLAUDE.md
Critical constraintsCLAUDE.md (top!)
Quick start (3 commands)CLAUDE.md
Architecture overviewCLAUDE.md
Key patterns (1-liners)CLAUDE.md
SQL queries/schema.claude/rules/database.md
Deployment steps.claude/rules/deploy.md
API documentation.claude/rules/api.md
Git workflow.claude/rules/git.md
Personal preferencesCLAUDE.local.md (gitignored)
Code style rules.eslintrc / biome.json (NOT docs)

Import Syntax

Reference files instead of duplicating:

@README.md
@docs/architecture.md
@~/.claude/snippets/common.md
  • Relative: @docs/file.md
  • Absolute: @~/path/file.md
  • Max depth: 5 hops

CLAUDE.local.md

Personal project settings (auto-gitignored):

# My Local Settings

- Prefer verbose output
- Run tests after every change
- My worktree location: .trees/

Common Mistakes

MistakeFix
500+ linesSplit into .claude/rules/
SQL examples inline→ rules/database.md
"Run prettier" rulesUse tool config files
Full API docs→ rules/api.md
Deployment instructions→ rules/deploy.md
Code in CLAUDE.mdUse @file:line references
Negative rules onlyAdd alternatives: "Don't X; use Y instead"

Quality Checklist

Before finishing:

  • CLAUDE.md < 200 lines?
  • Each rules file < 500 lines?
  • Critical rules at top?
  • No task-specific content in main file?
  • No code style rules (use ESLint/Prettier)?
  • .claude/rules/ for domain-specific docs?
  • Subdirectories for components (frontend/, backend/)?
  • paths: frontmatter for conditional loading?
  • @ references instead of duplication?
  • CLAUDE.local.md for personal prefs?

Useful Commands

CommandPurpose
/initGenerate initial CLAUDE.md
/memoryView loaded memory files

Sources

Official:

  • code.claude.com/docs/en/memory (Memory management, paths, globs)
  • anthropic.com/engineering/claude-code-best-practices
  • claude.com/blog/using-claude-md-files

Community:

  • thedocumentation.org/claude-code-development-kit (3-Tier System)
  • claudefa.st/blog/guide/mechanics/rules-directory
  • humanlayer.dev/blog/writing-a-good-claude-md

Updated: Jan 2026

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Orchestrate iterative visual style searches with branch prompts, decision graphs, feedback loops, and final direction selection.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serejaris/personal-corp-os2322026년 10월 21일 업데이트

Audits the agent rules in the current folder (AGENTS.md, nested AGENTS.md files) and the skill descriptions the agent sees at start, then reports what to cut, move or rewrite and edits only after the user says yes. Use on «аудит правил», «проверь AGENTS.md», «почему агент не слушается правил», «проверь скиллы».

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serejaris/personal-corp-os2322026년 10월 21일 업데이트

avatar

무료

Робот агента Personal Corp. Агент делает себе голову робота из набора деталей, хранит её в штабе в stack/avatars.json и кладёт в штаб страницу avatar/robot.html, где робот стоит за партой своего штаба и вокруг видны отделы, без сервера и интернета. На уроке по ссылке входа с экрана урока робот входит в живой класс и горит маячком, пока агент работает. Триггеры /avatar, /avatar <ссылка входа>, сделай себе аватар, покажи своего робота, приди на урок.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serejaris/personal-corp-os2322026년 10월 21일 업데이트

benchmark

무료

Use when choosing between engines or models for an agent pipeline and the answer must come from measurement on your own data, not from marketing pages: speech recognition for meeting recordings, the model that turns a transcript into notes, the critic model that checks it. Runs every variant in an isolated container, measures time, cost per hour of input (USD and RUB, with price source and date) and quality (WER/CER and course terms for ASR; code checks plus a judge of a different model for LLM steps), writes results.json/csv and one static analytics page. Triggers on "бенчмарк", "сравни движки", "сколько стоит час записи", "какую модель взять для пайплайна", "benchmark the pipeline", "compare ASR engines".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serejaris/personal-corp-os2322026년 10월 21일 업데이트

Use when user asks for Claude Code usage stats, weekly analytics, project activity summary, or wants to see what projects were worked on. Triggers on "аналитика", "статистика claude", "cc stats", "weekly report", "что делал"

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serejaris/personal-corp-os2322026년 10월 21일 업데이트

Use when needing strategic project analysis from multiple independent expert perspectives. Triggers on business decisions, growth strategy, product direction, competitive analysis, or any situation where diverse C-level opinions reduce blind spots

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

serejaris/personal-corp-os2322026년 10월 21일 업데이트

serejaris의 스킬 모두 보기

이 스킬의 문제 신고