Commit Graph

1 Commits

Author SHA1 Message Date
Copilot
f32d96e701 Add .github/copilot-instructions.md for AI-assisted development (#3963)
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->

Adds GitHub Copilot instructions file to guide AI code generation with
project-specific conventions and patterns.

**Contents:**
- Code style enforcement (SwiftFormat, SwiftLint rules, 120 char width,
`before-first` wrapping)
- Custom lint rules (no `Current` assignments, SFSafeSymbols usage)
- Project architecture (multi-platform: iOS/watchOS/macOS/CarPlay)
- Build setup (CocoaPods, Xcode 15.3+, code signing requirements)
- Common patterns (dependency injection via `Current`, networking APIs,
database layer)
- Testing and CI expectations

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->

N/A - Documentation only

## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

N/A - Internal development documentation

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->

None

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> Add .github/copilot-instructions.md sample


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bgoncal <5808343+bgoncal@users.noreply.github.com>
2025-11-12 15:18:17 +00:00