joycraft-ui-slice

joycraft-ui-slice is a skill for Claude Code, Codex from maksutovic/joycraft. It costs 32 tokens per session (746 once invoked), scanned A, original, MIT.

A workflow for resolving an important interface choice with a small working preview. An interface is the part of a product that people see and use, such as a screen, control, or interaction.

In plain words
What is it for?
Use it to reuse or build a small HTML or application slice, show the relevant state and interaction, inspect it in a browser, and save the decision. It is for exploring interface choices, not approving finished production code.
Why use it?
It makes an uncertain visual or interaction decision concrete before affected production work is completed. Feedback and the chosen answer are recorded in the feature brief.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to reuse or build a small HTML or application slice, show the relevant state and interaction, inspect it in a browser, and save the decision. It is for exploring interface choices, not approving finished production code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maksutovic/joycraft/joycraft-ui-slice
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 maksutovic/joycraft --skill joycraft-ui-slice
Clone the repo
git clone --depth 1 https://github.com/maksutovic/joycraft

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 joycraft-ui-slice

README.md
[![agentmods](https://agentmods.dev/badge/skills/maksutovic/joycraft/joycraft-ui-slice/github.svg)](https://agentmods.dev/skills/maksutovic/joycraft/joycraft-ui-slice)
Your own site
<a href="https://agentmods.dev/skills/maksutovic/joycraft/joycraft-ui-slice"><img src="https://agentmods.dev/badge/skills/maksutovic/joycraft/joycraft-ui-slice/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 joycraft-ui-slice

Your own site · 80×15
<a href="https://agentmods.dev/skills/maksutovic/joycraft/joycraft-ui-slice"><img src="https://agentmods.dev/badge/skills/maksutovic/joycraft/joycraft-ui-slice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 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.00032 $0.00746
Opus 5.5 $0.00013 $0.00298
Sonnet 5.5 $0.00006 $0.00149
Haiku 4.5 $0.00003 $0.00075

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

Security

Grade A, and why

joycraft-ui-slice 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 26d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/serve.mjs), 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.

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/skills/joycraft-ui-slice/SKILL.md · 61 lines

What it actually says

Read the current brief and relevant project context. If the visual choice is already settled, implement and inspect the authorized refinement without a new interview. Otherwise show the unanswered consequential choice first in the existing decision or review surface, when one is available. Identify the smallest interaction that would make the choice concrete. Continue independent repairs or other understood work.

Reuse a current inspected app/component render when it can answer the choice; a self-contained HTML slice is an option for inexpensive exploration. A static render or screenshot can answer an appearance-only question. Ask proactively for the few visual details that materially affect a pixel-level choice when the current render cannot answer them. Otherwise build or modify the smallest runnable slice in the project's actual stack. Show the consequential state and a useful interaction when interaction matters. One viewport is a useful starting size, not a rule for all products. Put explanatory detail behind disclosure. The slice is exploration, not production approval. Render and inspect it early with the package's recorded review tool (Review loop in AGENTS.md) or the host's permitted tools; record the route, state, viewport, interactions the tool can perform and observed outcomes. If blocked, record UNVERIFIED and the reason; respect denials without alternate access routes.

The optional local helper below needs the installed shared runtime. If it is missing during first use or setup, follow first-use setup before using it.

Use the existing brief's decision ID and persist the answer there. For a self-contained HTML slice using the supplied JSON flow-array decision format, this optional helper provides a compact preview shell and saves directly to the brief:

node .agents/skills/joycraft-ui-slice/scripts/serve.mjs --brief docs/features/<slug>/brief.md --slice docs/features/<slug>/slice.html [--decision <id>]

Read .joycraft/references/workflow.md#interactive-slices for the format and helper limits. Without --decision, the helper opens the first unanswered choice and advances as the current brief changes; it shows a settled state when no choice remains. An explicit ID stays bound to that decision. The slice receives a choice query parameter; make that switch the real layout/behavior being compared. The helper serves only the supplied HTML and shell and refreshes the shell from the current brief. Existing project formats may be retained: render their current state and persist answers there before continuing, without a second decision store.

For several brief decisions, a screenshot comparison, or a compact review summary, use the deterministic artifact view described in .joycraft/references/artifacts.md. It is a review interface, not a replacement for a real product slice when the decision depends on product interaction.

Ask only for the missing material choice, using a few contextual options. Verify the saved answer from the brief and on reload. Carry it into requirement anchors and refresh only affected specs and evidence when the answer or relevant evidence changes. For a changed material choice, reopen that same decision, name affected specs/evidence, and invalidate affected commitment before proceeding. Do not silently replace a clarified answer or treat browser storage as authority.

Files

What ships with it

1 file 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. 26d ago Changed · +1 lines baf394edc4a3
  2. 1mo ago First seen · 60 lines · 32 tokens per session scan A fcb5f109c9bd

Subscribe to this mod's changes

joycraft-ui-slice is a skill published in the GitHub repository maksutovic/joycraft (15 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 746 once invoked, about $0.0001 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-10-31.

Related

joycraft-ui-slice compared with skills from other repositories

joycraft-ui-slice next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
joycraft-ui-slicemaksutovic/joycraftSkill15todayMITA32Claude Code, Codex
elementsNVIDIA/elementsSkill122yesterdayApache-2.0A59Claude Code, Codex
design-taste-frontenddmae97/omkSkill154todayMITA61Claude Code, Codex
design-taste-frontend-v1dmae97/omkSkill154todayMITA61Claude Code, Codex
high-end-visual-designdmae97/omkSkill154todayMITA53Claude Code, Codex
gpt-tastedmae97/omkSkill154todayMITA72Claude Code, Codex
design-generatestepanenkoviktor0110-boop/ai-dev-methodology-codexSkill17mo agononeA126Claude Code, Codex