knowledge-graph

knowledge-graph is a skill for Claude Code, Codex from cirwel/unitares. It costs 37 tokens per session (2,666 once invoked), scanned A, original, Apache-2.0.

A shared knowledge base for coding agents, where discoveries are saved and can be searched or updated across sessions.

In plain words
What is it for?
It helps agents search existing information, add discoveries with tags and types, and track each entry through a status lifecycle.
Why use it?
It prevents useful findings from being lost between tasks or duplicated by different agents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps agents search existing information, add discoveries with tags and types, and track each entry through a status lifecycle.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cirwel/unitares/knowledge-graph
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.

Any agent
npx skills add cirwel/unitares --skill knowledge-graph
Clone the repo
git clone --depth 1 https://github.com/cirwel/unitares

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 knowledge-graph

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cirwel/unitares/knowledge-graph"><img src="https://agentmods.dev/badge/skills/cirwel/unitares/knowledge-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,666 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.00037 $0.02666
Opus 5.5 $0.00015 $0.01066
Sonnet 5.5 $0.00007 $0.00533
Haiku 4.5 $0.00004 $0.00267

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

Security

Grade A, and why

knowledge-graph 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 today.

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.

skills/knowledge-graph/SKILL.md · 197 lines

How it starts

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

Knowledge Graph

What It Is

Shared institutional memory across all agents, backed by PostgreSQL (canonical rows) with Apache AGE (graph edges under UNITARES_KNOWLEDGE_BACKEND=age, required by the server either way; native installs default to postgres full-text search). Discoveries persist across sessions for every agent.

Search Before Creating

Always search before adding new entries to avoid duplicating knowledge:

search_shared_memory(query="description of what you're looking for", tags=["relevant", "tags"], limit=10)
  • search_shared_memory is the lean workflow alias for knowledge(action="search") (3 digests + up to 17 more_results summaries). Open any hit with use_tool(tool_name="knowledge", arguments={"action": "details", "discovery_id": ...}), or pass response_mode="full" for inline details.
  • Archived/cold visibility: archived and cold rows are hidden by default unless fewer than 3 active rows match (or fewer than 3 active rows match all query terms lexically in hybrid search, replacing lower-ranked non-exact active tail slots and reporting active_tail_displaced on archived_cold_fallback) or you pass include_archived=true / include_cold=true or status=... — do not conclude "not found" without checking when searching historical topics.
  • Authority precedence: default search is authority-aware — imported memory (source-<provider>-memory, authority.tier="imported_context", trust="unreviewed") is down-ranked in close contests against native_finding and evidence-linked governed_claim rows, and omitted from queryless listings.
  • Freshness controls: use sort_by="created_at" (FTS only, not semantic/hybrid) or created_after/created_before (ISO 8601) for newest-first reads, or recency_half_life_days to weight relevance by age.
  • Verify before relying: before treating a finding as an operating rule, open its full details, inspect superseded_by and resolution_notes, and check canonical evidence. A summary or recent timestamp is not verification.

Read the full file on GitHub · 197 lines

Files

What ships with it

2 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. today Changed · +9 lines b1d8c3cbaf5c
  2. yesterday Changed · +3 lines 959a9155a518
  3. 2d ago Changed · +4 lines 8aa957184d4b
  4. 3d ago Changed · +2 lines e671b785fcc7
  5. 5d ago Changed · -342 lines cb45ae60959e
  6. 10d ago Changed f108288a9a6e
  7. 27d ago Changed · +19 lines 19ca81fc3d03
  8. 1mo ago Changed · +13 lines e841f885edca
  9. 1mo ago Changed e4bb5a3ad38b
  10. 1mo ago First seen · 489 lines · 37 tokens per session scan A c71d40552d1a

Subscribe to this mod's changes

knowledge-graph is a skill published in the GitHub repository cirwel/unitares (6 stars, last pushed today), licensed Apache-2.0. It adds 37 tokens to every session and 2,666 once invoked, about $0.0001 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-graph compared with skills from other repositories

knowledge-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-graphcirwel/unitaresSkill6todayApache-2.0A37Claude Code, Codex
adk-agent-buildergoogle/adk-pythonSkill22ktodayApache-2.0A177Claude Code, Codex
adk-stylegoogle/adk-pythonSkill22ktodayApache-2.0A187Claude Code, Codex
adk-verify-snippetsgoogle/adk-pythonSkill22ktodayApache-2.0C149Claude Code, Codex
adk-setupgoogle/adk-pythonSkill22ktodayApache-2.0C146Claude Code
python-best-practicesNoesisVision/nasde-toolkitSkill164d agoMITA36Claude Code, Codex
adversarial-verificationSunrisesIllNeverSee/agent-universeSkill16d agoMITA78Claude Code, Codex