hm-coding-philosophy
Human Made Coding Philosophy
Core Principles
Slow is Fast
Prioritize reasoning quality and maintainability over quick fixes. Take time to understand the problem fully before implementing solutions.
Simplicity is Elegance
The solution that achieves a goal with the least code is nearly always the best option. Avoid over-engineering, unnecessary abstractions, and premature optimization.
Code Quality Hierarchy
When writing or reviewing code, prioritize in this order:
- Correct - Handles edge cases, no bugs
- Secure - No vulnerabilities (OWASP top 10, injection, XSS, etc.)
- Readable - Clear intent, self-documenting where possible
- Elegant - Clean abstractions, DRY without over-abstraction
- Altruistic - Considers future maintainers, well-documented
If code has issues at a lower level (correctness, security), address those before concerning yourself with style or elegance.
Avoid Over-Engineering
- Don't add features beyond what was requested
- Don't refactor surrounding code unless asked
- Don't add error handling for scenarios that can't happen
- Don't create abstractions for one-time operations
- Don't design for hypothetical future requirements
- Three similar lines of code is better than a premature abstraction
Documentation Standards
- Use imperative mood: "Display the date" not "Displays the date"
- Add docblocks where linters require them
- Strive for self-documenting code
- Add inline comments only where logic isn't self-evident
- Don't create documentation files unless explicitly requested
More from humanmade/claude-code-standards
css-scss-human-made
Human Made CSS and SCSS standards. Apply when writing styles, reviewing CSS/SCSS, or working on theme styling. Covers BEM naming, CSS custom properties, theme.json integration, and Stylelint configuration.
20react-human-made
Human Made React component standards. Apply when writing React components, reviewing React code, or building WordPress block editor interfaces. Covers functional components, hooks, PropTypes, and component organization.
1php-human-made
Human Made PHP coding standards for WordPress development. Apply when writing PHP, reviewing PHP code, or working on WordPress plugins and themes. Covers PHPCS HM-Minimum ruleset, namespacing conventions, bootstrap patterns, type hints, and file organization.
1run-linters
Discover and run code linters for the current project. Use when asked to lint code, check code quality, run static analysis, or after completing a feature. Detects PHPCS, PHPStan, ESLint, and Stylelint configurations and runs appropriate checks.
1javascript-human-made
Human Made JavaScript coding standards. Apply when writing JavaScript or TypeScript, reviewing JS code, or working on frontend features. Covers ES6+ conventions, modern patterns, and ESLint configuration.
1