← 返回 Skills 市场
marwichmisi

Material Symbols Cli

作者 Marwane Ichola ALIMI · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
27
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install material-symbols-cli
功能描述
Search, download, and generate code for Google Material Symbols icons. Use when user mentions 'material symbols', 'material icons', 'Google icons', 'Android...
使用说明 (SKILL.md)

material-symbols-cli

CLI for Google Material Symbols — search 3,900+ icons, download SVGs, generate Android Vector Drawable XML, and produce HTML/CSS code snippets.

When To Use This Skill

Use the material-symbols-cli skill when you need to:

  • Search icons by keyword to find the right icon name
  • Download SVG icons for Android, iOS, or web projects
  • Generate Android Vector Drawable XML (res/drawable/) for Android apps
  • Get HTML/CSS code snippets for using Material Symbols on the web
  • Browse available icon styles (outlined, rounded, sharp) and weights (100–700)

Capabilities

  • Search icons — Search 3,900+ Material Symbols by name (partial match, case-insensitive)
  • Get icon details — View all available URLs for an icon (SVG, Android XML, browse link)
  • Download SVGs — Download an icon SVG with custom style, fill state, and weight
  • Generate Android XML — Generate Android Vector Drawable XML (20, 24, 40, 48 dp sizes)
  • Batch Android download — Download all Android sizes for an icon into a directory
  • Generate HTML/CSS — Get ready-to-use HTML link tags, CSS, and complete HTML pages
  • Generate CSS — Get CSS with font-variation-settings for fill, weight, grade, and optical size
  • Generate @font-face — Get self-hosting CSS and font download URLs
  • Browse styles — List available icon styles (outlined, rounded, sharp)
  • Browse weights — List available font weights (100–700) with descriptions

Common Use Cases

  • "Find an icon for search functionality in my Android app"
  • "Download the settings icon as SVG for my web app"
  • "Generate Android XML drawables for the home icon"
  • "I need HTML code to show the menu icon on my website"
  • "Get the CSS for using Material Symbols with custom weight and fill"
  • "Download all sizes of the favorite icon for my Android project"
  • "Search for arrow-related icons"

Setup

If material-symbols-cli is not found, install and build it:

bun --version || curl -fsSL https://bun.sh/install | bash
npx api2cli bundle material-symbols
npx api2cli link material-symbols

api2cli link adds ~/.local/bin to PATH automatically. The CLI is available in the next command.

Always use --json flag when calling commands programmatically.

Working Rules

  • Always use --json for agent-driven calls so downstream steps can parse the result.
  • Start with --help if the exact action or flags are unclear instead of guessing.
  • This CLI does not require authentication — it uses public npm/GitHub data.

Authentication

No authentication required. Material Symbols is open source (Apache 2.0).

Resources

icons

Search, get info, and download Material Symbols icons.

Command Description Key Flags
icons list List all icons, optionally filtered by search --search, --limit, --fields
icons search \x3Cquery> Search icons by keyword with details --limit
icons get \x3Cname> Get detailed info about an icon (all URLs)
icons download \x3Cname> Download an icon SVG --style, --fill, --weight, --output
icons styles List available styles (outlined, rounded, sharp)
icons weights List available weights (100–700)

android

Generate and download Android Vector Drawable XML icons.

Command Description Key Flags
android generate \x3Cname> Generate Android XML for an icon --style, --fill, --size, --output
android download \x3Cname> Download all Android XML sizes for an icon --style, --fill, --output-dir
android sizes List available Android icon sizes

compose

Generate Kotlin/Jetpack Compose code snippets.

Command Description Key Flags
compose icon \x3Cname> Generate a Kotlin composable function using the icon --style, --size, --package, --composable-name
compose preview \x3Cname> Generate a @Preview composable --style, --size
compose migration-guide Show migration guide from material-icons-extended to Material Symbols

code

Generate code snippets for using Material Symbols in your project.

Command Description Key Flags
code html \x3Cname> Generate HTML/CSS snippet --style, --fill, --weight, --grade, --size, --color
code css Generate CSS with font-variation-settings --style, --fill, --weight, --grade, --opsz
code font-face Generate @font-face CSS for self-hosting --style, --format

Output Format

--json returns a standardized envelope:

{ "ok": true, "data": { ... }, "meta": { "total": 42 } }

On error: { "ok": false, "error": { "message": "...", "status": 401 } }

Quick Reference

material-symbols-cli --help                    # List all resources and global flags
material-symbols-cli \x3Cresource> --help         # List all actions for a resource
material-symbols-cli \x3Cresource> \x3Caction> --help # Show flags for a specific action
# Search icons
material-symbols-cli icons list --search home --limit 10
material-symbols-cli icons search arrow --json

# Download an SVG
material-symbols-cli icons download search --style outlined --output icon.svg

# Generate Android XML
material-symbols-cli android generate search --style outlined --size 24 --output res/drawable/ic_search.xml

# Download all Android sizes
material-symbols-cli android download search --style outlined --output-dir app/src/main/res/drawable

# Generate web code
material-symbols-cli code html settings --style rounded --weight 500 --json

Global Flags

All commands support: --json, --format \x3Ctext|json|csv|yaml>, --verbose, --no-color, --no-header

Exit codes: 0 = success, 1 = API error, 2 = usage error

安全使用建议
Before installing, read the setup commands and prefer official installer sources. Avoid piping remote scripts into a shell unless you trust and verify the source. The VirusTotal telemetry is clean, and the available evidence does not justify a Review or malicious classification.
能力评估
Purpose & Capability
The supplied evidence does not show a purpose-mismatched capability, hidden behavior, exfiltration, or destructive action.
Instruction Scope
The skill appears to rely on visible SKILL.md instructions; the notable issue is setup guidance rather than runtime instructions that silently expand authority.
Install Mechanism
SKILL.md reportedly includes commands that install software or run fetched installer code without much verification guidance, which is a user-review concern but not by itself malicious.
Credentials
No supplied artifact evidence shows unexpected credential access, broad local indexing, or unrelated sensitive data use.
Persistence & Privilege
No supplied artifact evidence shows background persistence, privilege escalation, automatic execution, or unbounded long-running behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install material-symbols-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /material-symbols-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial public release of material-symbols-cli. - Search, browse, and get details for 3,900+ Google Material Symbols icons. - Download SVG or Android Vector Drawable XML icons; batch download all Android sizes. - Generate ready-to-use HTML, CSS, and @font-face snippets for web projects. - Output Kotlin/Jetpack Compose code for Material Symbols icons on Android. - Supports icon style, fill, weight, size, and output format customization. - All commands support structured JSON output for scripting/automation.
元数据
Slug material-symbols-cli
版本 0.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Material Symbols Cli 是什么?

Search, download, and generate code for Google Material Symbols icons. Use when user mentions 'material symbols', 'material icons', 'Google icons', 'Android... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 27 次。

如何安装 Material Symbols Cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install material-symbols-cli」即可一键安装,无需额外配置。

Material Symbols Cli 是免费的吗?

是的,Material Symbols Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Material Symbols Cli 支持哪些平台?

Material Symbols Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Material Symbols Cli?

由 Marwane Ichola ALIMI(@marwichmisi)开发并维护,当前版本 v0.1.0。

💬 留言讨论