Agent skill

Save Artifact

by meain in meain/dotfiles

Save an AI-generated artifact to the artifacts repository with structured metadata.

MITAuto-check passed

Install Save Artifact

skills CLI
$ npx skills add meain/dotfiles --skill save-artifact -a claude-code

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

GitHub CLI
$ gh skill install meain/dotfiles save-artifact --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/meain/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/.agents/skills/save-artifact .claude/skills/save-artifact && 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
save-artifact
GitHub stars
285
Token cost
~776 tokens
SKILL.md length
283 words
Files
1
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

Save an AI-generated artifact to the artifacts repository with structured metadata.

  • Works in 5 steps: Identify the artifact: Determine what… → Collect metadata: Gather required and… → Save the artifact: Copy/write to… → …
  • SKILL.md covers Triggers, Behavior, Required Metadata and Optional Metadata (ask if not…, plus 3 more sections
  • Calls jq

What it does

Save Artifact is an agent skill from meain/dotfiles. Save an AI-generated artifact to the artifacts repository with structured metadata. Triggers: /save-artifact, "save this artifact", "store this artifact", "add to artifacts", "save to artifacts repo"

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

The repository describes itself as: If there is a shell, there is a way! The licence is MIT.

Example prompts

  • “save this artifact”
  • “store this artifact”
  • “add to artifacts”
  • “/save-artifact”

Workflow steps

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

  1. Identify the artifact: Determine what file/content to save (either just created, or user specifies a path)
  2. Collect metadata: Gather required and optional fields
  3. Save the artifact: Copy/write to /Users/meain/dev/src/ai-artifacts/artifacts/
  4. Update catalog: Append a line to /Users/meain/dev/src/ai-artifacts/artifacts.jsonl
  5. Confirm: Show the artifact name and key metadata fields

What it can do on your machine

Read from SKILL.md and the folder at commit f469fb6. 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

    Shell commands in SKILL.md call:

    • jq

    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

Save Artifact loads about 776 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 283 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
~776

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 meain/dotfiles at commit f469fb6, republished under its MIT licence (© meain). 283 words, ~776 tokens.

Download SKILL.mdSave it as .claude/skills/save-artifact/SKILL.md (or your agent's skills folder).
name
save-artifact
description
Save an AI-generated artifact to the artifacts repository with structured metadata. Triggers: /save-artifact, "save this artifact", "store this artifact", "add to artifacts", "save to artifacts repo"

save-artifact

Save an AI-generated artifact to the artifacts repository with structured metadata.

Triggers

  • /save-artifact
  • "save this artifact"
  • "store this artifact"
  • "add to artifacts"
  • "save to artifacts repo"

Behavior

  1. Identify the artifact: Determine what file/content to save (either just created, or user specifies a path)
  2. Collect metadata: Gather required and optional fields
  3. Save the artifact: Copy/write to /Users/meain/dev/src/ai-artifacts/artifacts/
  4. Update catalog: Append a line to /Users/meain/dev/src/ai-artifacts/artifacts.jsonl
  5. Confirm: Show the artifact name and key metadata fields

Required Metadata

  • type: File extension or type (html, markdown, bash, python, json, yaml, etc.)
  • created: ISO 8601 timestamp (use current time)
  • agent: Agent harness (fin, codex, claude-code, etc.) - infer from context

Optional Metadata (ask if not obvious)

  • description: Brief description of what this does
  • tags: Array of tags for categorization
  • repository: Source repo context if relevant
  • model: LLM model used (claude-3.5-sonnet, etc.)
  • purpose: Why this was created - the problem it solves
  • dependencies: External tools/libraries required
  • session_id: Agent session ID if available
  • related: Related artifact filenames
  • url: Public URL if deployed
  • archived: false (default)

Filename Strategy

  • Use descriptive kebab-case names
  • Include version suffix if this is an iteration (e.g., dashboard-v2.html)
  • Avoid generic names like output.html or script.sh
  • If user doesn't specify, suggest a name based on content/purpose

Implementation Notes

  • Append a single JSON line to artifacts.jsonl — include filename as the first field
  • Use jq -c to produce compact JSON: jq -cn '{filename: "...", type: "...", ...}' >> artifacts.jsonl
  • For the created timestamp, use ISO 8601 format: date -u +"%Y-%m-%dT%H:%M:%SZ"
  • If artifact with same filename already exists in the file, ask user whether to overwrite (remove old line, append new) or create versioned copy

Example

User: "save this dashboard to artifacts"

bash
# Copy file
cp dashboard.html /Users/meain/dev/src/ai-artifacts/artifacts/adx-metrics-dashboard.html

# Append to catalog
cd /Users/meain/dev/src/ai-artifacts
jq -cn '{filename: "adx-metrics-dashboard.html", type: "html", description: "Interactive dashboard for ADX query metrics", tags: ["visualization", "monitoring", "adx"], repository: "veeam/control-plane-backend", agent: "fin", model: "claude-3.5-sonnet", created: "2026-06-26T13:50:00Z", purpose: "Debug ADX query performance issues", session_id: "23051bf6-89b7-44cb-b19f-cd9019a967bc"}' >> artifacts.jsonl

Response: "Saved as adx-metrics-dashboard.html — interactive dashboard for ADX query metrics"

© meain, 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/.agents/skills/save-artifact of meain/dotfiles.

Open the folder on GitHubat commit f469fb6

Compare with similar skills

Save Artifact 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.

Save Artifact compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Save Artifact this skillmeain/dotfiles285—~776Automated safety check: PassMIT
Artifacts Buildernexu-io/open-design100k—~347Automated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Web Artifacts Buildernexu-io/open-design100k—~337Automated safety check: PassApache-2.0
Web Artifacts Buildersickn33/agentic-awesome-skills47k3 repos~824Automated safety check: PassApache-2.0
Artifact Diagrammingasgeirtj/system_prompts_leaks69k—~963Automated safety check: PassCC0-1.0

Similar skills

  • Artifacts Builder

    nexu-io/open-design

    Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui).

    100k GitHub stars~347 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Web Artifacts Builder

    nexu-io/open-design

    Build complex claude.ai HTML artifacts with React and Tailwind.

    100k GitHub stars~337 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Web Artifacts Builder

    sickn33/agentic-awesome-skills

    To build powerful frontend claude.ai artifacts, follow these steps:

    47k GitHub starsUsed in 3 repos~824 tokens
    Frontend & DesignAuto-check passed
  • Artifact Diagramming

    asgeirtj/system_prompts_leaks

    Diagramming know-how for Artifacts - when a picture earns its place, how to draw one that shows the real mechanism, and the inline-SVG mechanics that keep it legible in both themes.

    69k GitHub stars~963 tokensUpdated yesterday
    Auto-check passed
  • Artifact Capabilities

    asgeirtj/system_prompts_leaks

    Runtime capabilities a published Artifact page can be granted — behavior static HTML cannot provide on its own, such as the page reading live or connected data, remembering what people do on it (a…

    69k GitHub stars~4.3k tokensUpdated yesterday
    Auto-check passed

More from meain/dotfiles

All 36 skills in this repo
  • Recall

    meain/dotfiles

    Search past Claude Code and Codex sessions. An agent skill from meain/dotfiles.

    285 GitHub starsUsed in 1 repo~684 tokens
    Auto-check passed
  • Grill With Docs

    meain/dotfiles

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise.

    285 GitHub starsUsed in 21 repos~875 tokens
    Auto-check passed
  • Backlog

    meain/dotfiles

    Daily backlog management — full planning review OR add a single entry from a URL.

    285 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Concern Review

    meain/dotfiles

    Generate an interactive local HTML review page for a large PR or diff, grouping the changed files by logical concern (not just by file) so a reviewer can go through one theme at a time instead of a…

    285 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • My Weekly Report

    meain/dotfiles

    Generate a concise weekly status update in team format. An agent skill from meain/dotfiles.

    285 GitHub stars~2.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Web Search

    meain/dotfiles

    Search the web using lynx and DuckDuckGo. An agent skill from meain/dotfiles.

    285 GitHub stars~830 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Save Artifact

What does Save Artifact do?

Save an AI-generated artifact to the artifacts repository with structured metadata. Save Artifact is an agent skill from meain/dotfiles. Save an AI-generated artifact to the artifacts repository with structured metadata.

How do I install Save Artifact in Claude Code?

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

How do I install Save Artifact in Codex?

Run `npx skills add meain/dotfiles --skill save-artifact -a codex`. Or copy the skill folder (agents/.agents/skills/save-artifact in meain/dotfiles) into .agents/skills/save-artifact in your project. Codex loads it when a task matches its description.

Can I use Save Artifact 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 meain/dotfiles --skill save-artifact -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/save-artifact, .gemini/skills/save-artifact, .github/skills/save-artifact and .opencode/skills/save-artifact in your project.

What does Save Artifact need to run?

Going by SKILL.md and its folder, Save Artifact needs the command-line tools its instructions call (jq).

Does Save Artifact 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 Save Artifact 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 Save Artifact use?

Save Artifact 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 Save Artifact use?

About 776 tokens (SKILL.md is roughly 3.1k 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 Save Artifact?

Skills that share tags, products or a category with Save Artifact: Artifacts Builder (nexu-io/open-design, 100k stars), Web Artifacts Builder (anthropics/skills, 180k stars), Web Artifacts Builder (nexu-io/open-design, 100k stars) and Web Artifacts Builder (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Save Artifact?

meain (a GitHub user) maintains it in meain/dotfiles, which has 285 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on September 5, 2026.

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