RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/chihebnabil/lovable-boilerplate

Cursor rule

.cursor/rules/quality.mdc

Code quality checklist and anti-patterns to avoid before shipping

Cursor rules

Quality

88/100

Scores the file, not the repository.

Length

463 words

10 headings · 3 code blocks

Repository

63

— · pushed 15 days ago

Last changed

3 days ago

First indexed 3 days ago.
chihebnabil/lovable-boilerplate/.cursor/rules/quality.mdcRawGitHub
1---
2description: Code quality checklist and anti-patterns to avoid before shipping
3globs: []
4alwaysApply: false
5---
6 
7# Quality Checklist Rules
8 
9## Pre-Ship Quality Gates
10 
11### Code Architecture Quality
12- [ ] **No monolithic components** - Each component under 300 lines with single responsibility
13- [ ] **Logic extraction** - Reusable logic moved to custom hooks, not duplicated
14- [ ] **Type safety** - Shared interfaces defined in `lib/types.ts` and reused
15- [ ] **Service layer** - API calls abstracted to service functions, not inline
16- [ ] **Proper imports** - Using path aliases (@/) and organized import groups
17- [ ] **Validation schemas** - Zod schemas shared and reused across components
18- [ ] **Component composition** - Complex UI built from smaller, focused components
19 
20### Design Quality
21- [ ] Uses intentional color palette that serves the design purpose
22- [ ] Has proper visual hierarchy with varied typography scales
23- [ ] Includes subtle animations and micro-interactions
24- [ ] Features generous whitespace and purposeful spacing
25- [ ] All interactive elements have clear hover/active states
26- [ ] **Accessibility standards are met (proper contrast, focus states)**
27- [ ] Mobile experience is thoughtfully designed
28- [ ] Maintains cohesive visual story throughout
29- [ ] Design feels custom-crafted, not template-like
30- [ ] Visual identity matches target industry and audience
31- [ ] Color choices enhance user experience and brand message
32 
33### Essential Commands Check
34```bash
35npm run lint # MUST pass before shipping
36npm run build # MUST succeed without errors
37```
38 
39### NEVER Ship Code That:
40- Contains components over 300 lines mixing multiple concerns
41- Has duplicated logic that could be extracted to hooks
42- Uses inline API calls instead of service layer
43- Lacks proper TypeScript interfaces
44- Has accessibility contrast violations
45- Contains copy-pasted code blocks
46- Mixes business logic with presentation layer
47- Has console errors or warnings
48- Fails ESLint checks
49 
50### Development Workflow
511. Run `npm run dev` to start development
522. Follow component size limits (300 lines max)
533. Extract reusable logic to hooks
544. Test responsive design on mobile/desktop
555. Verify accessibility contrast ratios
566. Run `npm run lint` and fix all issues
577. Ensure no console errors before shipping
58 
59## Common Anti-Patterns to Avoid
60 
61### Component Anti-Patterns
62```tsx
63// DON'T: Monolithic component
64const BadDashboard = () => {
65 // 400+ lines of mixed concerns
66 const [users, setUsers] = useState([])
67 const [products, setProducts] = useState([])
68 // ... massive component
69}
70 
71// DO: Composition pattern
72const GoodDashboard = () => (
73 <PageLayout>
74 <DashboardHeader />
75 <DashboardMetrics />
76 <DashboardCharts />
77 </PageLayout>
78)
79```
80 
81### Data Fetching Anti-Patterns
82```tsx
83// DON'T: Inline API calls
84const BadComponent = () => {
85 useEffect(() => {
86 fetch('/api/users').then(res => res.json()).then(setUsers)
87 }, [])
88}
89 
90// DO: Service layer + custom hooks
91const GoodComponent = () => {
92 const { data: users } = useUsers()
93}
94```
95 

Commands it names

  • npm run lint
  • npm run build
  • npm run dev

Sections

  • Quality Checklist Rules
  • Pre-Ship Quality Gates
  • Code Architecture Quality
  • Design Quality
  • Essential Commands Check
  • NEVER Ship Code That:
  • Development Workflow
  • Common Anti-Patterns to Avoid
  • Component Anti-Patterns
  • Data Fetching Anti-Patterns

What it covers

buildlint-formatcode-styleuideploymentdo-notagent-behaviour

Stack — with the evidence

typescript

(1.00)

react

(1.00)

supabase

(1.00)

tailwind

(1.00)

vite

(1.00)

eslint

(1.00)

node

(0.95)

javascript

(0.60)

github-actions

(0.60)

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
chihebnabil
Language
—
License
—
Archived
no

All configs in this repo

Also in chihebnabil/lovable-boilerplate

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
chihebnabil/lovable-boilerplate.cursor/rules/design.mdc · 63Cursor rulestypescriptreact+7styleuido-not65/1003 days ago
chihebnabil/lovable-boilerplate.cursor/rules/forms.mdc · 63Cursor rulestypescriptreact+7setupstyledo-not73/1003 days ago
chihebnabil/lovable-boilerplate.cursor/rules/hooks.mdc · 63Cursor rulestypescriptreact+7styleuido-not61/1003 days ago
chihebnabil/lovable-boilerplate.cursor/rules/services.mdc · 63Cursor rulestypescriptreact+7archtypesdo-not73/1003 days ago
chihebnabil/lovable-boilerplate.cursor/rules/typescript.mdc · 63Cursor rulestypescriptreact+7setupstyletypessecurity+273/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/architecture.instructions.md · 63Copilot instructionstypescriptreact+7stylearchtypesdatabase+269/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/design.instructions.md · 63Copilot instructionstypescriptreact+7lint-formatstyleuido-not61/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/development.instructions.md · 63Copilot instructionstypescriptreact+7setupbuildtestlint-format+788/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/hooks.instructions.md · 63Copilot instructionstypescriptreact+7styleui54/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/lib.instructions.md · 63Copilot instructionstypescriptreact+7archtypesdo-not69/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/pages.instructions.md · 63Copilot instructionstypescriptreact+7archuido-not69/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/quality.instructions.md · 63Copilot instructionstypescriptreact+7lint-formatdeploymentdo-not63/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/reusable.instructions.md · 63Copilot instructionstypescriptreact+7uido-notagent-behaviour32/1003 days ago
chihebnabil/lovable-boilerplateCLAUDE.md · 63CLAUDE.mdtypescriptreact+7setupbuildtestlint-format+589/1003 days ago
chihebnabil/lovable-boilerplate.cursor/rules/core.mdc · 63Cursor rulestypescriptreact+7buildlint-formatarchui+192/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/components.instructions.md · 63Copilot instructionstypescriptreact+7styleuido-not61/1003 days ago
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
chihebnabil/lovable-boilerplate.cursor/rules/components.mdc · 63Cursor rulestypescriptreact+7stylearchuido-not65/1003 days ago
Diff against .cursor/rules/design.mdc Diff against .cursor/rules/forms.mdc Diff against .cursor/rules/hooks.mdc Diff against .cursor/rules/services.mdc Diff against .cursor/rules/typescript.mdc Diff against .github/instructions/architecture.instructions.md Diff against .github/instructions/design.instructions.md Diff against .github/instructions/development.instructions.md Diff against .github/instructions/hooks.instructions.md Diff against .github/instructions/lib.instructions.md Diff against .github/instructions/pages.instructions.md Diff against .github/instructions/quality.instructions.md Diff against .github/instructions/reusable.instructions.md Diff against CLAUDE.md Diff against .cursor/rules/core.mdc Diff against .github/instructions/components.instructions.md Diff against .github/instructions/global.instructions.md Diff against .cursor/rules/components.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/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