codebelt-solidjs
Installation
SKILL.md
CodeBelt SolidJS Code Style
These conventions make every file predictable: you can guess a file's path, name and contents before you open it, and the same kind of code looks the same everywhere in the app.
The guide covers structure and code shape: where code goes, how files are named, what each file holds and how it's laid out. It doesn't teach the Solid API; for that, use the Solid documentation and the patterns already in the package.
First: does this project use CodeBelt style?
These conventions are one team's choices, not universal rules. Look at the code around you before applying them:
- New project, or the existing code already follows this guide (named exports,
type Props, camelCase component folders,.store.tsfiles): apply the guide fully. - The user asks for CodeBelt style or a migration to it: apply it.
- The existing code follows different conventions (for example
index.tsxwith default exports,interfaceprops, barrel files): match the surrounding code, so the codebase stays consistent. In your reply, briefly say where that differs from CodeBelt style and offer to switch or migrate. A half-migrated codebase is harder to work in than either style, so leave the switch to the user. - Reviewing code: if the project uses this guide, review against it. If it doesn't, review for consistency with the project's own conventions and list any CodeBelt differences as optional suggestions. Judge this from the rest of the codebase or from what the user says, never from the file under review: that file breaking the guide is the reason for the review, not evidence of other conventions. With nothing else to go on, review against the guide without hedging.
Stack and Tools
The guide assumes: