codekb-ask

Answers project-specific questions via RAG over code chunks and knowledge entries with source citations.

1|Updated Jun 27, 2026
One-click install
npx skills add https://github.com/TE-QuanBZhang/skills-pool --skill codekb-ask-te-quanbzhang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codekb-ask
Source: https://github.com/TE-QuanBZhang/skills-pool/tree/main/codekb/skills/codekb-ask
Command: npx skills add https://github.com/TE-QuanBZhang/skills-pool --skill codekb-ask-te-quanbzhang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers often struggle to understand why code was written a certain way or how a system handles specific scenarios, especially in large or unfamiliar codebases. This Skill answers project-specific questions by retrieving relevant code chunks and curated knowledge entries, grounding every answer in traceable sources instead of guesswork. ## Core Features & Use Cases - Grounded Q&A: Queries the codekb_ask MCP tool to retrieve answers from code chunks, design decisions, and business rules with layered context assembly capped at 4K tokens. - Source Traceability: Every answer cites real file paths, line numbers, symbol names, and knowledge entry IDs so you can verify claims directly. - No-Fabrication Guard: Returns an explicit "not found in project" response when no relevant knowledge exists rather than inventing an answer. - Use Case: Ask "why does the messaging module use event-driven design" and receive an answer citing the relevant decision entry and the RefundController error-handling code. ## Quick Start Ask the assistant to use codekb-ask to explain how the system handles refund failures, including the cited source files.

Frequently Asked Questions about codekb-ask

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ask questions about my codebase using RAG?

Call the codekb_ask MCP tool with your natural-language question and optional context symbols. It retrieves relevant code chunks and knowledge entries, then returns an answer with cited file paths and entry IDs for verification.

What is codekb_ask and when should I use it?

codekb_ask is an MCP tool for project-specific Q&A grounded in actual code and knowledge entries. Use it for design-intent questions, behavior questions, or convention questions that require project memory rather than general programming knowledge.

Does codekb-ask require any external services to run?

Yes, it requires the CodeKB MCP Server to be available. If CodeKB is unavailable, the Skill falls back to combining codekb_search results manually to construct an answer.

What happens when the answer is not in the codebase?

CodeKB explicitly returns a "not found in project" response instead of fabricating information. If the sources array is empty, the answer should be treated as unverified.

How can I verify the answers from code Q&A tools?

Check the sources field in the response, which lists file paths, line numbers, symbol names, and knowledge entry IDs. For deeper follow-up, run codekb_explain on the cited symbols.