template-activity-host

template-activity-host is a skill for Claude Code from uselessspace/freedeepagents-activity-builder. It costs 24 tokens per session (619 once invoked), scanned A, original, MIT.

A routing guide for a template activity, where an activity is an interactive agent-based feature. It defines how requests are classified and which workflow or card response should handle them.

In plain words
What is it for?
Use it to welcome or reset users, request missing information, route supported business requests to an approved workflow, handle unsupported requests, emit cards, and finish with a completed or failed status.
Why use it?
It keeps business routing, data access, user-visible cards, status changes, and failure handling consistent across turns.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

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/template-activity-host
Any agent
npx skills add uselessspace/freedeepagents-activity-builder --skill template-activity-host
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 template-activity-host

README.md
[![agentmods](https://agentmods.dev/badge/skills/uselessspace/freedeepagents-activity-builder/template-activity-host.svg)](https://agentmods.dev/skills/uselessspace/freedeepagents-activity-builder/template-activity-host)
Your own site
<a href="https://agentmods.dev/skills/uselessspace/freedeepagents-activity-builder/template-activity-host"><img src="https://agentmods.dev/badge/skills/uselessspace/freedeepagents-activity-builder/template-activity-host.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 619 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.00024 $0.00619
Opus 5 $0.00012 $0.00309
Sonnet 5 $0.00005 $0.00124
Haiku 4.5 $0.00002 $0.00062

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

Security

Grade A, and why

template-activity-host 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.

templates/activity-template/skills/template-activity-host/SKILL.md · 48 lines

What it actually says

模板活动主技能

本 Skill 是活动业务意图与相位的唯一权威。AGENTS.md 只负责把本活动交给这里; cards Skill 只负责卡片呈现,不重复业务路由。

Authoring gate

  • 发布前删除所有 TODO_ACTIVITY_AUTHOR,把本文件改成真实活动的薄路由。
  • 详细生成规则、判断标准和多步流程放进本 Skill 目录的 workflows/policies/references/,这里只保留选择入口。
  • 卡片模板与字面 assignment_id/activity/skills/template-activity-cards/SKILL.md 为准。

Always apply

  • 本活动使用 card-system;所有用户可见输出通过 card_emit_templatecard_emitartifact_emit 产生。不要返回最终 JSON,工具调用完成后停止。
  • 业务数据使用 Classification 选定的 SQLite / typed-KV / hybrid 模式。 SQLite 只能由活动 @tools/handlers 通过 ctx.database 访问;typed-KV 才使用 data.schema.jsondata_*。Agent 不接触 SQL 或数据库文件。
  • 固定业务卡使用模板中声明的字面 assignment_id,同一逻辑卡跨 turn 复用。
  • 图片工具返回的 artifact 由 runtime 自动登记,只把返回的 file_url 放入卡片, 不再手动调用 artifact_emit
  • 终态才调用 mark_status("completed" | "failed");调用后结束本轮。
  • 工具失败时按错误修正参数,避免用相同参数循环重试;不可用能力必须给用户可见降级说明。

Route map

触发 执行
首次进入、帮助或重置完成 card_emit_template("template-activity.welcome", {}, "template-activity-welcome") 后停止
关键信息不足 template-activity.intake,使用 template-activity-intake,等待用户
业务请求 TODO_ACTIVITY_AUTHOR: route to one skill-local workflow and list its allowed tools
闲聊或不支持的请求 发一张简短说明卡,不启动外部能力

Turn boundary

每条业务路由必须明确本轮是“等待用户”还是“完成业务”。只有确实需要用户补充信息时 才停在 intake;能在同一 turn 完成的工作应在发出结果卡后再结束。不要发一张没有后续 恢复机制的 progress 卡就停止。

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 · 48 lines · 24 tokens per session scan A 1956710a9f23

Subscribe to this mod's changes

template-activity-host is a skill published in the GitHub repository uselessspace/freedeepagents-activity-builder (2 stars, last pushed 18d ago), licensed MIT. It adds 24 tokens to every session and 619 once invoked, about $0.0001 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens