# Local artifact

> Local artifact is an open-source agent skill for developer tools. Builds HTML pages and keeps them in a local gallery you can list, reopen, update, delete. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ccomkhj/skills/tree/main/local-artifact
- **Repository:** https://github.com/ccomkhj/skills
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** local-artifact
- **Collection:** https://github.com/ccomkhj/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill has the agent build self-contained HTML pages such as reports, dashboards, explainers and small apps, then store them in a private local gallery under a per-page slug. A bundled Python script handles publishing, listing, opening, relinking and deleting entries, and publish runs the page contract checks and flags anything that needs fixing before it is considered done.

The workflow favors updating an existing page in place rather than creating a copy, so a page keeps its file link and history. Pages are plain file:// documents, so features that depend on a hosted runtime are replaced with alternatives: data is collected through a copy-as-JSON button the user pastes back into chat, live data is captured at build time with a timestamp, and per-viewer state uses localStorage. The skill also includes an optional command the user can run themselves to republish a page to claude.ai.

It expects Python 3 to run the gallery script and a file location for the gallery, which defaults to a folder in the user's home directory and can be overridden with an environment variable. Sharing a page outside the machine is left to the user's explicit confirmation.

## When your agent uses it

> Build an HTML page (report, dashboard, explainer, small app) and keep it in a local gallery you can list, reopen, update and delete. Replacement for the built-in Artifact tool, with zero context cost until you type /local-artifact.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/ccomkhj/skills/tree/HEAD/local-artifact)
- [No network calls found in its scripts](https://github.com/ccomkhj/skills/tree/HEAD/local-artifact)
- [License: MIT](https://github.com/ccomkhj/skills/tree/HEAD/local-artifact)

## Features

- **Local page gallery:** Publishes generated HTML pages into a private folder where they can be listed and reopened.
- **Update in place:** Edits an existing page under its slug so its file link and history stay intact.
- **Page contract checks:** Runs validation on publish and reports warnings that must be fixed before finishing.
- **Browser-free data entry:** Collects user input through a copy-as-JSON button pasted back into chat.
- **On-demand loading:** Loads only when invoked with its slash command, adding no context cost otherwise.
- **Delete with confirmation:** Removes a page folder only when the user names it and confirms.

## Good for

- Build a dashboard summarizing a CSV or set of metrics as a local page
- Create an explainer page on a technical topic and save it for later
- Update an existing report page with new figures without creating a duplicate
- List previously generated pages and reopen one in the browser
- Delete an old prototype page from the local gallery

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/local-artifact` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/local-artifact &&
cp -R "$tmp/local-artifact" ~/.claude/skills/local-artifact &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/local-artifact` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/local-artifact` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/local-artifact &&
cp -R "$tmp/local-artifact" ~/.agents/skills/local-artifact &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/local-artifact` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/local-artifact` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/local-artifact &&
cp -R "$tmp/local-artifact" ~/.cursor/skills/local-artifact &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/local-artifact` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ccomkhj/skills.git --path local-artifact
```

Or copy the folder to `~/.gemini/skills/local-artifact` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/local-artifact`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/local-artifact &&
cp -R "$tmp/local-artifact" ~/.copilot/skills/local-artifact &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/local-artifact` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ccomkhj/skills.git
```

Then copy `skills/local-artifact` into your agent's skills folder as `local-artifact`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Local artifact trigger?

It is invoked manually by typing /local-artifact, since model invocation is disabled.

### Where are the pages stored?

In a local gallery folder, by default under ~/.local/share/local-artifacts, which can be changed with the LOCAL_ARTIFACTS_DIR variable.

### What does Local artifact need to run?

It uses a Python 3 script bundled with the skill to manage the gallery.

### Can pages use a shared database or login?

No. Local file pages lack the hosted runtime features of claude.ai artifacts, so the skill substitutes copy-as-JSON input and localStorage.

### Does Local artifact send pages anywhere?

Not by itself. The gallery is private to the machine, and sharing a page requires asking the user first.

### How do I install Local artifact in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/local-artifact to use it in all your projects, or to .claude/skills/local-artifact in one project.

### Does Local artifact run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Local artifact?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Local artifact?

The closest alternatives to Local artifact are Htmlify, Skill creator, Design taste frontend, Asset manager and PR artifact explorer.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Htmlify](https://ai-powered.com/skills/htmlify): Htmlify is an open-source agent skill for files and documents.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Design taste frontend](https://ai-powered.com/skills/design-taste-frontend): Design taste frontend is an open-source agent skill for developer tools.
- [Asset manager](https://ai-powered.com/skills/asset-manager): Asset manager is an open-source agent skill for developer tools.
- [PR artifact explorer](https://ai-powered.com/skills/pr-artifact-explorer): PR artifact explorer is an open-source agent skill for developer tools.
- [HTML diagram](https://ai-powered.com/skills/html-diagram): HTML diagram is an open-source agent skill for developer tools.
- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [Clone](https://ai-powered.com/skills/clone-daveebbelaar): Clone is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/local-artifact
