cognee: Skill for Claude Code

.agents/skills/cognee-ingestion/SKILL.md

cognee-ingestion is a skill for Claude Code, Codex from topoteretes/cognee. It costs 72 tokens per session (2,849 once invoked), scanned A, original, Apache-2.0.

A guide to adding text, files, folders, web pages, code repositories, or databases to Cognee memory. It explains how the `remember()` function stores the data and builds searchable connections between it.

In plain words
What is it for?
Use it to import research files, websites, folders, code projects, or database content into Cognee, choose a dataset, split content into chunks, and select graph extraction options.
Why use it?
It removes the need to work out which input formats, loaders, data groups, and extraction settings `remember()` supports. It also helps diagnose invalid keyword arguments and estimate processing cost before using a language model.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is topoteretes/cognee's own configuration. It tells Claude Code and Codex how to work on cognee itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cognee configures →

About the project

Cognee is an AI memory platform that stores information in a self-hosted knowledge graph so agents can retain context across sessions. It ingests data, connects related information, and helps agents retrieve it for reasoning and actions. The catalogue includes skills and instructions that extend agent workflows around Cognee.

topoteretes/cognee · 33,094 stars · on GitHub · cognee.ai

Reuse

Borrowing it

Nothing to install: this file belongs to topoteretes/cognee. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/topoteretes/cognee/main/.agents/skills/cognee-ingestion/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/topoteretes/cognee

Made for: Claude Code, Codex.

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 cognee-ingestion

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/topoteretes/cognee/cognee-ingestion"><img src="https://agentmods.dev/badge/skills/topoteretes/cognee/cognee-ingestion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,849 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.00072 $0.02849
Opus 5.5 $0.00029 $0.01140
Sonnet 5.5 $0.00014 $0.00570
Haiku 4.5 $0.00007 $0.00285

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

Security

Grade A, and why

cognee-ingestion 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 21d 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.

.agents/skills/cognee-ingestion/SKILL.md · 210 lines

How it starts

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

Ingest data with remember()

remember() is cognee's ingestion API. One call stores the data, builds the knowledge graph, and enriches it. Use it for all ingestion; every option in this skill is a remember() argument unless it says otherwise.

import cognee

result = await cognee.remember("Einstein was born in Ulm.")  # text
result = await cognee.remember(
    ["./notes.md", "./report.pdf"],  # files
    dataset_name="research",
)
print(result.status, result.dataset_id)  # "completed", UUID

All cognee functions are async. Without dataset_name data goes to main_dataset. Needs LLM_API_KEY unless you use the GLiNER extractor (below).

Use it

Inputs

data accepts a string, a list of strings, file paths (absolute, file://, s3://), http(s) URLs, binary streams, or a list mixing them.

  • URLs are fetched and scraped (needs ALLOW_HTTP_REQUESTS=true, the default).
  • Folders are ingested file by file. A folder that looks like a code project, or a GitHub/GitLab URL, becomes one code repository (needs git on PATH).
  • Code files (.py, .ts, .go, …) go down the code-graph route: a deterministic graph, no LLM calls, searchable only with SearchType.CODE. To index a whole repository explicitly, pass content_type="code".
  • Databases and dlt sources: a SQL connection string, a dlt DltResource / DltSource, or a CSV. dlt is a core dependency, so no extra is needed (cognee[dlt] is an empty compatibility extra). Options: primary_key (default "id"), write_disposition ("replace" default, or "append"), query, max_rows_per_table.
  • Skill playbooks (SKILL.md files): content_type="skills"; ingests into the target dataset (default main_dataset), so pass dataset_name to keep skills in their own dataset.

Where the data goes

Argument What it does
dataset_name / dataset_id Target dataset. dataset_id wins. A dataset is the unit of permissions and isolation.
node_set=["AI", "FinTech"] Tags the data so recall can filter to it later with recall(..., node_name=["AI"]). With session_id it pins the session's node set instead (first write wins, a different set later is a 409); improve() carries it into the graph. See the cognee-improve-sessions skill.
session_id="chat_1" Writes to the fast session cache instead of the graph; improve() bridges it into the graph in the background. See the cognee-improve-sessions skill. Requires CACHING=true.

Read the full file on GitHub · 210 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. 21d ago Changed 0c53bfb1769a
  2. 1mo ago Changed · -1 lines · -3 tokens per session 6553cc269e5f
  3. 1mo ago First seen · 211 lines · 75 tokens per session scan A 87176f8b28e7

Subscribe to this mod's changes

cognee-ingestion is a skill published in the GitHub repository topoteretes/cognee (33,094 stars, last pushed today), licensed Apache-2.0. It adds 72 tokens to every session and 2,849 once invoked, about $0.0003 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-09-30.

Related

cognee-ingestion compared with skills from other repositories

cognee-ingestion next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cognee-ingestiontopoteretes/cogneeSkill33ktodayApache-2.0A72Claude Code, Codex
openmemoryCaviraOSS/OpenMemorySkill4.6k19d agoApache-2.0A96Claude Code, Codex
yesmem-configcarsteneu/yesmemSkill463d agoApache-2.0A82Claude Code, Codex
goodmem:helpPAIR-Systems-Inc/goodmem-claude-code-pluginSkill92d agoMITA46Claude Code
memseek-remembermemseekai/memseekSkill11yesterdayApache-2.0A24Claude Code
memseek-explainmemseekai/memseekSkill11yesterdayApache-2.0A25Claude Code
memseek-searchmemseekai/memseekSkill11yesterdayApache-2.0A22Claude Code