crn-topology

crn-topology is a skill for Claude Code, Codex from plurigrid/asi. It costs 17 tokens per session (948 once invoked), scanned A, original, MIT.

A tool for creating and studying chemical reaction networks, including the links between chemical species and reactions.

In plain words
What is it for?
It is for generating reaction graphs, building stoichiometric matrices, and calculating network deficiency and related properties.
Why use it?
It helps reveal structural properties that can affect whether a reaction system is stable, oscillating, or able to maintain its components.

Skill for Claude CodeCodex

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

Good fit It is for generating reaction graphs, building stoichiometric matrices, and calculating network deficiency and related properties.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plurigrid/asi/crn-topology
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 plurigrid/asi --skill crn-topology
Clone the repo
git clone --depth 1 https://github.com/plurigrid/asi

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 crn-topology

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/plurigrid/asi/crn-topology"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/crn-topology.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00017 $0.00948
Opus 5.5 $0.00007 $0.00379
Sonnet 5.5 $0.00003 $0.00190
Haiku 4.5 $0.00002 $0.00095

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

Security

Grade A, and why

crn-topology 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 3mo 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.

ies/music-topos/.ruler/skills/crn-topology/SKILL.md · 138 lines

How it starts

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

CRN Topology Skill: Reaction Network Generation

Status: ✅ Production Ready Trit: +1 (PLUS - generator) Color: #D82626 (Red) Principle: Network structure → Dynamical behavior Frame: Hypergraph topology of chemical reactions


Overview

CRN Topology generates and analyzes the graph structure of chemical reaction networks. The topology determines qualitative dynamics—multistability, oscillations, and computational capacity.

  1. Species-reaction graph: Bipartite hypergraph
  2. Stoichiometric matrix: Linear algebra of reactions
  3. Deficiency: Gap between complexes and rank
  4. Persistence: Network admits no extinctions

Core Formula

Deficiency δ = n - ℓ - s
  n = number of complexes
  ℓ = number of linkage classes  
  s = rank of stoichiometric matrix

Zero deficiency theorem:
  δ = 0 and weakly reversible ⟹ unique stable equilibrium
def crn_deficiency(network: CRN) -> int:
    n = len(network.complexes)
    l = network.linkage_classes()
    s = np.linalg.matrix_rank(network.stoichiometry)
    return n - l - s

Key Concepts

1. Stoichiometric Matrix Generation

class CRNGenerator:
    def __init__(self, species: list[str]):
        self.species = species
    
    def random_reaction(self) -> Reaction:
        """Generate topology-valid reaction."""
        reactants = self.sample_complex()
        products = self.sample_complex()
        return Reaction(reactants, products)
    
    def stoichiometry_matrix(self, reactions) -> np.ndarray:
        """S[i,j] = net change in species i from reaction j."""
        S = np.zeros((len(self.species), len(reactions)))
        for j, rxn in enumerate(reactions):
            S[:, j] = rxn.products - rxn.reactants
        return S

2. Network Motif Generation

def generate_oscillator_topology() -> CRN:
    """Generate Brusselator-like topology."""
    return CRN([
        "A → X",
        "2X + Y → 3X",
        "B + X → Y + D", 
        "X → E"
    ])

def generate_bistable_topology() -> CRN:
    """Generate Schlögl-like bistability."""
    return CRN([
        "A + 2X ⇌ 3X",
        "X ⇌ B"
    ])

Read the full file on GitHub · 138 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. 3mo ago First seen · 138 lines · 17 tokens per session scan A 5b4cd78b4c90

Subscribe to this mod's changes

crn-topology is a skill published in the GitHub repository plurigrid/asi (73 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 948 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-09-03.

Related

crn-topology compared with skills from other repositories

crn-topology next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
crn-topologyplurigrid/asiSkill731mo agoMITA17Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill38kyesterdayApache-2.0A123Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA83Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA44Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35kyesterdayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9k3d agoApache-2.0A205Claude Code