knowledge-bank-lookup

knowledge-bank-lookup is a skill for Claude Code from sxhmilyoyo/sundayhao-plugins. It costs 94 tokens per session (2,828 once invoked), scanned A, original, Apache-2.0.

A lookup workflow that searches a project's knowledge bank through separate research agents. A knowledge bank is a collection of saved project documentation, past mistakes, and proven approaches.

In plain words
What is it for?
Use it to find service documentation, project patterns, best practices, reflections, and prior solutions when working on a project.
Why use it?
It checks documented failures and lessons before consulting other documentation, helping the agent avoid repeating known problems.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter; mentions subagents; mentions Claude Code.

Part of the second-brain plugin — 5 skills, 3 hooks shipped together

Good fit Use it to find service documentation, project patterns, best practices, reflections, and prior solutions when working on a project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sxhmilyoyo/sundayhao-plugins --skill knowledge-bank-lookup
Clone the repo
git clone --depth 1 https://github.com/sxhmilyoyo/sundayhao-plugins

Made for: Claude Code.

Or install second-brain, the plugin that ships this one along with the rest of its 5 skills, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for knowledge-bank-lookup

README.md
[![agentmods](https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup/github.svg)](https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup)
Your own site
<a href="https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup"><img src="https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for knowledge-bank-lookup

Your own site · 80×15
<a href="https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup"><img src="https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/knowledge-bank-lookup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,828 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.02828
Opus 5 $0.00047 $0.01414
Sonnet 5 $0.00019 $0.00566
Haiku 4.5 $0.00009 $0.00283

Measured 12d ago against content hash b0614e754811, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

knowledge-bank-lookup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/find-related.sh, scripts/search-by-property.sh, scripts/test-wikilinks.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

second-brain/skills/knowledge-bank-lookup/SKILL.md · 272 lines

How it starts

The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Knowledge Bank Lookup

What's New

Latest: v2.4.0 - Structure refactoring with improved clarity and terminology. See CHANGELOG.md for details.


Invocation

Automatic (Recommended)

This skill triggers automatically when Claude detects patterns listed in Trigger Detection. No manual invocation needed.

Manual Invocation

  • Slash command: /second-brain:knowledge-bank-lookup
  • Skill tool: Skill({ skill: "second-brain:knowledge-bank-lookup" })

Visibility Settings

Setting Value Effect
user-invocable true Visible in slash menu, Skill tool allowed
context fork Runs in isolated subagent (Explore agent)
agent Explore Uses Explore agent optimized for codebase research

See references/examples.md for detailed integration examples.


Overview

This skill enables efficient lookup of service documentation, architectural patterns, best practices, and reflections from the knowledge bank by delegating research to specialized subagents. Rather than consuming main agent context with large documentation reads, subagents perform deep analysis and return only distilled, actionable insights.

Key Benefits:

  • Context Efficiency: 69-94% context reduction per lookup
  • Reflections-First: Learn from past mistakes before consulting documentation
  • WikiLink Following: DFS traversal of interconnected docs for complete coverage
  • Frontmatter Filtering: Property-based document discovery
  • Structured Insights: JSON responses with reflection_insights, patterns, linked_concepts, gotchas
  • Automatic Activation: Triggers on service mentions and investigation keywords

Configuration

Knowledge bank path is dynamically resolved via common utilities.

Setup: skills/common/setup_kb_path.sh --configure

Verify: skills/common/setup_kb_path.sh --show

Usage in Scripts: source skills/common/get_kb_path.sh && KB_PATH=$(get_kb_path)

Read the full file on GitHub · 272 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 272 lines · 94 tokens per session scan A b0614e754811

Subscribe to this mod's changes

knowledge-bank-lookup is a skill published in the GitHub repository sxhmilyoyo/sundayhao-plugins (8 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 94 tokens to every session and 2,828 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

evolving-status

View Self-Evolving Loop session status, history, and memory metrics.

claude-world/director-mode-lite · 17 tokens

pocket-init

Onboards an existing (brownfield) project onto Pocket. Scans the codebase and writes a project memory file (CLAUDE.md or AGENTS.md), optionally enables Pocket Enterprise (mode init) and scaffolds GitHub issue/PR templates. Trigger on "pocket-init", "set up pocket", "onboard this project", "generate CLAUDE.md", "enable…

rfxlamia/pocketto · 85 tokens

learn-from-fix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.

oliver-kriska/claude-elixir-phoenix · 46 tokens

compound-docs

Searchable Elixir/Phoenix/Ecto solution documentation system with YAML frontmatter. Builds institutional knowledge from solved problems. Use when consulting past solutions before investigating new issues.

oliver-kriska/claude-elixir-phoenix · 38 tokens

cdb-scan

Map this codebase into project memory — a code graph of every symbol and how they connect, plus a written profile of stack, layout, conventions and workflows. Re-run any time to refresh both in place. Use when memory is newly installed on an existing project, or when the project has changed enough that the stored map…

Avijit07x/claude-db · 72 tokens

memory-protocol

A shared set of rules for using a persistent memory service across coding-agent sessions.

vbcherepanov/total-agent-memory · 120 tokens