activity-frontend

activity-frontend is a skill for Claude Code from uselessspace/freedeepagents-activity-builder. It costs 95 tokens per session (1,417 once invoked), scanned A, original, MIT.

A frontend design and implementation guide for FDA activities that use a static preview, meaning a persistent interactive web interface.

In plain words
What is it for?
Use it to plan dashboards, games, canvases, timelines, graphs, pets, or form workflows, and to guide implementation of the activity's frontend.
Why use it?
It helps choose an interface shape that matches the work instead of forcing a card-only activity to handle complex interaction.

Skill for Claude Code

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

Part of the freedeepagents-activity-builder plugin — 13 skills shipped together

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.

agentmods
npx agentmods add skills/uselessspace/freedeepagents-activity-builder/activity-frontend
Any agent
npx skills add uselessspace/freedeepagents-activity-builder --skill activity-frontend
Clone the repo
git clone --depth 1 https://github.com/uselessspace/freedeepagents-activity-builder

Made for: Claude Code.

Or install freedeepagents-activity-builder, the plugin that ships this one along with the rest of its 13 skills.

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 activity-frontend

README.md
[![agentmods](https://agentmods.dev/badge/skills/uselessspace/freedeepagents-activity-builder/activity-frontend.svg)](https://agentmods.dev/skills/uselessspace/freedeepagents-activity-builder/activity-frontend)
Your own site
<a href="https://agentmods.dev/skills/uselessspace/freedeepagents-activity-builder/activity-frontend"><img src="https://agentmods.dev/badge/skills/uselessspace/freedeepagents-activity-builder/activity-frontend.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00095 $0.01417
Opus 5 $0.00048 $0.00709
Sonnet 5 $0.00019 $0.00283
Haiku 4.5 $0.00010 $0.00142

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

Security

Grade A, and why

activity-frontend 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 6d 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.

skills/activity-frontend/SKILL.md · 121 lines

How it starts

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

Activity Frontend

<builder-root> 指从本 SKILL.md 所在目录向上两级、包含根 SKILL.mdtools/ 的目录;不要假定它位于目标项目的 packages/ 下。

何时用:仅 frontend_axis = static-preview 或用户明确要更丰富前端时;card-only 活动跳过本步,进入 /activity-review,清零 CONFLICT 后验收目录。

Use only when frontend_axis is static-preview or the user explicitly asks for a richer frontend. Do not vendor external frontend skill source into this package.

Before deriving or building site/, follow ../../references/node-environment.md. Reuse Node 20 or 22 with npm 10; prefer Node 20 to mirror the runtime. Do not install Node for a Card-only activity. When Static Preview lacks a compatible Node, announce the download and use the bundled domestic-mirror bootstrap from that reference instead of asking the user to discover a platform installer.

UI Type Decision

Choose one primary UI type:

  • utilitarian dashboard for operational review, comparison, queues, tables, filters, and repeated work.
  • game-like interactive for rules, turns, progress, score, animation, and direct manipulation.
  • visual canvas for spatial work, drawing, layout, whiteboard, maps, or inspectable generated media.
  • timeline for sequences, schedules, history, milestones, or replay.
  • graph for networks, trees, dependencies, flow, lineage, or knowledge maps.
  • pet/avatar for avatar state, mood, growth, routines, or embodiment.
  • form workflow for intake, review, approval, multi-step configuration, or structured decision capture.

Static Preview Contract

  • Source lives under activities/<activity_type_id>/site/.
  • Build output is activities/<activity_type_id>/site/dist/.
  • vite.config.ts must set base: './' so /preview/<activity_type_id>/<instance_id>/ works.
  • The frontend reads private activity DSL from /api/dsl.json and can subscribe to /api/dsl/stream for refreshes.
  • Agent-driven semantic navigation arrives as a named preview_navigate event on that same stream; it may select an activity-private route, view, or business object, but must not encode clicks, focus, scrolling, or DOM targets. See ../../references/preview-navigation.md.
  • SPA actions that need the normal Agent runtime use structured Preview Agent turns plus an activity-root preview_actions.json; see ../../references/preview-agent-turns.md. Direct handlers remain appropriate for deterministic data writes that do not need the Agent.
  • A recording UI that declares asr chooses one public ASR path: direct multipart POST api/asr for an immediate transcript, or api/upload plus the Agent turn's attachment_refs when the Agent must receive current-turn file_0. See ../../references/preview-asr.md.
  • Agent business actions call activity-owned tools, handlers, or backend APIs; preview_navigate never substitutes for the business operation. Persist state first, then let DSL fetch/SSE refresh the SPA.
  • dsl_builder.py owns the DSL shape and may read typed-KV or activity-maintained sidecar projections from instance_dir. It receives no database handle; a SQLite-backed SPA loads and mutates queryable records through domain handlers.
  • handlers.py exposes deterministic SPA reads/writes; tools.py exposes only the business operations the Agent must call. Shared operations use one plain implementation with thin adapters.
  • Activity data semantics stay in dsl_builder.py, tools.py, and activity skills. Do not add activity-specific frontend branches to app/; keep them in the activity's site/.

Read the full file on GitHub · 121 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. 6d ago First seen · 121 lines · 95 tokens per session scan A ff30e7fc0970

Subscribe to this mod's changes

activity-frontend is a skill published in the GitHub repository uselessspace/freedeepagents-activity-builder (2 stars, last pushed 18d ago), licensed MIT. It adds 95 tokens to every session and 1,417 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

prototype-web

可点击的功能性 Web 原型, 含导航、英雄区、特性区、CTA.

nexu-io/html-anything · 24 tokens

menu-transitions-rtl

Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…

asmyshlyaev177/react-horizontal-scrolling-menu · 137 tokens

vite

Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.

antfu/skills · 49 tokens