Agent Skill
2/7/2026claudemd-authoring
This skill should be used when the user asks to "update CLAUDE.md", "create CLAUDE.md", "write project documentation", "what should CLAUDE.md include", or when generating/updating project documentation for Claude Code. Provides templates and best practices for CLAUDE.md files.
Z
zlyv587
0GitHub Stars
1Views
npx skills add zlyv587/marketplace
SKILL.md
| Name | claudemd-authoring |
| Description | This skill should be used when the user asks to "update CLAUDE.md", "create CLAUDE.md", "write project documentation", "what should CLAUDE.md include", or when generating/updating project documentation for Claude Code. Provides templates and best practices for CLAUDE.md files. |
name: CLAUDE.md Authoring description: This skill should be used when the user asks to "update CLAUDE.md", "create CLAUDE.md", "write project documentation", "what should CLAUDE.md include", or when generating/updating project documentation for Claude Code. Provides templates and best practices for CLAUDE.md files. version: 0.1.0
CLAUDE.md Authoring
Create and update CLAUDE.md files tailored to project type with appropriate sections and content.
Purpose of CLAUDE.md
CLAUDE.md provides Claude Code with project-specific context:
- Project structure and architecture
- Common commands and workflows
- Conventions and preferences
- Quick reference information
Section Selection by Project Type
Select sections based on detected project type:
Infrastructure Projects
| Section | Include | Content |
|---|---|---|
| Quick Reference | Always | Common kubectl/helm commands |
| Cluster Architecture | Always | Nodes, resources, network |
| Service Catalog | Always | Services, URLs, ports |
| Storage | If NFS/PV used | Storage classes, PVCs |
| GitOps Workflow | If ArgoCD | App structure, deployment flow |
| Monitoring | If Prometheus/Grafana | Dashboards, alerts |
| Security | If secrets/certs | SealedSecrets, cert-manager |
Code Projects
| Section | Include | Content |
|---|---|---|
| Quick Reference | Always | Build, test, run commands |
| Project Structure | Always | Directory layout |
| Development | Always | Setup, dependencies |
| Testing | If tests exist | Test commands, coverage |
| API Reference | If API project | Endpoints, auth |
| Deployment | If CI/CD exists | Pipeline, environments |
Monorepo Projects
| Section | Include | Content |
|---|---|---|
| Quick Reference | Always | Workspace commands |
| Package Overview | Always | Package list, purposes |
| Dependency Graph | If complex | Internal dependencies |
| Build Order | If relevant | Build sequence |
| Shared Config | If exists | Shared tsconfig, eslint |
CLAUDE.md Structure
Follow this general structure:
# Project Name
## Quick Reference
\`\`\`bash
# Most common commands here
\`\`\`
---
## 1. [Primary Section]
### 1.1 [Subsection]
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Data | Data | Data |
---
## 2. [Secondary Section]
[Content]
---
## N. User Preferences
[Tools, aliases, conventions]
Writing Guidelines
- Be concise: Use tables over prose where possible
- Use headers: Create scannable structure with
##and### - Include commands: Wrap in code blocks with language hints
- Add separators: Use
---between major sections - Prefer tables: For lists of items with multiple attributes
- Keep current: Only document what actually exists
Update Workflow
To update an existing CLAUDE.md:
- Read current file to understand existing structure
- Analyze project to detect current state
- Compare documented vs actual state
- Generate diff showing proposed changes
- Present to user for confirmation
- Apply changes if approved
Diff Format
Present changes as unified diff:
## Services
| Service | URL |
|---------|-----|
- | Old Service | old.url |
+ | New Service | new.url |
| Unchanged | same.url |
Additional Resources
Template Files
Project-specific templates:
templates/infra-template.md- Kubernetes/ArgoCD templatetemplates/code-template.md- Code project templatetemplates/monorepo-template.md- Monorepo template
Skills Info
Original Name:claudemd-authoringAuthor:zlyv587
Download