Common best practices is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when refactoring for readability, applying clean-code patterns, reviewing naming conventions, or reducing function complexity.
Early Returns: Use guard clauses. Avoid deep nesting.
Comments: Explain why, not what. Refactor bad code; don't comment it.
Input: Validate/sanitize all external inputs.
Ownership Contract
Inside files you were assigned or changed: you own the code. Merge duplicates you touch, delete code your change orphans, fix defects in code you modify, leave it better-structured.
Outside those files: report with path:line; do not edit.
Do not change public API contracts, persisted schemas, or dependencies without a recorded decision; see common-decision-discipline.
Scope growth beyond roughly 2x the planned diff: stop and report.
Anti-Patterns
No Hardcoded Constants: Use named config/env vars.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.