general-coding-guidelines
Originally fromstefanmermans/opencode-config
Installation
SKILL.md
General Coding Guidelines
These are general guidelines that apply to all code. They need to be followed when creating and code and reviewed code is expected to follow these guidelines.
1) Coding Principles
A) Correctness > Clarity > Consistency > Performance > Cleverness
- Do not introduce clever abstractions.
- Prefer boring, standard solutions that match the repo style.
B) DRY (practical)
- Avoid repeating logic that might change.
- Avoid multiple large chunks of code in a single function.
- Extract shared logic into:
- private method (same class)
- dedicated service (bounded context)
- helper (only if truly global and reusable)
Related skills
More from stefanmermans/agent-config
react-guidelines
Crucial info when dealing with a React project, these guidelines must always be followed in react contexts.
23python-guidelines
When dealing with python code, these guidelines must always be followed.
22markdown-validation
How to validate markdown files
21vue-guidelines
Essential guidelines for Vue.js development. Always follow these rules when working with Vue project.
19laravel-guidelines
When writing or reviewing code in a Laravel project, these guidelines must always be followed.
19markdown-guidelines
When creating or editing markdown files, these guidelines must always be followed.
3