agentleFS
GitHubKnown publishergithub/gh-gei/.github/copilot-instructions.md

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
  1. Very specific:

    Run dotnet format src/OctoshiftCLI.sln before committing any changes to ensure proper code formatting.

    line 6
  2. Distinctive:

    Follow C# best practices and idiomatic patterns

    line 22
  3. Distinctive:

    Write unit tests for new functionality.

    line 24
  4. Very specific:

    When making changes that would impact our users (e.g.

    line 25
  5. Distinctive:

    Never silently swallow exceptions.

    line 26
  6. Distinctive:

    If an exception is expected/understood and we can give a helpful user-friendly message, then throw an OctoshiftCliException with a …

    line 27

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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.sln before 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 CLI
  • src/ado2gh/: Contains the ADO to GH CLI commands
  • src/bbs2gh/: Contains the BBS to GH CLI commands
  • src/gei/: Contains the GitHub to GitHub CLI commands
  • src/Octoshift/: Contains shared logic used by multiple commands/CLIs
  • src/OctoshiftCLI.IntegrationTests/: Contains integration tests for the Octoshift CLI
  • src/OctoshiftCLI.Tests/: Contains unit tests for the Octoshift CLI

Key Guidelines

  1. Follow C# best practices and idiomatic patterns
  2. Maintain existing code structure and organization
  3. Write unit tests for new functionality.
  4. When making changes that would impact our users (e.g. new features or bug fixes), add a bullet point to RELEASENOTES.md with a user friendly brief description of the change
  5. Never silently swallow exceptions.
  6. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.