skills
Copilot instructions30 starsChanged 9 months agoMITView on GitHub
As an AI agent working on this repository, you MUST adhere to the following core principles and coding standards. These are synthesized from the individual skills in the skills/ directory (covering Flutter, Dart, GitHub, and other development workflows).
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dart-add-unit-testSkill
- dart-build-cli-appSkill
- dart-collect-coverageSkill
- dart-fix-runtime-errorsSkill
- dart-generate-test-mocksSkill
- dart-genkitSkill
- dart-logic-patternsSkill
- dart-memorySkill
- dart-migrate-to-checks-packageSkill
- dart-modern-syntaxSkill
- dart-optimizationSkill
- dart-run-static-analysisSkill
- dart-toolingSkill
- dart-use-pattern-matchingSkill
- flutter-add-integration-testSkill
- flutter-add-widget-previewSkill
- flutter-add-widget-testSkill
- flutter-apply-architecture-best-practicesSkill
- flutter-bloc-formsSkill
- flutter-blocSkill
- flutter-build-responsive-layoutSkill
- flutter-code-genSkill
- flutter-configSkill
- flutter-debuggingSkill
- flutter-devtoolsSkill
- flutter-dioSkill
- flutter-firebaseSkill
- flutter-fix-layout-issuesSkill
- flutter-implement-json-serializationSkill
- flutter-isarSkill
- flutter-nativeSkill
- flutter-securitySkill
- flutter-setup-declarative-routingSkill
- flutter-setup-localizationSkill
- flutter-spmSkill
- flutter-testingSkill
- flutter-uiSkill
- flutter-use-http-packageSkill
- flutter-wasm-webSkill
- changelog-writingSkill
- git-commitSkill
- github-actionsSkill
- github-prSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 15
Conciseness: Keep files < 300 lines. Keep functions short (< 50 lines).
- Very specific: line 16
Null Safety: Avoid ! operator. Prefer pattern matching or early returns.
- Very specific: line 17
Logging: Use AppLogger. NEVER use print() or raw debugPrint().
- Very specific: line 21
Models: Use fromJson/toJson factories.
- Very specific: line 27
Performance: NO heavy work in build(). Mandate isolates for JSON parsing > 1MB.
- Very specific: line 28
Patterns: NO nested ScrollViews in same direction.
- Distinctive: line 33
Pull Requests: Ensure zero analysis warnings and passing tests before PR.
- Distinctive: line 34
Changelogs: Follow Keep a Changelog standards.
- Very specific: line 37
Sensitive Data: Use flutter_secure_storage for tokens and secrets.
- Distinctive: line 38
Traffic: All API communication MUST use HTTPS.
- Very specific: line 41
Structure: All test files MUST strictly mirror the lib/ directory structure.
- Very specific: line 42
Mocks: Use mocktail for all dependency mocking.
- Very specific: line 46
Configuration: Use a single main.dart. Feed environment data via --dart-define-from-file=config/<flavor>.json.
- Distinctive: line 47
Secrets: NEVER commit production secrets to Git.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
Project Instructions & Best Practices
As an AI agent working on this repository, you MUST adhere to the following core principles and coding standards. These are synthesized from the individual skills in the skills/ directory (covering Flutter, Dart, GitHub, and other development workflows).
Core Tech Stack
- Language: Dart 3 (Strong typing, null safety, exhaustive switch expressions)
- Framework: Flutter
- State Management: BLoC / Cubit (Event-driven, logic separation)
- Dependency Injection:
injectable/get_it - Architecture: Clean Architecture (Data → Domain → Presentation)
Coding Standards
- Naming:
PascalCasefor classes,camelCasefor variables/functions,snake_casefor files. - Strong Typing: NO
dynamic. UseObject?or explicit types. - Conciseness: Keep files < 300 lines. Keep functions short (< 50 lines).
- Null Safety: Avoid
!operator. Prefer pattern matching or early returns. - Logging: Use
AppLogger. NEVER useprint()or rawdebugPrint().
Architecture & Data
- Repository Pattern: DataSources handle raw IO (Dio, Isar, Firebase). Repositories handle orchestrating and domain mapping.
- Models: Use
fromJson/toJsonfactories. Data models live indata/, Domain entities indomain/, and UI states inpresentation/. - Forms: Manage form state in BLoCs. Use pure validator functions in the domain layer.
UI & UX (Design System)
- Design Tokens: ZERO hardcoded colors or spacing. Use
AppColors,AppSpacing, andAppRadius. - Widget Lifecycle: Declare controllers/nodes as
late finalininitState()and dispose indispose(). - Performance: NO heavy work in
build(). Mandate isolates for JSON parsing > 1MB. - Patterns: NO nested ScrollViews in same direction. NO private
_buildWidgetmethods (extract into classes). Use Slivers for complex lists.
Git Workflow
- Atomic Commits: One commit = one logical change. Follow Conventional Commits:
type(scope): description. - Commit Bodies: Include sub-messages to explain the "why" and "how" of changes.
- Pull Requests: Ensure zero analysis warnings and passing tests before PR. Provide descriptive titles and internal/external change summaries.
- Changelogs: Follow Keep a Changelog standards. Do not copy commit logs directly. Read the git history of the target branch, then summarize the changes under clear categories (Added, Changed, Fixed, Removed).
Security
- Sensitive Data: Use
flutter_secure_storagefor tokens and secrets. NEVER useSharedPreferencesor source code for secrets. - Traffic: All API communication MUST use HTTPS.
Testing Strategy (100% Coverage)
- Structure: All test files MUST strictly mirror the
lib/directory structure. - Mocks: Use
mocktailfor all dependency mocking. - Principles: 100% logic coverage for domain and bloc layers. Each test must be independent.
Environment & Flavors
- Configuration: Use a single
main.dart. Feed environment data via--dart-define-from-file=config/<flavor>.json. - Secrets: NEVER commit production secrets to Git.
Refer to specific files inside
skills/flutter/,skills/dart/, andskills/github/for detailed rules on Networking, UI/UX, Git, CI/CD, etc.
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.

