codebase-pattern-finder

Identify reusable code patterns and conventions across a monorepo codebase.

349|98|Updated Feb 1, 2018
One-click install
npx skills add https://github.com/shopsys/shopsys --skill codebase-pattern-finder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-pattern-finder
Source: https://github.com/shopsys/shopsys/tree/main/.agents/skills/codebase-pattern-finder
Command: npx skills add https://github.com/shopsys/shopsys --skill codebase-pattern-finder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers find and understand existing code patterns within a large codebase, enabling them to write consistent, high-quality code more efficiently.

Core Features & Use Cases

  • Find Similar Implementations: Locate comparable features, usage examples, and established patterns.
  • Extract Reusable Patterns: Show code structure, highlight key patterns, note conventions, and include test patterns.
  • Provide Concrete Examples: Offer actual code snippets with file:line references.
  • Use Case: A developer needs to implement a new GraphQL mutation. They can use this Skill to find existing GraphQL mutation patterns in the project-base/app/src/FrontendApi/Mutation/ directory to ensure consistency.

Quick Start

Use the codebase-pattern-finder skill to find examples of GraphQL mutation patterns.

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 reusable code patterns and implementation examples in a PHP monorepo?

To find reusable code patterns in a PHP monorepo, use a pattern finder to analyze the codebase with Grep, Glob, and Read tools, extracting concrete code snippets and file:line references that highlight established architectural conventions.

What is the best way to locate existing GraphQL resolver maps and mutation patterns in my codebase?

The best way to locate GraphQL resolver maps and mutation patterns is to search specific directories like the FrontendApi/Mutation path to identify comparable features, ensuring your new implementations adhere to existing package-first architecture conventions.

How do I extract modern PHP practices like constructor property promotion and attributes from a large codebase?

You extract modern PHP practices like constructor property promotion and attributes by analyzing the codebase structure to identify reusable patterns, highlighting key conventions and providing actual code snippets for consistent replication.

Can I use this to find facade implementations and repository usage patterns for refactoring?

Yes, you can find facade implementations and repository usage patterns for refactoring by searching the codebase to locate comparable features and established domain patterns, providing concrete examples to maintain high-quality consistency.

Does codebase pattern discovery work without specific dependencies or components?

Codebase pattern discovery works without specific dependencies or components, requiring only standard tools like Grep, Glob, and Read for comprehensive code analysis to extract implementation examples and architectural conventions.