acsets-relational-thinking

acsets-relational-thinking is a skill for Claude Code, Codex from plurigrid/asi. It costs 0 tokens per session (2,213 once invoked), scanned A, original, MIT.

A way to represent connected data as typed relationships, based on database schemas and category theory, a branch of mathematics about structured relationships.

In plain words
What is it for?
Use it to model relational datasets, define graph schemas, rewrite connected data, and refine queries through evaluation.
Why use it?
It gives complex data and graph changes a consistent structure that can be queried and transformed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to model relational datasets, define graph schemas, rewrite connected data, and refine queries through evaluation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plurigrid/asi/acsets-relational-thinking
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 acsets-relational-thinking
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 acsets-relational-thinking

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/plurigrid/asi/acsets-relational-thinking"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/acsets-relational-thinking.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 2,213 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.02213
Opus 5 $0.00000 $0.01107
Sonnet 5 $0.00000 $0.00443
Haiku 4.5 $0.00000 $0.00221

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

Security

Grade A, and why

acsets-relational-thinking 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.

ies/music-topos/.agents/skills/acsets-relational-thinking/SKILL.md · 289 lines

How it starts

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

SKILL: ACSets Relational Thinking

Version: 2.0.0 Trit: 0 (ERGODIC) Domain: database, category-theory, rewriting Source: Topos Institute RelationalThinking Course + AlgebraicJulia


Overview

ACSets (Attributed C-Sets) are functors X: C → Set where C is a small category (schema). This skill integrates:

  1. RelationalThinking Course - Topos Institute's pedagogical approach
  2. DPO Rewriting - Double Pushout graph transformation
  3. Self-Play Loop - Query → Execute → Evaluate → Refine
  4. GF(3) Conservation - Triadic skill composition

Core Concept: C-Set as Functor

Schema (Category C)          Instance (Functor X: C → Set)
┌─────────────────┐          ┌─────────────────────────────┐
│  E ──src──→ V   │    X     │  X(E) = {e1, e2, e3}        │
│    ←──tgt──     │   ───→   │  X(V) = {v1, v2}            │
└─────────────────┘          │  X(src): e1↦v1, e2↦v1, e3↦v2│
                             │  X(tgt): e1↦v2, e2↦v2, e3↦v1│
                             └─────────────────────────────┘

Schema Definition

Basic Graph Schema

using Catlab.CategoricalAlgebra

@present SchGraph(FreeSchema) begin
  V::Ob                    # Vertices (object)
  E::Ob                    # Edges (object)
  src::Hom(E, V)           # Source morphism
  tgt::Hom(E, V)           # Target morphism
end

@acset_type Graph(SchGraph, index=[:src, :tgt])

Entity-Subtype Hierarchy (from RelationalThinking Ch8)

@present SchKitchen(FreeSchema) begin
  Entity::Ob
  
  Food::Ob
  food_in_on::Hom(Food, Entity)
  food_is_entity::Hom(Food, Entity)
  
  Kitchenware::Ob
  ware_in_on::Hom(Kitchenware, Entity)
  ware_is_entity::Hom(Kitchenware, Entity)
  
  BreadLoaf::Ob
  bread_loaf_is_food::Hom(BreadLoaf, Food)
  Knife::Ob
  knife_is_ware::Hom(Knife, Kitchenware)
end

@acset_type Kitchen(SchKitchen)

DPO Rewriting (Double Pushout)

The Pattern: L ← K → R

     L ←──l── K ──r──→ R
     │        │        │
match│        │        │
     ↓        ↓        ↓
     G ←───── D ──────→ H
       pushout      pushout
       complement

Read the full file on GitHub · 289 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. 7d ago First seen · 289 lines · 0 tokens per session scan A 63388abc1c83

Subscribe to this mod's changes

acsets-relational-thinking 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 2,213 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-01.

Related

Other skills, from other repositories

sun-simiao-perspective

A historical medical-perspective skill based on research about Sun Simiao, a physician from China's Tang dynasty. It uses his clinical ideas and writings to discuss traditional Chinese medicine, health advice, medical ethics, and communication with patients.

digoal/blog · 950 tokens

zhang-zhongjing-perspective

A learning framework based on Zhang Zhongjing, a Chinese physician from the Eastern Han period, for reasoning about traditional Chinese medical diagnosis and treatment.

digoal/blog · 522 tokens

trading-manual-writer

A writing skill for creating sections of a trading manual for beginners and individual investors. It explains financial instruments or trading topics in Markdown and can include SVG illustrations.

digoal/blog · 185 tokens

database-foundation-course-writer

A skill for writing Chinese Markdown lessons about database fundamentals for database architects, database administrators, and application developers.

digoal/blog · 89 tokens

student-tutor

A tutoring skill that explains school problems in language suited to the student's grade and creates similar practice exercises. It covers subjects including mathematics, physics, chemistry, languages, biology, and Chinese.

digoal/blog · 118 tokens

documentation-writer

Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles and structure of the Diátaxis technical documentation authoring framework. Templates for tutorial / how-to / reference / explanation live under templates/.

ob-labs/agentseek · 53 tokens