Add .github/copilot-instructions.md to configure Copilot coding agent#199
Draft
Add .github/copilot-instructions.md to configure Copilot coding agent#199
Conversation
…guidance Agent-Logs-Url: https://github.com/LFPy/LFPykit/sessions/09c0e794-71fe-48ed-9190-335e40c6c491 Co-authored-by: espenhgn <2492641+espenhgn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Configure instructions for Copilot coding agent
Add .github/copilot-instructions.md to configure Copilot coding agent
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds repository-specific instructions for the GitHub Copilot coding agent as recommended in the best practices guide.
Description
New file:
.github/copilot-instructions.mdcovering:get_transformation_matrix()pattern returning M such that Y = M @ ICellGeometry,LinearModelbase class, subclassing contract, EEG/MEG dipole-moment pipelinepy.test -vtest runnerRelated Issue
Closes # (set up Copilot instructions)
Motivation and Context
Without a
copilot-instructions.md, Copilot has no project-specific context: it doesn't know the unit conventions, the mandatoryget_transformation_matrix()contract, the flake8 line-length setting, or how to run tests. This file gives the agent enough domain knowledge to generate consistent, correct contributions.How Has This Been Tested
Documentation-only change; no executable code modified.
Types of changes
Checklist
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
gh.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: