Cline rules
.clinerules/project-guide.mdCline rules
Quality
70/100
Scores the file, not the repository.Length
469 words
8 headings · 5 code blocksRepository
0
— · pushed 403 days agoLast changed
3 days ago
First indexed 3 days ago.1# AI Understanding Guide23## Project Overview45This project is a web application built with Next.js and TypeScript. It provides a platform for managing personal finances, including tracking income and expenses, categorizing transactions, and configuring application settings. It also includes various tools for developers.67## Tech Stack89- Frontend Framework: Next.js 14.x10- Language: TypeScript 5.x11- State Management: @tanstack/react-query v5 (Server State), nuqs (URL State), react-hook-form (Form State)12- UI Components: Shadcn UI (Base components), Radix UI (Accessibility), TailwindCSS (Styling)13- Data Display: @tanstack/react-table14- Validation: Class Validator15- Form Handling: react-hook-form16- Routing: Next.js App Router with Parallel Routes1718## Key Features1920- Money Tracking: Allows users to track their income and expenses.21- Transaction Management: Enables users to create, read, update, and delete transactions.22- Category Management: Enables users to categorize their transactions.23- Settings Management: Allows users to configure application settings.24- Tools: Provides access to various tools.2526## Code Conventions2728- TypeScript for all code.29- Strong typing with no 'any'.30- Interfaces over types for object definitions.31- Const assertions for literals.32- Discriminated unions for complex states.33- Functional components only.34- Props interface for every component.35- Early returns for conditional rendering.36- Error boundaries for error handling.3738## Naming Conventions3940- Files/Directories: kebab-case41- Components: PascalCase42- Functions/Variables: camelCase43- Constants: SCREAMING_SNAKE_CASE44- Types/Interfaces: PascalCase4546## Folder Structure4748```plaintext49├── app/50│ ├── api/ # API routes51│ ├── (dashboard)/ # Dashboard routes group52│ └── _components/ # Page-specific components53├── components/54│ ├── ui/ # Shadcn components55│ └── shared/ # Shared components56├── lib/57│ ├── utils/ # Utility functions58│ ├── config/ # Configuration59│ └── types/ # TypeScript types60├── hooks/ # Custom React hooks61└── public/ # Static assets62```6364## Code Conversion Examples6566- Formatting numbers as currency in Vietnamese format using `toCurrency` in `src/utils/format.ts`:6768```typescript69 import { toCurrency } from "@/utils/format";7071 const amount = 1000000;72 const formattedAmount = toCurrency(amount); // Output: 1.000.000 ₫73```7475- Formatting dates to Vietnamese locale string using `formatDate` in `src/utils/format.ts`:7677```typescript78 import { formatDate } from "@/utils/format";7980 const date = new Date();81 const formattedDate = formatDate(date); // Output: [Current Date in Vietnamese format]82```8384- Serializing values to JSON strings using `JSON.stringify` in `src/lib/parsers.ts`:8586```typescript87 import { serialize } from "@/lib/parsers";8889 const data = { name: "John", age: 30 };90 const serializedData = JSON.stringify(data); // Output: {"name":"John","age":30}91```9293- Converting JSON to TypeScript using the tool in `src/app/(dashboard)/(tools)/json-to-typescript/page.tsx`:9495 This feature provides a user interface for converting JSON data to TypeScript interfaces. Users can input JSON data and the tool will generate the corresponding TypeScript interface.9697- Transforming CSS values using `CSS.Translate.toString(transform)` in `src/components/ui/sortable.tsx`:9899```typescript100 import * as CSS from "csstype";101102 const transform = { x: 10, y: 20 };103 const cssTransform = CSS.Translate.toString(transform); // Output: translate(10px, 20px)104```105
Also in HVT-Software/t-management
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 |
|---|---|---|---|---|---|
| HVT-Software/t-management.clinerules/project-conventions.md · 0 | Cline rules | lint-formatstylearchtypes | 70/100 | 3 days ago | |
| HVT-Software/t-management.github/copilot-instructions.md · 0 | Copilot instructions | lint-formatstylearchgit+2 | 60/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 | |
| 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 | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
