skills/code-style/SKILL.md
You are required to load this before writing or reviewing code. Load this skill for any code-related task
npx skillsauth add liangmiQwQ/skills code-styleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read the corresponding file below as needed:
| Language | Reference |
| ----------------------- | -------------------- |
| JavaScript / TypeScript | languages/js-ts.md |
| Rust | languages/rust.md |
Comments are necessary for complex logic. Do not wrap a sentence's comment into multiple lines unless the linter / checker requires.
We should keep comments simple and short. If the next reader can infer it from the code in three seconds, the comment is unnecessary.
Keep comments that capture what the code cannot express on its own:
And the comments there should explain why, not what.
Never write a doc comment that only restates the function name — it adds nothing and will drift out of sync.
Another acceptable form of annotation is a flow comment for complex functions. For a part of complex, multiple phases logic, we can add comments like // 1. Check environment // 2. Read config to help human divide code into different parts.
If a piece of logic can be clearly divided into multiple stages and exceeds 50 lines, then it needs flow comments.
Start with nothing visible. Add visibility only when another module needs it.
Every export or public item is a contract: a name that must stay stable, a surface that must stay compatible. Keep that surface as small as possible.
Reserve the broadest visibility (export, pub) for the true public API. Use narrower forms (pub(crate), unexported) for everything else. See the language file for specifics.
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
Minimum code that solves the problem. Nothing speculative.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
Touch only what you must. Clean up only your own mess.
When editing existing code:
When your changes create orphans:
The test: Every changed line should trace directly to the user's request.
Define success criteria. Loop until verified.
Transform tasks into verifiable goals:
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
development
High-fidelity HTML design and prototype creation. Use this skill whenever the user asks to design, prototype, mock up, or build visual artifacts in HTML — including slide decks, interactive prototypes, landing pages, UI mockups, animations, or any visual design work. Also use when the user mentions Figma, design systems, UI kits, wireframes, presentations, or wants to explore visual design directions. Even if they just say "make it look good" or "design a screen for X", this skill applies.
development
High-fidelity HTML design and prototype creation. Use this skill whenever the user asks to design, prototype, mock up, or build visual artifacts in HTML — including slide decks, interactive prototypes, landing pages, UI mockups, animations, or any visual design work. Also use when the user mentions Figma, design systems, UI kits, wireframes, presentations, or wants to explore visual design directions. Even if they just say "make it look good" or "design a screen for X", this skill applies.
development
Load this skill when Codex needs to locate, enter, clone, open, or coordinate work across the user's local projects. Use it when the current directory is not the target project, when another local project is needed, or when multiple projects are involved. The user's standard is rootPath/github-owner/repo, managed by mo.
tools
Load this skill before creating, drafting, modifying, or submitting PR on GitHub