Skip to main content

Creating Instructions for Specific Needs

Custom instructions are cool. Path-based instructions are cool. You know what's cooler? Instructions that target a very specific need, like service logic!

We don't have to limit ourselves to thinking in terms of directories and file extensions; we can apply style guides to specific types of code! You do this with Copilot by targeting the directory where that code lives.

In this example we go after our services because, thankfully, our services live in a directory called services! It's still path-based, sure, but we can now get contextual because we have a directory name.

Updated on Feb 5, 2026