

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1234# Utility & Service Guidelines56## LIB ORGANIZATION RULES78### File Structure9```10src/lib/11├── utils.ts # General utilities (keep existing cn function)12├── types.ts # Shared TypeScript interfaces13├── constants.ts # App-wide constants14├── validations/ # Zod schemas15│ ├── user.ts16│ ├── product.ts17│ └── common.ts18└── services/ # API service layer19 ├── api.ts # Base API client20 ├── userService.ts21 └── productService.ts22```2324### Utility Functions (utils.ts)25```tsx26// Keep existing cn function27export function cn(...inputs: ClassValue[]) {28 return twMerge(clsx(inputs))29}3031// Add other utilities32export function formatDate(date: Date | string): string {33 return new Intl.DateTimeFormat('en-US').format(new Date(date))34}3536export function debounce<T extends (...args: any[]) => any>(37 func: T,38 wait: number39): (...args: Parameters<T>) => void {40 let timeout: NodeJS.Timeout41 return (...args: Parameters<T>) => {42 clearTimeout(timeout)43 timeout = setTimeout(() => func(...args), wait)44 }45}46```4748### Type Definitions (types.ts)49```tsx50// Shared application types51export interface User {52 id: string53 email: string54 name: string55 avatar?: string56 role: UserRole57}5859export interface ApiResponse<T> {60 data: T61 message: string62 success: boolean63}6465export type UserRole = 'admin' | 'user' | 'guest'66export type Theme = 'light' | 'dark' | 'system'67```6869### Constants (constants.ts)70```tsx71// Application constants72export const API_ENDPOINTS = {73 USERS: '/api/users',74 PRODUCTS: '/api/products',75 AUTH: '/api/auth',76} as const7778export const QUERY_KEYS = {79 USERS: 'users',80 PRODUCTS: 'products',81 USER_PROFILE: 'user-profile',82} as const8384export const ROUTES = {85 HOME: '/',86 DASHBOARD: '/dashboard',87 USERS: '/users',88 PROFILE: '/profile',89} as const90```9192### Validation Schemas (validations/)93```tsx94// validations/common.ts95export const emailSchema = z.string().email('Invalid email')96export const phoneSchema = z.string().regex(/^\+?[\d\s-()]+$/, 'Invalid phone')9798// validations/user.ts99export const userSchema = z.object({100 name: z.string().min(2, 'Name too short'),101 email: emailSchema,102 phone: phoneSchema.optional(),103})104105export type UserFormData = z.infer<typeof userSchema>106```107
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?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/architecture.instructions.md · 65 | Copilot instructions | stylearchtypesdatabase+2 | 69/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/core.mdc · 65 | Cursor rules | buildlint-formatarchui+1 | 92/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/forms.mdc · 65 | Cursor rules | setupstyledo-not | 73/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/hooks.mdc · 65 | Cursor rules | styleuido-not | 61/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/quality.mdc · 65 | Cursor rules | buildlint-formatstyleui+3 | 88/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/services.mdc · 65 | Cursor rules | archtypesdo-not | 73/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/typescript.mdc · 65 | Cursor rules | setupstyletypessecurity+2 | 73/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/components.instructions.md · 65 | Copilot instructions | styleuido-not | 61/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/design.instructions.md · 65 | Copilot instructions | lint-formatstyleuido-not | 61/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/development.instructions.md · 65 | Copilot instructions | setupbuildtestlint-format+7 | 88/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 65 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/hooks.instructions.md · 65 | Copilot instructions | styleui | 54/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/pages.instructions.md · 65 | Copilot instructions | archuido-not | 69/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/quality.instructions.md · 65 | Copilot instructions | lint-formatdeploymentdo-not | 63/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/reusable.instructions.md · 65 | Copilot instructions | uido-notagent-behaviour | 32/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/components.mdc · 65 | Cursor rules | stylearchuido-not | 65/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.cursor/rules/design.mdc · 65 | Cursor rules | styleuido-not | 65/100 | 14 days ago | |
| chihebnabil/lovable-boilerplateCLAUDE.md · 65 | CLAUDE.md | setupbuildtestlint-format+5 | 89/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 65 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 32k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 25 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 14 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 14 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 14 days ago | |
| doubts-suplab/eeik-bootstrap.github/instructions/cdk-terraform.instructions.md · 1 | Copilot instructions | teststylearchtypes+2 | 96/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/chihebnabil-lovable-boilerplate-github-instructions-lib-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.