agentleFS
MicrosoftKnown publishermicrosoft/azure-linux-image-tools/copilot-instructions.md

azure-linux-image-tools

Copilot instructions36 starsChanged 6 months agoMITView on GitHub

This is a Go based repository with tools for os image creation and customization. The repo includes 2 main tools: imagecustomizer and osmodifier (aka EMU). Please follow these guidelines when contributing:

The file

We split this copilot-instructions.md into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run make go-fmt-all from toolkit to fix any formatting.

    line 6
  2. Very specific:

    Run make go-mod-tidy from toolkit folder to ensure go mod files are updated.

    line 7
  3. Very specific:

    Run make -C toolkit/tools/imagecustomizerschemacli/ to ensure schema is probably updated if an API is changed.

    line 8
  4. Very specific:

    Run make imagecustomizer-targz go-osmodifier from toolkit before committing any changes to ensure proper build with no errors.

    line 9
  5. Distinctive:

    Test: Tests are run as part of the build command

    line 13
  6. Distinctive:

    Follow Go best practices and idiomatic patterns

    line 23
  7. Distinctive:

    Write unit tests for new functionality.

    line 25
  8. Very specific:

    Document public APIs and complex logic.

    line 26

≈ “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 Go based repository with tools for os image creation and customization. The repo includes 2 main tools: imagecustomizer and osmodifier (aka EMU). Please follow these guidelines when contributing:

Code Standards

Required Before Each Commit

  • Run make go-fmt-all from toolkit to fix any formatting.
  • Run make go-mod-tidy from toolkit folder to ensure go mod files are updated.
  • Run make -C toolkit/tools/imagecustomizerschemacli/ to ensure schema is probably updated if an API is changed.
  • Run make imagecustomizer-targz go-osmodifier from toolkit before committing any changes to ensure proper build with no errors.

Development Flow

  • Build: make imagecustomizer-targz go-osmodifier
  • Test: Tests are run as part of the build command

Repository Structure

  • toolkit/tools/imagecustomizer: imagecustomizer executable
  • toolkit/tools/osmodifier: os modifier executable
  • toolkit/tools/internal/: Shared code for all tools
  • docs/: Documentation
  • test/: E2E VM based tests

Key Guidelines

  1. Follow Go best practices and idiomatic patterns
  2. Maintain existing code structure and organization
  3. Write unit tests for new functionality. Use table-driven unit tests when possible.
  4. Document public APIs and complex logic. Suggest changes to the docs/ folder when appropriate

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.