nix-acset-worlding
Model Nix store as Attributed C-Set for dependency verification, GC analysis,
Best use case
nix-acset-worlding is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Model Nix store as Attributed C-Set for dependency verification, GC analysis,
Teams using nix-acset-worlding should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/nix-acset-worlding/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How nix-acset-worlding Compares
| Feature / Agent | nix-acset-worlding | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Model Nix store as Attributed C-Set for dependency verification, GC analysis,
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Nix ACSet Worlding Skill
> **Trit**: -1 (MINUS) - Constraint verification of Nix store semantics
Model Nix store as Attributed C-Set for dependency verification and world management.
## Schema
```julia
@present SchNixStore(FreeSchema) begin
(Path, Hash, Name, Type, World)::Ob
path_hash::Hom(Path, Hash)
path_name::Hom(Path, Name)
path_type::Hom(Path, Type)
depends_on::Hom(Path, Path)
belongs_to::Hom(Path, World)
hash_value::Attr(Hash, String) # 32-char base32
name_value::Attr(Name, String)
type_value::Attr(Type, Symbol) # :drv, :out, :source, :patch
world_name::Attr(World, String)
size_bytes::Attr(Path, Int)
is_dead::Attr(Path, Bool)
end
```
## Core Operations
### 1. GC Root Analysis
```julia
function live_roots(store::NixStoreACSet)
filter(p -> !store[:is_dead][p], parts(store, :Path))
end
function dead_paths(store::NixStoreACSet)
filter(p -> store[:is_dead][p], parts(store, :Path))
end
```
### 2. World Management
Flox environments as categorical worlds:
```
World := {name, dev_env, run_env, manifest}
```
Live worlds (2024-12-24):
- `music-topos` - Audio/visual synthesis
- `stellogen` - Stellar generators
- `bevy_fullscreen_app` - Rust game engine
- `cubical-agda` - HoTT proof assistant
### 3. Dependency Sheaf
Dependencies form a sheaf over the store graph:
```julia
function dependency_sheaf(store::NixStoreACSet)
# Check transitive closure consistency
for p in parts(store, :Path)
deps = store[:depends_on][p]
for d in deps
@assert haspart(store, :Path, d)
end
end
end
```
## Integration with Gay.jl
### Hash → Color Mapping
```julia
function hash_to_color(hash::String)
seed = parse(UInt64, hash[1:16], base=32)
gay_color(seed ⊻ GAY_SEED)
end
```
### GC Statistics (2024-12-24 Snapshot)
| Metric | Value |
|--------|-------|
| Dead paths | 299 |
| Reclaimable | 3.9 GB |
| Live roots | 17 |
| Worlds pruned | 5 |
## Triadic Composition
```
nix-acset-worlding (-1) ⊗ flox-envs (0) ⊗ world-hopping (+1) = 0 ✓
nix-acset-worlding (-1) ⊗ structured-decomp (0) ⊗ gay-mcp (+1) = 0 ✓
```
## Commands
```bash
# Snapshot current store
nix-store --gc --print-roots > roots.txt
nix-store --gc --print-dead > dead.txt
# Build ACSet from snapshot
julia -e 'using NixACSet; build_from_snapshot("dead.txt")'
# Verify dependency sheaf
julia -e 'using NixACSet; verify_sheaf(load_store())'
```
## Categorical Semantics
### Nix Store as Topos
- **Objects**: Store paths
- **Morphisms**: Dependencies (derivation → output)
- **Subobject classifier**: Ω = {live, dead, gc-protected}
### Pullback for Conflict Detection
```
P ──────→ A
│ │
↓ ↓
B ──────→ C
```
When two derivations depend on conflicting versions:
- P = empty → conflict detected
- P ≠ empty → shared dependency
## References
1. **Dolstra** - Nix: A Safe and Policy-Free System for Software Deployment
2. **Eelco** - The Purely Functional Software Deployment Model
3. **ACSets.jl** - Attributed C-Sets for algebraic databases
4. **Gay.jl** - Deterministic coloring for store visualization
## Scientific Skill Interleaving
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
### Annotated Data
- **anndata** [○] via bicomodule
- Hub for annotated matrices
### Bibliography References
- `general`: 734 citations in bib.duckdb
## Cat# Integration
This skill maps to **Cat# = Comod(P)** as a bicomodule in the equipment structure:
```
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826
```
### GF(3) Naturality
The skill participates in triads satisfying:
```
(-1) + (0) + (+1) ≡ 0 (mod 3)
```
This ensures compositional coherence in the Cat# equipment structure.Related Skills
worlding
Gay.jl world_ pattern: persistent composable state builders with GF(3) conservation, Möbius invertibility, and Narya verification
worlding-calendar
Calendar events tied to 26 letter-worlds via org-mode. Links events to beeper messages, voice notes, and Goblins capabilities. Replaces 13K-token Google Calendar MCP with CalDAV + DuckDB interactome.
world-memory-worlding
World memory is world remembering is world worlding - the autopoietic loop where memory enables remembering enables worlding enables memory
unison-acset
Unison language ACSet-structured skill with hierarchical documentation parsing, SPI trajectory recording, and 1069 skill predictions from zubuyul seed.
tasks-acset
Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.
specter-acset
Specter-style bidirectional navigation for Julia Collections, S-expressions, and ACSets with inline caching
rg-flow-acset
RG Flow ACSet Skill
protocol-acset
Model decentralized protocols as attributed C-sets for compositional analysis, interoperability design, and protocol evolution. Apply categorical mathematics to P2P infrastructure.
markov-game-acset
markov-game-acset skill
drive-acset
Google Drive management via DriveACSet schema with GF(3) triadic routing. Transforms files/folders into typed Interactions, routes to queue fibers, detects saturation for organized-drive-as-condensed-state.
docs-acset
Google Docs/Sheets management via ACSet condensation. Transforms documents into GF(3)-typed Interactions, tracks comments/cells, detects saturation when all comments resolved. Use for document workflows, spreadsheet automation, or applying ANIMA principles to Workspace documents.
calendar-acset
Google Calendar management via CalendarACSet. Transforms scheduling operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for balanced-calendar-as-condensed-state.