Agent skill

Preview Component

by AgiFlow in AgiFlow/aicode-toolkit

Render and inspect a design-system component in a trusted project.

AGPL-3.0Auto-check passedFrontend & Design

Install Preview Component

skills CLI
$ npx skills add AgiFlow/aicode-toolkit --skill preview-component -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgiFlow/aicode-toolkit preview-component --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/aicode-design/skills/preview-component .claude/skills/preview-component && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
preview-component
GitHub stars
161
Token cost
~291 tokens
SKILL.md length
123 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Render and inspect a design-system component in a trusted project.

  • Works in 4 steps: Confirm the user trusts the consumer… → Check project.json design configuration,… → Discover candidates with… → …
  • Explicit visual component preview requests
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Simple theme/class lookup

What it does

Preview Component is an agent skill from AgiFlow/aicode-toolkit. Render and inspect a design-system component in a trusted project. Trigger for explicit visual component preview requests. Do not trigger for simple theme/class lookup or untrusted repositories.

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Design systems. It works with Model Context Protocol. The repository describes itself as: Toolkit for Coding Agents to work reliably with repo of any size. The licence is AGPL-3.0.

When your agent uses it

  • Explicit visual component preview requests
  • Simple theme/class lookup
  • Untrusted repositories

Example prompts

  • “/preview-component”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the user trusts the consumer repository. get_component_visual can execute its components, Storybook/build tooling and browser…
  2. Check project.json design configuration, relevant stories/components and Chromium availability. If setup is absent, explain what is…
  3. Discover candidates with list_shared_components / list_app_components, inspect the actual get_component_visual input schema, then ask…
  4. Report the preview output and component path, rendering errors, any executed code and remaining manual verification. Never claim a visual…

What it can do on your machine

Read from SKILL.md and the folder at commit d8debed. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Preview Component loads about 291 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 123 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~291

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AgiFlow/aicode-toolkit at commit d8debed, republished under its AGPL-3.0 licence (© AgiFlow). 123 words, ~291 tokens.

Download SKILL.mdSave it as .claude/skills/preview-component/SKILL.md (or your agent's skills folder).
name
preview-component
description
Render and inspect a design-system component in a trusted project. Trigger for explicit visual component preview requests. Do not trigger for simple theme/class lookup or untrusted repositories.

Preview a component safely

  1. Confirm the user trusts the consumer repository. get_component_visual can execute its components, Storybook/build tooling and browser processes; do not treat it as passive file inspection.
  2. Check project.json design configuration, relevant stories/components and Chromium availability. If setup is absent, explain what is required rather than guessing or installing browser binaries silently.
  3. Discover candidates with list_shared_components / list_app_components, inspect the actual get_component_visual input schema, then ask before rendering and run in the consumer workspace. The MCP server supports stdio; do not start it using HTTP/SSE or --dev by default.
  4. Report the preview output and component path, rendering errors, any executed code and remaining manual verification. Never claim a visual check succeeded when browser setup or component rendering failed.

© AgiFlow, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/aicode-design/skills/preview-component of AgiFlow/aicode-toolkit.

Open the folder on GitHubat commit d8debed

Compare with similar skills

Preview Component next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Preview Component compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Preview Component this skillAgiFlow/aicode-toolkit161—~291Automated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
Activepieces Design Systemactivepieces/activepieces25k—~3.6kAutomated safety check: PassCustom licence
Figma Code Connect Componentswarpdotdev/warp65k2 repos~4.2kAutomated safety check: PassAGPL-3.0
UithingBayBreezy/ui-thing729—~1.3kAutomated safety check: PassCustom licence
Figma Screen Generatorwarpdotdev/warp65k2 repos~5kAutomated safety check: PassAGPL-3.0

Similar skills

  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Activepieces Design System

    activepieces/activepieces

    Design system for Activepieces (open-source AI automation platform, "open source replacement for Zapier").

    25k GitHub stars~3.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Maps published Figma components to their code implementations with Code Connect, using the Figma MCP suggestion and mapping tools.

    65k GitHub starsUsed in 2 repos~4.2k tokens
    Frontend & DesignAuto-check passed
  • Uithing

    BayBreezy/ui-thing

    Manages UI Thing components, prose, blocks, themes, shortcuts, docs, and MCP-driven workflows in Nuxt projects and in the UI Thing source repo.

    729 GitHub stars~1.3k tokensUpdated 6 days ago
    Frontend & DesignAuto-check passed
  • Figma Screen Generator

    warpdotdev/warp

    Builds or updates full Figma screens from code or a description by reusing the file's published design system components, variables and styles.

    65k GitHub starsUsed in 2 repos~5k tokens
    Frontend & DesignAuto-check passed
  • Extract Design System

    arvindrk/extract-design-system

    Extract design primitives from a public website and generate starter token files for your project.

    236 GitHub starsUsed in 1 repo~514 tokens
    Frontend & DesignAuto-check passed

More from AgiFlow/aicode-toolkit

All 9 skills in this repo
  • Playwriter

    AgiFlow/aicode-toolkit

    Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli.

    161 GitHub stars~457 tokensUpdated 3 days ago
    Auto-check passed
  • Author Templates

    AgiFlow/aicode-toolkit

    Create or update reusable toolkit boilerplate templates and feature scaffolds.

    161 GitHub stars~322 tokensUpdated 3 days ago
    Auto-check passed
  • Create Project

    AgiFlow/aicode-toolkit

    Discover and create a new application from a scaffold-mcp boilerplate.

    161 GitHub stars~255 tokensUpdated 3 days ago
    Auto-check passed
  • Develop Feature

    AgiFlow/aicode-toolkit

    Add or edit a feature in a toolkit-configured project using scaffold methods and file-specific design patterns.

    161 GitHub stars~440 tokensUpdated 3 days ago
    Auto-check passed
  • Discover Design System

    AgiFlow/aicode-toolkit

    Discover existing project themes, supported CSS classes and reusable UI components.

    161 GitHub stars~284 tokensUpdated 3 days ago
    Auto-check passed
  • Initialize Workspace

    AgiFlow/aicode-toolkit

    Set up toolkit templates and project metadata in a consumer workspace.

    161 GitHub stars~358 tokensUpdated 3 days ago
    Auto-check passed

Questions about Preview Component

What does Preview Component do?

Render and inspect a design-system component in a trusted project. Preview Component is an agent skill from AgiFlow/aicode-toolkit. Render and inspect a design-system component in a trusted project.

When should I use Preview Component?

Preview Component fits situations like: explicit visual component preview requests; simple theme/class lookup; untrusted repositories.

How do I install Preview Component in Claude Code?

Run `npx skills add AgiFlow/aicode-toolkit --skill preview-component -a claude-code`. Or copy the skill folder (plugins/aicode-design/skills/preview-component in AgiFlow/aicode-toolkit) into .claude/skills/preview-component in your project. Claude Code loads it when a task matches its description.

How do I install Preview Component in Codex?

Run `npx skills add AgiFlow/aicode-toolkit --skill preview-component -a codex`. Or copy the skill folder (plugins/aicode-design/skills/preview-component in AgiFlow/aicode-toolkit) into .agents/skills/preview-component in your project. Codex loads it when a task matches its description.

Can I use Preview Component in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgiFlow/aicode-toolkit --skill preview-component -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/preview-component, .gemini/skills/preview-component, .github/skills/preview-component and .opencode/skills/preview-component in your project.

What does Preview Component need to run?

SKILL.md names no scripts, command-line tools or credentials: Preview Component is instructions for the agent only.

Does Preview Component access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Preview Component safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Preview Component use?

Preview Component is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Preview Component use?

About 291 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Preview Component?

Skills that share tags, products or a category with Preview Component: Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars), Activepieces Design System (activepieces/activepieces, 25k stars), Figma Code Connect Components (warpdotdev/warp, 65k stars) and Uithing (BayBreezy/ui-thing, 729 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Preview Component?

AgiFlow (a GitHub organization) maintains it in AgiFlow/aicode-toolkit, which has 161 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 5, 2026.

Source: AgiFlow/aicode-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.