wf-rebuild

wf-rebuild is a skill for Claude Code from dioptx/weft. It costs 25 tokens per session (139 once invoked), scanned A, original, MIT.

A command that reconstructs Weft’s workflow state file from its event log, which is a record of past workflow changes. It rebuilds the latest workflow by default or a specified workflow when given its ID.

In plain words
What is it for?
Use it to rebuild and display workflow state, especially after the state file is missing, outdated, or suspected to be incorrect.
Why use it?
Checks that the current state can be derived from recorded events instead of trusting or manually repairing the state file.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the weft plugin — 13 skills, 4 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add dioptx/weft
Claude Code
/plugin install weft

Made for: Claude Code.

Or install weft, the plugin that ships this one along with the rest of its 13 skills, 4 hooks.

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 wf-rebuild

README.md
[![agentmods](https://agentmods.dev/badge/skills/dioptx/weft/wf-rebuild.svg)](https://agentmods.dev/skills/dioptx/weft/wf-rebuild)
Your own site
<a href="https://agentmods.dev/skills/dioptx/weft/wf-rebuild"><img src="https://agentmods.dev/badge/skills/dioptx/weft/wf-rebuild.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 139 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.00025 $0.00139
Opus 5 $0.00013 $0.00069
Sonnet 5 $0.00005 $0.00028
Haiku 4.5 $0.00003 $0.00014

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

Security

Grade A, and why

wf-rebuild 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.

skills/wf-rebuild/SKILL.md · 25 lines

What it actually says

Rebuild Weft State from Events

Proves event sourcing: reconstruct state.json purely from events.jsonl.

Arguments

$ARGUMENTS

Instructions

  1. Run:

    python3 "${CLAUDE_PLUGIN_ROOT}/core/cli.py" rebuild $ARGUMENTS
    
  2. Display the rebuilt state.

  3. If no workflow_id given, rebuilds the most recent workflow.

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 · 25 lines · 25 tokens per session scan A cc6dd38bd4c7

Subscribe to this mod's changes

wf-rebuild is a skill published in the GitHub repository dioptx/weft (24 stars, last pushed 21d ago), licensed MIT. It adds 25 tokens to every session and 139 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-30.

Related

Other skills, from other repositories

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

development

开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.

fengshao1227/ccg-workflow · 41 tokens

tencent-docs

腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1) 创建各类在线文档(文档/Word/Excel/幻灯片/思维导图/流程图/智能表格/收集表)(2) 管理知识库空间(创建空间、查询空间列表)(3) 管理空间节点、文件夹结构 (4) 读取/搜索文档内容 (5) 编辑操作智能表 (6) 编辑操作在线文档 (7) 文件管理(重命名、移动、删除、复制、导入导出)(8) 网页剪藏、本地文件/文档上云。.

UnicomAI/wanwu · 209 tokens

post-build-flow

Handles workflow verification and setup after build-workflow succeeds, or when the message contains workflow-verification-follow-up or workflow-setup-required. Load after direct builds, when verificationReadiness requires action, or on orchestrator verify/setup follow-up turns.

n8n-io/n8n · 53 tokens

n8n:reproduce-bug

Reproduce a bug from a Linear ticket with a failing test. Expects the full ticket context (title, description, comments) to be provided as input.

n8n-io/n8n · 41 tokens

model-compatibility

Model family compatibility matrix covering loaders, resolutions, samplers, CFG, VAE, ControlNet, and LoRA compatibility for SD 1.5, SDXL, Flux, SD3, and video models.

artokun/comfyui-mcp · 47 tokens