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
- Very specific: line 6
Run make go-fmt-all from toolkit to fix any formatting.
- Very specific: line 7
Run make go-mod-tidy from toolkit folder to ensure go mod files are updated.
- Very specific: line 8
Run make -C toolkit/tools/imagecustomizerschemacli/ to ensure schema is probably updated if an API is changed.
- Very specific: line 9
Run make imagecustomizer-targz go-osmodifier from toolkit before committing any changes to ensure proper build with no errors.
- Distinctive: line 13
Test: Tests are run as part of the build command
- Distinctive: line 23
Follow Go best practices and idiomatic patterns
- Distinctive: line 25
Write unit tests for new functionality.
- Very specific: line 26
Document public APIs and complex logic.
≈ “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 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-allfromtoolkitto fix any formatting. - Run
make go-mod-tidyfromtoolkitfolder 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-osmodifierfromtoolkitbefore 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 executabletoolkit/tools/osmodifier: os modifier executabletoolkit/tools/internal/: Shared code for all toolsdocs/: Documentationtest/: E2E VM based tests
Key Guidelines
- Follow Go best practices and idiomatic patterns
- Maintain existing code structure and organization
- Write unit tests for new functionality. Use table-driven unit tests when possible.
- Document public APIs and complex logic. Suggest changes to the
docs/folder when appropriate
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.

