cognee: Skill for Claude Code

.agents/skills/cognee-custom-pipelines/SKILL.md

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

A guide to building custom processing pipelines in Cognee. A pipeline is an ordered set of Python functions that transform data, extract information, and store the results.

In plain words
What is it for?
Use it to extract your own entities, define custom processing steps, create custom data points, and chain those steps into a reusable pipeline.
Why use it?
It provides a route for processing that Cognee's standard ingestion does not cover, without having to replace the whole system. It also explains how to create custom data records and run extra processing over an existing graph.

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-custom-pipelines/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-custom-pipelines

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/topoteretes/cognee/cognee-custom-pipelines"><img src="https://agentmods.dev/badge/skills/topoteretes/cognee/cognee-custom-pipelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,516 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.00088 $0.02516
Opus 5.5 $0.00035 $0.01006
Sonnet 5.5 $0.00018 $0.00503
Haiku 4.5 $0.00009 $0.00252

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

Security

Grade A, and why

cognee-custom-pipelines 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-custom-pipelines/SKILL.md · 220 lines

How it starts

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

Custom tasks and pipelines

Everything cognee does runs as a pipeline: an ordered list of tasks, each a plain Python function whose output feeds the next one. remember() is the right tool for ordinary ingestion. Build a pipeline when you need processing cognee does not ship: your own extraction, your own node types, or a post-processing step over the graph.

import cognee
from cognee.modules.pipelines import Task
from cognee.tasks.storage import add_data_points
from cognee.low_level import DataPoint


class Person(DataPoint):
    name: str
    metadata: dict = {"index_fields": ["name"], "identity_fields": ["name"]}


async def extract_people(data_items: list) -> list[Person]:
    people = []
    for item in data_items:  # always a list, see below
        text = item if isinstance(item, str) else ""
        people += [Person(name=n.strip()) for n in text.split(",") if n.strip()]
    return people


result = await cognee.run_custom_pipeline(
    tasks=[
        Task(extract_people, needs_llm=False),
        Task(add_data_points, needs_llm=False),  # store in graph + vector DBs
    ],
    data=["Ada Lovelace, Alan Turing"],
    dataset="people",
)

Use it

Pick the runner

There are three, and two share the name run_pipeline:

Runner Import Use it for
cognee.run_custom_pipeline(...) cognee The normal choice: runs your tasks against a dataset with permissions, a per-dataset lock, run records, and status
Full orchestrator run_pipeline(tasks=..., data=..., datasets=...) cognee.modules.pipelines What run_custom_pipeline and cognify call; yields PipelineRunInfo
Lightweight run_pipeline([...], data=...) from cognee.pipelines import run_pipeline (after import cognee, the attribute cognee.pipelines.run_pipeline is the orchestrator) Quick chains of task() specs with no permissions, locks, run rows, or migrations; returns the last step's outputs

cognee.run_custom_pipeline(tasks, data=None, dataset="main_dataset", user=None, incremental_loading=False, data_per_batch=20, run_in_background=False, pipeline_name="custom_pipeline", data_cache=False, ...) returns {dataset_id: PipelineRunInfo} (the started run when run_in_background=True). With data=None it runs over the dataset's existing documents (Data rows).

Read the full file on GitHub · 220 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 · -10 lines · -5 tokens per session be29f6a160f6
  2. 1mo ago First seen · 230 lines · 93 tokens per session scan A 10196639133f

Subscribe to this mod's changes

cognee-custom-pipelines is a skill published in the GitHub repository topoteretes/cognee (33,094 stars, last pushed today), licensed Apache-2.0. It adds 88 tokens to every session and 2,516 once invoked, about $0.0004 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-custom-pipelines compared with skills from other repositories

cognee-custom-pipelines next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cognee-custom-pipelinestopoteretes/cogneeSkill33ktodayApache-2.0A88Claude Code, Codex
openmemoryCaviraOSS/OpenMemorySkill4.6k19d agoApache-2.0A96Claude Code, Codex
dkg-importerOriginTrail/dkgSkill138yesterdayApache-2.0A87Claude Code, Codex
assessing-vector-and-embedding-weaknessesadriannoes/awesome-agentic-aiSkill964d agoMITA26Claude Code, Codex
add-llama-cppsliamh11/DeusSkill512d agoMITA35Claude Code
add-image-visionsliamh11/DeusSkill512d agoMITA32Claude Code
yesmem-configcarsteneu/yesmemSkill463d agoApache-2.0A82Claude Code, Codex