Writing Good Code

Use when writing new code in any language — implementing a feature, adding a module, sketching a design, writing a script, building an endpoint, or extending existing code with a new piece. Covers naming, module shape, abstraction depth, error handling, readability, language idioms, and practical tactics against over-engineering. Trigger whenever the user asks to "write", "implement", "build", "add", "create", "design", "prototype", or "extend" code, a function, a class, a module, a component, a script, an endpoint, or a feature — even when they do not say "quality" or "clean code". Also trigger when the user says they want code that is "simple", "clean", "readable", "maintainable", "elegant", or "idiomatic". Do NOT use for pure refactoring of existing code without behavior change (use refactoring-and-reviewing-code); do NOT use for a focused decision about whether one specific abstraction is worth extracting (use abstraction-quality).

terion-labs ae3ed22 12 files · 129.1 KB Updated

File contents

terion-labs/skills/tree/main/skills/writing-good-code commit ae3ed22e97

Frequently asked questions

npx skillmds@latest add terion-labs/writing-good-code