serendipity

serendipity is a skill for Claude Code from emergent-wisdom/understanding-graph. It costs 44 tokens per session (1,304 once invoked), scanned A, original, MIT.

A guide for deliberately exploring less obvious connections in a task while checking each idea against evidence. It can suggest material from farther away in a knowledge graph or introduce controlled variation.

In plain words
What is it for?
Use it during research, reading, writing, or coding when comparing distant ideas or choosing between continuing with a known approach and exploring another.
Why use it?
Staying on the most familiar path can hide useful alternatives, while random novelty can distract from the task. This guide provides a structured way to explore without losing focus.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the understanding-graph plugin — 10 skills, 2 MCP servers shipped together

Good fit Use it during research, reading, writing, or coding when comparing distant ideas or choosing between continuing with a known approach and exploring another.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emergent-wisdom/understanding-graph/serendipity
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 emergent-wisdom/understanding-graph --skill serendipity
Clone the repo
git clone --depth 1 https://github.com/emergent-wisdom/understanding-graph

Made for: Claude Code.

Or install understanding-graph, the plugin that ships this one along with the rest of its 10 skills, 2 MCP servers.

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 serendipity

README.md
[![agentmods](https://agentmods.dev/badge/skills/emergent-wisdom/understanding-graph/serendipity.svg)](https://agentmods.dev/skills/emergent-wisdom/understanding-graph/serendipity)
Your own site
<a href="https://agentmods.dev/skills/emergent-wisdom/understanding-graph/serendipity"><img src="https://agentmods.dev/badge/skills/emergent-wisdom/understanding-graph/serendipity.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,304 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.00044 $0.01304
Opus 5 $0.00022 $0.00652
Sonnet 5 $0.00009 $0.00261
Haiku 4.5 $0.00004 $0.00130

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

Security

Grade A, and why

serendipity 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 7d 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/serendipity/SKILL.md · 119 lines

How it starts

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

Serendipity

Serendipity is an encounter with material outside the most likely completion path, followed by judgment. It is not a novelty quota, a claim that unrelated things must connect, or permission to abandon the user's task.

Choose the encounter

If the user has not requested a particular method and there is a genuine exploratory choice, start with:

graph_suggest_next({
  task: "State the live task or uncertainty",
  workflow: "general",
  creativity: true
})

Replace general with the live work domain when reading, research, coding, collaborative coding, or writing applies.

Consider higher-weighted routes seriously, then choose, combine, modify, or reject them. The model decides whether a proposed encounter can serve the live task; the menu is neither exhaustive nor mandatory. Do not call for another roll merely because one turn elapsed.

Pass creativity: false when ordinary guidance is useful but creative provocations are not. This affects that roll only; it does not disable any direct tool. Use graph_thermostat() when an entropy-style structural pulse would genuinely help decide between convergence, continuation, and divergence. Its pressure and recommended tool are advisory, not a command or quality score.

Choose the creative pressure

Use graph_bisociate to surface cross-context candidates through spreading activation and information gain. It is often the lightest way to leave a local groove: inspect a candidate's actual nodes, then decide whether a relation is real.

Use graph_discover_grounded({ nodes: 3, intensity: 0.2 }) when you want the graph to sample distant material and ask whether a real bridge exists. Inspect the actual sources, then look for a shared mechanism, constraint, structure, or functional analogy. A defensible no-connection result needs no node.

After finding a genuine bridge, graph_discover_grounded_chaos can perturb that bridge. Do not call it merely because the grounded tool returned nodes. Use graph_discover({ nodes: 2, cold: true, blind: true }) for the more speculative blind ANI path, or graph_chaos({ text, blind: true }) to perturb chosen text. Blind ANI is meaningful only when a separate model context sees the returned prompt without the original source context.

Read the full file on GitHub · 119 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. 7d ago First seen · 119 lines · 44 tokens per session scan A 1d062b0e62ec

Subscribe to this mod's changes

serendipity is a skill published in the GitHub repository emergent-wisdom/understanding-graph (1 stars, last pushed 13d ago), licensed MIT. It adds 44 tokens to every session and 1,304 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

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

braindb-custom-profile

How to author a BrainDB custom profile — prompt add/replace fragments and an optional keyless ingestor — that shapes wiki naming/structure and feeds a custom ingestion source, with zero effect on defaults when inactive.

dimknaf/braindb · 49 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

nano-banana-pro-openrouter

Deterministic OpenRouter image generation adapter for Nano Banana Pro / Gemini image models. Use as skillexec when a meta-skill needs local image files and structured IMAGEREADY records without spawning an LLM agent.

opensquilla/opensquilla · 49 tokens

skill-creator-linter

Internal tool (not user-invocable). Called by meta-skill-creator as a DAG step (kind: agent) to lint a candidate meta-skill SKILL.md against G1 (parse + reference check + xmlescape grep + structural lint) and G2 (scheduler dry-run with stub executors). Deterministic, sub-second, no LLM. Returns JSON diagnostics.

opensquilla/opensquilla · 84 tokens