Repository navigation
Add Copilot coding agent instructions for efficient repository onboarding - #200
Merged
Merged
Conversation
Co-authored-by: inhere <[email protected]>
Co-authored-by: inhere <[email protected]>
Copilot
AI
changed the title
[WIP] Your task is to "onboard" this repository to Copilot coding agent by adding a .github/copilot-instructions.md file in the repository that contains information describing how a coding agent seeing it for the first time can work most efficiently.
You wi...
Add Copilot coding agent instructions for efficient repository onboarding
Aug 20, 2025
inhere
approved these changes
Aug 20, 2025
Member
|
@copilot fix markdown format error. |
… list indentation Co-authored-by: inhere <[email protected]>
Contributor
Author
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.
This PR adds comprehensive
.github/copilot-instructions.mdfile to onboard Copilot coding agents to the gookit/config repository efficiently. The instructions provide everything a coding agent needs to work effectively without extensive exploration.What's Included
Repository Overview: Describes gookit/config as a Go configuration management library supporting multiple formats (JSON, YAML, TOML, INI, HCL, ENV, Flags) with 40+ Go source files and >95% test coverage.
Validated Build & Test Instructions: All commands have been tested and include:
go mod tidy- dependency management (always run first)go build ./...- compilation verificationgo test -cover ./...- full test suite (~3 seconds runtime)staticcheckandrevive(matching CI requirements)Project Architecture Details: Documents the driver pattern for format support, core files layout, and the relationship between main package and format-specific driver packages.
CI/CD Pipeline Information: Details the GitHub Actions workflows (unit tests on Go 1.19-1.24, linting, CodeQL security scanning) so agents can replicate validation locally.
Development Patterns: Common patterns for adding new format drivers, configuration options, and maintaining backward compatibility.
Benefits
The instructions are concise (under 2 pages) and focus on actionable information rather than task-specific guidance, making them valuable for any coding task on this repository.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.