extract-project-patterns

Identifies stable code templates from a project using git-derived metrics.

11|3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/artk0de/TeaRAGs-MCP --skill extract-project-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-project-patterns
Source: https://github.com/artk0de/TeaRAGs-MCP/tree/main/.claude-plugin/tea-rags/skills/extract-project-patterns
Command: npx skills add https://github.com/artk0de/TeaRAGs-MCP --skill extract-project-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the issue of AI agents generating code based on low-quality or unstable examples by identifying and surfacing battle-tested, high-quality reference code from within the project.

Core Features & Use Cases

  • Three-Level Locality Cascade: Automatically searches for templates across the target subdomain, broader domain, and project-wide scope.
  • Quality-Gated Retrieval: Filters results based on git history signals like bug-fix rates, commit frequency, and code age to ensure only stable code is suggested.
  • Use Case: When an agent is tasked with writing a new service, it uses this skill to find existing, proven implementations in the codebase to use as a structural and stylistic template.

Quick Start

Invoke the extract-project-patterns skill by providing a path pattern or behavior query to retrieve the most stable and relevant code templates for your current task.

Frequently Asked Questions about extract-project-patterns

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

FAQPage Schema
How do I find high-quality code templates to guide AI code generation?

To find high-quality code templates for AI code generation, use a tool that surfaces battle-tested reference code. This skill identifies proven implementations by filtering code chunks based on git-derived stability metrics and authorship signals.

How does git history improve code quality when generating code with AI?

Git history improves AI code quality by providing stability metrics like bug-fix rates, commit frequency, and code age. This quality-gated retrieval ensures AI agents use stable, proven implementations rather than unstable or low-quality examples from the codebase.

How do I retrieve stable code patterns from a specific subdomain for refactoring?

To retrieve stable code patterns for refactoring, provide a path pattern or behavior query to invoke the extraction process. It uses a three-level locality cascade to search across the target subdomain, broader domain, and project-wide scope.

Can I use RAG to extract proven implementations from my existing codebase?

Yes, you can use RAG to extract proven implementations by integrating semantic search capabilities with git-enriched metadata. This combination validates code quality and authorship signals before surfacing the most relevant, battle-tested templates for your task.

When do I need battle-tested code templates for AI-driven development?

You need battle-tested code templates for AI-driven development when an agent is tasked with writing a new service and requires existing, proven implementations. This prevents the AI from generating code based on low-quality or unstable examples within the project.

What are the limitations of using git history to filter code for AI generation?

A limitation of using git history to filter code for AI generation is the strict dependency on git-enriched metadata and semantic search capabilities. Without comprehensive commit history and authorship signals, the tool cannot accurately validate code quality before surfacing recommendations.