artifact-emulator

artifact-emulator is a skill for Claude Code, Codex from asgeirtj/system_prompts_leaks. It costs 149 tokens per session (5,197 once invoked), scanned A, original, CC0-1.0.

A workflow for opening a generated page, slide deck, or design canvas in its actual artifact viewer. It takes a screenshot and checks browser console errors with Playwright, a tool for controlling a browser from code.

In plain words
What is it for?
Use it to inspect artifacts you created, especially when someone asks how they look or whether they work in the real viewer.
Why use it?
It checks the result as a person would see it instead of relying only on source files. It can reveal visual problems and browser errors before the artifact is shared.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect artifacts you created, especially when someone asks how they look or whether they work in the real viewer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/artifact-emulator
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 74,047 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add asgeirtj/system_prompts_leaks --skill artifact-emulator
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for artifact-emulator

README.md
[![agentmods](https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/artifact-emulator/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/artifact-emulator)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/artifact-emulator"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/artifact-emulator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for artifact-emulator

Your own site · 80×15
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/artifact-emulator"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/artifact-emulator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00149 $0.05197
Opus 5.5 $0.00060 $0.02079
Sonnet 5.5 $0.00030 $0.01039
Haiku 4.5 $0.00015 $0.00520

Measured yesterday against content hash b83bc9b9e8c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

artifact-emulator scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/auto_look.py, scripts/bootstrap.py, scripts/emulator_set.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

compatibility: "Cloud sessions only. Needs the cloud Cowork image's Chromium, Python Playwright, bun and curl."

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

serve = subprocess.Popen([COMMAND, "serve", os.path.abspath(SOURCE), "--shell-dir", SHELL_DIR,
Anthropic/claude-code/skills/artifact-emulator/SKILL.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Look at an artifact you made, in the real viewer

Optional: never hold a save or a publish for it, nor repeat it after every edit. If a step stops, tell the person in one clause that you could not check how it looks here, and carry on: do not check another way instead. One exception: when the person asked to see something, a plain local render of your own is fine, labelled as not the real viewer. Not for a part that uses WebGL when the look says WebGL is off: see Limits.

1. Get the emulator (once per session; safe to run again)

If your tools include mcp__claude-artifacts__emulator_caller_answers (search for it if some tools load only on a search), call it with no arguments right before every run of the command below, including a run again after a stop or a cut-off. It saves a small file of settings. Only if the command then tells you to, call mcp__claude-artifacts__emulator_files (search for it too) with no arguments, which saves a zip of the emulator's own files. The command finds both files by itself: do not open, unpack, edit or copy either, and never write one yourself. If a tool refuses, do as its description says. With no tool of exactly the first name, run the command all the same.

/usr/bin/python3 -I /mnt/skills/examples/artifact-emulator/scripts/bootstrap.py

Give it a ten-minute timeout the first time: it may download about 10 MB in many small requests. If it is cut off, run it again. It prints one JSON line on standard output holding command, shellDir, runtimeDir and workDir; keep them for step 3, and node and playwright too if it holds them (step 3 says what they change). A line starting artifact-emulator: stopped: says why it cannot work here, usually: not switched on for this account, or a session it cannot run in. Try again only if it says to; never work around it.

2. Pick what to show (always by absolute path)

  • A plain page: its .html file, or a directory with index.html at the top that holds ONLY the artifact's files: the page can list and fetch every file under it. No symbolic links; dot-files are skipped. serve refuses, naming the file, anything the artifact service could not publish.
  • An artifact made from a type (a Slides deck, a Design canvas): the page is the type's and your content is the files under project/; the emulator needs both. Without the built-in tool named exactly Artifact (tools whose names begin mcp__claude-artifacts__ are not it), skip to "Without the built-in tool" below: the MCP tool read_file refuses the read that comes next, so do not call it or list_files for that read. With the built-in tool (even if you also have those MCP tools), list the artifact's published files (action list_files, or list with scope: "files"), then ONE read (action read_file, or read) with paths = every listed path that is not under project/, plus every one under project/ds/, and no out_dir: the files land in the artifact's own scratch folder, which the result names. They are the type's, and under project/ds/ a design system's files, which the server copied in when you saved: never edit them or send them in a publish. Step 3 takes that folder, your project/ folder, and the contract the type's instructions name. The check shows a design system's colours, fonts and components only if that ds folder is inside YOUR project/ folder: unless your project/ folder is the one inside that scratch folder, copy it in with cp -R '<scratch folder>/project/ds' '<your project/ folder>/', in single quotes as written. If either path holds a single quote, do not copy: say you could not check the design system's look. Copy nothing else.

Read the full file on GitHub · 299 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 299 lines · 149 tokens per session scan A b83bc9b9e8c9

Subscribe to this mod's changes

artifact-emulator is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (74,047 stars, last pushed today), licensed CC0-1.0. It adds 149 tokens to every session and 5,197 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

artifact-emulator compared with skills from other repositories

artifact-emulator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
artifact-emulatorasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A149Claude Code, Codex
anatomyNousResearch/hermes-agentSkill268ktodayMITA15Claude Code, Codex
claude-designNousResearch/hermes-agentSkill268ktodayMITA16Claude Code, Codex
ip-as-logoNousResearch/hermes-agentSkill268ktodayMITA16Claude Code, Codex
har-derived-api-clientNousResearch/hermes-agentSkill268ktodayMITA19Claude Code, Codex
baoyu-infographicNousResearch/hermes-agentSkill268ktodayMITA23Claude Code, Codex
mono-colorNousResearch/hermes-agentSkill268ktodayMITA15Claude Code, Codex