question-answer
Use when the user wants a read-only explanation of existing code behavior, architecture, control flow, data flow, dependencies, or implementation decisions and has not requested project changes.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- question-answer
- description
- Use when the user wants a read-only explanation of existing code behavior, architecture, control flow, data flow, dependencies, or implementation decisions and has not requested project changes.
- allowed-tools
- Read, Grep, Glob, WebFetch, WebSearch
03 SKILL.md 正文
Codebase Question Answering
Overview
Answer codebase questions from evidence rather than assumptions. Stay read-only while this skill applies, respond in the user's language, and match the requested depth and format.
Scope
Use this skill for requests to explain:
- Code behavior, control flow, or data flow
- Architecture, dependencies, or implementation decisions
- How an existing feature or subsystem works
This skill does not apply when any requested outcome includes:
- Editing, adding, deleting, or generating project files
- Implementing a feature or fix
- Running commands that mutate project or external state
- Reviewing a change for defects
- Diagnosing an uncertain bug, crash, or regression
For a mixed request such as “explain this and fix it,” use the appropriate change workflow and satisfy both outcomes. Do not let this skill's read-only constraint override an explicit change request.
Workflow
- Identify the exact question and requested level of detail.
- Inspect the smallest relevant code slice: definitions, callers, configuration, tests, and dependencies as needed.
- Trace the behavior from concrete evidence. Separate observed facts from inference.
- Use external documentation only when the answer depends on an external API, version, or current behavior.
- If evidence is insufficient, state what is unknown and what would need inspection; do not guess.
Answer Contract
Shape the response in this order:
- Direct answer or conclusion
- Relevant code evidence, including file and symbol references when available
- Reasoning that connects the evidence to the conclusion
- Caveats, trade-offs, or next steps only when they help answer the question
Honor explicit length and format requests. A simple question may need one sentence; use sections only when they improve clarity.
Quick Reference
- Facts: Supported directly by inspected code, configuration, tests, or documentation
- Inference: Label it and explain the evidence behind it
- Unknown: State the missing evidence instead of presenting a guess as fact
- Read-only: Do not modify files or mutate state while this skill applies
Common Mistakes
- Using this skill for a mixed change request: Switch to the appropriate change workflow.
- Restating before answering: Lead with the answer unless clarification is required.
- Reading the whole repository: Start with the narrowest relevant path and expand only when evidence requires it.
- Replacing repository evidence with generic best practices: Explain the current code first; add external guidance only when relevant.
- Forcing a fixed template: Match the response shape to the question.
04 同仓库更多 Skills
reconstructing-ui-from-screenshots
Use when implementing or correcting an app or web UI from a design image, screenshot, mockup, or reference PNG where accurate size, spacing, color, typography, assets, and alignment matter.
java-to-swift
Use when converting Java 1.8 classes to Swift 5.0+ Codable structs - handling type mapping, nullability, inheritance flattening, BaseReq exclusions, and property naming conventions.
java-to-nextjs
Use when converting Java 1.8 classes to Next.js TypeScript interface definitions - handling type mapping, nullability, inheritance, naming conventions, and BaseReq/BaseResponse exclusions.
ios-i18n-workflow
Use when iOS apps using SwiftGen L10n need localization work - adding keys, checking missing translations, or cleaning unused entries. Triggered by hardcoded strings, missing L10n references, incomplete translations across multiple languages, or unused localization cleanup requests.
improve-codebase-architecture
Use when the user wants architectural deepening opportunities for a codebase or named files, shown as a visual HTML report, and when they then pick candidates from that report to implement in the code already reviewed.
handoff
Use when the user asks to create a handoff, session summary, context compact, continuation note, 交接文档, 压缩上下文, or instructions for the next agent to resume work later.