register-asset

Register a design artifact in design-assets.json, capture a thumbnail, and regenerate the assets.html overview grid. Use this when an artifact is ready for review or the user says “add to overview,” “register,” or “track this content.”

Last repository push
GitHub Stars
112
Forks
11
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "register-asset" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b7ab3ad5ab602770e1e66118cdaf386026df5d6261d1ca5acfca86a07213b479. Verify the upstream source and version against https://github.com/bluzir/claude-code-design before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Register a design artifact in design-assets.json, capture a thumbnail, and regenerate the assets.html overview grid. Use this when an artifact is ready for review or the user says “add to overview,” “register,” or “track this content.”

0 Downloads

Introduction source: third_party · bluzir · 0.0.1 Reference

SkillPi interpretation

Tasks
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".
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: register-asset
description: 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".
argument-hint: <html-path> [--asset "Name"] [--group Type|Colors|Spacing|Components|Brand] [--subtitle "..."] [--status needs-review|approved|changes-requested]
allowed-tools: Read Write Edit Bash(mkdir:*) Bash(node:*) Bash(realpath:*) mcp__chrome-devtools__*

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

  1. Capture thumbnail:

    • If --auto and .claude/last-preview.png exists: Bash(cp .claude/last-preview.png assets/thumbs/<slug>-<ts>.png) — reuse
    • Otherwise: /preview <html-path> → wait 500ms → mcp__chrome-devtools__take_screenshot → save to assets/thumbs/<slug>-<ts>.png (Bash(mkdir -p assets/thumbs) first)
  2. Read existing design-assets.json:

    • If missing → create with {"items": []}
  3. Upsert entry:

    • Key on (asset, path) pair
    • If exists → update fields + thumbnail + bump updated_at
    • If new → append

    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"
        }
      ]
    }
  4. Write design-assets.json with formatted JSON (2-space indent).

  5. Regenerate assets.html:

    • Bash(node scripts/make-assets-index.mjs) — see script below
    • If user didn't run /doctor and node is missing, fall back to inline generation via Write tool with HTML template
  6. Report: "Registered <asset> in <group>. View at assets.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).

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 直接解决设计成果物注册、缩略图截取和概览网格生成的核心任务痛点
  • 显著提升设计资产管理的效率
  • 支持多种状态管理和分组,满足实际工作流需求
Trigger Precision88/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
  • argument-hint 提供了清晰的参数说明和使用场景
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,单文件≤500行
  • Schema定义清晰,便于理解和扩展
Execution Reliability85/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
  • 提供了fallback机制,确保在node缺失时仍能生成HTML
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.