publish-artifact

publish-artifact is a skill for Claude Code from Xakki/ai-agents-skills. It costs 34 tokens per session (439 once invoked), scanned D, original, MIT.

A publishing helper that places a self-contained HTML page on an already configured static website and returns its public web address.

In plain words
What is it for?
Use it to publish HTML pages or artifacts through a project’s `publish-artifact` command, optionally choosing the page’s URL slug.
Why use it?
It removes the manual file-copying step when sharing a standalone HTML artifact. It can also turn an HTML fragment into a complete document.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-agents-skills plugin — 23 skills, 3 agents, 6 hooks shipped together

Good fit Use it to publish HTML pages or artifacts through a project’s publish-artifact command, optionally choosing the page’s URL slug.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xakki/ai-agents-skills/publish-artifact
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 Xakki/ai-agents-skills --skill publish-artifact
Clone the repo
git clone --depth 1 https://github.com/Xakki/ai-agents-skills

Made for: Claude Code.

Or install ai-agents-skills, the plugin that ships this one along with the rest of its 23 skills, 3 agents, 6 hooks.

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 publish-artifact

README.md
[![agentmods](https://agentmods.dev/badge/skills/xakki/ai-agents-skills/publish-artifact/github.svg)](https://agentmods.dev/skills/xakki/ai-agents-skills/publish-artifact)
Your own site
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/publish-artifact"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/publish-artifact/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 publish-artifact

Your own site · 80×15
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/publish-artifact"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/publish-artifact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 439 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 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.00034 $0.00439
Opus 5 $0.00017 $0.00219
Sonnet 5 $0.00007 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 11d ago against content hash 49c6b31575f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade D, and why

publish-artifact scanned grade D 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 11d ago.

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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

collect credentials/payment under false pretenses — refuse, and don't suggest alternate hosting.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Read from `~/.config/artifact-publish/.env` (chmod 600, not in any repo):
skills/publish-artifact/SKILL.md · 48 lines

What it actually says

publish-artifact

Copies a complete/standalone HTML file into the configured project's artifact directory; that project's nginx serves it at <BASE_URL>/artifact/<slug>/. No docker build/deploy involved — plain file copy, picked up immediately by an already-live static/alias location.

Config

Read from ~/.config/artifact-publish/.env (chmod 600, not in any repo):

ARTIFACT_PROJECT_DIR=/path/to/project   # the project whose Makefile has `publish-artifact`

Happy path (the one command)

source ~/.config/artifact-publish/.env
make -C "$ARTIFACT_PROJECT_DIR" publish-artifact ART=<abs-path-to.html> [SLUG=<slug>]

Capture the last stdout line — that's the public URL. Return it to the user. (Everything else the target/script prints goes to stderr, so the last stdout line is always exactly the URL.)

Note on fragments vs. complete docs

The target auto-wraps a headless Artifact-tool fragment (no <html>/<head>/<body>) into a full HTML5 document (charset, viewport, title). A file that already contains <html is copied as-is.

Safety (mirrors the Artifact-tool policy — keep it short)

  • Only publish self-contained HTML: inline CSS/JS, no external hosts (fonts/CDNs/fetch targets).
  • Never publish pages impersonating a real person/org, fabricated records/reviews, or flows that collect credentials/payment under false pretenses — refuse, and don't suggest alternate hosting.
  • Read any file you didn't author yourself, in full, before publishing it.

Bootstrapping a new project

See reference.md for adding this capability (script + Makefile target + nginx location) to a project that doesn't have it yet.

Files

What ships with it

2 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. 11d ago First seen · 48 lines · 34 tokens per session scan D 49c6b31575f2

Subscribe to this mod's changes

publish-artifact is a skill published in the GitHub repository Xakki/ai-agents-skills (6 stars, last pushed 21d ago), licensed MIT. It adds 34 tokens to every session and 439 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 2 findings (harvests environment variables, asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.