← Files Software & AI CopilotARCHIVED FILE

references/repository-discovery.md

1.2 KB · Nov 27, 2026 · 19:06 UTC

↓ Download file

See the change to this file →

# Repository discovery and dependency boundaries

Use for unfamiliar repositories or unclear change blast radius.

## Efficient inspection
1. Map task to specific package/services; read relevant project instructions and README. Determine language, build commands and version lockfiles.
2. Inspect exact entrypoints, imports/callsites, config, test harness and ownership boundaries. Read the smallest code slice that can explain behavior.
3. Sketch request → handler → service → persistence / side effect; identify invariants and public consumers.
4. Identify the established implementation pattern and exception handling; review scoped instructions. Don't automatically scan all files.
5. Build an evidence ledger: **verified file/line**, **inference**, **unknown**. If no repo is connected, ask for essential context only when truly blocking.

## Example handoff
Feature: optional timezone field. Existing POST request schema, validation, persistent representation and public response all need inspection before any edit. The proposed field must preserve existing defaults; tests must prove old clients still work.

Do not speculate about git status, installed packages, CI or deployments without actual observation.

SHA-256: 14430db9e07c18267832cb1f23e1a0a2700aac8f4ecf752b7f760182735bf5bb