da64f769da
- Added optional MCP integration settings in project-brief.yaml, allowing for environment-based server configurations. - Introduced conventions for strict package imports to enhance code organization and maintainability. - Updated brief schema to validate new MCP properties and ensure correct usage. - Implemented MCP JSON builder to generate .cursor/mcp.json based on project brief settings. - Enhanced resolver to include MCP configuration in generated files when enabled. This update improves integration capabilities and enforces coding standards across the project.
66 lines
2.1 KiB
Cheetah
66 lines
2.1 KiB
Cheetah
---
|
|
description: "Stack summary and product context for {{PROJECT_NAME}}"
|
|
globs: ["project-brief.yaml", ".cursor/**/*.md", ".cursor/**/*.mdc", "pubspec.yaml"]
|
|
alwaysApply: false
|
|
---
|
|
|
|
# Project Context — {{PROJECT_NAME}}
|
|
|
|
## Project identity
|
|
- **Name:** {{PROJECT_NAME}}
|
|
- **Package:** {{PACKAGE_ID}}
|
|
- **Description:** {{DESCRIPTION}}
|
|
- **Scale:** {{SCALE}}
|
|
|
|
## Technology stack
|
|
- **State management:** {{STATE_MANAGEMENT}}
|
|
- **Architecture:** {{ARCHITECTURE}}
|
|
- **Routing:** {{ROUTING}}
|
|
- **Backend:** {{BACKEND}}
|
|
- **Auth:** {{AUTH}}
|
|
- **Platforms:** {{PLATFORMS_LIST}}
|
|
- **Code generation:** {{CODEGEN_LIST}}
|
|
|
|
## Feature modules
|
|
{{FEATURES_LIST}}
|
|
|
|
## Special capabilities
|
|
{{SPECIAL_FEATURES}}
|
|
|
|
## Environments / flavors
|
|
- Flavors: {{FLAVORS_LIST}}
|
|
- CI/CD: {{CICD_TOOL}}
|
|
|
|
## Design & API references
|
|
- Design source: {{DESIGN_SOURCE}}
|
|
- API docs: {{API_DOCS_FORMAT}} at `{{API_DOCS_PATH}}`
|
|
|
|
## Code references
|
|
### Git repositories
|
|
{{GIT_REFS_BLOCK}}
|
|
|
|
### Local paths
|
|
{{LOCAL_PATHS_BLOCK}}
|
|
|
|
## Product UX / themes & roles
|
|
- **Theme variants:** {{THEME_SUMMARY}}
|
|
- **Roles:** {{ROLES_SUMMARY}}
|
|
|
|
{{HIGH_CONTRAST_NOTE}}
|
|
## Reviews — which rule owns what
|
|
- **Theme, colors, typography, spacing/radius tokens** → `ui-ux-standards.mdc` (widgets read `Theme.of(context)` only)
|
|
- **User-visible copy & locales** → `localization.mdc` (ARB / `AppLocalizations`; no UI string literals)
|
|
- **Imports, structure, naming** → `flutter-core.mdc` + architecture rule
|
|
|
|
## Architecture boundaries
|
|
{{ARCH_IMPORT_RULES}}
|
|
|
|
## When generating code for this project
|
|
1. Always use {{STATE_MANAGEMENT}} patterns — never suggest alternatives
|
|
2. Always follow {{ARCHITECTURE}} folder structure
|
|
3. Always use {{ROUTING}} for navigation — never `Navigator.push` directly
|
|
4. Always target platforms: {{PLATFORMS_LIST}}
|
|
5. If code generation tools are used ({{CODEGEN_LIST}}), follow their conventions
|
|
6. Apply visuals only through theme (`ColorScheme`, `TextTheme`, `ThemeExtension`) — never ad-hoc colors/fonts in feature widgets
|
|
7. No user-facing string literals in widgets — l10n or shared constants per localization rule
|