@@ -103,6 +103,18 @@ code example here
103103- ** Stay Current** : Reference current versions and best practices
104104- ** Link Resources** : Include official documentation and authoritative sources
105105
106+ ### Instruction Altitude (Goldilocks Zone)
107+
108+ - Start with the minimum rule set that fully defines expected outcomes.
109+ - Add constraints after observed failures, not hypothetical edge cases.
110+ - Prefer high-signal examples over exhaustive decision tables.
111+
112+ | Altitude | Failure Mode | Result |
113+ | --- | --- | --- |
114+ | Over-specified | Brittle if-else prose | Breaks on unlisted cases |
115+ | Under-specified | Assumes shared context | Generic outputs |
116+ | Right altitude | Heuristics + examples | Stable, generalizable quality |
117+
106118### Common Patterns to Include
107119
1081201 . ** Naming Conventions** : How to name variables, functions, classes, files
@@ -180,6 +192,7 @@ function getUser(id: any): any {
180192- ** Missing examples** : Abstract rules without concrete code examples
181193- ** Contradictory advice** : Ensure consistency throughout the file
182194- ** Copy-paste from documentation** : Add value by distilling and contextualizing
195+ - ** Hypothetical-rule inflation** : Do not add rules for failures that have not occurred
183196
184197## Testing Your Instructions
185198
@@ -254,3 +267,4 @@ Description and example
254267
255268- [ Custom Instructions Documentation] ( https://code.visualstudio.com/docs/copilot/customization/custom-instructions )
256269- [ Awesome Copilot Instructions] ( https://github.com/github/awesome-copilot/tree/main/instructions )
270+ - [ System Prompt Altitude — Effective Context Engineering for AI Agents] ( https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents#the-anatomy-of-effective-context )
0 commit comments