react-artifact

react-artifact is a skill for Claude Code, Codex from juspay/xyne-spaces. It costs 53 tokens per session (879 once invoked), scanned A, original, Apache-2.0.

A way to build app-like designs with React, a JavaScript library for reusable interface components, while delivering one self-contained HTML file and a small source archive. It is intended for real client-side state, such as multi-step forms, filters, undo, or optimistic updates.

In plain words
What is it for?
Use it for React-based prototypes or artifacts with shared components, changing data views, multi-step interactions, or other substantial client-side behavior.
Why use it?
It organizes complex interactive interfaces and repeated components when plain HTML and JavaScript would become difficult to manage.

Skill for Claude CodeCodex

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

Good fit Use it for React-based prototypes or artifacts with shared components, changing data views, multi-step interactions, or other substantial client-side behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/juspay/xyne-spaces/react-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 juspay/xyne-spaces --skill react-artifact
Clone the repo
git clone --depth 1 https://github.com/juspay/xyne-spaces

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/juspay/xyne-spaces/react-artifact"><img src="https://agentmods.dev/badge/skills/juspay/xyne-spaces/react-artifact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 21
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00053 $0.00879
Opus 5.5 $0.00021 $0.00352
Sonnet 5.5 $0.00011 $0.00176
Haiku 4.5 $0.00005 $0.00088

Measured 1mo ago against content hash 7d0ff330ba79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-artifact 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 1mo 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.

apps/xyne-claw/design-skills/react-artifact/SKILL.md · 102 lines

How it starts

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

React artifacts — author in JSX, deliver HTML + source project

The primary artifact remains ONE self-contained .html file. React designs also deliver a small source archive so the user can continue in an editor.

When to choose React over plain HTML+JS

  • Real client state: multi-step forms, filters over data, undo, optimistic UI
  • Many repeated components with varying props (cards, rows, chart panels)
  • The user names React explicitly

For static or lightly-interactive pages, plain HTML with a small inline script is smaller, faster to iterate, and easier to revise — prefer it.

Recipe (bun is preinstalled; npm registry works in-sandbox via the

in-cluster mirror — the sandbox .npmrc already points at it)

mkdir -p /workspace/design && cd /workspace/design
bun init -y
bun add react@18 react-dom@18

Author the app as a normal small project. Keep source under src/, with the entry at src/app.jsx:

// src/app.jsx
import { createRoot } from "react-dom/client";
import { useState } from "react";

function App() { /* ... */ }

createRoot(document.getElementById("root")).render(<App />);

Bundle to a single minified script, then inline it into the HTML shell:

bun build src/app.jsx --minify --outfile dist/bundle.js
<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>…</title>
  <style>/* all CSS inline here */</style>
</head>
<body>
  <div id="root"></div>
  <script>/* paste bundle.js contents here verbatim */</script>
</body>
</html>

Write the final file by concatenating — do NOT reference bundle.js by path; the artifact must open from a single file with no siblings:

node -e '
const fs = require("fs");
const bundle = fs.readFileSync("dist/bundle.js", "utf8");
const shell = fs.readFileSync("shell.html", "utf8");
fs.writeFileSync("index.html", shell.replace("/*__BUNDLE__*/", () => bundle));
'

(Use a placeholder comment in the shell and replace with a function arg so $ sequences in the bundle are not mangled.)

Read the full file on GitHub · 102 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. 1mo ago First seen · 102 lines · 53 tokens per session scan A 7d0ff330ba79

Subscribe to this mod's changes

react-artifact is a skill published in the GitHub repository juspay/xyne-spaces (820 stars, last pushed today), licensed Apache-2.0. It adds 53 tokens to every session and 879 once invoked, about $0.0002 per session on Opus 5.5. 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-08-30.

Related

Other skills, from other repositories