Color Mining Skill

Split-mix ternary parallel color mining using GF(3) conservation. Achieves 3^d parallelism with perfect triadic balance.

16 stars

Best use case

Color Mining Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Split-mix ternary parallel color mining using GF(3) conservation. Achieves 3^d parallelism with perfect triadic balance.

Teams using Color Mining Skill 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

$curl -o ~/.claude/skills/color-mining/SKILL.md --create-dirs "https://raw.githubusercontent.com/plurigrid/asi/main/plugins/asi/skills/color-mining/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/color-mining/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Color Mining Skill Compares

Feature / AgentColor Mining SkillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Split-mix ternary parallel color mining using GF(3) conservation. Achieves 3^d parallelism with perfect triadic balance.

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

# Color Mining Skill

Split-mix ternary parallel color mining using GF(3) conservation. Achieves 3^d parallelism with perfect triadic balance.

## Core Concept

**Split-Mix Ternary**: A maximally parallel color operation where:
- Each split creates 3 sibling streams with trits {-1, 0, +1}
- Siblings always sum to 0 mod 3 (GF(3) conservation)
- At depth d, we achieve 3^d parallel mining streams
- Each stream has a deterministic color assignment

## GF(3) Color Mapping

| Trit | Name | Hue Range | Role | Mining Function |
|------|------|-----------|------|-----------------|
| -1 | MINUS | 180-300° (cold) | Validator | Verify mined results |
| 0 | ERGODIC | 60-180° (neutral) | Coordinator | Aggregate & balance |
| +1 | PLUS | 0-60°, 300-360° (warm) | Generator | Execute mining ops |

## Usage

```
/color-mining [depth] [operation]
```

### Parameters
- `depth`: Mining depth (1-10), determines parallelism as 3^d
- `operation`: One of `mine`, `verify`, `balance`, `status`

### Examples

```bash
# Mine with 27 parallel streams (depth 3)
/color-mining 3 mine

# Verify conservation across all streams
/color-mining 4 verify

# Show mining status
/color-mining status
```

## Implementation

The skill spawns 3^d parallel Task agents, each assigned a unique path through the ternary tree. Conservation is verified at every level.

```clojure
;; Core split-mix algorithm
(defn split-mix-mine [depth seed]
  (let [streams (generate-ternary-paths depth)
        colors (map path->color streams)]
    (pmap mine-with-color (zip streams colors))))
```

## Parallel Mining Architecture

```
                    [Coordinator: ERGODIC]
                          / | \
        [MINUS]        [ERGODIC]        [PLUS]
        validate       coordinate       generate
         / | \          / | \          / | \
       ...  ...       ...  ...       ...  ...

       ← 3^d parallel mining streams →
```

## Conservation Invariant

At every node in the mining tree:
```
Σ(sibling_trits) ≡ 0 (mod 3)
```

This ensures:
1. Perfect load balance (equal MINUS/ERGODIC/PLUS distribution)
2. No accumulation of bias in mining results
3. Self-correcting parallel structure

## Integration Points

- **Gay.jl**: Color assignments use Gay.jl HSL space
- **DuckDB**: Mining results stored in temporal tables
- **Aptos**: On-chain verification of mined color proofs
- **Task agents**: Parallel execution via Claude Code Task tool

## Mining Rewards

Colors mined satisfy:
- Unique path hash (no collisions)
- GF(3) balanced neighborhoods
- Deterministic reproducibility from seed

---

**Author**: Split-Mix Ternary Protocol
**GF(3) Conservation**: Guaranteed
**Max Parallelism**: 3^10 = 59,049 streams

Related Skills

plr-thread-coloring

16
from plurigrid/asi

PLR (Parallel/Leading-tone/Relative) transitions for thread coloring. One-hot keyspace reduction to GF(3) trits for behavior indexing. Grows perception/action information field capacity through efficient user illusion.

möbius-color-duality

16
from plurigrid/asi

Möbius inversion for Gay.jl color duality - closes sparsification spine gap

finder-color-walk

16
from plurigrid/asi

Finder Color Walk Skill

emacs-color-chain

16
from plurigrid/asi

Control Emacs via deterministic Gay-MCP color chains — seed-derived palettes drive buffer themes, mode-line, org headers, and window focus

detecting-cryptomining-in-cloud

16
from plurigrid/asi

This skill teaches security teams how to detect and respond to unauthorized cryptocurrency mining operations in cloud environments. It covers identifying cryptomining indicators through compute usage anomalies, network traffic patterns to mining pools, GuardDuty CryptoCurrency findings, and runtime process monitoring on EC2, ECS, EKS, and Azure Automation workloads.

building-role-mining-for-rbac-optimization

16
from plurigrid/asi

Apply bottom-up and top-down role mining techniques to discover optimal RBAC roles from existing user-permission assignments, reducing role explosion and enforcing least privilege.

clj-kondo-3color

16
from plurigrid/asi

clj-kondo linter with Gay.jl 3-color integration for GF(3) conservation in Clojure code analysis.

Geohash Coloring Skill

16
from plurigrid/asi

GF(3) colored geohashes for hierarchical spatial indexing with deterministic color derivation.

color-envelope-preserving

16
from plurigrid/asi

GF(3) color envelope preservation across navigator compositions

Deterministic Color Generation via Metadata Hashing

16
from plurigrid/asi

**Status**: ✅ Production Ready

zx-calculus

16
from plurigrid/asi

Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)

zulip-cogen

16
from plurigrid/asi

Zulip Cogen Skill 🐸⚡