Skip to content
Prompt

online-learning-system-frontend — Cursor Rules

by huynhduydong

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "online-learning-system-frontend — Cursor Rules" prompt rules to my project.
Repository: https://github.com/huynhduydong/online-learning-system-frontend

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Online learning system

Usage Pattern

`typescript import { useTranslations } from 'next-intl' function Component() { const t = useTranslations('namespace') return <h1>{t('title')}</h1> } `

Testing Requirements

• ALWAYS write unit tests for utilities and hooks • ALWAYS write integration tests for API services • ALWAYS write E2E tests for critical user flows • Use MSW for API mocking in tests

Directory Organization

` app/ # Next.js App Router pages ├── [locale]/ # Internationalized routes ├── api/ # API routes └── globals.css # Global styles components/ # Reusable UI components ├── ui/ # shadcn/ui components └── *.tsx # Custom components lib/ # Utility libraries ├── api/ # API client and services ├── validations/ # Form validation schemas ├── config.ts # App configuration └── utils.ts # Utility functions hooks/ # Custom React hooks contexts/ # React context providers messages/ # i18n translation files public/ # Static assets src/ # Additional source code ├── components/ # Legacy components (migrate to /components) ├── hooks/ # Legacy hooks (migrate to /hooks) ├── lib/ # Legacy lib (migrate to /lib) ├── mocks/ # MSW mock handlers └── stores/ # State management stores tests/ # Test files ├── e2e/ # End-to-end tests └── unit/ # Unit tests `

TypeScript Rules

• ALWAYS use TypeScript for all files • ALWAYS define proper interfaces for API responses • NEVER use any type - use proper typing or unknown • ALWAYS export types and interfaces from appropriate files • Use strict TypeScript configuration

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 6mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated6mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more