generate-path-instructions

Installation
SKILL.md

Path-Specific Instructions Generator

Overview

This skill generates scoped .github/instructions/*.md files that load Just-In-Time (JIT) when specific files are opened. It autonomously analyzes your repository to discover file patterns, extract scope-specific rules from existing code and documentation, and generate precise glob patterns for targeted instruction loading.

Key advantages over global instructions:

  • Context Economics: Load rules only when needed (vs always-on global instructions)
  • Higher Priority: Path instructions override global instructions
  • Precision: Target specific frameworks, file types, or directories

Key principle: Leverage LLM strengths for pattern discovery and rule extraction rather than manual specification.


Workflow

Step 1: Intent Validation

Related skills

More from canonical/copilot-collections

Installs
1
GitHub Stars
25
First Seen
Mar 27, 2026