Claude CodeDocumentation
Documentation Ai Rules for Claude Code
Generic AI coding rules for Claude Code. Improve consistency, output quality, and SEO discoverability with copy-paste ready conventions.
rules file
# Documentation Ai Rules for Claude Code Use this ruleset in `CLAUDE.md`. ## Universal AI coding principles - Be explicit with goals, constraints, and acceptance criteria. - Enforce clean architecture, readable naming, and test coverage. - Validate inputs, handle errors intentionally, and avoid silent failures. - Keep changes small, reviewable, and reversible. - Write docs for non-obvious decisions and trade-offs. ## Prompting and implementation rules - Ask for clarifications when requirements are ambiguous. - Prefer deterministic logic and stable interfaces. - Avoid introducing unneeded dependencies. - Match existing style/lint/test pipeline exactly. - Include migration notes for any breaking behavior. ## Shipping checklist - Lint passes - Type checks pass - Tests pass - Performance and security risks reviewed - README/changelog updated when behavior changes
How to use with Claude Code
#claude-code#general#ai-coding-rules#generic-ai-rules#documentation-ai-rules
Related Rules
Actix Performance Rules for Claude Code
Claude CodeRust
SEO-ready Claude Code rules for Actix performance with copy-paste instructions, testing guardrails, and production-safe patterns.
Performance
claude-code · rustCopy Ready
Actix Security Rules for Claude Code
Claude CodeRust
SEO-ready Claude Code rules for Actix security with copy-paste instructions, testing guardrails, and production-safe patterns.
Security
claude-code · rustCopy Ready
Alpine.js Performance Rules for Claude Code
Claude CodeJavaScript
SEO-ready Claude Code rules for Alpine.js performance with copy-paste instructions, testing guardrails, and production-safe patterns.
Performance
claude-code · javascriptCopy Ready
Alpine.js Security Rules for Claude Code
Claude CodeJavaScript
SEO-ready Claude Code rules for Alpine.js security with copy-paste instructions, testing guardrails, and production-safe patterns.
Security
claude-code · javascriptCopy Ready