スキル一覧に戻る
handresc1127

codebase-research

by handresc1127

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


Codebase Research

This skill provides research patterns for bug investigation, following the HumanLayer documentarian philosophy.

Core Principles

The Documentarian Philosophy

From HumanLayer's research_codebase pattern:

YOUR ONLY JOB IS TO DOCUMENT AND EXPLAIN THE CODEBASE AS IT EXISTS TODAY

  • DO NOT suggest improvements or changes
  • DO NOT perform root cause analysis (that's a separate phase)
  • DO NOT critique the implementation
  • ONLY describe what exists, where it exists, how it works

Research Best Practices

  1. Read files FULLY first - Never use limit/offset for initial reads
  2. Use a single comprehensive subagent - VS Code subagents run sequentially
  3. Wait for subagent to complete - Synthesize only after it returns
  4. Verify every claim - Include file:line references
  5. Stay factual - No opinions, evaluations, or suggestions

VS Code Copilot Tool Reference

Tool IdentifierPurposeExample Usage
search/codebaseSemantic searchFind conceptually related code
search/fileSearchFile name patternsFind *.test.ts files
search/textSearchGrep-style searchFind exact error messages
search/usagesSymbol usagesTrace function calls
read/readFileRead file contentsGet full context
web/githubRepoGit/GitHub infoHistorical context
runSubagentSpawn subagentComprehensive research
edit/editFilesCreate filesSave research documents

Subagent Research Pattern

Since VS Code subagents run sequentially (not in parallel), combine all research tasks into a single comprehensive subagent prompt:

Use a subagent to perform comprehensive codebase research for bug {TICKET-ID}.

## Research Tasks

### Task 1: Locate Relevant Code
Find all locations related to: {bug symptoms}
- Search for: {keywords, function names, error messages}
- Return: Table of file:line references

### Task 2: Analyze Code Flow
For relevant files, document:
- Entry points, data flow, dependencies, exit points
- Return: Flow diagram with file:line citations

### Task 3: Find Related Patterns
Search for:
- Similar code, related tests, documentation
- Return: Examples with file:line references

## Rules
- Document only, no evaluations
- Include file:line for every claim

Research Document Structure

hypothesis.md

Initial investigation hypotheses created before research:

  • Symptom analysis
  • Investigation areas with search targets
  • Priority order

codebase-research.md

Comprehensive research findings:

  • Code locations table
  • Execution flow diagram
  • Dependencies and relationships
  • Exact code snippets with citations

verified-research.md

Verification of research accuracy:

  • Claim verification tables
  • Corrections made
  • Confidence ratings

Templates

See the templates folder for:

Forbidden Patterns

Never use these phrases in research documents:

  • "This could be improved by..."
  • "A better approach would be..."
  • "This is a code smell..."
  • "Consider refactoring..."
  • "The problem is..."
  • "This should be..."

References

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です