No. 130 Lower the entropy
// Solid.js Basic Setup .cursorrules
// Solid.js Basic Setup .cursorrules.
- Claude Code
- Codex
- Cursor
- Lower the entropy
// Solid.js Basic Setup .cursorrules // Prefer functional components const preferFunctionalComponents = true; // Solid.js best practices const solidjsBestPractices = [ "Use createSignal() for reactive state", "Utilize createEffect() for side effects", "Implement createMemo() for derived values", "Use createResource() for data fetching", "Implement Show and For components for conditional and list rendering", "Utilize createStore() for complex state management", ]; // Folder structure const folderStructure = ` src/ components/ pages/ utils/ App.jsx index.jsx public/ index.html `; // Additional instructions const additionalInstructions = ` 1. Use JSX for component templates 2. Implement proper error boundaries 3. Utilize Solid Router for routing when applicable 4. Use Solid's built-in optimization features 5. Implement lazy-loading for improved performance 6. Follow Solid.js naming conventions and best practices 7. Use server-side rendering (SSR) when needed `;
When to use
“// Solid.js Basic Setup .cursorrules” fits when the code works but the structure is harder than the behavior, because it says “// Solid.js Basic Setup .cursorrules”, and it is written to stay in force on later turns rather than to finish one task.
For “// Solid.js Basic Setup .cursorrules”, the extra line you type is the requirement those steps ask for, for example “make src/cart.js return 0 on an empty cart and skip a line with no price”, and the file then starts at “Use JSX for component templates”.
When not to use
Leave “// Solid.js Basic Setup .cursorrules” unused when the change is a one-line typo or a red build you have not read, because “// Solid.js Basic Setup .cursorrules” points the other way
How to run it
Claude Code
Claude Code loads “// Solid.js Basic Setup .cursorrules” from .claude/rules on later sessions, so “// Solid.js Basic Setup .cursorrules” survives a new chat, which a one-off paste does not.
Codex
Codex keeps “// Solid.js Basic Setup .cursorrules” only if you put “// Solid.js Basic Setup .cursorrules” in AGENTS.md, or in AGENTS.override.md beside the directory that should inherit it. A paste that is not saved is gone next thread.
Cursor
Cursor keeps “// Solid.js Basic Setup .cursorrules” by saving “// Solid.js Basic Setup .cursorrules” as .cursor/rules. The chat transcript alone will not reload it tomorrow.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Lower the entropy
- Same stage: You are an expert in coding with swift, iOS, UIKit. you…
来源:PatrickJS awesome-cursorrules · https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/solidjs-basic-cursorrules-prompt-file.mdc · CC0-1.0 · 2026-12-01