Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Configures GitHub Copilot coding agent instructions per best practices to provide context about this Home Assistant custom integration.

Changes

  • Created .github/copilot-instructions.md with:
    • Project context: HA custom integration for SPAN Panel circuit-level monitoring
    • Tech stack: Python 3.13.2+, HA 2025.12.4, Poetry, MyPy/Ruff/Bandit toolchain
    • Coding standards: Import rules (absolute, top-level only), type hints, docstrings, async patterns
    • Development commands: setup, test, lint, format workflows
    • Boundaries: 10 forbidden actions (e.g., no pip, no imports in functions, no breaking entity IDs without migration)
    • Patterns: DataUpdateCoordinator, ConfigFlow, entity naming conventions
    • Testing guidelines and common code patterns

The instructions guide Copilot on repository structure, Home Assistant integration patterns, and critical constraints like entity ID stability and energy statistics handling.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • gh.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Set up Copilot instructions</issue_title>
<issue_description>Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.

</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Note

Introduces a comprehensive guide for Copilot and contributors to align with this Home Assistant custom integration.

  • Adds /.github/copilot-instructions.md detailing project context (SPAN Panel HA integration), tech stack/tooling, and repo structure
  • Defines coding standards: absolute/top-level imports, strict typing/docstrings, line length/formatting, async I/O, coordinator/config flow patterns
  • Documents development commands for test, lint, type-check, format, security, and complexity
  • Specifies boundaries: forbidden actions (e.g., no pip, no in-function imports), files not to modify, and areas requiring caution (entity migrations, energy stats, auth)
  • Provides testing guidelines, common code patterns, naming conventions, and references

Written by Cursor Bugbot for commit d553c7f. This will update automatically on new commits. Configure here.

Copilot AI and others added 2 commits January 19, 2026 06:34
Co-authored-by: cayossarian <23534755+cayossarian@users.noreply.github.com>
Co-authored-by: cayossarian <23534755+cayossarian@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up Copilot instructions for the repository Add Copilot instructions for repository Jan 19, 2026
Copilot AI requested a review from cayossarian January 19, 2026 06:36
@cayossarian cayossarian marked this pull request as ready for review January 19, 2026 06:50
@cayossarian cayossarian merged commit 7470e94 into main Jan 19, 2026
8 checks passed
@cayossarian cayossarian deleted the copilot/setup-copilot-instructions branch January 19, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

2 participants