zettelforge

zettelforge is a skill for Claude Code, Codex from ThreatRecall/zettelforge. It costs 80 tokens per session (970 once invoked), scanned A, original, MIT.

A persistent memory system for cyber threat intelligence, meaning information about attackers, vulnerabilities, tools, and campaigns. It stores and searches reports, resolves aliases, follows STIX 2.1 relationships, and creates summaries.

In plain words
What is it for?
It is for saving intelligence, looking up threat actors or CVEs, tracing relationships in a threat graph, synthesising briefs, and syncing with OpenCTI.
Why use it?
It lets agents recall accumulated security knowledge instead of starting from an empty conversation. It also connects related actors, tools, CVEs, and campaigns for investigation.

Skill for Claude CodeCodex

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

Good fit It is for saving intelligence, looking up threat actors or CVEs, tracing relationships in a threat graph, synthesising briefs, and syncing with OpenCTI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/threatrecall/zettelforge/claude-code
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 ThreatRecall/zettelforge --skill claude-code
Clone the repo
git clone --depth 1 https://github.com/ThreatRecall/zettelforge

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 zettelforge

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/threatrecall/zettelforge/claude-code"><img src="https://agentmods.dev/badge/skills/threatrecall/zettelforge/claude-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 970 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.00080 $0.00970
Opus 5.5 $0.00032 $0.00388
Sonnet 5.5 $0.00016 $0.00194
Haiku 4.5 $0.00008 $0.00097

Measured 1mo ago against content hash 0415c3eecdb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

zettelforge 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 1mo 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.

skills/claude-code-skill.md · 111 lines

How it starts

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

ZettelForge: CTI Agentic Memory

Persistent memory system for cyber threat intelligence. 75% accuracy on CTI queries, 111ms p50 latency.

When to use this skill

  • Storing threat intelligence from reports, incidents, or conversations
  • Recalling what we know about a threat actor, CVE, tool, or campaign
  • Synthesizing briefs from accumulated intelligence
  • Looking up entity relationships (who uses what, who targets what)
  • Traversing the STIX 2.1 knowledge graph
  • Syncing from OpenCTI

Quick reference

Store intel

from zettelforge import MemoryManager
mm = MemoryManager()
note, status = mm.remember("APT28 uses Cobalt Strike via CVE-2024-1111", domain="cti")

Search memory

results = mm.recall("What tools does APT28 use?", k=10)
for r in results:
    print(f"{r.id}: {r.content.raw[:100]}")

Entity lookup (fast, O(1))

mm.recall_actor("APT28")           # or "Fancy Bear" — aliases resolve automatically
mm.recall_cve("CVE-2024-3094")
mm.recall_tool("cobalt-strike")

Synthesize answer

result = mm.synthesize("Summarize APT28 activity", format="synthesized_brief")
# formats: direct_answer, synthesized_brief, timeline_analysis, relationship_map

Graph traversal

paths = mm.traverse_graph("actor", "apt28", max_depth=2)
# APT28 → USES_TOOL → cobalt-strike → EXPLOITS_CVE → CVE-2024-1111

Ingest report (auto-chunks)

results = mm.remember_report(content="Full report text...", source_url="https://...", domain="cti")

Two-phase extraction (selective, deduplicating)

results = mm.remember_with_extraction("APT28 dropped DROPBEAR, now uses edge devices", domain="cti")
# Returns: [(<MemoryNote>, "added"), (<MemoryNote>, "updated"), ...]

OpenCTI sync

from zettelforge.opencti_sync import sync_opencti
stats = sync_opencti(mm, limit=50)  # Pull latest from OpenCTI

MCP tools available

If the ZettelForge MCP server is configured, use these tools directly:

Read the full file on GitHub · 111 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. 1mo ago First seen · 111 lines · 80 tokens per session scan A 0415c3eecdb0

Subscribe to this mod's changes

zettelforge is a skill published in the GitHub repository ThreatRecall/zettelforge (66 stars, last pushed 2d ago), licensed MIT. It adds 80 tokens to every session and 970 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-11.