categorical-composition

categorical-composition is a skill for Codex from plurigrid/asi. It costs 0 tokens per session (667 once invoked), scanned A, original, MIT.

A Julia toolkit for combining mathematical models using category theory, a field that studies relationships and structure between systems. It includes abstractions for adapting learning problems, translating between representations, and transferring parameters while preserving structure.

In plain words
What is it for?
Use it to experiment with category-theory-based learning architectures, Kan extensions, adjunctions, and structure-preserving parameter transfer in Julia.
Why use it?
It gives you shared rules for assembling smaller learning components into larger systems and for translating between related problems. The input describes it as a skeleton implementation, so its practical completeness is limited.

Skill for Codex

Written for Codex: installed under .codex/.

Good fit Use it to experiment with category-theory-based learning architectures, Kan extensions, adjunctions, and structure-preserving parameter transfer in Julia.

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

Made for: 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 categorical-composition

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/plurigrid/asi/categorical-composition"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/categorical-composition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 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.00000 $0.00667
Opus 5 $0.00000 $0.00333
Sonnet 5 $0.00000 $0.00133
Haiku 4.5 $0.00000 $0.00067

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

Security

Grade A, and why

categorical-composition 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 6d 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/.codex/skills/categorical-composition/SKILL.md · 84 lines

How it starts

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

Categorical Composition

Category: Phase 3 Core - Compositional Architecture Status: Skeleton Implementation Dependencies: None (foundational)

Overview

Implements categorical abstractions for compositional learning: Kan extensions for adapting between learning problems, higher adjunctions for bidirectional transformations, and functorial parameter transfer for compositional generalization.

Capabilities

  • Kan Extensions: Left/right Kan extensions for problem adaptation
  • Adjunctions: Adjoint functors for bidirectional transformations
  • Functorial Transfer: Preserve structure across parameter spaces
  • Compositional Architecture: Build complex systems from simple components

Core Components

  1. Category Theory Primitives (category_theory.jl)

    • Category, functor, natural transformation definitions
    • Composition and identity laws
    • Diagram chasing utilities
  2. Kan Extensions (kan_extensions.jl)

    • Left Kan extension (initial/colimit-based)
    • Right Kan extension (terminal/limit-based)
    • Pointwise computation formulas
  3. Adjunctions (adjunctions.jl)

    • Adjoint functor pairs
    • Unit and counit natural transformations
    • Triangle identities verification
  4. Functorial Parameter Transfer (functorial_transfer.jl)

    • Transfer neural network parameters via functors
    • Preserve compositional structure
    • Zero-shot generalization via categorical reasoning

Integration Points

  • Input from: All Phase 3 skills (provides compositional framework)
  • Output to: All Phase 3 skills (foundational abstraction)
  • Coordinates with: formal-verification-ai (correctness proofs)

Usage

using CategoricalComposition

# Define source and target categories
C = FiniteCategory(objects=[:A, :B], morphisms=Dict(:f => (:A, :B)))
D = FiniteCategory(objects=[:X, :Y, :Z], morphisms=Dict(:g => (:X, :Y), :h => (:Y, :Z)))

# Define functor F: C -> D
F = Functor(
    source=C,
    target=D,
    object_map=Dict(:A => :X, :B => :Y),
    morphism_map=Dict(:f => :g)
)

# Compute left Kan extension
G = Functor(source=C, target=Set, object_map=Dict(:A => [1,2], :B => [3,4]))
Lan_F_G = left_kan_extension(F, G)

# Verify adjunction
@assert check_adjunction(Lan_F_G, restriction_functor(F))

Read the full file on GitHub · 84 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. 6d ago First seen · 84 lines · 0 tokens per session scan A 1fd4b4d1fa87

Subscribe to this mod's changes

categorical-composition is a skill published in the GitHub repository plurigrid/asi (62 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 667 tokens. 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

Other skills, from other repositories

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…

K-Dense-AI/scientific-agent-skills · 66 tokens

torchdrug

Build and troubleshoot TorchDrug 0.2.1 workflows for molecular graphs, property prediction, self-supervised pretraining, molecule generation, retrosynthesis, protein representation learning, and knowledge graph reasoning. Use when code imports torchdrug or needs its datasets, models, tasks, or Engine.

K-Dense-AI/scientific-agent-skills · 61 tokens

deepspot-m

Generate transcriptome-wide virtual spatial transcriptomics from H&E histology with DeepSpot-M. Use when you need spatial gene expression in log1p-CPM for 224x224 tiles at about 20x, want to query protein-coding genes by symbol instead of a fixed panel, or want to run prediction across a whole slide after tiling with…

K-Dense-AI/scientific-agent-skills · 80 tokens

pyhealth

Build clinical/healthcare deep-learning pipelines with PyHealth — loading EHR/signal/imaging datasets (MIMIC-III/IV, eICU, OMOP, SleepEDF, ChestXray14, EHRShot), defining tasks (mortality, readmission, length-of-stay, drug recommendation, sleep staging, ICD coding, EEG events), instantiating models (Transformer…

K-Dense-AI/scientific-agent-skills · 216 tokens

pick-a-pii-model

Select an on-device OpenMed PII model from the committed registry by language, runtime format, and size budget, then require recall validation before deployment. Use when an agent must choose a local PII detector for CPU, Apple Silicon, or a mobile export without relying on live model discovery.

maziyarpanahi/openmed · 64 tokens

evo2

Score, embed, and generate DNA sequences with Evo 2, a long-context genomic foundation model. Use this skill when: (1) Computing per-nucleotide or per-sequence likelihoods for variant effect scoring, (2) Embedding genomic windows for downstream classification, (3) Generating DNA conditioned on a prefix, (4) Scoring…

aipoch/open-science · 83 tokens