Borrowing it
Nothing to install: this file belongs to joshsymonds/savecraft.gg. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/joshsymonds/savecraft.gg/main/.claude/skills/working-on-views/SKILL.mdgit clone --depth 1 https://github.com/joshsymonds/savecraft.ggWrote 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.
[](https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-views)<a href="https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-views"><img src="https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-views/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.
<a href="https://agentmods.dev/skills/joshsymonds/savecraft.gg/working-on-views"><img src="https://agentmods.dev/badge/skills/joshsymonds/savecraft.gg/working-on-views.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.02986 |
| Opus 5 | $0.00045 | $0.01493 |
| Sonnet 5 | $0.00018 | $0.00597 |
| Haiku 4.5 | $0.00009 | $0.00299 |
Grade A, and why
working-on-views 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Working on Views
Read docs/views.md for architecture, response format, and constraints.
Read docs/view-design.md for when to build a view, interaction patterns, and visual principles.
CRITICAL: Rebuild After Every .svelte Change
worker/src/mcp/views.gen.ts is a committed build artifact — CI does not rebuild it. After modifying ANY .svelte file (in views/, worker/src/mcp/views/, or plugins/*/reference/views/), you MUST:
- Run
just build-views - Commit the regenerated
views.gen.tsalongside your other changes
Forgetting this means production serves stale view HTML even after a successful cloud deploy. The deploy will succeed, the tests will pass, but users see the old view.
Verification
just build-views # Rebuild views.gen.ts (required after any .svelte change)
just test-worker # Handler + tool tests
just storybook-views # Visual verification on port 6007
Two View Types
Game state views — one self-contained HTML per tool. Component + bridge bundled together.
- Location:
worker/src/mcp/views/<slug>.svelte - Slug maps to tool name:
search-saves.svelte→ toolsearch_saves
Reference views — one bundled HTML for query_reference containing ALL reference module components. Routes on structuredContent.module.
- Location:
plugins/<game>/reference/views/<module-id>.svelte - Filename maps to module ID:
card-search.svelte→ modulecard_search - Auto-discovered by build — adding a
.sveltefile and rebuilding is sufficient.
Adding a New View
- Create
<name>.svelte— Svelte 5 component:let { data } = $props() - Create
<name>.stories.svelte— Storybook story with fixture data - For game state views: update tool in
tools.tsto returnviewResult(structuredContent, narrative)instead oftextResult() - Run
just build-viewsthenjust test-worker - Commit
views.gen.tswith other changes — CI does not rebuild it
Response Format
// Old (presentation hints — being replaced):
textResult(data, "Display as card gallery...");
// New (structured content for view rendering):
viewResult({ cards, total: cards.length }, "Found 5 cards.");
// For query_reference, handler injects module automatically:
// → { module: "card_search", cards: [...], total: 5 }
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.
- 10d ago First seen · 245 lines · 90 tokens per session scan A 04248ce1711f
working-on-views is a skill published in the GitHub repository joshsymonds/savecraft.gg (12 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 90 tokens to every session and 2,986 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-30.
Other skills, from other repositories
shadcn-svelte
Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.
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…
v3-create-crud
A page generator for standard create, read, update, and delete screens, commonly called CRUD screens. It uses Element Plus, a Vue user-interface library, to build tables, searches, pagination, forms, and delete confirmations.
v3-use-composables
Documentation for reusable Vue functions in a project, covering device detection, asynchronous dropdown data, loading screens, pagination, routing, themes, page titles, and watermarks.
moai-domain-uiux
UI/UX design systems specialist covering accessibility, icons, theming, design tokens, and user experience patterns. Use when working on design systems, WCAG compliance, ARIA patterns, or dark mode theming.
frontend-conventions
Frontend convention reference (SvelteKit / Svelte 5). Auto-injected into frontend-aware agents - not user-invocable.