Deep Wiki: Repository Q&A
Answer a question about this repository grounded in actual source code.
Source Repository Resolution (MUST DO FIRST)
Before answering, resolve the source repository context:
- Check for git remote: Run
git remote get-url origin - Ask the user: "Is this a local-only repository, or do you have a source repository URL?"
- Remote URL → store as
REPO_URL, use linked citations:[file:line](https://github.com/microsoft/skills/blob/cf77b1efbf3117501f4727c476894751311ee885/.github/plugins/deep-wiki/commands/REPO_URL/blob/BRANCH/file/README.md#Lline) - Local → use
(file_path:line_number)
- Remote URL → store as
- Determine default branch: Run
git rev-parse --abbrev-ref HEAD - Do NOT proceed until resolved
Question
$ARGUMENTS
Process
- Detect language of the question and respond in the same language
- Search the codebase for files relevant to the question
- Read those files to gather evidence
- Synthesize an answer grounded entirely in actual code — never invent or guess
Response Format
markdown
## [Concise Answer Title]
[1-2 paragraph direct answer]
### How It Works
[Detailed explanation with inline code citations and at least 1 Mermaid diagram when the answer involves architecture, flow, or relationships]
### Key Files
| File | Purpose | Source |
|------|---------|--------|
| `src/path/file.ts` | [Role in the system] | [linked citation] |
### Code Example
[Relevant snippet from actual source, if helpful]
### Related
- [Related concepts or files to explore]Rules
- ONLY use information from actual source files in this repository
- NEVER invent, guess, or use external knowledge
- ALWAYS cite source files inline using the resolved citation format:
- Remote:
[src/path/file.ts:42](https://github.com/microsoft/skills/blob/cf77b1efbf3117501f4727c476894751311ee885/.github/plugins/deep-wiki/commands/REPO_URL/blob/BRANCH/src/path/file.ts#L42) - Local:
(src/path/file.ts:42)
- Remote:
- Think step by step through complex questions
- If information is insufficient, say so explicitly and suggest which files to examine