code-style
Installation
SKILL.md
Code style
Code is right the first time when its style is decided before the first line, not fixed in a cleanup pass afterwards. At the start of a coding task, look at the files the change touches and read the references that cover them.
References
| Files | Read |
|---|---|
.ts, .tsx, .mts, .js |
typescript.md |
.vue |
vue.md, and typescript.md for <script setup lang="ts"> where vue.md says nothing |
.php |
php.md |
.rs |
rust.md |
| Any file with comments or doc blocks | comments.md |
Read comments.md on every change: it holds for //,
#, /* */, docstrings, PHPDoc and JSDoc alike. A language without a
reference here follows its formatter and the code around it.