ワンクリックで
research-codebase
Local codebase research — find patterns, trace flows, map dependencies without browsing the web
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Local codebase research — find patterns, trace flows, map dependencies without browsing the web
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Canonical algorithm for consuming DECISIONS_CONTEXT index — scan index, identify relevant entries, Read full bodies on demand, cite verbatim IDs inline.
This skill should be used when evaluating implementation quality before submission, checking correctness, security, and simplicity.
This skill should be used when performing a code review to apply the standard 6-step review process.
This skill should be used when the user asks to "add accessibility", "check ARIA", "handle keyboard navigation", "add focus management", or creates UI components, forms, or interactive elements. Provides WCAG 2.2 AA patterns for keyboard navigation, ARIA roles and states, focus management, color contrast, and screen reader support.
Consumption algorithm for FEATURE_KNOWLEDGE variable — pre-computed feature context
This skill should be used when reviewing code for SOLID violations, tight coupling, or layering issues.
| name | research-codebase |
| description | Local codebase research — find patterns, trace flows, map dependencies without browsing the web |
| user-invocable | false |
| allowed-tools | Read, Grep, Glob |
Local codebase research for finding patterns, tracing call flows, and mapping module dependencies. No external web access — all evidence comes from the local codebase.
CITE CODE, NOT ASSUMPTIONS
Every claim about the codebase must have file:line evidence. Patterns require 3+ examples to count as patterns. "I believe this is the pattern" without citation is a research failure. If you can't find the evidence, say so — don't invent it.
trusted — Local code is the authoritative source. All findings carry maximum confidence.
Loaded by Researcher agent when RESEARCH_TYPE is codebase. Covers:
Before reading anything, define the scope:
Use Glob and Grep to build a map before reading:
Glob: Find all files matching the area (e.g., src/auth/**/*.ts)
Grep: Search for key terms, function names, type names
Use this to build a candidate file list. Do not read more than 15 files total.
Read only the files that the structural scan identified as relevant. Read targeted ranges — not entire files — unless the file is under 50 lines.
For each observed pattern:
Only declare a pattern after finding 3+ consistent examples.
Before finalizing findings:
Produce findings in the Output Format below. Every claim cites file:line.
<!-- trust: trusted -->
# Codebase Research: {RESEARCH_QUESTION}
**Date**: {timestamp}
**Trust**: trusted
**Files Examined**: {n}
## Key Findings
1. {Finding with file:line evidence}
2. {Finding with file:line evidence}
## Evidence
| Claim | File | Lines |
|-------|------|-------|
| {pattern or fact} | `path/to/file.ts` | `45-52` |
## Pattern Table
| Pattern | Example | Occurrences |
|---------|---------|-------------|
| {name} | `file:line` | {n} instances |
## Dependency Map
| Module | Depends On | Notes |
|--------|-----------|-------|
| {mod} | `{dep}` | {relationship} |
## Confidence Assessment
| Finding | Confidence | Basis |
|---------|-----------|-------|
| {finding} | High | 3+ examples at file:line |
## Limitations
- {What was not investigated}
- {Scope boundaries}
| Anti-Pattern | Correct Approach |
|---|---|
| Reading entire files when only a section is needed | Read targeted line ranges |
| Claiming a pattern from 1-2 examples | Require 3+ consistent occurrences |
| Browsing without a defined question | Define scope in Step 1 first |
| Asserting file structure without Glob verification | Run Glob before claiming structure |
| Treating test code as production patterns | Note which context examples come from |