cnb-repo-knowledge-base

Query a CNB repository knowledge base and return relevant text snippets with sources.

3|1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/wopal-cn/wopal-space-ontology --skill cnb-repo-knowledge-base-wopal-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cnb-repo-knowledge-base
Source: https://github.com/wopal-cn/wopal-space-ontology/tree/main/skills/cnb-repo-knowledge-base
Command: npx skills add https://github.com/wopal-cn/wopal-space-ontology --skill cnb-repo-knowledge-base-wopal-cn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When answering questions about a specific repository, you often need grounded context instead of guessing. This Skill retrieves the most relevant knowledge base snippets from a specified CNB repository, along with their sources, so answers are backed by actual repository knowledge. ## Core Features & Use Cases - Knowledge Base Retrieval: Query a specified repository's knowledge base with natural language questions or keywords. - Source Attribution: Returns relevant text fragments together with their origins for traceable answers. - Configurable Result Count: Control how many snippets are returned via the top-k parameter. - Use Case: A user asks how a feature works in the cnb/feedback repository. Run the query command with the repo path and question to get the top matching knowledge snippets, then answer the user based on the retrieved content. ## Quick Start Ask the assistant to query the knowledge base of a specific CNB repository, for example: search the cnb/feedback repository knowledge base for how issue notifications work and return the top 5 snippets.

Frequently Asked Questions about cnb-repo-knowledge-base

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

FAQPage Schema
How do I query a CNB repository knowledge base?

Run the cnb CLI command: cnb knowledge-base query-knowledge-base-get --repo <group>/<repo> --query "<your question>" --top-k 5. The repo and query parameters are required, while top-k defaults to 5.

What parameters does the CNB knowledge base query command accept?

The command accepts --repo for the repository path such as cnb/feedback, --query for the natural language question or keywords, and --top-k for the number of returned snippets. Repo and query are mandatory; top-k is optional and defaults to 5.

What does the CNB knowledge base query return?

It returns the text fragments most relevant to your query along with their sources. These snippets can be used to answer user questions with content grounded in the repository's knowledge base.

Can I control how many results the knowledge base query returns?

Yes, use the --top-k parameter to set the number of returned snippets. If omitted, the command returns 5 snippets by default.

When should I use repository knowledge base retrieval instead of reading files directly?

Use knowledge base retrieval when you need the most relevant fragments for a natural language question without manually searching the whole repository. It is suited for question answering where semantic relevance matters more than exhaustive file inspection.