codebase-pattern-finder

Scan source files to identify and document codebase patterns with file:line references.

4|1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/gtheys/pi-my-rifle-ext --skill codebase-pattern-finder-gtheys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-pattern-finder
Source: https://github.com/gtheys/pi-my-rifle-ext/tree/main/skills/codebase-pattern-finder
Command: npx skills add https://github.com/gtheys/pi-my-rifle-ext --skill codebase-pattern-finder-gtheys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This section documents existing code patterns within a repository, enabling developers to locate, understand, and reuse proven approaches without editorial critique.

Core Features & Use Cases

  • Find Similar Implementations: Locate comparable features and usage examples across the codebase.
  • Extract Reusable Patterns: Show code structure, conventions, and file:line references to patterns.
  • Provide Concrete Examples: Present actual pattern instances and variations with their context.
  • Pattern Usage Context: Identify where patterns are employed across modules and projects.

Quick Start

Run the pattern finder against your repository to surface existing patterns with concrete file:line references.

Frequently Asked Questions about codebase-pattern-finder

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

FAQPage Schema
How do I find usage examples and code patterns across my codebase?

To find code patterns and usage examples across your codebase, scan your source files to surface API usage, structural patterns, and testing conventions. The tool collects file paths and line references to present concrete pattern instances with their context.

What is the best way to document existing code conventions in a repository?

Documenting existing code conventions involves cataloging structural patterns and usage examples without editorial critique. This approach locates comparable implementations and extracts reusable patterns, showing code structure alongside file:line references to help developers understand and reuse proven approaches.

Can I search for codebase patterns across different programming languages?

Yes, you can search for codebase patterns across varying languages. The pattern finder applies to codebases of varying sizes to surface API usage and structural patterns, identifying where patterns are employed across different modules and projects regardless of language.

How do I locate comparable implementations and reusable code structures?

To locate comparable implementations and reusable code structures, run a scan against your repository. This surfaces existing patterns with concrete file:line references, presenting actual pattern instances and variations to show where patterns are employed across modules.

Does cataloging codebase patterns require any external dependencies?

No, cataloging codebase patterns requires no external dependencies. The tool operates directly on your source files to collect file paths and line references, extracting pattern usage context and presenting concrete examples without needing additional setup.

When should I not use a pattern finder for my source code?

You should not use a pattern finder if you need editorial critique or refactoring of your source code. The tool strictly catalogs existing patterns and concrete examples to help locate and understand proven approaches, rather than evaluating or modifying the codebase.