modelbase-fsm-update

modelbase-fsm-update is a skill for Claude Code, Codex from grasscaograss/AwesomeWeldoneSkills. It costs 52 tokens per session (828 once invoked), scanned A, original, Apache-2.0.

A maintenance tool for keeping the ModelBase state-machine reference guide aligned with its source files. It rereads the state definitions, engine, workflow data, and state implementation files, then updates the documented diagrams and tables.

In plain words
What is it for?
Use it when the ModelBase state machine changes or when you need to synchronize its documentation with the latest source code.
Why use it?
It removes the manual comparison work required after the state machine changes. This helps prevent the reference guide from describing an outdated workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it when the ModelBase state machine changes or when you need to synchronize its documentation with the latest source code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update
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.

Any agent
npx skills add grasscaograss/AwesomeWeldoneSkills --skill modelbase-fsm-update
Clone the repo
git clone --depth 1 https://github.com/grasscaograss/AwesomeWeldoneSkills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin modelbase-fsm-update/plugin install modelbase-fsm-update after adding the marketplace above.

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 modelbase-fsm-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update/github.svg)](https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update)
Your own site
<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update/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 modelbase-fsm-update

Your own site · 80×15
<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/modelbase-fsm-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00052 $0.00828
Opus 5 $0.00026 $0.00414
Sonnet 5 $0.00010 $0.00166
Haiku 4.5 $0.00005 $0.00083

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

Security

Grade A, and why

modelbase-fsm-update 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 11d 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.

modelbase-fsm-update/SKILL.md · 75 lines

What it actually says

更新 ModelBase FSM Skill

当源文件发生变动时,按以下步骤更新 ~/.claude/skills/modelbase-fsm/SKILL.md

需要读取的源文件

必须全部读取,不可遗漏:

1. src/Weldone.Application/StateEngines/ModelBase/ModelBaseFSM.FSMScript
2. src/Weldone.Application/StateEngines/ModelBase/ModelBaseFSMEngine_EnumDefine.cs
3. src/Weldone.Application/StateEngines/ModelBase/ModelBaseFSMEngine.cs
4. src/Weldone.Application/StateEngines/ModelBase/ModelBaseFSMAppService.cs
5. src/Weldone.Application.Contracts/Workflows/ScanWeldWorkflowData.cs
6. src/Weldone.Application.Contracts/Workflows/FullWorkflowData.cs
7. src/Weldone.Application/States/ModelBase/ 下所有 .cs 文件(含 Plan/ 子目录)

执行步骤

Step 1: 读取所有源文件

读取上述 7 个位置的文件。对于 States/ModelBase/ 目录,用 Glob 获取所有 **/*.cs 文件后逐一读取。

Step 2: 比对差异

与当前 ~/.claude/skills/modelbase-fsm/SKILL.md 的内容逐节比对,定位变动:

  • FSMScript 变动 → 更新顶层/内层状态图、节点枚举、转移事件、清枪子流程
  • EnumDefine 变动 → 更新枚举代码块
  • Engine 变动 → 更新图变换表、Executor 表
  • AppService 变动 → 更新关键服务表(如有新增公开方法)
  • WorkflowData 变动 → 更新数据结构节
  • 节点实现变动 → 更新节点速查表(行数、职责描述)
  • 新增/删除节点文件 → 增删速查表条目,同步更新状态图

Step 3: 生成更新内容

按 SKILL.md 的现有结构(节标题不变),仅修改有变动的部分。保持格式一致:

  • 状态图用 ASCII 文本
  • 枚举用 csharp 代码块
  • 表格用 Markdown
  • 保留"注意事项"节并按需增补

Step 4: 写入

用 Edit 工具更新 ~/.claude/skills/modelbase-fsm/SKILL.md 中有变动的段落。 如果变动范围很大(超过 50% 的节),则用 Write 整体重写。

Step 5: 报告

向用户报告:

  1. 检测到的变动点(哪些节更新了)
  2. 新增/删除/重命名的节点(如有)
  3. 枚举值变化(如有)
  4. 数据结构字段变化(如有)

注意事项

  • 不要凭记忆填充内容,必须从源文件实际读取
  • FSMScript 中的 def X(Type) 括号内是节点 Type(DI 用),括号外是节点名(FSM 用)
  • yield return Yield.Event(int) 中 int 值对应 FSMScript 里的 数字->EventName
  • Deprecated 字段要标注 [Obsolete],保留在文档中供兼容参考
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. 11d ago First seen · 75 lines · 52 tokens per session scan A eb391637c88a

Subscribe to this mod's changes

modelbase-fsm-update is a skill published in the GitHub repository grasscaograss/AwesomeWeldoneSkills (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 828 once invoked, about $0.0003 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

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