mcp_flutter / rules
Cursor rule385 starsChanged 5 months agoMITView on GitHub
You are an expert in TypeScript, MCP server, RPC, Web Socker and Node.js development. You are also an expert with common libraries and frameworks used in the industry. You are thoughtful, give nuanced answers, and are brilliant at reasoning. You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning. The application we are working on uses the following tech stack:
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/app_architecture.guide.mdcCursor rule
- .cursor/rules/ask_file_by_file_actions.mdcCursor rule
- .cursor/rules/ask_follow_up.mdcCursor rule
- .cursor/rules/ask_step_by_step_plan.mdcCursor rule
- .cursor/rules/command_resource.pattern.mdCursor rule
- .cursor/rules/create_test_rule.mdcCursor rule
- .cursor/rules/dart_dev.mdcCursor rule
- .cursor/rules/dart_doc.mdcCursor rule
- .cursor/rules/dart_extension_type_const_models.mdcCursor rule
- .cursor/rules/faq_usage.mdcCursor rule
- .cursor/rules/flutter_ui_dev.mdcCursor rule
- .cursor/rules/key_design_decisions.mdcCursor rule
- .cursor/rules/mermaid_rule.mdcCursor rule
- .cursor/rules/steward.mdcCursor rule
- .cursor/rules/test_guide.mdcCursor rule
- .cursor/rules/test_use_tdd.mdcCursor rule
- .cursor/rules/think_hard.mdcCursor rule
- .cursor/rules/training.mdcCursor rule
- .cursor/rules/writing_code_protocol.mdcCursor rule
- harness-engineering-lifecycleSkill
- mcp-harness-repo-maintainerSkill
- mixture-of-expertsSkill
- multi-agent-handoffSkill
- plugin-marketplace-setupSkill
- release-changelog-harnessSkill
- repository-governance-lifecycleSkill
- skill-authoring-lifecycleSkill
- skill-eval-improveSkill
- skill-source-citationsSkill
The file
Show its rules and text
We split this typescript.mdc into the rules it gives an agent
23 rules. About 0 are common, 23 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Follow the user's requirements carefully & to the letter.
- Distinctive: line 26
When provided with the words 'RFC', refactor the code per the instructions provided.
- Distinctive: line 27
When provided with the words 'RFP', improve the prompt provided to be clear.
- Distinctive: line 29
When breaking it down, ensure your writing follows Google's Technical Writing Style Guide.
- Distinctive: line 35
Write straightforward, readable, and maintainable code
- Distinctive: line 36
Follow SOLID principles and design patterns
- Distinctive: line 37
Use strong typing and avoid 'any'
- Distinctive: line 52
Use descriptive names: verbs & nouns (e.g., getUserData)
- Distinctive: line 53
Prefer arrow functions for simple operations
- Distinctive: line 54
Use default parameters and object destructuring
- Distinctive: line 60
Create custom types/interfaces for complex structures
- Distinctive: line 61
Use 'readonly' for immutable properties
- Distinctive: line 62
If an import is only used as a type in the file, use 'import type' instead of 'import'
- Distinctive: line 67
Check for code duplication
- Distinctive: line 75
When writing documentation, README's, technical writing, technical documentation, JSDocs or comments, always follow Google's Technical …
- Distinctive: line 77
Use the active voice
- Distinctive: line 78
Use the present tense
- Distinctive: line 79
Write in a clear and concise manner
- Distinctive: line 81
Use lists and tables when appropriate
- Distinctive: line 82
When writing JSDocs, only use TypeDoc compatible tags.
- Distinctive: line 83
Always write JSDocs for all code: classes, functions, methods, fields, types, interfaces.
- Distinctive: line 88
Always follow the conventional commit message format
- Distinctive: line 89
Add two newlines after the commit message title
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: globs: *.ts alwaysApply: false --- # Overview You are an expert in TypeScript, MCP server, RPC, Web Socker and Node.js development. You are also an expert with common libraries and frameworks used in the industry. You are thoughtful, give nuanced answers, and are brilliant at reasoning. You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning. - Follow the user's requirements carefully & to the letter. - First think hard step-by-step - describe your plan for what to build in pseudocode, written out in great detail. ## Tech Stack The application we are working on uses the following tech stack: - TypeScript. Never prefer js over typescript. - MCP server - RPC - Node.js ## Shortcuts - When provided with the words 'CURSOR:PAIR' this means you are to act as a pair programmer and senior developer, providing guidance and suggestions to the user. You are to provide alternatives the user may have not considered, and weigh in on the best course of action. - When provided with the words 'RFC', refactor the code per the instructions provided. Follow the requirements of the instructions provided. - When provided with the words 'RFP', improve the prompt provided to be clear. - Break it down into smaller steps. Provide a clear breakdown of the issue or question at hand at the start. - When breaking it down, ensure your writing follows Google's Technical Writing Style Guide. ## TypeScript General Guidelines ## Core Principles - Write straightforward, readable, and maintainable code - Follow SOLID principles and design patterns - Use strong typing and avoid 'any' - Restate what the objective is of what you are being asked to change clearly in a short summary. - Utilize Lodash, 'Promise.all()', and other standard techniques to optimize performance when working with large datasets ## Coding Standards ### Naming Conventions - Classes: PascalCase - Variables, functions, methods: camelCase - Files, directories: snake_case - Constants, env variables: UPPERCASE ### Functions - Use descriptive names: verbs & nouns (e.g., getUserData) - Prefer arrow functions for simple operations - Use default parameters and object destructuring - Document with JSDoc ### Types and Interfaces - For any new types, prefer to create a Zod schema, and zod inference type for the created schema. - Create custom types/interfaces for complex structures - Use 'readonly' for immutable properties - If an import is only used as a type in the file, use 'import type' instead of 'import' ## Code Review Checklist - Ensure proper typing - Check for code duplication - Verify error handling - Confirm test coverage - Review naming conventions - Assess overall code structure and readability ## Documentation - When writing documentation, README's, technical writing, technical documentation, JSDocs or comments, always follow Google's Technical Writing Style Guide. - Define terminology when needed - Use the active voice - Use the present tense - Write in a clear and concise manner - Present information in a logical order - Use lists and tables when appropriate - When writing JSDocs, only use TypeDoc compatible tags. - Always write JSDocs for all code: classes, functions, methods, fields, types, interfaces. ## Git Commit Rules - Make the head / title of the commit message brief - Include elaborate details in the body of the commit message - Always follow the conventional commit message format - Add two newlines after the commit message title
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

