asi: Skill for Claude Code

.claude/skills/deterministic-color-generation/SKILL.md

deterministic-color-generation is a skill for Claude Code from plurigrid/asi. It costs 0 tokens per session (2,278 once invoked), scanned A, original, MIT.

A method for computing colors directly from skill metadata using a hash, producing the same color whenever the metadata is the same.

In plain words
What is it for?
Use it to assign stable colors to skills and display metadata relationships in a visualization.
Why use it?
It keeps visualizations reproducible and avoids needing a machine-learning model or random color assignment.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is plurigrid/asi's own configuration. It tells Claude Code how to work on asi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything asi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to plurigrid/asi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/plurigrid/asi/main/.claude/skills/deterministic-color-generation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/plurigrid/asi

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deterministic-color-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/plurigrid/asi/deterministic-color-generation.svg)](https://agentmods.dev/skills/plurigrid/asi/deterministic-color-generation)
Your own site
<a href="https://agentmods.dev/skills/plurigrid/asi/deterministic-color-generation"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/deterministic-color-generation.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02278
Opus 5 $0.00000 $0.01139
Sonnet 5 $0.00000 $0.00456
Haiku 4.5 $0.00000 $0.00228

Measured 5d ago against content hash 0fb043d0c389, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

deterministic-color-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/deterministic-color-generation/SKILL.md · 282 lines

How it starts

The opening of the file, as written. The whole thing — 282 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deterministic Color Generation via Metadata Hashing

Status: ✅ Production Ready Type: Color Space / Metadata Visualization Principle: Colors are NOT learned—they're deterministically computed from skill metadata Frame: Involution-invariant (ι∘ι = id) GF(3): Conservation verified across 4-level hierarchy


Core Discovery

Colors in IsUMAP visualization are NOT generated by any machine learning model.

Instead, they are deterministically computed from cryptographic hash functions applied to skill metadata:

skill_name → hash() → abs() % 0xFFFFFF → hex color (#RRGGBB)

Why This Matters

This approach is superior to ML-based alternatives because:

Property Hash-Based (Current) ML-Based Alternatives
Determinism 100% (no RNG) 100% (with model)
Dependencies None (Julia stdlib) External packages
Reproducibility Perfect (offline) Good (model-dependent)
Transparency ✓ Verifiable ✗ Black box
Frame-Invariance ✓ By design ✗ Contingent
Complexity Minimal Substantial

Color Generation Algorithm

4-Level Hierarchy

Level 0: World Color
  ├─ Input: All projects in world, sorted
  ├─ Hash: join(sort(projects), "|") → hash() → hex
  └─ Property: Frame-invariant (project order irrelevant)

Level 1: Phase Color
  ├─ Input: Parent world color
  ├─ Hash: Inherited from Level 0
  └─ Property: Trit differentiates phases (+1 or -1)

Level 2: Project Color
  ├─ Input: Project name
  ├─ Hash: hash(project_name) → hex
  └─ Property: Group-level consistency

Level 3: Skill Color
  ├─ Input: Skill name
  ├─ Hash: hash(skill_name) → hex
  └─ Property: Individual identity, deterministic

Implementation

# Julia code from GMRA_WORLDS_UNWORLDING.jl

# Level 0: World
projects_str = join(sort(projects), "|")
color_seed = abs(hash(projects_str)) % 0xFFFFFF
gay_color = string("#", lpad(string(color_seed, base=16), 6, "0"))

# Level 2: Project
project_hash = abs(hash(project)) % 0xFFFFFF
project_color = string("#", lpad(string(project_hash, base=16), 6, "0"))

# Level 3: Skill
skill_hash = abs(hash(skill_name)) % 0xFFFFFF
skill_color = string("#", lpad(string(skill_hash, base=16), 6, "0"))

Read the full file on GitHub · 282 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 282 lines · 0 tokens per session scan A 0fb043d0c389

Subscribe to this mod's changes

deterministic-color-generation is a skill published in the GitHub repository plurigrid/asi (62 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,278 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens