Agent skill
code-layout-evaluation-principles
Evaluate code layout quality based on accuracy, consistency, readability, and maintainability rather than aesthetics. Use when establishing coding standards, reviewing code formatting, or making decisions about layout conventions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/code-layout-evaluation-principles
SKILL.md
Code Layout Evaluation Principles
Apply these principles when evaluating or establishing code layout standards.
Primary Priority
Clarify logical organization of code
Layout should first and foremost make the code's logical structure clear and understandable.
Evaluation Criteria (in order of importance)
- Accuracy - Layout correctly represents code structure
- Consistency - Layout follows established conventions throughout
- Readability - Layout enhances code comprehension
- Maintainability - Layout supports easy modification
Secondary Priority
Aesthetics
- Aesthetics are a distant second priority
- If the above criteria are met and underlying code is good, layout will naturally look good
- Never sacrifice clarity for beauty
Importance of Conventions
- Having a convention is more important than the specific details of the convention
- Inconsistent layout conventions actually harm readability
- Consistency across the codebase is more valuable than any particular style choice
Result
- Layout quality is scored based on logical clarity, not visual appeal
- Standards emphasize consistency and maintainability over aesthetics
- Code is easier to understand and modify
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?