gh-gei
Copilot instructions481 starsChanged 18 months agoMITView on GitHub
This is a C# based repository that produces several CLIs that are used by customers to interact with the GitHub migration APIs. Please follow these guidelines when contributing:
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
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
- Very specific: line 6
Run dotnet format src/OctoshiftCLI.sln before committing any changes to ensure proper code formatting.
- Distinctive: line 22
Follow C# best practices and idiomatic patterns
- Distinctive: line 24
Write unit tests for new functionality.
- Very specific: line 25
When making changes that would impact our users (e.g.
- Distinctive: line 26
Never silently swallow exceptions.
- Distinctive: line 27
If an exception is expected/understood and we can give a helpful user-friendly message, then throw an OctoshiftCliException with a …
≈ “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
This is a C# based repository that produces several CLIs that are used by customers to interact with the GitHub migration APIs. Please follow these guidelines when contributing:
Code Standards
Required Before Each Commit
- Run
dotnet format src/OctoshiftCLI.slnbefore committing any changes to ensure proper code formatting. This will run dotnet format on all C# files to maintain consistent style
Development Flow
- Build:
dotnet build src/OctoshiftCLI.sln /p:TreatWarningsAsErrors=true - Test:
dotnet test src/OctoshiftCLI.Tests/OctoshiftCLI.Tests.csproj
Repository Structure
src/: Contains the main C# source code for the Octoshift CLIsrc/ado2gh/: Contains the ADO to GH CLI commandssrc/bbs2gh/: Contains the BBS to GH CLI commandssrc/gei/: Contains the GitHub to GitHub CLI commandssrc/Octoshift/: Contains shared logic used by multiple commands/CLIssrc/OctoshiftCLI.IntegrationTests/: Contains integration tests for the Octoshift CLIsrc/OctoshiftCLI.Tests/: Contains unit tests for the Octoshift CLI
Key Guidelines
- Follow C# best practices and idiomatic patterns
- Maintain existing code structure and organization
- Write unit tests for new functionality.
- When making changes that would impact our users (e.g. new features or bug fixes), add a bullet point to
RELEASENOTES.mdwith a user friendly brief description of the change - Never silently swallow exceptions.
- If an exception is expected/understood and we can give a helpful user-friendly message, then throw an OctoshiftCliException with a user-friendly message. Otherwise let the exception bubble up and the top-level exception handler will log and handle it appropriately.
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.

