Skip to content

Commit 147ee82

Browse files
committed
Add AI prompt formatting guidelines to copilot instructions
1 parent baca292 commit 147ee82

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ Key methods on `Connection` class:
190190
- **Async/await** - Preferred over `.then()` chains
191191
- **Error handling** - Wrap BLE/API calls in try-catch, log with `debugError()`
192192

193+
### AI Prompt Formatting
194+
When generating prompts for AI agents or subagents, always format them in markdown code blocks using four backticks (````markdown) to prevent accidentally closing the code block when the prompt itself contains triple backticks (```):
195+
196+
````markdown
197+
Example prompt for AI agent:
198+
- Task description here
199+
- Can safely include ```code examples``` without breaking the outer block
200+
````
201+
193202
## Key Files Reference
194203

195204
- `content/wardrive.js:connect()` (line ~2020) - 10-step connection workflow

0 commit comments

Comments
 (0)