knowledge_sememolution_skill

knowledge_sememolution_skill is a skill for Claude Code, Codex from NPC-Worldwide/npcpy. It costs 366 tokens per session (987 once invoked), scanned A, original, MIT.

A system for growing several different knowledge graphs, which are networks of connected facts and concepts, from text. It searches and refines these graphs in different ways, then compares their answers.

In plain words
What is it for?
Use it for cross-domain idea generation, speculative reasoning, text-based knowledge building, and questions where combining distant concepts may help.
Why use it?
It helps when one search through stored knowledge may miss useful connections or perspectives. Different graph versions can explore a question with varied depth and breadth.

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/npc-worldwide/npcpy/knowledge_sememolution_skill
Any agent
npx skills add NPC-Worldwide/npcpy --skill knowledge_sememolution_skill
Clone the repo
git clone --depth 1 https://github.com/NPC-Worldwide/npcpy

Made for: Claude Code, Codex.

Per session 366 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 987 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.00366 $0.00987
Opus 5 $0.00183 $0.00494
Sonnet 5 $0.00073 $0.00197
Haiku 4.5 $0.00037 $0.00099

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

Security

Grade A, and why

knowledge_sememolution_skill 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (instruct.py), 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.

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_sememolution_skill/SKILL.md · 57 lines

How it starts

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

knowledge_sememolution_skill

Skill for population-based Knowledge Graph evolution via Sememolution. Use this when the user wants creative cross-domain synthesis, speculative reasoning, or when a single KG search might be too narrow. Sememolution maintains a population of KG "individuals". Each individual has its own graph (different facts, concepts, links) and its own genome controlling how it searches and evolves. Core genome parameters: - lambda_depth — Poisson rate for search traversal depth - lambda_breadth — Poisson rate for search breadth per step - sleep_ops — which refinement ops to apply during sleep - dream_probability — chance of speculative synthesis per cycle Workflow: 1. Create a population: SememolutionPopulation(model, provider, population_size=100, sample_size=10) 2. Initialize: pop.initialize() 3. Assimilate text: pop.assimilate_text(chunk) — each individual absorbs it differently 4. Sleep cycle: pop.sleep_cycle() — each individual prunes/deepens independently 5. Query and rank: pop.query_and_rank(question) — sample individuals, each searches its own graph with Poisson-sampled depth/breadth, generates a response, and responses are ranked. Winners get fitness bumps. 6. Evolve: pop.evolve_generation() — tournament selection, crossover, mutation. When to use this: - The user asks open-ended "what if" or "how might X relate to Y" questions - You need diverse perspectives on the same knowledge corpus - You want to discover non-obvious connections across domains - Standard KG search returns shallow or overly literal results Important: this is computationally expensive. Only invoke after checking whether standard keyword/embedding/hybrid search is sufficient.

Inputs

  • name (default: 'task')
  • description (default: 'initialize | assimilate | query_rank | evolve | sleep')
  • name (default: 'population_size')
  • description (default: 'Number of individuals (default 100)')
  • name (default: 'query_text')
  • description (default: 'Question to ask the population (for query_rank)')

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file 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. 3d ago First seen · 57 lines · 366 tokens per session scan A 2901cd5c853d

Subscribe to this mod's changes

knowledge_sememolution_skill is a skill published in the GitHub repository NPC-Worldwide/npcpy (1,494 stars, last pushed 8d ago), licensed MIT. It adds 366 tokens to every session and 987 once invoked, about $0.0018 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-30.

Related

Other skills, from other repositories

agent-neural-network

Agent skill for neural-network - invoke with $agent-neural-network.

ruvnet/ruflo · 18 tokens

hugging-face-model-trainer

This skill should be used when users want to train or fine-tune language models using TRL (Transformer Reinforcement Learning) on Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs package, UV…

patchy631/ai-engineering-hub · 131 tokens

hugging-face-datasets

Create and manage datasets on Hugging Face Hub. Supports initializing repos, defining configs/system prompts, streaming row updates, and SQL-based dataset querying/transformation. Designed to work alongside HF MCP server for comprehensive dataset workflows.

patchy631/ai-engineering-hub · 49 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

gpt-image-2-style-library

Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use when an agent needs to create, rewrite, classify, or improve image-generation prompts with repository-backed templates, categories, style tags, scene tags, pitfalls, and example cases.

freestylefly/awesome-gpt-image-2 · 72 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens