claude-md-editor
Edit and maintain CLAUDE.md and project documentation files. Use when modifying documentation, asking about best practices, or performing documentation maintenance tasks.
Best use case
claude-md-editor is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Edit and maintain CLAUDE.md and project documentation files. Use when modifying documentation, asking about best practices, or performing documentation maintenance tasks.
Teams using claude-md-editor should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/claude-md-editor/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How claude-md-editor Compares
| Feature / Agent | claude-md-editor | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Edit and maintain CLAUDE.md and project documentation files. Use when modifying documentation, asking about best practices, or performing documentation maintenance tasks.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# CLAUDE.md Writing Guidelines Guidelines for writing effective CLAUDE.md files, based on [Anthropic's official best practices](https://www.anthropic.com/engineering/claude-code-best-practices). ## Purpose of CLAUDE.md CLAUDE.md is automatically pulled into context. Document: - **Common bash commands** - Build, test, lint, deploy - **Core files and utilities** - Key files Claude should know - **Code style guidelines** - Formatting, patterns, conventions - **Testing instructions** - How to run tests, patterns - **Repository etiquette** - Branch naming, PR conventions - **Unexpected behaviors** - Known gotchas, things that cause problems ## Core Principles ### 1. Keep It Concise > "You're writing for Claude, not onboarding a junior dev." CLAUDE.md consumes tokens on every prompt. Every line should earn its place. **DO:** - Write for Claude, not humans - Use bullet points and tables over prose - Link to detailed docs instead of duplicating - Regularly audit and remove outdated content **DON'T:** - Include verbose explanations - Duplicate information from code/comments - Add documentation that's rarely referenced - Include Table of Contents (Claude doesn't need navigation) ### 2. Use Emphasis Markers Claude follows instructions better with explicit emphasis: - `IMPORTANT:` - Rules that need attention - `CRITICAL:` - Rules that must never be violated - `NEVER:` - Absolute prohibitions - `ALWAYS:` - Absolute requirements ### 3. Use Tables for Quick Reference Tables are scannable and token-efficient: ```markdown | Client Context | Import From | Notes | |----------------|-------------|-------| | Server Components | `@/lib/server` | Must await | | Client Components | `@/lib/client` | No await | ``` ### 4. Use DO/DON'T Examples ```markdown // DON'T: Use raw color values <p className="text-gray-500">Text</p> // DO: Use semantic tokens <p className="text-muted">Text</p> ``` ### 5. Create a "Danger Zone" Section Group actions that cause problems: ```markdown ## Danger Zone | Action | Consequence | |--------|-------------| | `npm run dev` automatically | Dev server already running | | `as any` casts | Defeats TypeScript | ``` ## Structure Recommendation ```markdown # CLAUDE.md ## Project Overview ## Quick Start ## Architecture ## Danger Zone ## Critical Rules ## Common Patterns ## Environment Setup ## Troubleshooting ## Additional Documentation ``` ## What to Include vs. Link ### Include Directly - Commands Claude runs frequently - Critical rules that must never be violated - Quick reference tables - Brief DO/DON'T examples - Danger Zone items ### Link to External Docs - Detailed setup guides - Comprehensive code examples - Full API documentation - Any content > 50 lines on a single topic ## Anti-Patterns to Avoid ### Verbose Explanations ```markdown # Too verbose The middleware handles authentication by using the server-side utilities. It's critically important that you understand... # Concise **Middleware:** Return exact response from `updateSession()`. ``` ### Table of Contents Claude doesn't need navigation aids. ToCs waste tokens. ### Obvious Instructions ```markdown # Claude already knows this Use proper types. Write clean code. # Project-specific Use `Tables<'table_name'>` helpers, never verbose syntax. ``` ### Duplicated Rules Audit for rules stated multiple times. Consolidate into one location. ## Modular Rules Architecture For larger projects, use modular rules in `.claude/rules/`: ```markdown # CLAUDE.md (lean hub) ## Rules Reference | Rule File | Contents | |-----------|----------| | `architecture.md` | Route structure, data flow | | `patterns.md` | Common code patterns | | `danger-zone.md` | All "never do" rules | ``` Benefits: - Agents can include specific rule bundles - Easier maintenance - Reduces main CLAUDE.md size ## Tuning Your CLAUDE.md ### Iterate Like a Prompt 1. **Observe** - Notice when Claude doesn't follow instructions 2. **Strengthen** - Add emphasis markers (IMPORTANT, NEVER) 3. **Simplify** - Remove content Claude doesn't reference 4. **Test** - Try different phrasings ### Regular Audits - Remove rules Claude consistently follows without prompting - Strengthen rules Claude frequently ignores - Update after major codebase changes - Remove references to deleted files/patterns ## Review Checklist - [ ] Can each section be shorter? - [ ] Is every instruction necessary? - [ ] Are critical rules emphasized? - [ ] Is verbose content moved to linked docs? - [ ] Are there redundant sections? - [ ] Is there a Table of Contents? (Remove it) ## Resources - [Anthropic's Claude Code Best Practices](https://www.anthropic.com/engineering/claude-code-best-practices) - [CLAUDE.md Optimization - Arize](https://arize.com/blog/claude-md-best-practices-learned-from-optimizing-claude-code-with-prompt-learning/)
Related Skills
developing-claude-code-plugins
Build, test, and distribute Claude Code plugins with slash commands, agents, skills, hooks, MCP servers, and LSP servers. MUST be loaded when creating, reviewing, debugging, or distributing plugins. Use PROACTIVELY when user mentions plugins, extensions, marketplaces, or wants to add custom commands/agents to Claude Code.
claude-skill-creator
Guide for creating effective Claude Code skills with proper YAML frontmatter, directory structure, and best practices. Use when creating new skills, updating existing skills, or learning about skill development.
claude-settings-audit
Analyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing existing settings, or determining which read-only bash commands to allow. Detects tech stack, build tools, and monorepo structure.
claude-plan
Anthropic 風格的專業計畫管理 Skill - 自然語言驅動、預設並行、全自動 GitHub 整合
claude-improve-config
Self-reflect on the current session to identify mistakes and propose improvements to .claude configuration (CLAUDE.md, hooks, skills).
claude-hooks-reference-2026
Complete reference for Claude Code hooks system (January 2026). Use when creating hooks, understanding hook events, matchers, exit codes, JSON output control, environment variables, plugin hooks, or implementing hook scripts.
claude-ecosystem
Claude Code ecosystem expertise. Modules: CLI tool (setup, slash commands, MCP servers, hooks, plugins, CI/CD), extensibility (agents, skills, output styles creation), CLAUDE.md (project instructions, optimization). Actions: configure, troubleshoot, create, deploy, integrate, optimize Claude Code. Keywords: Claude Code, Anthropic, CLI tool, slash command, MCP server, Agent Skill, hook, plugin, CI/CD, enterprise, CLAUDE.md, agentic coding, agent, skill, output-style, SKILL.md, subagent, Task tool, project instructions, token optimization. Use when: learning Claude Code features, configuring settings, creating skills/agents/hooks, setting up MCP servers, troubleshooting issues, CI/CD integration, initializing or optimizing CLAUDE.md files.
claude-code
Claude Code CLI and development environment. Use for Claude Code features, tools, workflows, MCP integration, configuration, and AI-assisted development.
claude-code-slash-commands
This skill should be used when the user asks to "create a command", "write a slash command", "build a plugin command", or wants to add custom commands to Claude Code.
claude-code-meta
Build Claude Code extensions - skills, agents, hooks, plugins, marketplaces, slash commands. Use when creating Claude Code components, building new skills, writing agents, creating hooks, making plugins, setting up marketplaces, writing slash commands, fixing extension configurations, or troubleshooting Claude Code extensions. Includes builder agents for autonomous creation. Not for looking up docs - use claude-code-docs-reference for that.
claude-code-analyzer
Analyzes Claude Code usage patterns and provides comprehensive recommendations. Runs usage analysis, discovers GitHub community resources, suggests CLAUDE.md improvements, and fetches latest docs on-demand. Use when user wants to optimize their Claude Code workflow, create configurations (agents/skills/commands), or set up project documentation.
ckeditor-rules
Defines CKEditor is being used for text editing