Skip to content
Back to skills

Catp

ASecurity

Category-theoretic pipes with GF(3) flow balance checking. Validates

  • 61 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
devopsgobash

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill catp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Catp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Catp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-catp/badge)](https://www.skillsdirectory.com/skills/plurigrid-catp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: catp
description: Category-theoretic pipes with GF(3) flow balance checking. Validates
  data transformation pipelines using triadic trit algebra.
metadata:
  interface_ports:
  - Integration Points
trit: 1
---
# catp: Categorical Pipes

**Trit**: +1 (PLUS)  
**Principle**: Balanced data flows through morphism chains  
**Algebra**: GF(3) flow conservation

## Why GF(3)?

Three-phase data flow:
- **Source** (-1): Read/Fetch ingestion
- **Transform** (0): Shape-preserving operations  
- **Sink** (+1): Write/Output operations

Sum must = 0 (mod 3) for balanced pipeline.

## Operations by Trit

| Trit | Category | Operations |
|------|----------|-----------|
| -1 | MINUS (Sources) | slurp, read, fetch, query, search, list |
| 0 | ERGODIC (Transforms) | map, filter, select, rename, mutate, reduce, join, group-by |
| +1 | PLUS (Sinks) | println, print, write, save, spit, create, send |

## Usage

```bash
# Check balance of a pipe
bb catp.bb --check '(->> [1 2 3] (map inc) (filter odd?) (reduce +))'

# Output:
# Operations: map %>% filter %>% reduce
# Trits: {"map" 0, "filter" 0, "reduce" 0}
# Sum: 0 (mod 3 = 0)
# GF(3) Balanced: ✓
```

## Example: Unbalanced Pipeline

```clojure
;; WRONG: Two transforms, one sink (missing source)
(->> (map inc)           ; 0
     (filter odd?)       ; 0
     (reduce +))         ; 0
     
; Sum: 0 ✓ (looks balanced but logically missing source!)
```

## Example: Properly Balanced

```clojure
;; CORRECT: Source → Transform → Sink
(->> [1 2 3]             ; implicit source (-1)
     (map inc)           ; transform (0)
     (filter odd?)       ; transform (0)
     (println))          ; sink (+1)

; GF(3): -1 + 0 + 0 + 1 = 0 ✓
```

---

## End-of-Skill Interface

## Integration Points

- **babashka** (->> threading)
- **drive-acset** (query chains)
- **l-space** (narrative pipes)
- **dplyr** %>% (R interop)


---

## Autopoietic Marginalia

> **The interaction IS the skill improving itself.**

Every use of this skill is an opportunity for worlding:
- **MEMORY** (-1): Record what was learned
- **REMEMBERING** (0): Connect patterns to other skills  
- **WORLDING** (+1): Evolve the skill based on use



*Add Interaction Exemplars here as the skill is used.*

Files in this skill

  • CONCOMITANT_SKILLS.md1.2 KB
  • SKILL.md2.2 KB
  • SKILL.md.bak1.7 KB
  • catp.bb2.6 KB
  • demo.bb794 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.