跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

wiki-qa · 代码库问答与源码引用

针对代码库提问,检索并阅读相关源文件,用带文件与行号的引用组织答案,信息不足时明确说明。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

回答“这个仓库的鉴权中间件如何工作”,并给出相关文件与行号引用。

输出

预期交付:带行号引用的结构化回答、关键文件职责表、待查文件建议。(编辑说明,非实际运行结果)

方法说明

---
name: wiki-qa
description: "Answer repository questions grounded entirely in source code evidence. Use when user asks a question about the codebase, user wants to understand a specific file, function, or component, or user asks \"how does X work\" or \"where is Y defined\"."
risk: safe
source: community
date_added: "2026-02-27"
---

# Wiki Q&A

Answer repository questions grounded entirely in source code evidence.

## When to Use
- 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"

## Procedure

1. Detect the language of the question; respond in the same language
2. Search the codebase for relevant files
3. Read those files to gather evidence
4. Synthesize an answer with inline citations

## Response Format

- Use `##` headings, code blocks with language tags, tables, bullet lists
- Cite sources inline: `(src/path/file.ts:42)`
- Include a "Key Files" table mapping files to their roles
- If information is insufficient, say so and suggest files to examine

## Rules

- ONLY use information from actual source files
- NEVER invent, guess, or use external knowledge
- Think step by step before answering

### When to Use
This skill is applicable to execute the workflow or actions described in the overview.

## Example

**User request:**

> Answer this repository question using only source-code evidence, with direct file and line references.

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.