knowledge-setup

knowledge-setup is a skill for Claude Code from Cognigy/cognigy-plugin. It costs 49 tokens per session (2,011 once invoked), scanned A, original, MIT.

A guide for adding knowledge to a Cognigy AI agent. A knowledge store is a searchable collection of source material, and an embedding model converts that material into a form the search system can index.

In plain words
What is it for?
Use it to configure embedding and search models, set Knowledge AI options, create knowledge stores, ingest sources, and attach knowledge as an agent tool.
Why use it?
It prevents confusing the model that builds the knowledge index with the separate model used for Knowledge Search. It also identifies the required project settings and setup order.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/me/docs/report.pdf.

Part of the cognigy plugin — 16 skills, 2 agents shipped together

Good fit Use it to configure embedding and search models, set Knowledge AI options, create knowledge stores, ingest sources, and attach knowledge as an agent tool.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Cognigy/cognigy-plugin
Claude Code
/plugin install cognigy

Made for: Claude Code.

Or install cognigy, the plugin that ships this one along with the rest of its 16 skills, 2 agents.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/cognigy/cognigy-plugin/knowledge-setup/github.svg)](https://agentmods.dev/skills/cognigy/cognigy-plugin/knowledge-setup)
Your own site
<a href="https://agentmods.dev/skills/cognigy/cognigy-plugin/knowledge-setup"><img src="https://agentmods.dev/badge/skills/cognigy/cognigy-plugin/knowledge-setup/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-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/cognigy/cognigy-plugin/knowledge-setup"><img src="https://agentmods.dev/badge/skills/cognigy/cognigy-plugin/knowledge-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,011 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.00049 $0.02011
Opus 5.5 $0.00020 $0.00804
Sonnet 5.5 $0.00010 $0.00402
Haiku 4.5 $0.00005 $0.00201

Measured 14d ago against content hash 290cdfbe8dac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

knowledge-setup 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 14d 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.

plugin/skills/knowledge-setup/SKILL.md · 98 lines

How it starts

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

Adding Knowledge to an Agent

Prerequisites

  • An embedding model must be configured in the project before creating knowledge stores. Use setup_llm to create one first if the target project does not already have one (e.g., setup_llm { projectId, provider: "openAI", modelType: "<embedding model type>", apiKey }). To check: list_resources { resourceType: "llm_model", projectId } and inspect modelType. Use provider docs or an existing same-project model to identify the correct embedding-capable model type for the store index.
  • Configure the project's Knowledge AI Settings before creating the store in normal AI-agent knowledge flows. Use manage_settings { operation: "set_knowledge_ai", projectId, knowledgeSearchModelId: "<llm referenceId>" }. If you use the Azure content parser, also set contentParser: "azure" and azureDIConnectionId.

Important Distinction

  • The embedding model is for the knowledge store index itself.
  • knowledgeSearchModelId is a separate project setting for Knowledge Search and must reference an llm_model from the same project.
  • For normal AI-agent knowledge-store setups, answerExtractionModelId is usually not needed.
  • The model you pick for the AI Agent itself is a separate decision. The agent response model should not be reused for knowledgeSearchModelId just because it is already available.
  • The accepted model type for knowledgeSearchModelId is instance-dependent. Start with existing same-project candidates and rely on the API response.
  • Model names shown in examples are not a whitelist for either role.

Steps

  1. list_resources { resourceType: "llm_model", projectId }
    • For Knowledge Search, prefer list_resources { resourceType: "llm_model", projectId, useCase: "knowledgeSearch" } so the candidates match the Settings UI dropdown
    • Refresh this after any package import
    • Start with the source project's exact Knowledge Search model when reusing an existing setup
    • Import the full required source-project model set before the first manage_settings { operation: "set_knowledge_ai", ... } attempt
    • If multiple required models share one connection, import that connection once alongside all of those models
  2. manage_settings { operation: "set_knowledge_ai", projectId, knowledgeSearchModelId, contentParser }
    • Do this before manage_knowledge { operation: "create_store", ... } in normal AI-agent knowledge flows
  3. manage_knowledge { operation: "create_store", projectId, name }
  4. manage_knowledge { operation: "create_source", knowledgeStoreId, type, ... }
    • type: "url" — scrape a web page. Provide url.
    • type: "manual" — store text directly. Provide text.
    • type: "file" — upload a local document. Provide filePath (absolute path, e.g. "/Users/me/docs/report.pdf").
    • IMPORTANT: URL and file ingestion is async. Content is NOT searchable immediately.
    • Wait 10-60 seconds before searching.
  5. manage_knowledge { operation: "list_chunks", knowledgeStoreId }
    • Verify content was ingested correctly (optional sourceId — defaults to the first source — and filter to match chunk text; list_sources shows all sources in the store)
    • If no results right after create_source, wait and retry
  6. Attach to agent as a TOOL (default approach):
    • During agent creation — create_ai_agent { projectId, name, knowledgeStoreReferenceId: storeReferenceId } This automatically creates a knowledge search tool on the agent's Job Node.
    • After agent creation — create_tool { aiAgentId, toolType: "knowledge", name: "Search KB", config: { knowledgeStoreId: storeReferenceId, toolId: "search_kb", description: "Search the knowledge base" } } This creates a dedicated search tool the agent can invoke to query the knowledge store.
    • IMPORTANT: Always use the tool-based approach unless the user explicitly asks to attach knowledge to the agent persona.

Read the full file on GitHub · 98 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. 14d ago Changed 290cdfbe8dac
  2. 2mo ago First seen · 98 lines · 49 tokens per session scan A 58ef59e1e269

Subscribe to this mod's changes

knowledge-setup is a skill published in the GitHub repository Cognigy/cognigy-plugin (18 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 2,011 once invoked, about $0.0002 per session on Opus 5.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

knowledge-setup compared with skills from other repositories

knowledge-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-setupCognigy/cognigy-pluginSkill18yesterdayMITA49Claude Code
embeddingsruvnet/rufloSkill81kyesterdayMITA62Claude Code
agent-platform-rag-engine-managementgoogle/skillsSkill22kyesterdayApache-2.0A85Claude Code, Codex
llm-app-patternsdavila7/claude-code-templatesSkill33kyesterdayMITA54Claude Code, Codex
9router-embeddingsdecolua/9routerSkill32k9d agoMITA66Claude Code, Codex
embedding-strategiesforyourhealth111-pixel/Vibe-SkillsSkill3.8k3d agoApache-2.0A37Claude Code, Codex
similarity-search-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.8k3d agoApache-2.0A30Claude Code, Codex