/asi:catcolab-schemasfrom asi
Models database schemas using CatColab's entity-attribute distinction, forming the foundation for ACSets and AlgebraicJulia data structures.
Ships in asi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Trit: +1 (PLUS - generator) Color: Green (#32CD32)
Schemas in CatColab upgrade ologs by explicitly distinguishing:
This is the foundation for ACSets (Attributed C-Sets), the core data structure of AlgebraicJulia.
A schema is a profunctor or displayed category:
┌─────────────────────────────────────────────────────┐
│ SCHEMA │
├─────────────────────────────────────────────────────┤
│ Entities (Ob): │
│ Person, Company, Project │
│ │
│ AttrTypes (Data): │
│ String, Int, Date, Bool │
│ │
│ Mappings (Hom): │
│ works_at: Person → Company │
│ leads: Person → Project │
│ │
│ Attributes (Attr): │
│ name: Person → String │
│ age: Person → Int │
│ founded: Company → Date │
└─────────────────────────────────────────────────────┘
// Schema double theory in catlog
pub fn th_schema() -> DiscreteDblTheory {
let mut cat = FpCategory::new();
// Object types
cat.add_ob_generator(name("Entity"));
cat.add_ob_generator(name("AttrType"));
// Morphism types
cat.add_mor_generator(name("Mapping"), name("Entity"), name("Entity"));
cat.add_mor_generator(name("Attr"), name("Entity"), name("AttrType"));
cat.into()
}
{
"type": "ObDecl",
"name": "Person",
"theory_type": "Entity",
"description": "people in the system"
}
{
"type": "ObDecl",
"name": "String",
"theory_type": "AttrType",
"description": "text values"
}
{
"type": "MorDecl",
"name": "employer",
"dom": "Person",
"cod": "Company",
"theory_type": "Mapping",
"description": "the company this person works for"
}
{
"type": "MorDecl",
"name": "salary",
"dom": "Person",
"cod": "Int",
"theory_type": "Attr",
"description": "annual salary in dollars"
}
A CatColab schema defines the type; an ACSet is an instance:
# Schema defines structure
@present SchPerson(FreeSchema) begin
Person::Ob
Company::Ob
employer::Hom(Person, Company)
Name::AttrType
name::Attr(Person, Name)
end
# ACSet populates data
people = @acset SchPerson begin
Person = 3
Company = 2
employer = [1, 1, 2]
name = ["Alice", "Bob", "Charlie"]
end
Entities: Customer, Order, Product, Category
AttrTypes: String, Int, Float, DateTime
Mappings:
placed_by: Order → Customer
contains: Order → Product (many-to-many via junction)
in_category: Product → Category
Attributes:
email: Customer → String
total: Order → Float
price: Product → Float
name: Category → String
Entities: User, Post, Comment, Group
AttrTypes: String, DateTime, Int
Mappings:
author: Post → User
on_post: Comment → Post
member_of: User → Group
Attributes:
username: User → String
content: Post → String
timestamp: Post → DateTime
likes: Post → Int
Schemas compose via pullback and pushout:
Schema A Schema B
\ /
\ pullback /
\ /
▼ ▼
Schema A ×_C B
catcolab-ologs (-1) ⊗ topos-catcolab (0) ⊗ catcolab-schemas (+1) = 0 ✓
database-design (-1) ⊗ acsets-relational-thinking (0) ⊗ catcolab-schemas (+1) = 0 ✓
# Create schema
just catcolab-new schema "my-database"
# Generate Julia ACSet code
just catcolab-export my-database --format=julia
# Create instance (diagram)
just catcolab-instance my-database "sample-data"
# Migrate schema
just catcolab-migrate old-schema new-schema
Skill Name: catcolab-schemas Type: Database Schema Design Trit: +1 (PLUS) GF(3): Conserved via triadic composition
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
catcolab, schemas, database-modeling, acsets, algebraicjulia, entity-attribute
Generated from the plugin's indexed repository (plurigrid/asi) — no native marketplace selected
npx claudepluginhub p/plurigrid-asi-plugins-asi1,393 skills in this plugin
/abductive-replHypothesis-Test Loops via REPL for Exploratory Abductive Inference/academic-researchSearch academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research./accept-no-substitutesThis skill should be used when agents generate placeholder tokens like "pseudo-", "mock-", "temporary", "TODO", "demo-", or similar incompleteness markers. Detects substitution patterns in agent OUTPUT and triggers mandatory user interview instead of accepting incomplete work. Activates automatically on any output containing forbidden tokens.Other plugins' skills for the same job