ci: add copilot-instructions.md for AI coding agents#2504
Merged
Conversation
|
Hey @BrendanWalsh 👋! We use semantic commit messages to streamline the release process. Examples of commit messages with semantic prefixes:
To test your commit locally, please follow our guild on building from source. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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.
What changes were proposed in this pull request?
Adds
.github/copilot-instructions.md— a structured guide that helps AI coding agents (GitHub Copilot, Codex, Claude, Gemini) understand SynapseML's architecture and conventions.Why this matters
SynapseML has several non-obvious patterns that AI agents consistently get wrong without explicit guidance:
Wrappabletrait. Agents try to edit generated files.Wrappable(for Python codegen),SynapseMLLogging(for telemetry), companion objects (for serialization).black==22.3.0,scalastylewith specific rules, conventional commit PR titles.What's covered (245 lines)
Wrappable→makePyFile()→_ClassName.pyworks, what to edit vs notResearch basis
Modeled after best practices from:
Key principle: focus on traps and non-obvious patterns that agents get wrong, not generic project descriptions.
How was this patch tested?
Documentation-only change. The file is read automatically by GitHub Copilot when working on PRs and issues in this repository.
Does this PR introduce any user-facing change?
No — improves AI-assisted development experience for contributors.