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
Detect missing glyphs, icons, stale manifests → compare registries vs glyph mappings, icon dirs, manifests. Structured gap report → skills, agents, teams.
skill, agent, team, all (default: all)cyberpunk — reference)Collect entity IDs from source-of-truth registries.
skills/_registry.yml → all skill IDs across all domainsagents/_registry.yml → all agent IDsteams/_registry.yml → all team IDs→ 3 lists of entity IDs w/ counts matching total_skills, total_agents, total_teams.
If err: Registry file missing → report path + skip that type.
Collect mapped entity IDs from glyph mapping files.
viz/R/glyphs.R → all keys from SKILL_GLYPHS listviz/R/agent_glyphs.R → all keys from AGENT_GLYPHS listviz/R/team_glyphs.R → all keys from TEAM_GLYPHS list→ 3 lists of mapped IDs.
If err: Glyph file missing → report + 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_ids→ Lists of entity IDs in registries w/o glyph fn mapped.
If err: Diff fails → verify ID formats match (underscores vs hyphens).
Verify mapped glyphs have corresponding 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 structure→ Lists of entities w/ glyphs but missing rendered icons (standard/HD).
If err: Icon dir missing → pipeline not run → 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 entries→ Manifest counts match registry counts. Discrepancy = stale.
If err: Manifest files missing → data pipeline must 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));
"
→ Zero orphans. Any = skills re-homed to diff domain w/o cleanup (18 orphans per re-homing = 9 palettes × 2 sizes).
If err: Delete orphans manually → no manifest entry, won't be served. Re-home events rare → manual cleanup OK.
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)
→ Complete gap report w/ actionable next steps.
If err: All checks pass, zero gaps → report "Pipeline fully in sync" as positive outcome.
create-skill), glyph maps may use snake_case → normalize comparisonicons-hd/) → don't confuse w/ standardbuild.sh creates icons at new path but NOT deletes old → always run Step 6 orphan check after any domain migration