chore(repo): add Copilot instructions and setup steps for coding agent onboarding - #95
Conversation
Co-authored-by: xsahil03x <25670178+xsahil03x@users.noreply.github.com>
|
@copilot , did you take these cursor rules and patterns into account while creating this? |
Co-authored-by: xsahil03x <25670178+xsahil03x@users.noreply.github.com>
Yes, I've now updated the Copilot instructions to explicitly reference the cursor rules and patterns. Added a new "Implementation Patterns" section that points to all the detailed
Also enhanced the Core Principles section to align with the cursor rules (Freezed 3.0 mixed mode, early returns, extension functions for data mapping, constructor injection). Commit: b19fddf |
Co-authored-by: xsahil03x <25670178+xsahil03x@users.noreply.github.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
=======================================
Coverage 85.86% 85.86%
=======================================
Files 124 124
Lines 4300 4300
=======================================
Hits 3692 3692
Misses 608 608 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot can you also create copilot-setup-steps.yaml for yourself based on the requirements in the instructions? |
Co-authored-by: xsahil03x <25670178+xsahil03x@users.noreply.github.com>
Head branch was pushed to by a user without write access
Created
The setup file ensures Copilot has the required environment (Flutter, Dart, Melos) before starting work on the repository. Commit: 46223a9 |
|
@copilot , the A copilot-setup-steps.yml file looks like a normal GitHub Actions workflow file, but must contain a single copilot-setup-steps job. This job will be executed in GitHub Actions before Copilot starts working. Here is a simple example of a copilot-setup-steps.yml file for a TypeScript project that clones the project, installs Node.js and downloads and caches the project's dependencies. You should customize this to fit your own project's language(s) and dependencies: In your copilot-setup-steps.yml file, you can only customize the following settings of the copilot-setup-steps job. If you try to customize other settings, your changes will be ignored.
Any value that is set for the fetch-depth option of the actions/checkout action will be overridden to allow the agent to rollback commits upon request, while mitigating security risks. For more information, see actions/checkout/README.md. Your Once you have merged the yml file into your default branch, you can manually run the workflow from the repository's Actions tab at any time to check that everything works as expected. For more information, see Manually running a workflow. When Copilot starts work, your setup steps will be run, and updates will show in the session logs. See Tracking GitHub Copilot's sessions. If any setup step fails by returning a non-zero exit code, Copilot will skip the remaining setup steps and begin working with the current state of its development environment. Note: We don't have to do checks if the environment is available or not. Keep it simple like we have in our workflows. |
CLA
Description of the pull request
Adds
.github/copilot-instructions.mdand.github/copilot-setup-steps.yamlfollowing GitHub's best practices for Copilot coding agents. Enables agents to work efficiently without extensive exploration by documenting non-obvious constraints and validated workflows, plus automated environment setup.Copilot Instructions (~1,100 words, 2 pages)
pubspec.yamlfiles.cursor/rules/for comprehensive implementation guidesCopilot Setup Steps
Automated environment setup file that defines 5 steps for preparing the Copilot agent environment:
melos bootstrap --verboseImpact
Reduces agent exploration time and CI failures by documenting:
melos.yaml)Integrates with existing documentation by referencing
AGENTS.mdfor AI agent patterns and.cursor/rules/for detailed implementation patterns (Freezed 3.0 mixed mode, repository pattern, StateNotifier, query specifications, documentation style).Updates Made
.cursor/rules/patterns including project overview, data models, repository pattern, state management, query specifications, and documentation stylecopilot-setup-steps.yamlfor automated environment preparationScreenshots / Videos
N/A - Documentation only
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.