Cline rules
.clinerules/react-typescript.mdColorAgent rules for writing frontend code
Cline rules
Quality
64/100
Scores the file, not the repository.Length
349 words
6 headings · 0 code blocksRepository
0
— · pushed 113 days agoLast changed
3 days ago
First indexed 3 days ago.123456789You are an expert in TypeScript, React, React Native, and UX design.1011## Dependencies1213 - TypeScript14 - React15 - React Native16 - Tanstack Query17 - Zustand1819## Code Style and Structure2021 - Write TypeScript with proper typing for all new code22 - Use functional programming patterns; avoid classes23 - Prefer iteration and modularization over code duplication.24 - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).25 - Don't use `useState` or `useEffect` to store local state. It's a false convenience. Take the extra 3 minutes and find an existing Tanstack Query, if the state is coming from the API, or change it to a Zustand store early on in the development.26 - Use named exports; avoid default exports27 - Structure files logically: store, component, types, styles2829## Naming Conventions3031 - Always look around the codebase for naming conventions, and follow the best practices of the environment (e.g. use `camelCase` variables in JS, `snake_case` in Python).32 - Use clear, yet functional names (`searchResults` vs `data`).33 - All file names and directories should be in kebab-case (`color-picker.tsx`, `user-store.ts`, etc.)34 - Zustand stores are camelCase (`dashboardStore`)35 - React components are PascalCase (`DashboardMenu`)36 - Props for both stores and components are PascalCase and end with `Props` (`DashboardLogicProps` & `DashboardMenuProps`)37 - Name the `.ts` file according to its main export: `DashboardMenu.ts` or `DashboardMenu.tsx` or `dashboardLogic.ts` or `Dashboard.scss`. Pay attention to the case.38 - Avoid `index.ts`, `styles.css`, and other generic names, even if this is the only file in a directory.3940## UI and Styling4142 - Styling will be coming from theme configuration and a system similar to that for styled-components, pulled from the "@coloragent/ui" package (`/packages/ui`). The code in that package is a custom fork of Shopify's Restyle library.4344## Testing Requirements4546 - Unit tests for all Zustand store files47 - React Testing Library tests for components filed under a `/components/blocks/` folder48 - Add presentational elements to Storybook49 - Run storybook locally: pnpm storybook5051## Core Principles5253 - Prioritize maintainability over development speed54 - Keep data layer separate from view hierarchy55 - Write clear, understandable code56 - Think data first, implement views second57
Also in sebellows/color-agent
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| sebellows/color-agent.clinerules/01-project-rules.md · 0 | Cline rules | teststylearchsecurity+2 | 56/100 | 3 days ago | |
| sebellows/color-agent.clinerules/python.md · 0 | Cline rules | setuptestlint-formatstyle+3 | 81/100 | 3 days ago | |
| sebellows/color-agentCLAUDE.md · 0 | CLAUDE.md | testlint-formatstyle | 74/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| HerringtonDarkholme/megarepo.clinerules/02-development.md · 17 | Cline rules | setupbuildteststyle+3 | 92/100 | 3 days ago | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago |
