prior-art

Analyze Rails codebase patterns via git history for consistent feature development.

17|1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/thoughtbot/rails-consultant --skill prior-art-thoughtbot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prior-art
Source: https://github.com/thoughtbot/rails-consultant/tree/main/skills/prior-art
Command: npx skills add https://github.com/thoughtbot/rails-consultant --skill prior-art-thoughtbot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the guesswork and inconsistency that arises when adding new features to an existing Rails codebase by revealing established patterns and architectural conventions.

Core Features & Use Cases

  • Pattern Discovery: Greps the entire codebase to identify how specific concerns like authorization, background jobs, or error handling are implemented.
  • Contextual Analysis: Examines Git history to determine if a pattern is stable, evolving, or recently refactored.
  • Use Case: Before implementing a new Stripe webhook handler, use this skill to find every existing webhook handler in the app to ensure your new code follows the established architectural style.

Quick Start

Use the prior-art skill to research how the current codebase handles user authorization and identify the primary implementation pattern.

Frequently Asked Questions about prior-art

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

FAQPage Schema
How do I find existing codebase patterns before adding a new feature?

To find existing codebase patterns, you can analyze your codebase to identify how concerns like authorization or background jobs are implemented. This ensures your new feature development matches established architectural conventions and maintains consistency.

What is the best way to ensure consistency in a large Rails application architecture?

Ensuring consistency in a large Rails application architecture requires analyzing established patterns for service objects, middleware, and base class inheritance. Evaluating the historical evolution of these patterns via Git log analysis provides actionable extension recommendations for new features.

How do I check if a codebase pattern is stable or recently refactored?

To check if a codebase pattern is stable or recently refactored, examine your project's Git history. Analyzing commit logs reveals whether an architectural pattern is evolving or stable, providing critical context before you extend or modify that implementation.

Can I analyze middleware and service object conventions in my Rails codebase?

Yes, you can analyze middleware and service object conventions in your Rails codebase. The analysis targets Rails-specific concerns by grepping the entire application to identify established implementation patterns for these architectural components.

When do I need to analyze prior art before implementing a new webhook handler?

You need to analyze prior art before implementing a new webhook handler when you want to match the established architectural style. Searching the codebase for existing handlers ensures your new code follows the same implementation patterns and conventions already in place.