Answers questions about a code repository using source file analysis. Use when the user asks a question about how something works, wants to understand a component, or needs help navigating the codebase.
Start a fresh conversation. Replace the highlighted placeholders.
Use wiki-qa to explain how [component or feature] works in [repository], first resolving whether the repository is local-only or has a source URL; provide an evidence-based answer with source citations, key files, and a Mermaid diagram if architecture or data flow is involved.
Required inputs
[component or feature]
[repository]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: wiki-qadescription: Answers questions about a code repository using source file analysis. Use when the user asks a question about how something works, wants to understand a component, or needs help navigating the codebase.license: MITmetadata: author: Microsoft version: "1.0.0"
Wiki Q&A
Answer repository questions grounded entirely in source code evidence.
When to Activate
User asks a question about the codebase
User wants to understand a specific file, function, or component
User asks "how does X work" or "where is Y defined"
Source Repository Resolution (MUST DO FIRST)
Before answering any question, you MUST determine the source repository context:
Check for git remote: Run git remote get-url origin to detect if a remote exists
Ask the user: "Is this a local-only repository, or do you have a source repository URL (e.g., GitHub, Azure DevOps)?"
Remote URL provided → store as REPO_URL, use linked citations: [file:line](REPO_URL/blob/BRANCH/file#Lline)
Local-only → use local citations: (file_path:line_number)
Determine default branch: Run git rev-parse --abbrev-ref HEAD
Do NOT proceed until source repo context is resolved
Procedure
Resolve source repo context (see above)
Detect the language of the question; respond in the same language
Search the codebase for relevant files
Read those files to gather evidence
Synthesize an answer with inline linked citations
Response Format
Use ## headings, code blocks with language tags, tables, bullet lists