brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
audit-icon-pipelineDetect missing glyphs, icons, and HD variants by comparing registries against glyph mapping files, icon directories, and manifests. Reports gaps for skills, agents, and teams across all palettes.
Independent GitHub snapshot · Automated classification · Original documentation governs
Find missing glyphs, missing icons, stale manifests. Diff registries vs glyph maps, icon dirs, manifests. Produce gap report for skills, agents, teams.
skill, agent, team, or all (default: all)cyberpunk — reference palette)Collect entity IDs from source-of-truth registries.
skills/_registry.yml — grab skill IDs across domainsagents/_registry.yml — grab agent IDsteams/_registry.yml — grab team IDsGot: Three ID lists with counts matching total_skills, total_agents, total_teams.
If fail: Registry file missing? Report path, skip that type.
Collect mapped entity IDs from glyph map files.
viz/R/glyphs.R — grab keys from SKILL_GLYPHS listviz/R/agent_glyphs.R — grab keys from AGENT_GLYPHS listviz/R/team_glyphs.R — grab keys from TEAM_GLYPHS listGot: Three mapped-ID lists.
If fail: Glyph file missing? Report it, mark all entities of that type unmapped.
Diff registry IDs vs mapped IDs.
registry_skill_ids - mapped_skill_idsregistry_agent_ids - mapped_agent_idsregistry_team_ids - mapped_team_idsGot: Lists of entity IDs in registries but no glyph function mapped.
If fail: Diff fails? Verify ID formats match between registry and glyph files (underscores vs hyphens).
Verify mapped glyphs have rendered icon files.
viz/public/icons/<palette>/<domain>/<skillId>.webpviz/public/icons/<palette>/agents/<agentId>.webpviz/public/icons/<palette>/teams/<teamId>.webpviz/public/icons-hd/ — same structureGot: Lists of entities with glyphs but no rendered icons (standard and/or HD).
If fail: Icon dir absent? Pipeline not run yet — report all as missing.
Compare manifest counts vs registry counts.
viz/public/data/icon-manifest.json — count entriesviz/public/data/agent-icon-manifest.json — count entriesviz/public/data/team-icon-manifest.json — count entriesGot: Manifest counts match registry counts. Mismatch → stale manifest.
If fail: Manifest files absent? Data pipeline needs to run first (node build-data.js && node build-icon-manifest.js).
Walk viz/public/icons*/. Flag WebP files whose <palette>/<domain>/<skillId> triple absent from icon-manifest.json.
find viz/public/icons* -name "*.webp"<domain>/<id> from path<domain>/<id> has entry in icon-manifest.json# Quick orphan count per palette
node -e "
const fs = require('fs');
const manifest = JSON.parse(fs.readFileSync('viz/public/data/icon-manifest.json'));
const ids = new Set(manifest.map(e => e.domain + '/' + e.id));
const orphans = require('child_process')
.execSync('find viz/public/icons -name \"*.webp\"').toString().trim().split('\n')
.filter(p => { const parts = p.split('/'); const id = parts.slice(-2).join('/').replace('.webp',''); return !ids.has(id); });
console.log('Orphans:', orphans.length);
orphans.forEach(p => console.log(' ', p));
"
Got: Zero orphans. Any orphans → skills re-homed to different domain, no cleanup (18 orphans per re-homing = 9 palettes × 2 sizes).
If fail: Delete orphans manually — no manifest entry, will not be served. Re-home events rare, manual cleanup acceptable.
Produce structured summary.
=== Icon Pipeline Audit ===
MISSING GLYPHS (no glyph function):
Skills: 5 missing — [list]
Agents: 2 missing — [list]
Teams: 0 missing
MISSING ICONS (glyph exists, no rendered WebP):
Standard (512px): 3 skills, 1 agent
HD (1024px): 8 skills, 3 agents, 1 team
STALE MANIFESTS:
icon-manifest.json: 320 entries vs 326 registry (stale)
agent-icon-manifest.json: 66 entries vs 66 registry (OK)
team-icon-manifest.json: 15 entries vs 15 registry (OK)
Got: Full gap report with actionable next steps.
If fail: All checks pass, zero gaps? Report "Pipeline fully in sync" — positive outcome.
create-skill), glyph maps may use snake_case keys — normalize before comparisonicons-hd/) — don't confuse with standard iconsbuild.sh creates icons at new path, does NOT delete old — always run Step 6 orphan check after domain migration