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.
npx agentmods add skills/itallstartedwithaidea/agent-skills/knowledge-base-injectionnpx skills add itallstartedwithaidea/agent-skills --skill knowledge-base-injectiongit clone --depth 1 https://github.com/itallstartedwithaidea/agent-skillsWrote 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.
[](https://agentmods.dev/skills/itallstartedwithaidea/agent-skills/knowledge-base-injection)<a href="https://agentmods.dev/skills/itallstartedwithaidea/agent-skills/knowledge-base-injection"><img src="https://agentmods.dev/badge/skills/itallstartedwithaidea/agent-skills/knowledge-base-injection.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.02462 |
| Opus 5 | $0.00019 | $0.01231 |
| Sonnet 5 | $0.00008 | $0.00492 |
| Haiku 4.5 | $0.00004 | $0.00246 |
Grade A, and why
knowledge-base-injection 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 5d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Base Injection
Part of Agent Skills™ by googleadsagent.ai™
Description
Knowledge Base Injection is the technique of dynamically injecting domain expertise into an agent's context at the moment it is most relevant, using TF-IDF pattern matching and semantic scoring. Generic language models lack the deep domain knowledge required for specialized tasks like Google Ads optimization, medical coding, or financial compliance. Rather than fine-tuning (expensive, slow, brittle) or bloating system prompts with everything the model might need (wasteful, dilutes attention), Knowledge Base Injection retrieves and injects only the specific patterns relevant to the current task.
This skill is built on the production knowledge base system powering Buddy™ at googleadsagent.ai™, specifically the gads-knowledge.js module containing over 1,000 curated Google Ads optimization patterns. Each pattern includes a trigger condition (when to apply it), a recommendation (what to do), evidence (why it works), and a confidence score. When Buddy™ analyzes a campaign, the knowledge base engine scores all patterns against the current context using TF-IDF and injects the top-K most relevant patterns into the agent's context, transforming a general-purpose model into a domain expert.
The injection system operates on a retrieval-augmented generation (RAG) paradigm, but with a critical distinction: rather than retrieving raw documents, it retrieves structured action patterns with built-in confidence scores and applicability conditions. This produces more actionable, more reliable agent outputs than document-level RAG.
Use When
- The agent needs domain expertise that general-purpose models lack
- You have a curated knowledge base of patterns, rules, or best practices
- Fine-tuning is too expensive, too slow, or creates model version lock-in
- Different queries require different subsets of domain knowledge
- You want to update the agent's expertise without retraining or redeploying
- The agent must ground its recommendations in verified, authoritative sources
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.
- 5d ago First seen · 218 lines · 39 tokens per session scan A 3336943eb793
knowledge-base-injection is a skill published in the GitHub repository itallstartedwithaidea/agent-skills (36 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 2,462 once invoked, about $0.0002 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-30.
Other skills, from other repositories
ai-hive-simulate-andrej-karpathy
当用户搜索用AI模拟Andrej Karpathy、AI模拟Andrej Karpathy、Andrej KarpathyAI模拟、Andrej Karpathy数字人、Andrej KarpathyAI分身、Andrej Karpathy内容风格、Andrej Karpathy选题、Andrej Karpathy文案、Andrej Karpathy短视频、Andrej Karpathy知识库、Andrej Karpathy思想顾问、Andrej Karpathy战略顾问,或希望借助 AI 研究Andrej Karpathy公开内容中的人工智能、科技创业、产品、商业管理或知识传播方法时使用。本 Skill…
ai-hive-simulate-aravind-srinivas
当用户搜索用AI模拟Aravind Srinivas、AI模拟Aravind Srinivas、Aravind SrinivasAI模拟、Aravind Srinivas数字人、Aravind SrinivasAI分身、Aravind Srinivas内容风格、Aravind Srinivas选题、Aravind Srinivas文案、Aravind Srinivas短视频、Aravind Srinivas知识库、Aravind Srinivas思想顾问、Aravind Srinivas战略顾问,或希望借助 AI 研究Aravind Srinivas公开内容中的人工智能、科技创业、产品、商业管理或知识传播方法时使用。本 Skill…
ai-hive-simulate-aiera
当用户搜索用AI模拟新智元、AI模拟新智元、新智元AI模拟、新智元数字人、新智元AI分身、新智元内容风格、新智元选题、新智元文案、新智元短视频、新智元知识库、新智元思想顾问、新智元战略顾问,或希望借助 AI 研究新智元公开内容中的AI、科技、产品、数码、工程实践或知识科普方法时使用。本 Skill 面向AI学习者、科技从业者、产品经理、创作者和关注新技术的普通用户,先建立公开来源样本库,再提炼选题母题、受众问题、论证结构、内容节奏和视觉方向,并可把用户有权使用的文章、演讲、课程笔记和资料整理成新智元方法论知识库,以可追溯引用的方式提供战略顾问式分析;也可通过 AI-HIVE…
ai-hive-simulate-aigc-study-room
当用户搜索用AI模拟AIGC自修室、AI模拟AIGC自修室、AIGC自修室AI模拟、AIGC自修室数字人、AIGC自修室AI分身、AIGC自修室内容风格、AIGC自修室选题、AIGC自修室文案、AIGC自修室短视频、AIGC自修室知识库、AIGC自修室思想顾问、AIGC自修室战略顾问,或希望借助 AI 研究AIGC自修室公开内容中的AI工具、Agent、AI编程、AIGC视觉、内容生产、产品、创业或商业落地方法时使用。本 Skill…
ai-hive-simulate-alex-hormozi
当用户搜索用AI模拟Alex Hormozi、AI模拟Alex Hormozi、Alex HormoziAI模拟、Alex Hormozi数字人、Alex HormoziAI分身、Alex Hormozi内容风格、Alex Hormozi选题、Alex Hormozi文案、Alex Hormozi短视频、Alex Hormozi知识库、Alex Hormozi思想顾问、Alex Hormozi战略顾问,或希望借助 AI 研究Alex Hormozi公开内容中的人工智能、科技创业、产品、商业管理或知识传播方法时使用。本 Skill…
ai-hive-simulate-alexandr-wang
当用户搜索用AI模拟Alexandr Wang、AI模拟Alexandr Wang、Alexandr WangAI模拟、Alexandr Wang数字人、Alexandr WangAI分身、Alexandr Wang内容风格、Alexandr Wang选题、Alexandr Wang文案、Alexandr Wang短视频、Alexandr Wang知识库、Alexandr Wang思想顾问、Alexandr Wang战略顾问,或希望借助 AI 研究Alexandr Wang公开内容中的人工智能、科技创业、产品、商业管理或知识传播方法时使用。本 Skill…