claude-cognis: Skill for Claude Code

.agents/skills/cognis/SKILL.md

cognis is a skill for Claude Code from Lyzr-Cognis/claude-cognis. It costs 105 tokens per session (992 once invoked), scanned A, a copy of cognis-skills, MIT.

A long-term memory service for AI agents that stores information by user and project, with an optional shared memory for everyone contributing to a repository.

In plain words
What is it for?
Use it to save and recall personal or team project knowledge, such as technology preferences or deployment instructions. It requires a Cognis API key.
Why use it?
It helps preserve preferences, decisions, and project context after a session ends instead of relying only on the current conversation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

This is Lyzr-Cognis/claude-cognis's own configuration. It tells Claude Code how to work on claude-cognis 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 claude-cognis configures →

Part of the claude-cognis plugin — 4 skills, 5 commands, 3 hooks, 1 MCP server shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Lyzr-Cognis/claude-cognis. 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/Lyzr-Cognis/claude-cognis/main/.agents/skills/cognis/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Lyzr-Cognis/claude-cognis

Made for: Claude Code.

Or install claude-cognis, the plugin that ships this one along with the rest of its 4 skills, 5 commands, 3 hooks, 1 MCP server.

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 cognis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lyzr-cognis/claude-cognis/cognis"><img src="https://agentmods.dev/badge/skills/lyzr-cognis/claude-cognis/cognis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 992 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.00105 $0.00992
Opus 5 $0.00053 $0.00496
Sonnet 5 $0.00021 $0.00198
Haiku 4.5 $0.00011 $0.00099

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

Security

Grade A, and why

cognis scanned grade A with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cognis-context.sh, scripts/cognis-save.sh, scripts/cognis-search.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

compatibility: Requires curl and LYZR_API_KEY environment variable. Internet access to studio.lyzr.ai.
Origin

This is a copy

97% identical to cognis-skills — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/cognis/SKILL.md · 114 lines

How it starts

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

Cognis — Persistent Memory for AI Agents

Cognis gives you long-term memory that persists across sessions. Memories are scoped per-user and per-project, with optional team-wide sharing.

Setup

The LYZR_API_KEY environment variable must be set. Get a key at studio.lyzr.ai.

export LYZR_API_KEY="your-key-here"

Optionally set COGNIS_OWNER_ID to override the default owner (system username).

Scoping

Cognis uses two levels of scoping to keep memories organized:

  • owner_id: Identifies the user. Defaults to the system username (whoami). Override with COGNIS_OWNER_ID.
  • agent_id: Identifies the project context.
    • Personal scope: claudecode_<sha256(git_root)[:16]> — unique per user per project.
    • Team scope: repo_<sanitized_repo_name> — shared across all contributors to a repo.

The scripts detect the git root and remote automatically. No manual configuration needed.

Saving Memories

Save something the user wants to remember:

bash scripts/cognis-save.sh "The user prefers PostgreSQL for all new services"

Save a team-wide memory (visible to all repo contributors):

bash scripts/cognis-save.sh "Deploy process: run migrations first, then deploy API, then workers" --team

Read references/api-reference.md for full parameter details.

Searching Memories

Search for relevant memories:

bash scripts/cognis-search.sh "what database do we use"

Search only team memories:

bash scripts/cognis-search.sh "deployment process" --repo

Search both personal and team:

bash scripts/cognis-search.sh "auth setup" --both

Getting Assembled Context

Fetch relevant context (combines short-term and long-term memory):

bash scripts/cognis-context.sh

This returns assembled context for the current project, including relevant personal and team memories.

When to Use Personal vs Team Scope

  • Personal (default): User preferences, individual notes, personal workflow details, things the user says about themselves.
  • Team (--team): Architecture decisions, deployment processes, coding conventions, shared knowledge that any contributor would benefit from.

Read the full file on GitHub · 114 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 114 lines · 105 tokens per session scan A be47ffa99655

Subscribe to this mod's changes

cognis is a skill published in the GitHub repository Lyzr-Cognis/claude-cognis (20 stars, last pushed 5mo ago), licensed MIT. It adds 105 tokens to every session and 992 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 97% identical to cognis-skills, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens