typescript-react-nextui-supabase-cursorrules-promp
Правило задаёт контекст проекта на TypeScript, React и NextUI с Supabase. Оно пригодится, чтобы агент учитывал структуру интерфейса и потоки авторизации.
.cursor/rules/typescript-react-nextui-supabase-cursorrules-promp.mdcЧто делает typescript-react-nextui-supabase-cursorrules-promp
Правило описывает веб-приложение с лендингом, входом и регистрацией, а также панелью для авторизованных пользователей. В контексте проекта названы React, TypeScript, NextUI и Supabase; Next.js предполагается по используемым API навигации и серверным утилитам.
Для авторизации описаны вход по email и паролю или через GitHub OAuth, регистрация, выход и подтверждение email. Также упомянуты адаптивная навигация, боковая панель, обработка ошибок и конкретные файлы с логикой этих сценариев. Хотя правило охватывает **/*, alwaysApply выключен, поэтому оно не применяется автоматически ко всем запросам.
Какие задачи решает
- описать агенту стек и устройство веб-приложения
- добавить вход через email и пароль или GitHub OAuth
- разобраться с подтверждением email и выходом пользователя
- собрать интерфейс панели с боковой навигацией
Примеры запросов агенту
- Объясни, где в проекте обрабатывается вход через GitHub и подтверждение email.
- Добавь экран регистрации с учётом React, TypeScript и NextUI.
- Проверь, как устроена панель авторизованного пользователя и её навигация.
Как установить typescript-react-nextui-supabase-cursorrules-promp
Вручную: положить файлы
.cursor/rules/typescript-react-nextui-supabase-cursorrules-promp.mdcВо frontmatter: description, globs, alwaysApply
Вручную: положить файлы
.claude/rules/typescript-react-nextui-supabase-cursorrules-promp.mdПоле paths во frontmatter ограничивает файлы: globs из источника → paths
AGENTS.md
Codex читает AGENTS.md: вставьте текст правила туда
Вручную: положить файлы
.github/instructions/typescript-react-nextui-supabase-cursorrules-promp.instructions.mdПоле applyTo задаёт, к каким файлам применять: globs из источника → applyTo
Вручную: положить файлы
.devin/rules/typescript-react-nextui-supabase-cursorrules-promp.mdВручную: положить файлы
.clinerules/typescript-react-nextui-supabase-cursorrules-promp.mdПо шагам, с командами для каждой платформы: Cursor rules: файлы .mdc, четыре режима и замена .cursorrules
Вопросы о typescript-react-nextui-supabase-cursorrules-promp
Как установить typescript-react-nextui-supabase-cursorrules-promp в Cursor?
Добавьте файл правила по пути .cursor/rules/typescript-react-nextui-supabase-cursorrules-promp.mdc.
Что делает typescript-react-nextui-supabase-cursorrules-promp?
Описывает для агента стек и устройство приложения: интерфейс на React и NextUI, работу с Supabase, авторизацию и панель пользователя.
Всегда ли Cursor применяет это правило?
Нет. В настройках alwaysApply выключен, хотя шаблон файлов задан как **/*.
Исходный текст
typescript-react-nextui-supabase-cursorrules-promp.mdc · CC0-1.0
--- description: "Cursor rules for TypeScript development with React, NextUI, and Supabase integration." globs: **/* alwaysApply: false --- # Codebase Overview This codebase appears to be part of a web application built using TypeScript, React, and various NextUI components. It is structured to support a landing page, authentication flows, and a dashboard for logged-in users. The application integrates with Supabase for backend services, including authentication and database interactions. # Stack and Key Technologies Frontend Framework: React TypeScript: Used for type-safe code across the frontend. NextUI: A React UI library used for building the UI components like buttons, modals, inputs, etc. Supabase: An open-source Firebase alternative used for backend services like authentication, database, and storage. Next.js: Likely used as the React framework, indicated by the usage of next/navigation and server utilities. Iconify: For icons across the application. Purpose and Functionality ## Authentication The application includes a comprehensive authentication flow: Login: Users can log in using email/password or GitHub OAuth. The login logic is handled in frontend/app/(landing-page)/login/action.ts. Signup: New users can sign up with an email and password. The signup logic is also in frontend/app/(landing-page)/login/action.ts. Logout: Users can log out, with the logic located in frontend/app/(landing-page)/logout/action.ts. Email Confirmation: The application handles email confirmation through a callback route in frontend/app/auth/callback/confirm/route.ts. ## User Interface Landing Page: Contains components like SubmitButton, LoginPage, and LogoutModal to facilitate user interactions. Dashboard: For logged-in users, showing personalized content and a sidebar for navigation within the dashboard. Error Handling: A generic error component is used to display errors and provide a retry mechanism. ## Navigation and Layout Navbar: A responsive navbar for the landing page and possibly other public pages. Sidebar: A collapsible sidebar for the dashboard, indicating a more complex, multi-page application structure for authenticated users.
© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules