rebuild-from-docs

rebuild-from-docs is a skill for Claude Code from zuoyebang/aiweave. It costs 38 tokens per session (1,287 once invoked), scanned A, original, Apache-2.0.

A workflow that rebuilds selected application code from documentation, treating the documented design as the source of truth.

In plain words
What is it for?
It helps rebuild components, utilities, models, cache helpers, middleware, or other specified modules from their corresponding documentation.
Why use it?
It gives a structured way to recreate code while checking scope, respecting excluded modules, and validating each layer.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It helps rebuild components, utilities, models, cache helpers, middleware, or other specified modules from their corresponding documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zuoyebang/aiweave/rebuild-from-docs
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 zuoyebang/aiweave --skill rebuild-from-docs
Clone the repo
git clone --depth 1 https://github.com/zuoyebang/aiweave

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 rebuild-from-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/zuoyebang/aiweave/rebuild-from-docs/github.svg)](https://agentmods.dev/skills/zuoyebang/aiweave/rebuild-from-docs)
Your own site
<a href="https://agentmods.dev/skills/zuoyebang/aiweave/rebuild-from-docs"><img src="https://agentmods.dev/badge/skills/zuoyebang/aiweave/rebuild-from-docs/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 rebuild-from-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/zuoyebang/aiweave/rebuild-from-docs"><img src="https://agentmods.dev/badge/skills/zuoyebang/aiweave/rebuild-from-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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.00038 $0.01287
Opus 5 $0.00019 $0.00643
Sonnet 5 $0.00008 $0.00257
Haiku 4.5 $0.00004 $0.00129

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

Security

Grade A, and why

rebuild-from-docs 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.

templates/skills/rebuild-from-docs/SKILL.md · 109 lines

How it starts

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

docs/ 文档重建 $ARGUMENTS 指定模块的代码。

公共步骤模板见 skills-spec/01_skill_authoring_guide.md §A-§E。本 Skill 是其他 /new-* Skill 的批量编排版本。

⛔ 模块黑名单(§A.1 之扩展)

BUILD_STATUS.md §0:

参数 行为
service/{🚫_module} 直接拒绝
service/all 跳过 🚫,继续其余
controllers/http/admin/{🚫_module} 跳过
scheduled-tasks 跳过 🚫 任务
router admin 生成时跳过 🚫 路由
all 整体跳过 🚫,且空壳保持空壳

⚠️ 强烈建议

对于 all 或整层级重建(service/all / controllers/http/{audience}),优先使用 docs/architecture/mvp_rebuild_path.md 的分阶段法,而不是本 Skill 一次性生成。

仍坚持 all 时:先读 mvp_rebuild_path.md,按 Stage 顺序触发,每 Stage 间用户确认。

原则

  1. 文档是唯一真相
  2. 先读后写
  3. 逐层构建
  4. 持续验证
  5. BUILD_STATUS 先查后写

流程

第 1 步:确定重建范围

参数模式 读取文档 重建代码
components-constants architecture/constants.md components/constants.go
helpers-utils architecture/helpers_api.md §1 helpers/{ip,crypto,math}.go
models schema/database_design.md models/ 各包
cache-helpers cache/cache_helpers.md service/{module}/cache_loaders.go
middleware architecture/middleware.md + {核心校验链}_flow.md middleware/*.go
internal-render architecture/render_functions.md controllers/http/internal/render.go + validator.go
router architecture/routing.md router/http*.go
service/{module} service/{module}_service.md service/{module}/
service/all service/*_service.md service/ 所有模块(跳过 🚫)
controllers/http/{audience} api/{audience}_interfaces.md controllers/http/{audience}/
scheduled-tasks service/scheduled_tasks_design.md controllers/command/ + 注册
mq-consumer service/scheduled_tasks_design.md §3 helpers/kafka_consumer.go + controllers/mq/ + 注册
all 全部 docs 整工程(改用 mvp_rebuild_path 分阶段

第 2 步:读取所有相关文档(公共必读见 §B)

  1. docs/INDEX.md 定位所有相关 md
  2. docs/BUILD_STATUS.md
  3. 完整读取每个 md
  4. 必读:见公共 §B
  5. 额外必读:
    • docs/cache/cache_design.md §2.x(Hash 字段映射)
    • docs/cache/cache_design.md §2.5(分布式锁)

Read the full file on GitHub · 109 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 · 109 lines · 38 tokens per session scan A 9d02d2d58f58

Subscribe to this mod's changes

rebuild-from-docs is a skill published in the GitHub repository zuoyebang/aiweave (20 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,287 once invoked, about $0.0002 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

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

build-executor

Govern implementation from an approved execution contract. Invoke when execution-contract.md is approved and the user wants disciplined build work, TDD execution, or guarded batch-by-batch implementation.

MageByte-Zero/spec-superflow · 39 tokens

workflow-start

Primary entry point for the spec-superflow state-machine workflow. Invoke when the user is inside an active spec-superflow change directory (look for .spec-superflow.yaml, changes/ /, proposal.md, specs/, design.md, tasks.md, or execution-contract.md) and asks to start, continue, resume, implement, plan, or figure out…

MageByte-Zero/spec-superflow · 125 tokens

release-archivist

Close out a spec-superflow change with verification, summary, and archive readiness. Invoke when implementation is complete, verification is underway, or the user asks for a final wrap-up.

MageByte-Zero/spec-superflow · 42 tokens

bug-investigator

Use when encountering any bug, test failure, or unexpected behavior during spec-superflow execution, before proposing fixes. Invoked automatically when build-executor hits a blockage.

MageByte-Zero/spec-superflow · 37 tokens

contract-builder

Convert approved planning artifacts into an execution contract. Invoke when the user wants to start building, asks to move from planning to implementation, or when execution-contract.md is missing or stale.

MageByte-Zero/spec-superflow · 39 tokens