artifact-sonnet

artifact-sonnet is an agent for Claude Code from yacb2/aidex. It costs 0 tokens per session (2,980 once invoked), scanned A, original, MIT.

An artifact-page writer that creates a page specification for an HTML report, consultation page, or dashboard and builds the page from that specification. HTML is the standard format used to structure web pages.

In plain words
What is it for?
It creates or revises new artifact pages when the required specification files are present, while leaving unsupported existing HTML pages unchanged.
Why use it?
It keeps page content and layout decisions in a reviewable specification instead of editing generated HTML directly.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the aidex plugin — 22 skills, 31 agents, 5 hooks shipped together

Good fit It creates or revises new artifact pages when the required specification files are present, while leaving unsupported existing HTML pages unchanged.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yacb2/aidex/artifact-sonnet
View source ↗ yacb2/aidex
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.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex

Made for: Claude Code.

Or install aidex, the plugin that ships this one along with the rest of its 22 skills, 31 agents, 5 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 artifact-sonnet

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/yacb2/aidex/artifact-sonnet"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/artifact-sonnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,980 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.02980
Opus 5.5 $0.00000 $0.01192
Sonnet 5.5 $0.00000 $0.00596
Haiku 4.5 $0.00000 $0.00298

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

Security

Grade A, and why

artifact-sonnet scanned grade A with 0 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 25d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/artifact-sonnet.md · 184 lines

How it starts

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

Artifact writer — you write a page SPEC, not HTML

You receive one brief file. Read it fully. Your first step is its "Files to read first" section: read every file it names before writing a line.

The one rule this agent exists for

You never write raw HTML for a new or revised page. A new page, and a new round of a page that already has a .spec.md beside it, are written as a .spec.md and built. The built .html is an output, never hand-edited. If you type <div, <section or <p> into a file, you are on the wrong route: write the spec instead.

A page that already exists as HTML with no .spec.md beside it is left alone. Do not migrate it, do not convert it, do not rewrite it as a spec. If the brief asks you to revise such a page, build nothing, say so in your reply, and stop.

Step 0 — the skill directory

Every command below runs from the page's output directory and uses $SKILL. The brief names the artifact skill's directory; export it once, first thing:

SKILL=<the path the brief names>     # the artifact skill's directory in the installed plugin
ls "$SKILL/scripts/spec_build.py" "$SKILL/references/03-spec-grammar.md" "$SKILL/references/06-block-bodies.md"

If that ls fails, stop and report it. Never fall back to a copy from the installed plugin cache — it is a stale release without the current kit.

Step 1 — read the references, in this order

Use the Read tool, whole, for each file. Never print one through Bash (cat, sed, head): a Bash result over about 30000 characters is saved to a file and only its first lines are shown, and 04-block-vocabulary.md is over that.

  1. $SKILL/references/03-spec-grammar.md — the syntax: ::: fences, {…} attrs, nesting.
  2. $SKILL/references/04-block-vocabulary.md — the closed set of block types and their attrs. Then $SKILL/references/06-block-bodies.md — the body rules of chart, diagram, figure, video, graph.
  3. $SKILL/references/02-local-first-artifacts.md § Route S (Read with offset/limit, or the whole file) — the how-to, a whole worked page you can copy, the verb signatures. Read § Route S in full.
  4. For a consultation: $SKILL/references/consultation.md, whole (the consultation rules, § 8), and $SKILL/references/unreadable-question.md when the brief is a new round after the reader called a question unreadable.

Read the full file on GitHub · 184 lines

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. 25d ago Changed · +2 lines ac7639bd24cd
  2. 1mo ago Changed · +1 lines 5979925333eb
  3. 1mo ago Changed · +26 lines 5d25a81ebb07
  4. 1mo ago Changed · -1 lines c36dad86920d
  5. 1mo ago Changed · +5 lines e90f4ebb6e11
  6. 1mo ago First seen · 151 lines · 0 tokens per session scan A e24a32ef59f6

Subscribe to this mod's changes

artifact-sonnet is an agent published in the GitHub repository yacb2/aidex (2 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,980 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

artifact-sonnet compared with agents from other repositories

artifact-sonnet next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
artifact-sonnetyacb2/aidexAgent27d agoMITA0Claude Code
tikz-reviewerericluo04/claude-academic-workflowAgent276d agononeA62Claude Code
ui-component-writermantacron/mantaAgent101mo agononeA123Claude Code
ux-plannermantacron/mantaAgent101mo agononeA41Claude Code
ui-ux-designerPlanVault/ai-engineering-playbookAgent62mo agononeA14Claude Code
design-analyzerEgonex-AI/Understand-AnythingAgent95k6d agoMITA56Claude Code
designervibeeval/vibecosystemAgent55419d agoMITA22Claude Code