steering-matcher

Match file paths against steering patterns and return prioritized steering files.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/loriensleafs/brain --skill steering-matcher-loriensleafs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: steering-matcher
Source: https://github.com/loriensleafs/brain/tree/main/apps/claude-plugin/skills/steering-matcher
Command: npx skills add https://github.com/loriensleafs/brain --skill steering-matcher-loriensleafs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps orchestrators determine which steering files apply to the files being modified by matching file paths against steering patterns.

Core Features & Use Cases

  • Match file paths against glob patterns defined in steering files to identify applicable guidance.
  • Return applicable steering files sorted by priority to enable deterministic context injection.
  • Enable token-efficient prompts by injecting only relevant steering into agent prompts.

Quick Start

Use the steering-matcher to identify applicable steering for a set of changed files. Example: pwsh .claude/skills/steering-matcher/Get-ApplicableSteering.ps1 -Files $files -SteeringPath ".agents/steering"

  • Prepare a list of modified files, e.g. $files = @("src/claude/security.md", ".agents/security/SR-001-oauth-review.md")
  • Run the script to obtain an array of steering entries with fields like Name, Path, ApplyTo, Priority, suitable for injecting into prompts.

Frequently Asked Questions about steering-matcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject only relevant steering files for modified code paths into agent prompts?

To inject relevant steering files, match modified file paths against glob patterns defined in steering front matter. This returns a prioritized list of applicable steering entries to enable token-efficient, context-aware prompt generation.

What is the best way to match file paths against steering patterns using PowerShell?

Matching file paths against steering patterns uses a PowerShell script to parse front matter and perform glob matching. It outputs a structured array of steering entries sorted by priority for deterministic context injection.

How does glob pattern matching work for determining which steering rules apply to changed files?

Glob pattern matching determines applicable steering by comparing modified file paths against patterns in steering file front matter. It returns matching entries sorted by priority to support deterministic context injection.

Do I need PowerShell to run the steering-matcher script for context-aware prompt generation?

Yes, PowerShell is required to run the steering-matcher script. It executes the Get-ApplicableSteering.ps1 script to parse front matter patterns, perform glob matching, and output structured steering entries.

Can I use steering-matcher with my existing orchestrator to support token-efficient prompts?

Yes, steering-matcher integrates with orchestrators by returning applicable steering files in priority order. This enables token-efficient prompts by injecting only relevant steering context into agent prompts.

Why does my steering file priority order matter when injecting context into prompts?

Steering file priority order ensures deterministic context injection by sorting matching entries. This allows orchestrators to process applicable guidance in a structured, prioritized sequence for consistent prompt generation.