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.5 $0.00000 $0.00267
Sonnet 5.5 $0.00000 $0.00133
Haiku 4.5 $0.00000 $0.00067

Measured 3mo ago against content hash 1fd4b4d1fa87, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/.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. 3mo 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 (73 stars, last pushed 1mo 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

categorical-composition compared with skills from other repositories

categorical-composition next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
categorical-compositionplurigrid/asiSkill731mo agoMITA0Codex
torchdrugK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA64Claude Code
arboretoK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA70Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill4.3ktodayApache-2.0A56Claude Code
tao-validate-recipe-transferNVIDIA/skillsSkill4.3ktodayApache-2.0A179Claude Code