analyze-repo-patterns

Scan a repository and recent merged PRs to summarize coding pattern usage.

5|7|Updated Jul 21, 2014
One-click install
npx skills add https://github.com/lucidash/dotfiles --skill analyze-repo-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-repo-patterns
Source: https://github.com/lucidash/dotfiles/tree/main/claude/skills/analyze-repo-patterns
Command: npx skills add https://github.com/lucidash/dotfiles --skill analyze-repo-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams understand how particular coding patterns or keywords are used across a codebase, making it easier to align conventions and guide PR reviews.

Core Features & Use Cases

  • Pattern usage analysis: Scan the repository to identify where a specified pattern appears in code files.
  • PR pattern tracing: Retrieve recent merged PRs to show how patterns are employed in real changes.
  • Contextual snippets: Provide contextual file excerpts illustrating usage for quick assessment.

Quick Start

Run analyze-repo-patterns with a target pattern, for example: analyze-repo-patterns useConfirmDialog

Frequently Asked Questions about analyze-repo-patterns

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

FAQPage Schema
How do I analyze code patterns across my git repository?

You can analyze code patterns by performing repository-wide search commands and git queries to identify where a specified pattern appears in code files. It extracts contextual file excerpts to summarize pattern adoption.

Can I trace how a coding convention is used in recent merged PRs?

Yes, you can trace how a coding convention is used in recent merged PRs by retrieving merged changes and extracting diffs. This reveals how patterns are employed in real changes alongside contextual file excerpts.

What's the best way to grep a codebase for pattern usage examples?

The best way to grep a codebase for pattern usage examples is performing repository-wide search commands to scan files, then extracting contextual snippets. This provides file excerpts illustrating pattern usage for quick assessment.

Does this approach work for improving PR reviews through convention checking?

Yes, this approach works for improving PR reviews by tracing how patterns shape your codebase and decisions. It aligns conventions by providing contextual snippets and usage examples extracted from merged PRs for quick assessment.

Do I need any dependencies to scan my repository for code patterns?

No dependencies are required to scan your repository for code patterns. The skill operates independently using repository-wide search commands, git queries, and diff extraction to analyze pattern adoption without external modules.