library

A connection between an agent's memory files and Cortex, a knowledge graph that links information for later retrieval. It supports combined meaning-based and keyword search, question answering, research, and graph exploration.

In plain words
What is it for?
Use it to sync memory into Cortex, search the stored knowledge, ask questions about it, conduct deeper research, and explore relationships in the knowledge graph.
Why use it?
It keeps stored agent knowledge easier to find and use across related files and questions.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/mocaos/cortex-app/library
Any agent
npx skills add mocaOS/cortex-app --skill library
Clone the repo
git clone --depth 1 https://github.com/mocaOS/cortex-app

Made for: Claude Code, Codex.

Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00137
Opus 5 $0.00019 $0.00068
Sonnet 5 $0.00008 $0.00027
Haiku 4.5 $0.00004 $0.00014

Measured 2d ago against content hash 9cbe24b985fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

library 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 2d 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.

frontend/public/skills/library/SKILL.md · 23 lines

What it actually says

Cortex Skill

This skill has moved to Cortex Skills, the official skill registry.

Install the latest version from: https://cortexskills.org

Full skill definition: https://cortexskills.org/SKILL.md

Source: https://github.com/mocaOS/cortex-skills

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. 2d ago First seen · 23 lines · 39 tokens per session scan A 9cbe24b985fe

Subscribe to this mod's changes

library is a skill published in the GitHub repository mocaOS/cortex-app (5 stars, last pushed 15d ago), licensed Apache-2.0. It adds 39 tokens to every session and 137 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-31.

Related

Other skills, from other repositories

rag-mcp-tool-selection

Select the top-K tools from a registry of 30+ MCP / AWS / internal-API tools for a given natural-language query, replacing MCP's tools/list dump with a RAG-style filter that reduces prompt tokens 50-70%. Three-step pipeline: retrieve / validate / format. Use when the agent has access to many tools and prompt bloat is…

AnthonyAlcaraz/agentic-graph-rag-skills · 132 tokens

rrf-hybrid-retrieval

Reciprocal Rank Fusion (RRF) hybrid retrieval across 4 parallel channels — semantic / keyword / graph-traversal / temporal — followed by cross-encoder rerank and token-budget filter (HINDSIGHT, Latimer et al. 2025, cited in Ch4). Rank-based fusion means scores don't need calibration across channels; absent items…

AnthonyAlcaraz/agentic-graph-rag-skills · 144 tokens

vector-vs-graph-retrieval-selector

Recommend VECTOR / GRAPH / HYBRID retrieval for a query workload, grounded in Ch1's BenchmarkQED evidence for where vector RAG succeeds and where it collapses. Classifies the workload on the BenchmarkQED scope x type axes (local/global, data/activity), weighs multi-hop / temporal / associativity needs, domain…

AnthonyAlcaraz/agentic-graph-rag-skills · 215 tokens

three-graph-router

Route an incoming record/fact into the correct graph of the Three-Graph Architecture (Ch3) — DOMAIN (trusted, entity-resolved single source of truth), LEXICAL (verbatim source text with provenance, the "retrieval" in RAG), or SUBJECT (LLM-extracted artifacts kept SEPARATE from domain until entity resolution links…

AnthonyAlcaraz/agentic-graph-rag-skills · 219 tokens

neuron-rag-specialist

Implement RAG (Retrieval-Augmented Generation) with Neuron AI including vector stores, embeddings providers, document loaders, and retrieval strategies. Use this skill whenever the user mentions RAG, retrieval, vector search, document retrieval, semantic search, knowledge bases, chat with documents, or wants to build…

neuron-core/neuron-ai · 95 tokens

memclaw

The agent's persistent long-term memory — the only knowledge that survives across sessions, shared across the fleet under access control. Consult it at the start of a task to recall prior decisions, findings, and rules before acting, and write outcomes, decisions, and lessons as work completes. Use whenever a caura…

caura-ai/caura · 124 tokens