Agent skill

Add Astro Icon

by t4t5 in t4t5/rencal

Turn raw SVG markup into an Astro icon component in website/src/icons/.

MITAuto-check passedFrontend & Design

Install Add Astro Icon

skills CLI
$ npx skills add t4t5/rencal --skill add-astro-icon -a claude-code

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

GitHub CLI
$ gh skill install t4t5/rencal add-astro-icon --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/t4t5/rencal.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-astro-icon .claude/skills/add-astro-icon && 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
add-astro-icon
GitHub stars
164
Token cost
~752 tokens
SKILL.md length
286 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Turn raw SVG markup into an Astro icon component in website/src/icons/.

  • Works in 4 steps: Get the SVG: The user will give you raw… → Pick a filename: Use a short kebab-case… → Transform the SVG → …
  • The user provides SVG markup and wants it added as a website Astro icon
  • SKILL.md covers Workflow, Speed rules and Example
  • Reaches w3.org

What it does

Add Astro Icon is an agent skill from t4t5/rencal. Turn raw SVG markup into an Astro icon component in website/src/icons/. Use when the user provides SVG markup and wants it added as a website Astro icon.

Its SKILL.md is about 750 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 Static sites and blogs. It works with Astro and Bash. The repository describes itself as: A modern desktop calendar. Built for Omarchy. The licence is MIT.

When your agent uses it

  • The user provides SVG markup and wants it added as a website Astro icon
  • Tasks that involve Static sites and blogs

Example prompts

  • “/add-astro-icon”

Workflow steps

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

  1. Get the SVG: The user will give you raw SVG markup (often copy-pasted from Streamline, Figma, etc.).
  2. Pick a filename: Use a short kebab-case name describing the icon (e.g. settings.astro, arrow-right.astro). Infer obvious icon names…
  3. Transform the SVG
  4. Write the file to website/src/icons/.astro immediately. Use bash with a quoted heredoc instead of the write tool to avoid slow…

What it can do on your machine

Read from SKILL.md and the folder at commit 4388156. 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 (its code samples are bash, svg and astro).

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • w3.org

    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

Add Astro Icon loads about 752 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 286 words of instructions outside code blocks.

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

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 t4t5/rencal at commit 4388156, republished under its MIT licence (© t4t5). 286 words, ~752 tokens.

Download SKILL.mdSave it as .claude/skills/add-astro-icon/SKILL.md (or your agent's skills folder).
name
add-astro-icon
description
Turn raw SVG markup into an Astro icon component in website/src/icons/. Use when the user provides SVG markup and wants it added as a website Astro icon.

You are turning raw SVG markup the user provides into an Astro icon component in website/src/icons/.

Workflow

  1. Get the SVG: The user will give you raw SVG markup (often copy-pasted from Streamline, Figma, etc.).

  2. Pick a filename: Use a short kebab-case name describing the icon (e.g. settings.astro, arrow-right.astro). Infer obvious icon names without asking. For common brand logos, use the brand name (e.g. GitHub → github.astro). Ask the user only if the name is truly ambiguous.

  3. Transform the SVG:

    • Add this Astro frontmatter at the top:

      astro
      ---
      interface Props {
        class?: string
      }
      
      const { class: className } = Astro.props
      ---
    • On the <svg> tag: keep xmlns, fill, and viewBox. Add class={className}. Remove hardcoded width and height — size is controlled by Tailwind (size-4, size-6, etc.).

    • Replace every hardcoded stroke color (e.g. stroke="#000000") with stroke="currentColor". Same for fill if it's a color — but leave fill="none" alone. Brand icons that should inherit text color should use fill="currentColor".

    • Strip noise: id attributes, <desc> tags, <title> tags, and any other vendor metadata.

    • Keep stroke-width, stroke-linecap, stroke-linejoin, d, and other geometry-defining attributes. Preserve valid Astro/HTML attribute casing for SVG markup.

  4. Write the file to website/src/icons/<name>.astro immediately. Use bash with a quoted heredoc instead of the write tool to avoid slow line-by-line UI rendering:

    bash
    cat > website/src/icons/<name>.astro <<'EOF'
    ...
    EOF

Speed rules

  • Do not inspect existing icon files unless necessary.
  • Infer obvious icon names without asking.
  • For common brand logos, use the brand name.
  • Immediately write website/src/icons/<name>.astro after transforming.
  • Prefer bash with a quoted heredoc for file creation; do not use the write tool unless bash is unavailable.
  • Do not run checks unless the user asks.

Example

Input:

svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="Foo" height="24" width="24">
  <desc>Some vendor blurb</desc>
  <g id="group"><path id="p1" stroke="#000000" d="M6 0v14" stroke-width="2" /></g>
</svg>

Output (website/src/icons/foo.astro):

astro
---
interface Props {
  class?: string
}

const { class: className } = Astro.props
---

<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class={className}>
  <g>
    <path stroke="currentColor" d="M6 0v14" stroke-width="2" />
  </g>
</svg>

Usage: <FooIcon class="size-4 text-primary" /> when imported with an alias, or import the .astro component directly and render it with class="size-4 text-primary".

© t4t5, MIT. 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 .agents/skills/add-astro-icon of t4t5/rencal.

Open the folder on GitHubat commit 4388156

Compare with similar skills

Add Astro Icon 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.

Add Astro Icon compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Astro Icon this skillt4t5/rencal164—~752Automated safety check: PassMIT
Tabler Astro Dev Servertabler/tabler42k—~1.2kAutomated safety check: PassMIT
Tabler Astro Component Scriptstabler/tabler42k—~2.1kAutomated safety check: PassMIT
Kill AI Slopyetone/kill-ai-slop1.3k—~1.4kAutomated safety check: PassApache-2.0
Motion Dev Animations199-biotechnologies/motion-dev-animations-skill1331 repos~2.8kAutomated safety check: NotesMIT
Astrodevantler-tech/ksail1653 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Starts the right Tabler dev server, keeps it from clashing with builds and verifies changes in the browser before a page or component is handed back.

    42k GitHub stars~1.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Rules for adding or fixing client-side scripts in Tabler's Astro components so the copied preview HTML stays readable, self-contained and runs in the right order.

    42k GitHub stars~2.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Kill AI Slop

    yetone/kill-ai-slop

    Find and remove AI slop — the generic, machine-default visual and copy tics of vibe-coded products — from a web project.

    1.3k GitHub stars~1.4k tokensUpdated 25 days ago
    Frontend & DesignAuto-check passed
  • Motion Dev Animations

    199-biotechnologies/motion-dev-animations-skill

    Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects.

    133 GitHub starsUsed in 1 repo~2.8k tokens
    Frontend & DesignAuto-check: notes
  • Astro

    devantler-tech/ksail

    Skill for building with the Astro web framework. An agent skill from devantler-tech/ksail.

    165 GitHub starsUsed in 3 repos~1.1k tokens
    Frontend & DesignAuto-check passed
  • UI Upstream Sync

    fulldotdev/ui

    Audit and update the existing Fulldev Astro UI registry against current data-slot and shadcn/ui Base UI Vega.

    610 GitHub stars~1.3k tokensUpdated today
    Frontend & DesignAuto-check passed

More from t4t5/rencal

  • Add Icon

    t4t5/rencal

    Turn raw SVG markup into a React icon component in src/icons/.

    164 GitHub stars~671 tokensUpdated 2 days ago
    Auto-check passed
  • Draft short project release notes from git tag diffs. An agent skill from t4t5/rencal.

    164 GitHub stars~717 tokensUpdated 2 days ago
    Auto-check passed
  • Local Caldir

    t4t5/rencal

    Develop renCal against a local caldir checkout instead of the pinned release.

    164 GitHub stars~256 tokensUpdated 2 days ago
    Auto-check passed
  • Analyze frontend performance recordings and propose ranked optimizations.

    164 GitHub stars~461 tokensUpdated 2 days ago
    Auto-check passed
  • Rencal

    t4t5/rencal

    Create and test renCal plugins that contribute themes or calendar providers.

    164 GitHub stars~327 tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Add Astro Icon

What does Add Astro Icon do?

Turn raw SVG markup into an Astro icon component in website/src/icons/. Add Astro Icon is an agent skill from t4t5/rencal. Turn raw SVG markup into an Astro icon component in website/src/icons/.

When should I use Add Astro Icon?

Add Astro Icon fits situations like: the user provides SVG markup and wants it added as a website Astro icon; tasks that involve Static sites and blogs.

How do I install Add Astro Icon in Claude Code?

Run `npx skills add t4t5/rencal --skill add-astro-icon -a claude-code`. Or copy the skill folder (.agents/skills/add-astro-icon in t4t5/rencal) into .claude/skills/add-astro-icon in your project. Claude Code loads it when a task matches its description.

How do I install Add Astro Icon in Codex?

Run `npx skills add t4t5/rencal --skill add-astro-icon -a codex`. Or copy the skill folder (.agents/skills/add-astro-icon in t4t5/rencal) into .agents/skills/add-astro-icon in your project. Codex loads it when a task matches its description.

Can I use Add Astro Icon 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 t4t5/rencal --skill add-astro-icon -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-astro-icon, .gemini/skills/add-astro-icon, .github/skills/add-astro-icon and .opencode/skills/add-astro-icon in your project.

What does Add Astro Icon need to run?

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

Does Add Astro Icon access the network?

SKILL.md names 1 domain. In commands or code: w3.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Add Astro Icon 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 Add Astro Icon use?

Add Astro Icon is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Astro Icon use?

About 752 tokens (SKILL.md is roughly 3k 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 Add Astro Icon?

Skills that share tags, products or a category with Add Astro Icon: Tabler Astro Dev Server (tabler/tabler, 42k stars), Tabler Astro Component Scripts (tabler/tabler, 42k stars), Kill AI Slop (yetone/kill-ai-slop, 1.3k stars) and Motion Dev Animations (199-biotechnologies/motion-dev-animations-skill, 133 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Astro Icon?

t4t5 (a GitHub user) maintains it in t4t5/rencal, which has 164 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 9, 2026.

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