Create comprehensive GitHub Copilot instructions for xiaomai-bot development #183
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 a comprehensive
.github/copilot-instructions.mdfile that provides GitHub Copilot with detailed instructions for working effectively in the xiaomai-bot codebase.What's Included
The instructions cover all essential aspects of development:
Build & Setup Process:
Code Quality & Testing:
Validation Scenarios:
Development Workflows:
Key Features
Validation Process
All commands and timings were measured in the actual environment:
uv sync: 24 seconds (120+ second timeout recommended)pytest tests/: 1.7 seconds, 30 tests passruff check/format: <1 second eachpre-commit run --all-files: 6.6 seconds first timeThe bot startup process was validated to show proper configuration loading and module installation, with expected failure at Mirai connection (external dependency).
This ensures any developer or AI agent can follow these instructions and have a fully functional development environment with working build, test, and validation processes.
Fixes #182.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.shcurl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.