Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

authoring-claude-md

БесплатноБез исполняемых скриптовНе проверен

Use when creating, editing, auditing or pruning CLAUDE.md, AGENTS.md or .claude/rules/ files.

sammcjот sammcj★ 175 звёзд на GitHub

Об этом скилле

CLAUDE.md, AGENTS.md and Rules Authoring

Create effective CLAUDE.md, AGENTS.md and .claude/rules/ files that serve as project-specific memory for AI coding agents. Guidance for CLAUDE.md also applies to AGENTS.md and rule files unless stated otherwise: signal over noise, actionable context, no obvious information.

Purpose

CLAUDE.md files and rule files provide AI agents with:

  • Non-obvious conventions, architectural patterns and gotchas
  • Confirmed solutions to recurring issues
  • Project-specific context not found in standard documentation
  • Path-scoped instructions that only load when relevant files are touched

Not for: obvious patterns, duplicating documentation, or generic coding advice.

Core Principles

  • Signal over noise: Every sentence must add non-obvious value. If an AI agent could infer it from reading the codebase, omit it.
  • Actionable context: Focus on "what to do" and "why it matters", not descriptions of what exists.
  • Solve real friction, not theoretical concerns: Add to CLAUDE.md based on actual problems encountered, not hypothetical scenarios. If you repeatedly explain the same thing to Claude, document it. If you haven't hit the problem yet, don't pre-emptively solve it.

Structure

Use headings for clear organisation. Common sections: Commands, Conventions, Gotchas. Use 2-4 sections and only include what adds value.

Where Each Instruction Belongs

  • Every session needs it: root CLAUDE.md, or root AGENTS.md if the repo uses it
  • One directory, maintained by its owners: nested CLAUDE.md, or nested AGENTS.md if the repo uses it
  • One file type, or scattered paths: path-scoped rule
  • Multi-step procedure, or reference only some tasks need: skill
  • Must hold every time without exception: hook or permission deny rule. CLAUDE.md is guidance the agent can judge not to apply
  • Personal, all projects: ~/.claude/CLAUDE.md or ~/.claude/rules/
  • Personal, one project: gitignored CLAUDE.local.md (see AGENTS.md below first)

@path imports organise content but load with the importing file, so they save no context.

AGENTS.md

By default Claude Code reads AGENTS.md only when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above. ~/.claude/CLAUDE.md doesn't count. Adding one stops every AGENTS.md loading for sessions started in that directory or below, parent directories included, except those imported. A nested one also replaces its sibling AGENTS.md when the session starts above it. Some versions and sessions can't read AGENTS.md directly and need the import too.

  • Repo uses AGENTS.md: put shared instructions there
  • Claude-specific content needed: create a CLAUDE.md starting with @AGENTS.md, with only the Claude-specific lines below it. Parent and nested AGENTS.md files then each need a sibling CLAUDE.md importing them, or the setting below
  • CLAUDE.local.md needed and no CLAUDE.md imports AGENTS.md: have the user set Project instructions to claude-md-and-agents-md in /config. The setting is personal, so use imports for anything teammates need
  • CLAUDE.md says in prose to read AGENTS.md: replace the sentence with an @AGENTS.md import
  • CLAUDE.md is a symlink to AGENTS.md: edit AGENTS.md, as Edit and Write refuse to write through the link

Rule Files

Each .md file under .claude/rules/ covers one topic and is discovered recursively. Move part-specific content to path-scoped rules when CLAUDE.md approaches 200 lines, or when conventions differ by file type or area (one whole directory: see Where Each Instruction Belongs).

Scope a rule with paths frontmatter, the only field Claude Code reads:

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

- Validate request bodies with the schemas in `src/api/schemas/`
  • Loads when the agent reads, writes or edits a matching file, including a simple cat or head of one
  • Without paths, or with YAML that doesn't parse, it loads every session
  • User-level and project rules both load and neither overrides the other. The agent may follow either, so keep them consistent

What to Include

Verification commands: exact test, single-test, lint, typecheck and build commands. The command that checks the work is often the most useful line in the file.

Misleading code:

  • "src/legacy/ is live but don't copy its patterns into new code"
  • "tools/shim/ looks unused, the release job imports it"

Architectural decisions: the reason for a choice the code can't show, such as why services communicate by events

Non-obvious conventions:

  • "Use _internal suffix for private APIs not caught by linter"
  • "Date fields always UTC, formatting happens client-side"
  • "Avoid ORM for reports, use raw SQL in /queries"

Recurring issues:

  • "TypeError in auth: ensure verify() uses Buffer.from(secret, 'base64')"
  • "Cache race condition: acquire lock before checking status"

Project patterns: Error handling, logging, API versioning, migrat

Полный SKILL.md на GitHub

Установить authoring-claude-md в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdCLAUDE.md

FAQ

Что делает скилл authoring-claude-md?

Use when creating, editing, auditing or pruning CLAUDE.md, AGENTS.md or .claude/rules/ files.

Как установить скилл authoring-claude-md?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл authoring-claude-md запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить authoring-claude-md с