file-path-matcher

Match file paths against path conditions in .claude/rules.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/biwakonbu/cc-plugins --skill file-path-matcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-path-matcher
Source: https://github.com/biwakonbu/cc-plugins/tree/main/plugins/memory-optimizer/skills/file-path-matcher
Command: npx skills add https://github.com/biwakonbu/cc-plugins --skill file-path-matcher

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill determines if a given file path matches any paths conditions in .claude/rules.

Core Features & Use Cases

  • Matching: checks all rule files under .claude/rules for paths patterns and tests a given path against them.
  • Visualization: shows which rules match and the match patterns.
  • Planning: helps developers understand which rules cover a file before applying changes.

Quick Start

Use the file-path-matcher skill to test whether a given file path matches any .claude/rules/ paths, for example: src/components/Button.tsx

Frequently Asked Questions about file-path-matcher

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

FAQPage Schema
How do I check if a file path matches rules in .claude/rules?

To validate a file path against .claude/rules, you test it against deterministic glob-style patterns found in rule frontmatter. The matcher reports all matching rules and their specific patterns for review.

What is glob-style path matching for .claude/rules?

Glob-style path matching validates file paths against deterministic pattern conditions defined in the frontmatter of your .claude/rules files to confirm rule applicability.

How do I visualize which rules cover a specific file before editing?

You visualize rule coverage by testing a target file path against all .claude/rules files. The matcher displays which specific rules match the path along with their corresponding patterns.

Do I need bash to validate file paths against .claude/rules?

Bash is listed among the skill's keywords, but the core mechanism applies deterministic glob-style matching against rule frontmatter paths to validate file paths and report matching rules.

Can I test path patterns against multiple rule files at once?

Yes, the matcher scans all rule files under .claude/rules simultaneously. It applies glob-style matching and reports every rule that satisfies the given file path conditions.