register-asset
Skill0 starsChanged 8 days agoMITView on GitHub
Register a design artifact in design-assets.json, capture a thumbnail, and regenerate assets.html overview grid. Use when an artifact is ready for review, or user says "add to overview", "register", "track this".
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- bluzir/claude-code-designedited, first seen Apr 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- bluzir/claude-code-design★ 10290% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- animated-videoSkill
- apply-editsSkill
- apply-tweaksSkill
- copy-exampleSkill
- create-design-systemSkill
- doctorSkill
- export-pdfSkill
- export-pptxSkill
- export-standaloneSkill
- governance-reviewSkill
- handoffSkill
- ingest-documentSkill
- ingest-figmaSkill
- ingest-githubSkill
- ingest-screenshotSkill
- inspectSkill
- interactive-prototypeSkill
- live-reloadSkill
- local-commentsSkill
- make-deckSkill
- make-editableSkill
- make-tweakableSkill
- publishSkill
- ship-branchSkill
- snapshotSkill
- sync-design-systemSkill
- use-design-systemSkill
- verify-artifactSkill
- wireframeSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Add an artifact to design-assets.json and refresh the visual overview at assets.html.
- Very specific: line 25
If --auto and .claude/last-preview.png exists: Bash(cp .claude/last-preview.png assets/thumbs/<slug>-<ts>.png) — reuse
- Very specific: line 29
If missing → create with {"items": []}
- Very specific: line 34
If new → append with the given or default status / subtitle / group
- Very specific: line 58
If node is missing, fall back to inline generation via Write tool with HTML template.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Register Asset
Add an artifact to design-assets.json and refresh the visual overview at assets.html.
Argument parsing
From $ARGUMENTS:
- Positional 0: html-path (required)
--asset "<name>": display name (default: derive from filename, Title Cased)--group <X>: one of Type, Colors, Spacing, Components, Brand (default: Components)--subtitle "<text>": short description--status <X>: needs-review | approved | changes-requested (default: needs-review)--auto: silent mode called by/done— skip thumbnail capture (reuses.claude/last-preview.png), don't print confirmation prompts, one-line report only
Steps
- Capture thumbnail:
- If
--autoand.claude/last-preview.pngexists:Bash(cp .claude/last-preview.png assets/thumbs/<slug>-<ts>.png)— reuse - Otherwise:
/preview <html-path>→ wait 500ms →mcp__chrome-devtools__take_screenshot→ save toassets/thumbs/<slug>-<ts>.png(Bash(mkdir -p assets/thumbs)first)
- If
- Read existing
design-assets.json:- If missing → create with
{"items": []}
- If missing → create with
Upsert entry:
- Key on (asset, path) pair
- If exists → refresh
thumbnailand bumpupdated_at. With--auto(the/donepath) change nothing else:status,subtitle,group,registered_atand anypublished_*fields stay as they were, so a re-run of/donenever resets an approved asset toneeds-review. Without--auto, an explicit--status/--subtitle/--groupargument overrides the stored value - If new → append with the given or default
status/subtitle/group
Schema:
{ "items": [ { "asset": "Primary button", "path": "artifacts/button.html", "group": "Components", "status": "approved", "subtitle": "Filled variant with hover state", "thumbnail": "assets/thumbs/button-20260420T120000Z.png", "registered_at": "2026-04-20T12:00:00Z", "updated_at": "2026-04-20T12:00:00Z" } ] }- Write
design-assets.jsonwith formatted JSON (2-space indent). - Regenerate
assets.html:Bash(node scripts/make-assets-index.mjs)— see script below- If node is missing, fall back to inline generation via
Writetool with HTML template. Never runnodewith anything other than that script.
- Report: "Registered
<asset>in<group>. View atassets.html."
assets.html layout
Sections by group. Each card shows:
- Thumbnail (clickable → opens source HTML in new tab)
- Asset name (bold)
- Subtitle (muted)
- Status badge (color-coded: green=approved, amber=needs-review, red=changes-requested)
- Updated date
- Mini-menu: approve, request-changes, unregister
The HTML is static — no server. Status changes happen via Claude (user says "approve the button asset" → Claude re-runs /register-asset ... --status approved).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

