Agent skill

Kb Answer

by techwolf-ai in techwolf-ai/ai-first-toolkit

Answer questions using your project's knowledge base with evidence-backed citations.

MITAuto-check passedKnowledge Management

Install Kb Answer

skills CLI
$ npx skills add techwolf-ai/ai-first-toolkit --skill kb-answer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install techwolf-ai/ai-first-toolkit kb-answer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/techwolf-ai/ai-first-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/knowledge-base/skills/kb-answer .claude/skills/kb-answer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kb-answer
GitHub stars
132
Used in
1 other repo
Token cost
~1.5k tokens
SKILL.md length
746 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Answer questions using your project's knowledge base with evidence-backed citations.

  • Works in 6 steps: Navigate Using the Index → Read Relevant Files → Search (if needed) → …
  • Tasks that involve Citation management
  • SKILL.md covers Prerequisites, Step 1: Navigate Using the Index, Step 2: Read Relevant Files and Step 3: Search (if needed), plus 4 more sections
  • Calls python3

What it does

Kb Answer is an agent skill from techwolf-ai/ai-first-toolkit. Answer questions using your project's knowledge base with evidence-backed citations. Every answer must cite literal quotes from KB files to prevent hallucinations. Use this for any question that should be answered from documented knowledge rather than general knowledge.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Citation management and Knowledge bases. The repository describes itself as: Open-source Claude Code skills and Codex skills for AI-first work. Audit, re-engineer, and bootstrap projects with AI-first design principles. The licence is MIT.

When your agent uses it

  • Tasks that involve Citation management
  • Tasks that involve Knowledge bases

Example prompts

  • “/kb-answer”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Navigate Using the Index
  2. Read Relevant Files
  3. Search (if needed)
  4. Check Active Scope
  5. Formulate Answer
  6. Verify Citations

What it can do on your machine

Read from SKILL.md and the folder at commit 2ee7841. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kb Answer loads about 1.5k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 746 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from techwolf-ai/ai-first-toolkit at commit 2ee7841, republished under its MIT licence (© techwolf-ai). 746 words, ~1,482 tokens.

Download SKILL.mdSave it as .claude/skills/kb-answer/SKILL.md (or your agent's skills folder).
name
kb-answer
description
Answer questions using your project's knowledge base with evidence-backed citations. Every answer must cite literal quotes from KB files to prevent hallucinations. Use this for any question that should be answered from documented knowledge rather than general knowledge.

KB Answer Workflow

Follow these steps in order for every question. For multiple independent questions, use parallel agents.

Prerequisites

Check that kb/ exists in the project root. If not, tell the user to run /setup-knowledge-base first.

Step 1: Navigate Using the Index

Always start by reading the KB index:

kb/index.md

The index provides:

  • Keyword Lookup: find the right file by keyword
  • Category overview: all files grouped by topic

If the index is empty or outdated, run the index script first:

bash
python3 scripts/kb-index.py
Quick Navigation
  1. Check the keyword lookup table for matching terms
  2. Go to the matching file(s)
  3. If no keyword match, browse the category that best fits the question. Categories can be nested (e.g., security/access/) — drill down into sub-groups when a broad category has them.

Step 2: Read Relevant Files

Based on the index navigation:

  1. Read the most relevant file first
  2. Check related: links in the frontmatter if the file references other entries
  3. Read additional files if the first doesn't fully cover the question

Step 3: Search (if needed)

If the index doesn't point to the right file, run the search script to rank entries by keyword across title, tags, description, category, and body:

bash
python3 scripts/kb-search.py "your keyword"

Options worth knowing:

  • --category security restricts to a category (matches nested children like security/access too).
  • --tag mfa filters by frontmatter tag (repeatable).
  • --limit 5 caps results.
  • --json for a machine-readable list (useful when chaining into another step).

Fall back to the Grep tool with path kb/ only if the search script misses a term (e.g., regex-only patterns).

Step 4: Check Active Scope

If kb/scopes/ contains scope files beyond _default.yaml:

  1. Ask the user which scope applies (if not already established in this conversation)
  2. Read the active scope file
  3. Apply in_scope, out_of_scope, and notes to shape your answer

If only _default.yaml exists, skip this step.

Step 5: Formulate Answer

Answer Format

Yes/No questions: Start with "Yes" or "No", followed by 1 sentence.

Other questions: Answer directly in 1-3 sentences. Add detail only if needed.

If format requirements are provided: Follow them exactly.

Citation Requirements

Every claim in your answer MUST be backed by a literal quote from a KB file.

Format each citation as:

> "exact quote copied from the KB file"
> Source: kb/category/filename.md

Rules:

  • Copy the quote character-for-character. Do not paraphrase, summarize, or rephrase.
  • If you cannot find a literal quote supporting a claim, do not make that claim.
  • Include markdown formatting verbatim. If the source says **Confidential**: ..., your quote must be **Confidential**: ..., not Confidential: .... If the source uses bullet list dashes, include them. Missing markdown is the #1 reason kb-verify.py flags citations. The script has a normalized-match fallback that will PASS with a warning, but strict mode will FAIL, so always copy formatting literally.
  • For long passages, prefer quoting a single self-contained sentence. When a multi-line quote is unavoidable (e.g., a bulleted list that must be cited as one block), use the multi-line form:
    > "first line of the quote
    > second line
    > last line"
    > Source: kb/category/filename.md
    The verifier joins the > lines back into one quote and checks the whole block. Single-line blocks are still preferred for robustness.
Show full SKILL.md (251 more words)Show less
What to Avoid
  • Don't over-elaborate. Match answer depth to question depth.
  • Don't pad with "more details available upon request".
  • Don't start with summary phrases like "Based on our documentation...". Go straight to the answer.
  • Be honest about limitations. If something isn't in the KB, say so.
If Information is Missing
  1. State clearly what information is not in the KB
  2. Provide what can be answered from available info
  3. Do not make up or infer information not in the KB
  4. Suggest which KB entry should be created to cover the gap

Step 6: Verify Citations

After formulating your answer, verify all citations are accurate by running:

bash
python3 scripts/kb-verify.py <<'EOF'
{your answer with citations}
EOF

The script checks that every quoted string exists in the referenced KB file. It runs two passes:

  1. Strict: the quote is byte-exact (including markdown markers and whitespace).
  2. Normalized (fallback): markdown markers (**, *, _, `) and whitespace are stripped from both sides before comparison. Reported as PASS (normalized).

Target strict passes. If the script reports PASS (normalized), re-copy the quote with its original markdown so the next verify run is clean.

  • All citations PASS (strict or normalized): present the answer.
  • Any citation FAIL: re-read the source file, copy the exact text (including markdown), and verify again.
  • Use python3 scripts/kb-verify.py --strict answer.md when you want to guarantee byte-exact citations (e.g., before publishing to a customer).

Do not present an answer with any FAIL citations.

Handling Multiple Questions

Related questions (same topic): Group together, share file reads.

Independent questions: Use parallel agents, each following this workflow.

Example:

Q1: "What encryption do we use?"     -> security
Q2: "Who are our customers?"         -> general
Q3: "What's our SLA?"                -> security

Group 1 (security): Q1 + Q3
Group 2 (general): Q2

© techwolf-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/knowledge-base/skills/kb-answer of techwolf-ai/ai-first-toolkit.

Open the folder on GitHubat commit 2ee7841

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in techwolf-ai/ai-first-toolkit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Kb Answer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kb Answer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kb Answer this skilltechwolf-ai/ai-first-toolkit1321 repos~1.5kAutomated safety check: PassMIT
Citation CheckZimoLiao/scholaraio576—~454Automated safety check: PassMIT
Maintain Codex Wikiaiskillstore/marketplace4301 repos~2kAutomated safety check: NotesNone
Knowledge Base Searchaipoch/medical-research-skills2k—~1.6kAutomated safety check: PassMIT
Gnogmickel/gno1151 repos~1.6kAutomated safety check: PassMIT
Gnogmickel/gno115—~11kAutomated safety check: PassMIT

Similar skills

  • Citation Check

    ZimoLiao/scholaraio

    A skill your agent uses when the user wants to verify citations in AI-generated or human-written text against the local knowledge base and catch hallucinated, wrong, or missing references.

    576 GitHub stars~454 tokensUpdated 12 days ago
    Research & ScienceAuto-check passed
  • Maintain Codex Wiki

    aiskillstore/marketplace

    Maintain a review-first Markdown knowledge base for Codex practices with source provenance, engineering capture, citation-aware queries, explicit archive and promotion, and deterministic linting.

    430 GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: notes
  • Knowledge Base Search

    aipoch/medical-research-skills

    Search and locate relevant content within a local knowledge base (files, indices, or PageIndex).

    2k GitHub stars~1.6k tokensUpdated 21 days ago
    Knowledge ManagementAuto-check passed
  • Gno

    gmickel/gno

    Search local documents, files, notes, and knowledge bases. An agent skill from gmickel/gno.

    115 GitHub starsUsed in 1 repo~1.6k tokens
    Knowledge ManagementAuto-check passed
  • Gno

    gmickel/gno

    Search local documents, files, notes, and knowledge bases. An agent skill from gmickel/gno.

    115 GitHub stars~11k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Comm Lit Review Claude Single

    AI4Scientist/nano-scientist

    Communications-domain literature review with Claude-style knowledge-base-first retrieval.

    128 GitHub starsUsed in 5 repos~2.2k tokens
    Research & ScienceAuto-check: notes

More from techwolf-ai/ai-first-toolkit

All 29 skills in this repo
  • Task Profile

    techwolf-ai/ai-first-toolkit

    Mine the user's Claude Code + Cowork session history into a structured task profile, what they do with AI, how often, how successfully where friction lives, then propose atomic skills that would…

    132 GitHub stars~3.6k tokensUpdated 8 days ago
    Auto-check passed
  • Session Search

    techwolf-ai/ai-first-toolkit

    Find context from past Claude Code (CLI) and Claude Cowork (desktop) sessions on this Mac.

    132 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Token Doctor

    techwolf-ai/ai-first-toolkit

    Personal diagnosis of where your Claude Code + Cowork spend goes.

    132 GitHub stars~4.1k tokensUpdated 8 days ago
    Auto-check passed
  • Write Blog Post

    techwolf-ai/ai-first-toolkit

    Write or develop a blog post. An agent skill from techwolf-ai/ai-first-toolkit.

    132 GitHub stars~1.1k tokensUpdated 8 days ago
    Auto-check passed
  • Write Opinion

    techwolf-ai/ai-first-toolkit

    Write or develop an opinion piece (opiniestuk/op-ed). An agent skill from techwolf-ai/ai-first-toolkit.

    132 GitHub stars~695 tokensUpdated 8 days ago
    Auto-check passed
  • AI Firstify

    techwolf-ai/ai-first-toolkit

    Analyze, re-engineer, or bootstrap projects to align with AI-first design principles.

    132 GitHub stars~646 tokensUpdated 8 days ago
    Auto-check passed

Questions about Kb Answer

What does Kb Answer do?

Answer questions using your project's knowledge base with evidence-backed citations. Kb Answer is an agent skill from techwolf-ai/ai-first-toolkit. Answer questions using your project's knowledge base with evidence-backed citations.

When should I use Kb Answer?

Kb Answer fits situations like: tasks that involve Citation management; tasks that involve Knowledge bases.

How do I install Kb Answer in Claude Code?

Run `npx skills add techwolf-ai/ai-first-toolkit --skill kb-answer -a claude-code`. Or copy the skill folder (plugins/knowledge-base/skills/kb-answer in techwolf-ai/ai-first-toolkit) into .claude/skills/kb-answer in your project. Claude Code loads it when a task matches its description.

How do I install Kb Answer in Codex?

Run `npx skills add techwolf-ai/ai-first-toolkit --skill kb-answer -a codex`. Or copy the skill folder (plugins/knowledge-base/skills/kb-answer in techwolf-ai/ai-first-toolkit) into .agents/skills/kb-answer in your project. Codex loads it when a task matches its description.

Can I use Kb Answer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add techwolf-ai/ai-first-toolkit --skill kb-answer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kb-answer, .gemini/skills/kb-answer, .github/skills/kb-answer and .opencode/skills/kb-answer in your project.

What does Kb Answer need to run?

Going by SKILL.md and its folder, Kb Answer needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Kb Answer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kb Answer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kb Answer use?

Kb Answer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kb Answer use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kb Answer?

Skills that share tags, products or a category with Kb Answer: Citation Check (ZimoLiao/scholaraio, 576 stars), Maintain Codex Wiki (aiskillstore/marketplace, 430 stars), Knowledge Base Search (aipoch/medical-research-skills, 2k stars) and Gno (gmickel/gno, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kb Answer?

techwolf-ai (a GitHub organization) maintains it in techwolf-ai/ai-first-toolkit, which has 132 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on September 29, 2026.

Source: techwolf-ai/ai-first-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.