Agent skill

Knowledge Base Search

by aipoch in aipoch/medical-research-skills

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

MITAuto-check passedKnowledge Management

Install Knowledge Base Search

skills CLI
$ npx skills add aipoch/medical-research-skills --skill knowledge-base-search -a claude-code

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

GitHub CLI
$ gh skill install aipoch/medical-research-skills knowledge-base-search --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/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/knowledge-base-search .claude/skills/knowledge-base-search && 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
knowledge-base-search
GitHub stars
2k
Token cost
~1.6k tokens
SKILL.md length
630 words
Files
4 (incl. references, assets)
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 5 steps: Confirm index and scope → Build the query → Execute search (local-only) → …
  • You need verifiable citations (file + page/paragraph) to support answers from local sources
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Knowledge Base Search is an agent skill from aipoch/medical-research-skills. Search and locate relevant content within a local knowledge base (files, indices, or PageIndex). Use when you need verifiable citations (file + page/paragraph) to support answers from local sources.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files and assets (for example `knowledge-base-search_audit_result_v1.json` and `references/guide.md`).

It sits in Knowledge Management, covering Knowledge bases and Citation management. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • You need verifiable citations (file + page/paragraph) to support answers from local sources
  • Tasks that involve Knowledge bases
  • Tasks that involve Citation management

Example prompts

  • “/knowledge-base-search”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Confirm index and scope
  2. Build the query
  3. Execute search (local-only)
  4. Filter and rank results
  5. Output citations and hit list

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csv).

    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

Knowledge Base Search loads about 1.6k tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 630 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.8k

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 aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 630 words, ~1,588 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-base-search/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
knowledge-base-search
description
Search and locate relevant content within a local knowledge base (files, indices, or PageIndex). Use when you need verifiable citations (file + page/paragraph) to support answers from local sources.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

When to Use

  • You need to find specific facts, definitions, or procedures from a local knowledge base and return the exact source location.
  • You must provide traceable citations (file path + page/paragraph/section) for audit, compliance, or review.
  • You need to verify the original wording of a claim in the source document (quote-level validation).
  • You want to compare how multiple local documents discuss the same topic and identify differences.
  • You need to assemble supporting snippets for a report, FAQ, or internal knowledge response using only local materials.

Key Features

  • Supports multiple retrieval approaches: direct file search, index-based search, and PageIndex-style location mapping.
  • Query strategy guidance: keyword splitting, synonym expansion, and optional filters (time range, file type, tags).
  • Relevance-oriented result ranking and filtering to keep the most supportive evidence first.
  • Outputs verifiable hit snippets with precise citation locations (file + page/paragraph/section when available).
  • Enforces local-only boundaries: searches only within authorized directories and does not modify source content.

Dependencies

  • glob (>= 10.0.0): file path pattern matching
  • grep (>= 3.11): in-file text searching
  • Local knowledge base index files (one or more of: filename index, content index, vector index, PageIndex mapping)
  • assets/hit_list_template.csv: standardized hit list output template
  • Optional reference: references/guide.md (output formats, checklists, inspection points)

Example Usage

The following example demonstrates an end-to-end local search workflow and produces a CSV hit list compatible with assets/hit_list_template.csv.

Inputs
  • Knowledge base root: ./kb/
  • Query: How do we rotate API keys?
  • Filters: file types md,pdf, time range 2024-01-01..2026-12-31
Steps
  1. Confirm index and scope

    • Ensure the search scope is limited to authorized paths (e.g., ./kb/).
    • Identify available indices:
      • filename/content index (fast keyword search)
      • vector index (semantic retrieval)
      • PageIndex mapping (page/paragraph location resolution)
  2. Build the query

    • Keywords: rotate, API key, key rotation
    • Synonyms/variants: credential rotation, token rotation, regenerate key
    • Filters:
      • file type: *.md, *.pdf
      • time range: 2024-01-01..2026-12-31 (if metadata exists)
  3. Execute search (local-only)

    • Path discovery (example):
      • glob("./kb/**/*.md")
      • glob("./kb/**/*.pdf")
    • Content search (example):
      • grep -RIn "API key\|key rotation\|rotate" ./kb/
  4. Filter and rank results

    • Keep hits that directly answer the question (procedure, policy, steps, constraints).
    • Rank by:
      • term proximity (e.g., “rotate” near “API key”)
      • section relevance (e.g., “Security”, “Credentials”, “Operations”)
      • coverage (hits that include prerequisites + steps + verification)
  5. Output citations and hit list

    • For each hit, output:
      • file_path
      • location (page number for PDFs; heading/paragraph index for Markdown; PageIndex if available)
      • snippet (verbatim excerpt supporting the conclusion)
      • notes (why it is relevant; any assumptions)
    • Save as hit_list.csv using assets/hit_list_template.csv columns.
Show full SKILL.md (230 more words)Show less
Example Output (CSV rows)
csv
file_path,location,snippet,relevance_score,notes
kb/security/credential_policy.pdf,page 12,"API keys must be rotated every 90 days... Rotation requires...",0.92,"Direct policy + rotation interval + procedure reference."
kb/runbooks/api_key_rotation.md,section 'Procedure' ¶3,"To rotate an API key: (1) create a new key... (2) update services... (3) revoke old key...",0.89,"Step-by-step operational runbook."
kb/audit/controls.md,heading 'Key Management' ¶2,"Evidence of rotation includes change tickets and key revocation logs...",0.81,"Provides verification/evidence requirements."

Implementation Details

Retrieval Workflow
  1. Index confirmation

    • Determine knowledge base root paths and last update time (if available).
    • Detect which indices exist:
      • filename index: quick narrowing by file names
      • content index: inverted index / grep-like scanning
      • vector index: semantic similarity retrieval
      • PageIndex: mapping from document offsets to page/paragraph identifiers
  2. Query strategy

    • Tokenize the question into:
      • core entities (e.g., “API key”)
      • actions (e.g., “rotate”, “revoke”, “regenerate”)
      • constraints (e.g., “every 90 days”, “approval required”)
    • Expand with synonyms and variants.
    • Apply filters when metadata exists:
      • time range
      • file type
      • tags/collections
  3. Result filtering and ranking

    • Remove low-signal hits (navigation, boilerplate, unrelated mentions).
    • Rank by a weighted score (example):
      • Keyword match (exact phrase > partial): 0.45
      • Proximity (terms close together): 0.20
      • Section importance (titles like “Procedure/Policy”): 0.20
      • Coverage (answers include steps + constraints + verification): 0.15
    • Keep the original text snippet verbatim for verification.
  4. Citation and location resolution

    • Markdown/text:
      • use heading + paragraph index (or line range) as the primary locator
    • PDF:
      • use page number; optionally include bounding text around the hit
    • PageIndex (if present):
      • map internal offsets to stable page/paragraph identifiers
Constraints and Limitations
  • Search only within user-authorized local directories.
  • Do not modify source documents.
  • Do not execute scripts or arbitrary code.
  • Do not access network resources or external APIs.
  • If indices are missing/corrupted, fall back to direct file scanning; if scanning is not possible, report the limitation and required remediation (re-indexing).

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

Files

SKILL.md and 3 other files (references, assets) in scientific-skills/Other/knowledge-base-search of aipoch/medical-research-skills.

  • SKILL.md
  • assets/hit_list_template.csv
  • knowledge-base-search_audit_result_v1.json
  • references/guide.md

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Knowledge Base Search 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.

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

Similar skills

  • 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
  • Kb Answer

    techwolf-ai/ai-first-toolkit

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

    132 GitHub starsUsed in 1 repo~1.5k tokens
    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 yesterday
    Knowledge ManagementAuto-check passed
  • 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 13 days ago
    Research & ScienceAuto-check passed
  • Foundry Iq

    microsoft/GitHub-Copilot-for-Azure

    Official

    Foundry IQ knowledge bases. An agent skill from microsoft/GitHub-Copilot-for-Azure.

    255 GitHub stars~872 tokensUpdated today
    Knowledge ManagementAuto-check passed

More from aipoch/medical-research-skills

All 567 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 21 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 21 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 21 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 21 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 21 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 21 days ago
    Auto-check passed

Questions about Knowledge Base Search

What does Knowledge Base Search do?

Search and locate relevant content within a local knowledge base (files, indices, or PageIndex). Knowledge Base Search is an agent skill from aipoch/medical-research-skills. Search and locate relevant content within a local knowledge base (files, indices, or PageIndex).

When should I use Knowledge Base Search?

Knowledge Base Search fits situations like: you need verifiable citations (file + page/paragraph) to support answers from local sources; tasks that involve Knowledge bases; tasks that involve Citation management.

How do I install Knowledge Base Search in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill knowledge-base-search -a claude-code`. Or copy the skill folder (scientific-skills/Other/knowledge-base-search in aipoch/medical-research-skills) into .claude/skills/knowledge-base-search in your project. Claude Code loads it when a task matches its description.

How do I install Knowledge Base Search in Codex?

Run `npx skills add aipoch/medical-research-skills --skill knowledge-base-search -a codex`. Or copy the skill folder (scientific-skills/Other/knowledge-base-search in aipoch/medical-research-skills) into .agents/skills/knowledge-base-search in your project. Codex loads it when a task matches its description.

Can I use Knowledge Base Search 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 aipoch/medical-research-skills --skill knowledge-base-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/knowledge-base-search, .gemini/skills/knowledge-base-search, .github/skills/knowledge-base-search and .opencode/skills/knowledge-base-search in your project.

What does Knowledge Base Search need to run?

SKILL.md names no scripts, command-line tools or credentials: Knowledge Base Search is instructions for the agent only.

Does Knowledge Base Search 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 Knowledge Base Search 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 Knowledge Base Search use?

Knowledge Base Search is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Knowledge Base Search use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 179 tokens, read only when the agent opens those files.

What are the alternatives to Knowledge Base Search?

Skills that share tags, products or a category with Knowledge Base Search: Maintain Codex Wiki (aiskillstore/marketplace, 430 stars), Kb Answer (techwolf-ai/ai-first-toolkit, 132 stars), Gno (gmickel/gno, 115 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 Knowledge Base Search?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,974 GitHub stars. The repository holds 567 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.