Copilot Instructions
Guides Copilot to write small, explicit ESP32 test code with PlatformIO and Arduino, prioritizing reliability over features.
What this file does
Guides Copilot to write small, explicit ESP32 test code with PlatformIO and Arduino, prioritizing reliability over features.
When to use it
- Starting an ESP32 reliability experiment with PlatformIO
- Wanting Copilot to avoid broad refactors and external dependencies
- Building Bluetooth test scenarios with disconnect/reconnect handling
- Needing disciplined, minimal diffs and compile checks after changes
Assumes this stack
Copilot Instructions
Project scope
- This workspace is for ESP32 reliability experiments using PlatformIO + Arduino.
- Prefer small, readable changes over broad refactors.
- Keep each file focused on one test scenario.
Coding rules
- Keep logic simple and explicit; avoid clever patterns.
- Use clear variable names and short functions.
- Do not add external dependencies unless explicitly requested.
- Keep serial logs concise and useful for diagnostics.
- Guard long-running input paths (timeouts, max lengths, reset paths).
Bluetooth test conventions
- Treat CR/LF differences explicitly.
- Bound all message buffers to avoid memory growth.
- Preserve behavior under disconnect/reconnect.
- Include basic counters for long-run reliability checks.
Hardware interaction
- Use GPIO 2 LED for quick visual status when practical.
- LED behavior should be obvious and documented in setup comments or logs.
- Avoid blocking delays in
loop(); keep response timing steady.
Edit discipline
- Make minimal diffs and do not touch unrelated files.
- Keep formatting and style consistent with existing code.
- If behavior changes, summarize what changed and why.
- Run a compile check after modifications when possible.
Communication expectations
- Ask before adding "nice to have" features.
- If a requirement is ambiguous, choose the simplest interpretation.
- Prefer practical reliability over feature completeness in test files.
What's inside
6 sections: project scope, coding rules, Bluetooth conventions, hardware interaction, edit discipline, communication expectations
Change this for your project
- Replace
GPIO 2with your own LED pin if different - Replace
ESP-32-hello-worldwith your repository name
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Related Documents
System Prompt
Defines the identity, capabilities, response style, and spec workflow for an AI assistant named Kiro that helps developers build features incrementally.
World Engine AI Coding Instructions
Defines game scope, architecture, ESLint rules, git workflow, and open-source research policy for a strategic fantasy RPG project.
GitHub Copilot Instructions
Defines coding standards, architecture rules, PR expectations, and output format for a Laravel + Inertia + Vue 3 project.
Business Intelligence Dashboard - Comprehensive GitHub Copilot Instructions
Defines the full stack, setup commands, security rules, and testing strategy for a Next.js SaaS analytics platform with multi-tenant isolation.