본문으로 건너뛰기
cccskills
무료GitHub에 공개

prior-art

Discover how a codebase already handles a specific concern — search broadly, find every instance, and assess consistency. The "how does this app do X?" tool.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Behavior

Research how this codebase handles $ARGUMENTS. Explore the codebase thoroughly and report what you find.

Step 1: Search Broadly

Cast a wide net across the codebase. Use multiple search strategies:

  • Grep for keywords — search for terms related to the concern (e.g. for error reporting: error, exception, rescue, Sentry, Bugsnag, notify, report)
  • Check common Rails locations — initializers, middleware, concerns, base classes, config files, lib/
  • Check the Gemfile — are there gems related to this concern? What do they tell you about the approach?
  • Check application-level base classes — ApplicationController, ApplicationRecord, ApplicationJob — these often set patterns that everything inherits
  • Check for dedicated directories or files — service objects, concerns, lib/ modules that handle this concern

Don't stop at the first result. The goal is to find every place this concern is handled — the consistent pattern and the exceptions.

Step 2: Check Git History

For the key files involved in this concern:

  • git log --oneline -10 <file> to see recent changes
  • git log --all --oneline --grep="<keyword>" to find commits related to the concern
  • Look for: when the pattern was established, whether it's evolved, any recent changes or migrations from one approach to another

Git history reveals whether a pattern is settled or in flux — critical context before you build on top of it.

Step 3: Map What You Found

Report the findings in this order:

The pattern — describe the primary approach in plain English. One paragraph. "This codebase handles X by doing Y." If there's a clear convention, name it. If there are multiple approaches, name each.

Where it lives — list the key files and locations, grouped logically:

  • Configuration (initializers, middleware, config)
  • Base-level setup (ApplicationController, ApplicationRecord, etc.)
  • Implementation files (services, concerns, models, specific controllers)
  • Tests (how is this concern tested?)

For each file, include the path and a one-line description of its role.

The conventions — what rules does this codebase follow for this concern? Be specific:

  • Is there a consistent pattern, or multiple approaches?
  • Are there abstractions (base classes, modules, shared concerns) or is it ad-hoc?
  • What naming conventions are used?
  • Is there test coverage for this concern?

Inconsistencies — places where the pattern breaks or a different approach is used. Not a judgment — just "here's where it's different and what's different about it." These are the spots where you'd want to understand why before extending the pattern.

Git context — is this pattern stable, evolving, or recently changed? Any ongoing migrations or recent refactors worth knowing about?

How to extend it — given what exists, what's the right way to add to or build on this pattern? Follow the existing convention unless there's a good reason not to. Name the specific file or directory where new code should go, and the pattern it should follow.


Output Format

Report in plain prose with clear headings. Include file paths for every reference. This is a research artifact — it should be useful as a reference doc for anyone working in this area of the codebase.

Tone

Thorough and neutral. You're an archaeologist, not a critic. Report what exists, how it works, where it's consistent, and where it isn't. Save opinions for the "how to extend it" section — and even there, ground the recommendation in what the codebase already does.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

challenge

무료

Pressure-test an assumption, decision, or inherited constraint — Socratic cross-examination that forces you to defend or abandon your position

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

thoughtbot/rails-consultant262026년 9월 19일 업데이트

explain

무료

Explain what a piece of code does — a specific file, class, or method in close detail, or a user-facing flow as a concise system overview. What it does and why, not whether it's good.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

thoughtbot/rails-consultant262026년 9월 19일 업데이트

Take one new feature slice from idea to reviewed, committed code in a single guided pass — scope it into the smallest shippable slice, build it test-first with strict TDD, review and fix the diff, then commit it. Chains slice → test-driven-development → the built-in /code-review → git-commit. Not for reviewing an existing PR, upgrades, or open-ended design questions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

thoughtbot/rails-consultant262026년 9월 19일 업데이트

Turn the working changes into one or more atomic commits with well-written messages. Use whenever the user runs /git-commit or asks to commit their work, wrap up a feature, or "commit what I have."

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

thoughtbot/rails-consultant262026년 9월 19일 업데이트

hard-news

무료

Prepare to deliver difficult technical news to a client — a conversational prep session before the hard conversation happens

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

thoughtbot/rails-consultant262026년 9월 19일 업데이트

offboard

무료

Walk through the Designer/Developer wrap-up checklist for offboarding a client engagement — conversationally, one item at a time.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

thoughtbot/rails-consultant262026년 9월 19일 업데이트

thoughtbot의 스킬 모두 보기

이 스킬의 문제 신고