cargo
Rust package manager (36 subcommands).
syrup
Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.
Full skill instructions
Trit: -1 (MINUS - constraining/validating serialization) Color: #8B4513 (Saddlebrown - like syrup) Source: ocapn/syrup
Syrup is a lightweight binary serialization format for the OCapN (Object Capability Network). It provides canonical encoding - the same data always serializes to identical bytes - making it suitable for hashing, signing, and capability transport.
Core principle: Simple, canonical, easy to implement across languages.
| Type | Format | Example |
|---|---|---|
| Boolean | t or f | t = true |
| Positive int | <digits>+ | 42+ |
| Negative int | <digits>- | 123- = -123 |
| Bytestring | <len>:<bytes> | 3:cat |
| String | <len>"<utf8> | 5"hello |
| Symbol | <len>'<utf8> | 3'foo |
| Float | F<4 bytes> | IEEE 754 single |
| Double | D<8 bytes> | IEEE 754 double |
| List | [<items>] | [3+4+5+] = [3,4,5] |
| Dict | {<k><v>...} | {3"age12+} |
| Set | #<items>$ | #3:a3:b$ |
| Record | <<label><args>> | <4"date2024+5+1+> |
# pip install via: gh repo clone ocapn/syrup && cd syrup/impls/python
from syrup import syrup_encode, syrup_decode, Symbol, record
# Encode
syrup_encode({"name": "alice", "age": 30})
# => b'{3"age30+4"name5"alice}'
# Decode
syrup_decode(b'{3"age30+4"name5"alice}')
# => {'age': 30, 'name': 'alice'}
# Symbols (for Lisp-like keys)
syrup_encode({Symbol('species'): b'cat'})
# => b"{7'species3:cat}"
# Records (custom types)
syrup_encode(record('date', 2024, 5, 1))
# => b'<4"date2024+5+1+>'
;; Install: copy syrup.scm to your Guile load path
(use-modules (syrup))
;; Encode
(syrup-encode 42)
;; => #vu8(52 50 43) ; "42+"
(syrup-encode '("hello" "world"))
;; => #vu8(91 53 34 104 101 108 108 111 53 34 119 111 114 108 100 93)
;; Decode
(syrup-decode #vu8(52 50 43))
;; => 42
;; Records
(syrup-encode (make-syrec* (string->utf8 "date") 2024 5 1))
#lang racket
(require syrup)
;; Encode
(syrup-encode #hash(("name" . "alice") ("age" . 30)))
;; => #"{3\"age30+4\"name5\"alice}"
;; Decode
(syrup-decode #"{3\"age30+}")
;; => #hash(("age" . 30))
;; Records
(syrup-encode (record* #"date" 2024 5 1))
;; => #"<4:date2024+5+1+>"
;; Marshalling custom types
(struct point (x y) #:transparent)
(syrup-encode (point 1 2)
#:marshallers (list (cons point?
(λ (p) (record* 'point (point-x p) (point-y p))))))
Package: syrup (installed via raco pkg)
Syrup guarantees canonical encoding:
This means: hash(syrup_encode(x)) == hash(syrup_encode(y)) iff x == y
Syrup decoders accept:
d3:agei12ee → dict(3:foo 3:bar) → list# Bencode
syrup_decode(b'd3:agei12e4:name5:Missye')
# => {b'age': 12, b'name': b'Missy'}
# S-expressions
syrup_decode(b'(3:cat 7:tabatha)')
# => [b'cat', b'tabatha']
# Wire Format Bundle
syrup (-1) ⊗ captp (0) ⊗ gay-mcp (+1) = 0 ✓ [Colored Capabilities]
syrup (-1) ⊗ localsend-mcp (0) ⊗ tailscale-file (+1) = 0 ✓ [P2P Transfer]
syrup (-1) ⊗ beeper-mcp (0) ⊗ agent-o-rama (+1) = 0 ✓ [Message Encoding]
# Serialization Stack
syrup (-1) ⊗ preserves (0) ⊗ json (+1) = 0 ✓ [Format Spectrum]
# Python (after installing to PYTHONPATH)
python3 -c "from syrup import *; print(syrup_encode({'test': 42}))"
# Guile (after installing to load path)
guile -c "(use-modules (syrup)) (display (syrup-encode 42))"
# Racket (after raco pkg install)
racket -e "(require syrup) (displayln (syrup-encode #hash((\"x\" . 1))))"
| Use Case | Why Syrup |
|---|---|
| CapTP messages | Wire format for capability transport |
| Content addressing | Canonical = deterministic hashes |
| Signing | Sign serialized form, verify anywhere |
| Storage | Compact binary, self-describing |
| Cross-language | Same bytes from Python/Guile/Racket |
| Skill | Relation |
|---|---|
| captp | CapTP uses Syrup as wire format |
| preserves | Syrup is a Preserves serialization |
| localsend-mcp | P2P transfer could use Syrup |
| acsets | Serialize ACSets with Syrup |
# Clone the repo
gh repo clone ocapn/syrup
# Python: add to PYTHONPATH or copy syrup.py
cp syrup/impls/python/syrup.py ~/.local/lib/python3/
# Guile: copy to load path
cp syrup/impls/guile/syrup.scm ~/.local/share/guile/site/3.0/
# Racket: install package
cd syrup/impls/racket && raco pkg install syrup/
Skill Name: syrup
Type: Binary Serialization Format
Trit: -1 (MINUS)
GF(3): Constrains data to canonical form
Invariant: Same data → same bytes, always
Part of: acp-commons.
Rust package manager (36 subcommands).
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...
**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...
Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations
Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.
Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.
PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.
Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.
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.
World C Skill
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
Deploy serverless applications on Cloudflare Workers. Covers project setup, JavaScript handler patterns, routing, deployment with Wrangler, and API token configuration. Suitable for APIs, proxies, edge computing, and request transformation.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience