sensecraft-solutions: Skill for Claude Code

.agents/skills/preview-solution-content/SKILL.md

preview-solution-content is a skill for Claude Code from suharvest/sensecraft-solutions. It costs 124 tokens per session (1,649 once invoked), scanned A, original, Apache-2.0.

A local-only preview workflow for viewing edited SenseCraft solution text, settings, or images in the installed desktop app. It previews changes on the current computer and is not a public release.

In plain words
What is it for?
Use it to preview files changed under a solution directory, reimport or restart the app, and inspect how the edits look before release.
Why use it?
It lets editors check content changes in the app without rebuilding it, modifying Git, or sending the changes to other users.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is suharvest/sensecraft-solutions's own configuration. It tells Claude Code how to work on sensecraft-solutions itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sensecraft-solutions configures →

Reuse

Borrowing it

Nothing to install: this file belongs to suharvest/sensecraft-solutions. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/suharvest/sensecraft-solutions/main/.agents/skills/preview-solution-content/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/suharvest/sensecraft-solutions

Made for: Claude Code.

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 preview-solution-content

README.md
[![agentmods](https://agentmods.dev/badge/skills/suharvest/sensecraft-solutions/preview-solution-content/github.svg)](https://agentmods.dev/skills/suharvest/sensecraft-solutions/preview-solution-content)
Your own site
<a href="https://agentmods.dev/skills/suharvest/sensecraft-solutions/preview-solution-content"><img src="https://agentmods.dev/badge/skills/suharvest/sensecraft-solutions/preview-solution-content/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 preview-solution-content

Your own site · 80×15
<a href="https://agentmods.dev/skills/suharvest/sensecraft-solutions/preview-solution-content"><img src="https://agentmods.dev/badge/skills/suharvest/sensecraft-solutions/preview-solution-content.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00124 $0.01649
Opus 5 $0.00062 $0.00825
Sonnet 5 $0.00025 $0.00330
Haiku 4.5 $0.00012 $0.00165

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

Security

Grade A, and why

preview-solution-content scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsS "$BASE/api/health" >/dev/null && echo "backend reachable" || echo "backend NOT reachable"
.agents/skills/preview-solution-content/SKILL.md · 135 lines

How it starts

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

Preview Solution Content (Local-Only, NOT a Release)

Bridge "I edited files in the repo" → "I see it in my installed app, on my machine, right now". For non-technical users who can't / won't rebuild the desktop app.

Preview vs. Release — read first

This skill is preview only. Concretely:

Aspect Preview (this skill) Release (NOT this skill)
Where the content lands Only the installed app on this machine OSS CDN → all users via OTA
Touches Git? No Yes — commit bundled_hashes.json
Runs generate_solution_manifest.py? No Yes
Updates manifest.json / bundled_hashes.json? No Yes
Reversible? Yes — reimport or restart app Requires a follow-up release
Audience Only the editor, for their own eyes Everyone running the app

If the user is asking to ship the change, stop. Tell them this is preview only and point at the release flow (scripts/generate_solution_manifest.py + git commit bundled_hashes.json). Get explicit confirmation before running anything that writes to a network or to git.

When to use

  • User edited Markdown / YAML / images under solutions/<id>/ in the source tree
  • They want to see how those edits render inside the already-installed desktop app
  • They are explicitly previewing — no OTA, no commit, no bundled_hashes.json regen

Workflow

Step 1 — Ask user for the backend port

The desktop app uses a dynamic port. The user can read it from the app:

请在 App 内打开 设置 → API 访问,把"接口地址"里的端口号告诉我(例如 http://127.0.0.1:3260 里的 3260)。

Default is 3260 but Tauri may have picked another free port — always ask, don't assume.

注意:这里不需要勾选"启用局域网 API 访问"那个开关。那个开关只控制别的机器能不能访问;我们在同一台机器上跑命令,"接口地址"会一直显示,本机请求免认证

Set PORT=<user-provided> and BASE=http://127.0.0.1:$PORT for the rest of the flow.

Sanity check the port is alive before doing anything else:

curl -fsS "$BASE/api/health" >/dev/null && echo "backend reachable" || echo "backend NOT reachable"

Read the full file on GitHub · 135 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. 10d ago First seen · 135 lines · 124 tokens per session scan A 54e888936eca

Subscribe to this mod's changes

preview-solution-content is a skill published in the GitHub repository suharvest/sensecraft-solutions (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 124 tokens to every session and 1,649 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

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

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens