generate_answer_from_knowledge

Retrieve and synthesize knowledge-base content to answer questions with citations.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/kim1024/agent-skills --skill generate-answer-from-knowledge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate_answer_from_knowledge
Source: https://github.com/kim1024/agent-skills/tree/main/user-skills/generate_answer_from_knowledge
Command: npx skills add https://github.com/kim1024/agent-skills --skill generate-answer-from-knowledge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Retrieve relevant content from knowledge bases to answer user questions with citations, reducing manual search time and ensuring source-backed responses.

Core Features & Use Cases

  • Retrieve answers from ready knowledge bases by name with automatic ID resolution.
  • Generate multiple question variants to improve recall and provide robust results.
  • Return a concise answer along with citations and related matched items for traceability.
  • Use Cases: Customer support, internal knowledge sharing, and expert Q&A workflows.

Quick Start

Provide a question about a topic covered in your knowledge bases to obtain an integrated answer with citations.

Frequently Asked Questions about generate_answer_from_knowledge

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

FAQPage Schema
How do I generate answers from a knowledge base with citations?

To generate answers from a knowledge base with citations, the Skill retrieves and synthesizes relevant content via API, resolving knowledge base names to IDs and returning concise answers with deduplicated source citations.

How does question variant generation improve knowledge base query results?

Question variant generation improves knowledge base query results by creating multiple phrasings of the user's original question, which increases search recall and ensures more robust, relevant content retrieval from the knowledge endpoints.

Can I query a knowledge base by name instead of using an ID?

Yes, you can query a knowledge base by name. The Skill automatically resolves the provided knowledge base name to its corresponding ID before querying the knowledge endpoints with the topK parameter to fetch results.

What is the best way to deduplicate citations from multiple knowledge base queries?

The best way to deduplicate citations from multiple knowledge base queries is handled automatically by the Skill, which merges results from generated question variants and removes duplicate citations to ensure traceable, source-backed responses.

Do I need API credentials to retrieve answers from a knowledge base?

Yes, you need API credentials to retrieve answers from a knowledge base. The Skill requires configured credentials to authenticate via API before resolving knowledge base IDs and querying the knowledge endpoints for relevant content.

What are the limitations of using API-based knowledge base queries for answers?

Limitations of API-based knowledge base queries include the requirement for knowledge bases to be organized, accessible via API, and in a ready state, meaning the Skill cannot retrieve answers from unstructured data or disconnected knowledge bases.