Reviewed by 20X · No signed release verified
- Works with (as stated by the author)
- GitHub Copilot
Review details
- Human review
- Review recorded for these files
- Limited checks
- Limited checks recorded (v2.1.0)
- Source
- Source not verified
A verified signature checks published file bytes against a trusted publisher’s signed manifest. It does not verify safety, authorship, rights or assistant use.
Declarations and limited checks do not guarantee safety or sharing rights. Review the files before use. Access that the author has not stated is unknown.
How to use it
- 1Save the file in your repository under .github/instructions/.
- 2Check the applyTo pattern at the top of the file and narrow it to the files it should cover.
- 3Commit the file so everyone using GitHub Copilot in the repository gets the same guidance.
Community results
0 reportsNo one has shared a result yet.
1 file. Filenames and raw files are in Technical details.
description: 'Guidelines for structuring code and projects to maximize GitHub Copilot effectiveness through better context management' applyTo: '**'
Context Engineering
Principles for helping GitHub Copilot understand your codebase and provide better suggestions.
Project Structure
- Use descriptive file paths:
src/auth/middleware.ts>src/utils/m.ts. Copilot uses paths to infer intent. - Colocate related code: Keep components, tests, types, and hooks together. One search pattern should find everything related.
- Export public APIs from index files: What's exported is the contract; what's not is internal. This helps Copilot understand boundaries.
Code Patterns
- Prefer explicit types over inference: Type annotations are context.
function getUser(id: string): Promise<User>tells Copilot more thanfunction getUser(id). - Use semantic names:
activeAdultUsers>x. Self-documenting code is AI-readable code. - Define constants:
MAX_RETRY_ATTEMPTS = 3> magic number3. Named values carry meaning.
Working with Copilot
- Keep relevant files open in tabs: Copilot uses open tabs as context signals. Working on auth? Open auth-related files.
- Position cursor intentionally: Copilot prioritizes code near your cursor. Put cursor where context matters.
- Use Copilot Chat for complex tasks: Inline completions have minimal context. Chat mode sees more files.
Context Hints
- Add a COPILOT.md file: Document architecture decisions, patterns, and conventions Copilot should follow.
- Use strategic comments: At the top of complex modules, briefly describe the flow or purpose.
- Reference patterns explicitly: "Follow the same pattern as
src/api/users.ts" gives Copilot a concrete example.
Multi-File Changes
- Describe scope first: Tell Copilot all files involved before asking for changes. "I need to update the User model, API endpoint, and tests."
- Work incrementally: One file at a time, verifying each change. Don't ask for everything at once.
- Check understanding: Ask "What files would you need to see?" before complex refactors.
When Copilot Struggles
- Missing context: Open the relevant files in tabs, or explicitly paste code snippets.
- Stale suggestions: Copilot may not see recent changes. Re-open files or restart the session.
- Generic answers: Be more specific. Add constraints, mention frameworks, reference existing code.
Latest changes
Initial reviewed release.
Version history
v1.0.0
Initial reviewed release.
File access pausedFile verification
- File integrity
No signed release verified for this version.
This checks published bytes, not safety, authorship, rights or assistant use.
Full compatibility
As stated by the author: GitHub Copilot
Included files
1 filecontext-engineering.instructions.md
markdownPublic file access is temporarily paused.
Use in your own tool
Save this resource and connect your assistant in the Use with flow before copying a test request.
Related resources
Vue.js Guidelines
Vue 3 guidance: Composition API, components, state, performance, and testing.
GitHub Copilot, VS Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
Power BI Report Design
Report design guidance: layout, visuals, accessibility, and storytelling in Power BI.
GitHub Copilot, VS Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
Devil's Advocate Mode
A Copilot custom agent that stress-tests ideas by finding flaws, risks, and edge cases.
GitHub Copilot
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11