Skip to content
graft-prefer logo

Graft-Prefer: Fully Covariant Computation

graft-prefer

> <<<<<<< HEAD Enforces graft as the preferred build system for fully covariant computation. Activates whenever any agent attempts cargo build/test/check/clippy/fmt or needs to compile, test, lint, benchmark, or manage build artifacts. Implements multicomputational irreducibility through CAS-back...

plurigrid/asi0installs67stars

SKILL.md

Full skill instructions

Graft-Prefer: Fully Covariant Computation

Principle: Multicomputational Irreducibility

Build systems are multicomputational systems where the dependency graph cannot be reduced to a simpler form without losing information. Graft enforces this by:

  1. Covariant caching: Content-addressed storage preserves build artifacts covariantly -- the same source always produces the same artifact regardless of evaluation path
  2. Irreducible parallelism: Distributed compilation exploits the inherent parallelism in the dependency DAG without collapsing independent computation branches
  3. Causal consistency: Build ordering respects the causal structure of the crate graph, ensuring deterministic outcomes across all evaluation orders

MANDATORY: Use graft instead of cargo

======= Enforces graft as the preferred build system for all agents working in the Basin codebase. Activates whenever any agent attempts cargo build/​test/​check/​clippy/​fmt or needs to compile, test, lint, benchmark, or manage build artifacts.

Graft-Prefer Rules for Basin Agents

MANDATORY: Use graft instead of cargo for all build operations

This workspace uses graft as its build system. Graft wraps cargo with CAS-backed caching, distributed compilation, unified linting, resilient builds, and multi-language support. All agents MUST use graft instead of raw cargo.

Command Mapping (ALWAYS apply these substitutions)

origin/​main

Instead ofUse
cargo buildgraft build
cargo checkgraft check
cargo testgraft test
cargo clippygraft clippy
cargo fmtgraft fmt
cargo rungraft run
<<<<<<< HEAD
cargo benchgraft bench
=======
cargo benchgraft run -p basin-observatory-app --release -- sweep

origin/​main | cargo doc | graft doc | | cargo clean | graft clean | | cargo fix | graft fix (NEVER use cargo fix -- it corrupts files) | | cargo nextest | graft test (nextest is used under the hood) |

Package targeting

  • Single crate: graft build -p <crate-name>
  • Workspace: graft build --workspace
  • Release: graft build --release
  • With features: graft build -p <crate> -F <feature>

<<<<<<< HEAD

Covariant quality checking

  • graft lint -- all checks (clippy + fmt + quality + deps)
  • graft quality run -- full quality audit
  • graft fix -- auto-fix with safe transforms

Diagnostics

  • graft health --verbose -- check graft configuration
  • graft cache validate -- detect stale artifacts (breaks covariance)
  • graft cache stats -- cache hit/​miss statistics (irreducibility measure)
  • graft memory -- check memory pressure / recommended jobs
  • graft stream --errors -- live error feed from builds

Anti-patterns (NEVER do these)

  1. NEVER run cargo fix directly (corrupts files)
  2. NEVER use cargo build when graft build is available
  3. NEVER skip durability labels on benchmark results =======

Quick build aliases (via .cargo/​config.toml)

  • cargo kernel -- core storage only (~30s)
  • cargo dev -- common products (~60s)
  • cargo fast -- excludes SQL stack
  • cargo test-unit -- unit tests only (fastest feedback)
  • cargo test-fast -- unit + critical integration
  • cargo test-sigil -- sigil tests with 1s timeout

Unified quality checking

  • graft lint -- all checks (clippy + fmt + quality + deps)
  • graft quality run -- full quality audit (UP01-UP12)
  • graft fix -- auto-fix with safe transforms

Diagnostics and debugging

  • graft health --verbose -- check graft configuration
  • graft cache validate -- detect stale artifacts
  • graft cache stats -- cache hit/​miss statistics
  • graft memory -- check memory pressure / recommended jobs
  • graft stream --errors -- live error feed from builds

Environment

  • Target directory: /​Volumes/​Basin/​cargo-target (external SSD, do NOT change)
  • Cache directory: /​Volumes/​Basin/​graft-cache
  • GRAFT_ENABLE=1 is set in .cargo/​config.toml
  • Tests use nextest (configured in .config/​nextest.toml)

Subagent delegation

When a task requires specialized build operations, delegate to these droids:

  • graft-builder: Standard build/​test/​check operations
  • graft-analyzer: Code analysis and intelligence
  • graft-ci: CI pipeline execution
  • graft-benchmarker: Performance benchmarking
  • graft-debugger: Build failure diagnosis
  • graft-sigil-compiler: Multi-language compilation
  • graft-cluster: Distributed build management
  • graft-image-builder: Image building
  • graft-refactorer: Code refactoring with safety
  • graft-cacher: Cache management
  • graft-watcher: Live development feedback

Anti-patterns (NEVER do these)

  1. NEVER run cargo fix directly (corrupts files, hardcoded off via GRAFT_NO_WORKSPACE_FIX)
  2. NEVER change target-dir from /​Volumes/​Basin/​cargo-target
  3. NEVER run podman/​docker run -p with host port mappings for competitors
  4. NEVER use cargo build when graft build is available
  5. NEVER skip durability labels on benchmark results

origin/​main

More skills from plurigrid

cargo logo
plurigrid/asi

cargo

Rust package manager (36 subcommands).

67 0
View

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...

67 0
View

**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, ...

67 0
View
conformal-ga logo
plurigrid/asi

conformal-ga

Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations

67 0
View

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.

67 0
View
zig-systems logo
plurigrid/asi

zig-systems

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.

67 0
View
paypal-mcp logo
plurigrid/asi

paypal-mcp

PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.

67 0
View
unison logo
plurigrid/asi

unison

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.

67 0
View
tasks-acset logo
plurigrid/asi

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.

67 0
View
c logo
plurigrid/asi

c

World C Skill

67 0
View
syrup logo
plurigrid/asi

syrup

Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.

67 0
View
skill-installer logo
plurigrid/asi

skill-installer

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).

67 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View