About engineering-quality
Engineering guidelines for code that is readable, debuggable, and difficult to misuse. They cover comments, error context, refactoring scope, and algorithmic shape for agents writing or maintaining software.
Key features
- 01Prefer clear implementations
- 02Comment on rationale, not mechanics
- 03Include safe context in errors
- 04Keep local refactors in scope
- 05Consider algorithmic scalability
Use cases
- 01Review code clarity and abstractions
- 02Improve error diagnostics
- 03Constrain refactoring during changes
- 04Check repeated queries or nested loops
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ liaoann/ skills --skill engineering-qualityAfter installing, type/engineering-qualityin Claude Code to confirm it loaded.
Details
From the project READMEEngineering Quality
Prefer code that is boring to read, easy to debug, and hard to misuse.
Choose Clarity Over Cleverness
Optimize first for the next maintainer's understanding. A slightly longer implementation is often better when it exposes names, intermediate values, and control flow.
Before choosing a clever abstraction or dense expression, ask:
- Does this solve the current problem, or a speculative future one?
- Would a direct version be easier to review?
- Is the abstraction hiding real complexity or only moving it?
Comment Why, Not What
Comments should explain context the code cannot express:
- Non-obvious business decisions.
- Security or privacy constraints.
- Performance tradeoffs.
- Workarounds and the issue they avoid.
- Surprising ordering requirements.
Delete comments that restate the next line of code. Improve names or structure instead.
Make Failures Debuggable
Errors should identify the failed operation and the important context, without leaking secrets or sensitive data.
Prefer errors that answer:
- What was the system trying to do?
- Which stable identifier or input matters?
- Is this invalid input, missing state, forbidden access, or an external failure?
Keep transport-specific error classes at the transport boundary. Lower-level code should raise domain or application errors that can be translated outward.
Keep Local Refactors Within Authority
Make small in-path refactors when they are needed for correctness or to make the changed path understandable. Follow /agentic-change-governance for the distinction between necessary local support and opportunistic improvement; proximity alone is not authorization.
Defer optional cleanup, scope expansion, and work outside the changed behavior unless explicitly requested.
Watch Algorithmic Shape
Code that is fine for ten items may collapse at production scale. Treat nested loops, repeated queries, repeated parsing, and broad data fetches as design decisions.
Prefer maps, sets, indexing, batching, or precomputation when repeated lookup or matching is the real operation.
Completion Criterion
The code is clear enough to review without decoding tricks, comments explain only non-obvious context, errors carry useful and safe context, necessary in-path refactors stay within accepted scope, and the algorithmic shape is reasonable for expected scale.