GitHub Repository Orientation
Use when / do not use when
Section titled “Use when / do not use when”Use this workflow for repository onboarding, architecture orientation, locating ownership or conventions, and estimating change impact. Do not use it for a formal pull-request review or to modify repository state.
Inputs to resolve
Section titled “Inputs to resolve”Identify the repository, the user’s goal, the relevant product or component, and the desired depth. If the repository is ambiguous, resolve the owner and name before reading files.
Tool workflow
Section titled “Tool workflow”The upstream names below are capability labels. Select the currently advertised MCP tool whose description identifies that upstream capability.
- Use
get_file_contentswithout a ref on the root so the initial view follows the repository default. Read the primary README, contributor guidance, build manifests, and local agent instructions. - Use bounded
list_branchesandlist_commitscalls when branch shape or current activity matters to the user’s goal. - Use
list_issuesandlist_pull_requestswith bounded filters to identify related active work, not to summarize the entire backlog. - Use
search_codefor concrete concepts, entrypoints, public contracts, and tests. Follow references withget_file_contents. - Trace one end-to-end path relevant to the user’s question and distinguish direct evidence from ownership or architecture inference.
Validation and fallback rules
Section titled “Validation and fallback rules”Read repository-specific instructions before drawing conclusions. Do not assume the newest branch is the default or that directory names prove runtime ownership. If search is incomplete or files are truncated, state what was not inspected.
Output contract
Section titled “Output contract”Provide a compact repository map, key entrypoints, important conventions, active related work, likely change surface, and the next files or tests to inspect. Link to concrete files, issues, pull requests, and commits when the tool returns usable links.
Safety and side effects
Section titled “Safety and side effects”This workflow is read-only. Do not create branches, push files, comment, merge, or update issues or pull requests. Treat private repository content as private and avoid reproducing secrets or sensitive source unnecessarily.