Communitygithub.com

OneWave-AI/claude-skills

将系统一模型(如 Jev,或 Von 等开源复现)集成到产品功能中——路由、护栏、评分、分类。适用于用 LLM 调用返回标签而非文本的场景、在 Agent 循环中添加类型化决策的场景,或在托管 Jev API 与本地开源模型之间做出选择的场景。涵盖问题设计、评估集优先的工作流程、阈值校准、置信度门控以及基于真实数据测量出的陷阱。

claude-skills 是什么?

该技能指导开发者如何将系统一模型(如 TypeSafe 的 Jev 或开源复现 Von)集成到产品功能中。系统一模型通过一次前向传递回答有类型的、预定义选项的问题,输出带有校准概率的标签,而非文本——本质上是“可读取条件的 if 语句”。它非常适合窄范围、预设且重复的决策任务(如路由、分类、评分),在这些场景下,额外的推理链是不必要的,且延迟和成本优化至关重要。该技能强调“评估集优先”的开发流程:在编写问题标准之前,必须首先手工标注至少 50 条真实记录,以避免静默失败。它提供了针对 Jev、Von 和 Laya 在不同任务上的系统测量数据(准确率、延迟和成本),展示了托管模型(如 Jev 准确率 145/150,成本降低 46 倍)与本地模型(如 Von 准确率 92/150,在 50 条命令中错误预测了 25 次)之间的巨大差距。该技能进一步解释了三种问题类型(Choice、Noul、Score)及其响应结构、如何针对标注集校准置信度阈值(而非盲目使用 0.5)、如何设计置信度门控以将低置信度决策升级至 Claude,以及最终如何通过功能标志并在真实流量中记录两条路径来渐进式部署。它还涵盖了关键的陷阱,包括开源模型的冷启动延迟、不兼容的 API 参数(如 Von 使用 `criteria=` 而非 `choices=`)、单供应商风险以及小型评估集的误导性。此技能适用于 Claude Code、Cursor 等 AI Agent 平台,帮助开发者通过系统一模型安全高效地增强 LLM 工作流。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/OneWave-AI/claude-skills/tree/HEAD/jev-integrate

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

将系统一模型集成到功能中

系统一模型在一次前向传递中回答有类型的问题。它不生成文本。输入状态,输出带有校准概率的类型化答案。它是一个可以阅读的 if 语句。

当决策窄范围、预设且重复时使用它。不要将其用于任何需要书面解释的任务——那仍然是 Claude 的工作。

首先:这真的是正确的工具吗

回答以下三个问题。如果任何一个答案是“否”,则停止,并保留 LLM 调用。

  1. 可能的答案是否事先已知? 选项上限为 255 个。
  2. 调用者是否只需要标签,而不是推理?如果下游有人需要阅读解释文本,你需要的是文本模型,而这(系统一模型)是错误的工具。
  3. 是高吞吐量,或者有人在等待吗? 这是一个延迟和成本的优化,而非能力提升。它知道的并不比 Claude 多。在每晚对 50 条记录运行的定时任务中,它只会给你带来一个依赖,别无他用。

基于三个任务 150 条手工标注记录(我们的 2026 年 9 月 20 日运行):Jev 与 GPT-5.2 持平,达到 145/150,且成本降低 46 倍(每 1,000 条记录 $0.036 对比 $1.64),但端到端速度仅比 GPT-4.1-mini 快 1.7 倍——公布的 40-200 倍提升是针对 3-329 秒的多步骤前沿工作流,而非单次调用。

开源复现并非即插即用。 同一运行:Von 1.0.1 (395M) 92/150 (61%),Laya (421M) 62/150 (41%)。它们的失败模式是坍塌到一个类别而非逐步降级——Von 在一个包含 5 个命令的 50 条命令集合中预测了 25 次 exfiltration。置信度门控无法挽救这种情况:捕获 Von 的错误意味着将 92% 的流量升级,Laya 为 100%,而 Jev 仅为 8%。仅当你已经在自己标注的数据集上测量过它们时才使用它们。

三种问题类型

"lead_type":  {"type":"choice", "instructions": "...", "criteria": {"opt_a":"desc","opt_b":"desc"}}
"is_urgent":  {"type":"noul",   "instructions": "..."}                       # -> 0.0–1.0
"priority":   {"type":"score",  "instructions": "...", "criteria":["ignore","low","high"]}

在一次调用中提出你需要的所有问题——它们都在同一次前向传递中解析,因此四个问题的成本大致相当于一个问题。

响应结构(Jev 和 Von 均适用):

r["answers"]["lead_type"]["choice"]         # 标签
r["answers"]["lead_type"]["probabilities"]  # 完整分布
r["answers"]["lead_type"]["confidence"]     # 用于门控
r["answers"]["is_urgent"]["noul"]           # 0.0–1.0
r["answers"]["priority"]["score"]           # 在尺度上的位置,例如 2.41

工作流程

1. 首先构建标注集——至少 50 条记录

不可协商,且是价值最高的单一步骤。在编写任何问题标准之前,手动标注来自你将指向此模型的实际流中的记录。没有它,你无法区分是问题不好还是模型不好,而且故障是静默的——参见 jev-eval。

2. 像对新员工解释一样编写标准

同一问题的四种表述方式的差,每个任务 50 条记录(我们 2026 年 9 月 20 日运行):

任务JevVon (395M)Laya (421M)
Agent 命令风险44-49 (10 分)9-23 (28 分)18-28 (20 分)
潜在客户分类47-49 (4 分)22-34 (24 分)15-24 (18 分)
工单路由41-47 (12 分)23-41 (36 分)22-36 (28 分)

在命令任务上对 LLM 进行的相同扫描:Haiku 4.5 46-48 (4 分),GPT-4.1-mini 45-50 (10 分),Jev 44-49 (10 分),GPT-5-mini 41-49 (16 分)。

Jev 并不比小型 LLM 对措辞更鲁棒——它同样有 10 分的波动,而 Haiku 是测试中最稳定的模型。请关注下限,而非波动范围:每个托管模型的最低点都在 82-92%,且保持可交付状态,而 Von 的最低点为 18%,Laya 为 36%。不要将其解读为“编写更好的标准,开源模型就能赶上”——早期一个 15 条记录的测试就得出了这个结论,而且它是错误的。更丰富的标准并未可靠地提高性能:在潜在客户分类任务中,Von 在简洁措辞下得分为 34/50,而在精心编写的措辞下得分为 28/50。影响这些数字的是对表面形式的敏感性,而非理解力,因此每一次未来的标准编辑都意味着一次未宣布的回归风险。

为每个选项编写:它是什么,它不是什么,以及可能诱使错误答案的边界情况。当一个选项应该占主导地位时,显式地命名默认选项。

3. 针对标注集校准阈值——永远不要假设 0.5

Noul 是概率,而非布尔值。Jev 的 noul 有一个下限:在显然洁净的记录上,它仍返回 0.2–0.5,而 Claude 返回 0.0。在测量数据上,有用的截断点在 ~0.85,而非 0.5。阈值不能在模型之间迁移——切换模型时需重新扫描。

不要手动编写扫描逻辑。jev-eval 负责校准并提供了该工具:

python ~/.claude/skills/jev-eval/scripts/sweep.py labelled.json configs.json \
    --backend jev --question <name>

4. 设计置信度门控

将低置信度的答案门控升级到 Claude。同一脚本报告两个重要的指标——门控捕获了多少比例的错误,以及它升级了多少比例的流量——并为结果打标签。一个捕获了所有错误但升级了 73% 流量的门控会得到 saves nothing 的评分,因为它是一条带有额外步骤的慢路径。如果看到这种情况,修复方法是更好的标准,或者使用托管模型,而不是换个阈值。

a = r["answers"]["lead_type"]
if a["confidence"] < GATE:
    return escalate_to_claude(state)   # 慢路径
return a["choice"]                      # 快路径

5. 在功能标志后发布,记录两条路径一周

记录系统一模型的答案和旧路径本应给出的答案。在基于真实流量进行比较后,再完全切换。永远不要只依据评估集数字就切换。

访问路径

# 1. TypeSafe 直接访问——密钥在 macOS Keychain,服务名为 `typesafe-api-key`
export TYPESAFE_API_KEY="$(security find-generic-password -s typesafe-api-key -w)"
curl -X POST https://api.typesafe.ai/v1/systemone \
  -H "Authorization: Bearer $TYPESAFE_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"jev-latest","state":"...","questions":{...}}'
// 2. Cloudflare Workers AI——无需等待列表
await env.AI.run('typesafe/jev', { state, questions })
# 3. Von——本地、免费、Apache-2.0、395M ModernBERT
# pip install von-sdk
import von
r = von.system_one(state="...", questions={"x": von.Noul(instructions="...")})
r.answers["x"].noul

陷阱

  • Von 的 Choice 接受 criteria=,而非 choices=。 如果猜错会得到 Pydantic 错误。
  • Von 返回 .answers[k],而非 .nouls[k] / .choices[k]。LangChain 包装器与原始 SDK 在这里有所不同。
  • Von 的 34 秒冷启动加载权重。应在启动时预热;永远不要将其计入延迟测量。
  • 不要将 noul 的阈值设为 0.5。 参见步骤 3。
  • Jev 是早期访问权限,单一供应商,无 SLA。 在没有回退到 Claude 的情况下,不要将其用于面向客户的关键路径。
  • 小型评估集会撒谎。 15 条记录中两个托管模型都达到 100% 几乎证明不了什么。使用数百条。

相关

jev-eval 构建并运行标注集。jev-audit 用于发现代码库中哪些现有 LLM 调用值得转换。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

OneWave-AI/claude-skills

Deploy a 2-layer parallel agent hierarchy for large, parallelizable work — big refactors, multi-file migrations, codebase-wide audits, bulk generation. A top-tier commander (Fable or Opus) orchestrates the swarms; the user picks a power level (Max Power / Heavy / Balanced / Economy) that sets the Opus/Sonnet/Haiku model mix per layer. Layer 1 is 3-50+ specialist agents, each with its own full context window; Layer 2 is 2+ sub-agents per member. Includes git safety, tiered sizing, a pre-deploy gate, phantom-completion checks, and multi-wave follow-up.

OneWave-AI/claude-skills

Generate animated videos and motion graphics from natural language descriptions. Creates a standalone Vite + React project with Framer Motion scenes that auto-play in the browser. Use when the user wants to create animations, motion graphics, video intros, animated presentations, or product demos.

OneWave-AI/claude-skills

Use before starting a product, feature, MVP, agent, automation, or integration build to identify the main pre-build risk and choose the smallest validation step. Trigger when the user asks whether to build, scope, validate, prioritize, or sanity-check an idea before implementation.

OneWave-AI/claude-skills

Post-mortem analysis when a client churns. Takes client history, engagement data, support tickets, usage logs, and exit feedback to produce a comprehensive churn autopsy with root cause classification, timeline of decline, and preventive measures.

OneWave-AI/claude-skills

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

OneWave-AI/claude-skills

Assemble 2-3 complementary experts to collaboratively analyze anything. Experts work together to explore topics from multiple expert angles.

OneWave-AI/claude-skills

Convert any topic into playable browser games. Types: trivia, matching, word puzzles, adventure games. Uses Phaser.js or Kaboom.js.

OneWave-AI/claude-skills

Turn a marketing brief or product offer into a finished short-form video ad built in HyperFrames — hook, script, shot-by-shot storyboard, scene-by-scene HTML composition, captions, and voiceover. Outputs platform cuts (vertical 9:16, square, 16:9). Use when you need a launch ad, product promo, social video, or paid-creative concept ready to render.

OneWave-AI/claude-skills

Turn a website URL, product docs, or a founder's rambling description into a tight 60-90 second explainer video built in HyperFrames -- problem/solution narrative, animated product walkthrough scenes, captions, and voiceover, ready for the homepage hero, sales emails, and onboarding.

OneWave-AI/claude-skills

Build promo videos for local businesses in HyperFrames -- the new-menu drop, the seasonal offer, the event announcement, the "we're hiring" post, the Google Business Profile clip. Restaurant, salon, gym, trades: 15-30 seconds, brand-clean, captioned, sized for Instagram, Facebook, and the profile.

OneWave-AI/claude-skills

Build a personalized product-demo or sales-walkthrough video in HyperFrames for a specific prospect or account — narrated screen-by-screen, branded to them, ending in a clear next step. Turns a generic demo into a "this was made for me" asset for outbound, follow-up, or deal acceleration. Use when you want to send a tailored video instead of booking another live call.

OneWave-AI/claude-skills

Turn real customer reviews, quotes, and case-study results into polished social-proof videos built in HyperFrames -- single-testimonial spotlights, review-wall montages, and stat-driven proof reels with captions and voiceover, cut for vertical, square, and wide. The highest-converting content most businesses never make.

OneWave-AI/claude-skills

Audit a codebase for LLM calls that are really classifications in disguise, then produce a costed swap plan for a System One model. Use when asked to cut AI inference cost or latency, when scoping a performance engagement for a client, when reviewing an agent loop that feels slow, or when asked "where could we use Jev here". Produces a ranked table of candidates with measured latency and dollar deltas.

OneWave-AI/claude-skills

Build and run a labelled eval set for a System One model (Jev, Von, or any typed-decision config), then sweep criteria wordings and thresholds against it. Use when a Jev/Von classification is wrong or unreliable, when choosing between the hosted API and a local open model, when tuning noul thresholds, or before shipping any typed-decision feature. Produces an accuracy-by-wording matrix and a calibrated threshold.

OneWave-AI/claude-skills

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

OneWave-AI/claude-skills

TAM/SAM/SOM calculator with deep market research. Produces comprehensive market-sizing.md with top-down and bottom-up estimates, methodology, data sources, assumptions, sensitivity ranges, growth projections, competitive landscape, and Mermaid visualizations. Use when user needs market size estimates, addressable market analysis, go-to-market sizing, investor-ready market analysis, or business plan market validation.

OneWave-AI/claude-skills

Generate unique personalized first lines for hundreds of prospects using company news, LinkedIn activity, and mutual connections. Saves 10+ hours of manual research per campaign. Use when you need personalized outreach at volume.

OneWave-AI/claude-skills

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

OneWave-AI/claude-skills

Create multiple choice, true/false, fill-in-blank, matching quizzes. Auto-generate plausible distractors. Instant grading with explanations.

OneWave-AI/claude-skills

Enhanced skill navigator that maps conversation history, recommends multi-skill chains, identifies patterns from past usage, and learns from session outcomes. Goes beyond basic scout with deep context analysis and workflow orchestration.

相关技能