Add Copilot instructions for repository conventions#290
Draft
Add Copilot instructions for repository conventions#290
Conversation
Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Set up Copilot instructions for the repository
Add Copilot instructions for repository conventions
Feb 11, 2026
anna328p
requested changes
Feb 11, 2026
Collaborator
anna328p
left a comment
There was a problem hiding this comment.
Please add notes that the project is undergoing modernization and refactoring.
- new architecture: dry-system, rom-rb, etc.
- new Discord features: slash commands, components v2 in favor of embeds, etc.
- general refactors: rewrite modules to reduce and centralize global state; improve error handling; document and define interfaces; follow general best practices for modern, clean architecture, while maintaining elegant code with a distinct, personal style, with FP influences.
The current choices should only be preserved in the cases where they're good.
…tures Co-authored-by: anna328p <9790772+anna328p@users.noreply.github.com>
Contributor
Author
Added modernization notes in commit 8bd7a24. The instructions now include:
|
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.
Adds
.github/copilot-instructions.mdto configure GitHub Copilot with project-specific context and conventions.Contents
Discordrb::Commands::CommandContainerextension (legacy), guidance toward slash commands and modern interactionst()helper with entries inshare/locales/en.ymlRails::Html::FullSanitizerfor HTML in wiki contentExample patterns documented
All examples extracted from actual codebase usage.
Key Guidance
The instructions clearly mark legacy patterns and direct contributors to prefer modern approaches when they conflict with existing conventions. Legacy patterns should only be preserved when they represent genuinely good design choices.
Original prompt
💡 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.