RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cline rules/sebellows/color-agent

Cline rules

.clinerules/react-typescript.md

ColorAgent rules for writing frontend code

Cline rules

Quality

64/100

Scores the file, not the repository.

Length

349 words

6 headings · 0 code blocks

Repository

0

— · pushed 113 days ago

Last changed

3 days ago

First indexed 3 days ago.
sebellows/color-agent/.clinerules/react-typescript.mdRawGitHub
1---
2description: ColorAgent rules for writing frontend code
3author: Sean Bellows
4version: 0.0.1
5globs: apps/web/**/*.ts,apps/native/**/*.tsx,packages/ui/**/*.ts,packages/ui/**/*.tsx
6tags: ["backend", "api", "coding-guidelines"]
7---
8 
9You are an expert in TypeScript, React, React Native, and UX design.
10 
11## Dependencies
12 
13 - TypeScript
14 - React
15 - React Native
16 - Tanstack Query
17 - Zustand
18 
19## Code Style and Structure
20 
21 - Write TypeScript with proper typing for all new code
22 - Use functional programming patterns; avoid classes
23 - 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 exports
27 - Structure files logically: store, component, types, styles
28 
29## Naming Conventions
30 
31 - 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.
39 
40## UI and Styling
41 
42 - 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.
43 
44## Testing Requirements
45 
46 - Unit tests for all Zustand store files
47 - React Testing Library tests for components filed under a `/components/blocks/` folder
48 - Add presentational elements to Storybook
49 - Run storybook locally: pnpm storybook
50 
51## Core Principles
52 
53 - Prioritize maintainability over development speed
54 - Keep data layer separate from view hierarchy
55 - Write clear, understandable code
56 - Think data first, implement views second
57 

Sections

  • Dependencies
  • Code Style and Structure
  • Naming Conventions
  • UI and Styling
  • Testing Requirements
  • Core Principles

What it covers

testcode-stylearchitecturedependenciesui

Stack — with the evidence

typescript

(1.00)

turborepo

(1.00)

node

(0.70)

react

(0.70)

nextjs

(0.70)

fastapi

(0.70)

react-native

(0.70)

expo

(0.70)

postgres

(0.70)

redis

(0.70)

vite

(0.70)

vitest

(0.70)

jest

(0.70)

pytest

(0.70)

eslint

(0.70)

ruff

(0.70)

javascript

(0.60)

monorepo

(0.60)

pnpm

(0.60)

docker

(0.60)

github-actions

(0.60)

python

(0.50)

Glob targeting

  • apps/web/**/*.ts
  • apps/native/**/*.tsx
  • packages/ui/**/*.ts
  • packages/ui/**/*.tsx

Format

Cline rules

A single file or a folder of files, all always-on. The folder form is the simplest way any format here lets you split rules into topics without also learning an activation model.

What the corpus says about it

Repository

Owner
sebellows
Language
—
License
—
Archived
no

All configs in this repo

Also in sebellows/color-agent

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
sebellows/color-agent.clinerules/01-project-rules.md · 0Cline rulestypescriptturborepo+20teststylearchsecurity+256/1003 days ago
sebellows/color-agent.clinerules/python.md · 0Cline rulestypescriptturborepo+20setuptestlint-formatstyle+381/1003 days ago
sebellows/color-agentCLAUDE.md · 0CLAUDE.mdtypescriptturborepo+20testlint-formatstyle74/1003 days ago
Diff against .clinerules/01-project-rules.md Diff against .clinerules/python.md Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5Cline rulestypescriptnode+8setupbuildtestlint-format+11100/1003 days ago
JCodesMore/ai-website-cloner-template.clinerules · 31kCline rulestypescriptnode+7buildlint-formatstylearch+397/1002 days ago
BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0Cline rulesjavascripttailwind+5buildstylearchgit+296/1003 days ago
u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6Cline rulespytestruff+6testlint-formatstylearch+194/1003 days ago
u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6Cline rulespytestruff+6testlint-formatstylearch+194/1003 days ago
VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1Cline rulestypescriptvite+4setuparchtypesdo-not93/100yesterday
HerringtonDarkholme/megarepo.clinerules/02-development.md · 17Cline rulesnodejavascriptsetupbuildteststyle+392/1003 days ago
blendsdk/codeops-mcp.clinerules/project.md · 0Cline rulestypescriptvitest+3buildteststylearch+791/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack