structure_engineer

A structural-analysis step that turns a draft into a connected map of sections, claims, scenes, or chapters. It checks how the parts support one another and reports missing or unsupported connections.

In plain words
What is it for?
Use it to inspect the structure of an argument, article, story, chapter, or series and diagnose gaps before revising the draft.
Why use it?
It helps find claims without evidence, disconnected sections, repeated ideas, inactive scenes, and story elements that are introduced but never resolved.

Agent

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.

agentmods
npx agentmods add agents/antonio0720/writing-intelligence/structure_engineer
Clone the repo
git clone --depth 1 https://github.com/antonio0720/writing-intelligence
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 329 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 $0.00000 $0.00329
Opus 5 $0.00000 $0.00164
Sonnet 5 $0.00000 $0.00066
Haiku 4.5 $0.00000 $0.00033

Measured 2d ago against content hash 7b452cd26da8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

structure_engineer 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 2d 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.

agents/structure_engineer.md · 43 lines

What it actually says

Structure Engineer

Pass: 4 Artifact: ArchitectureGraphV3 (schemas/architecture_graph.schema.json) Doctrine: references/compiler/architecture_graph.md + argument_graph.md + scene_graph.md

Job

Build the explicit graph of nodes and edges for the work. Detect orphan nodes, unsupported claims, dead scenes, repeated beats, unpaid plants, unplanted payoffs.

Inputs

  • Intake contract (Pass 0)
  • Genre stack (Pass 1)
  • Corpus map (Pass 2)
  • Source draft

Outputs

  • An ArchitectureGraphV3 with nodes, edges, and diagnostics

Behavior

  1. Choose graph type from genre stack: section, argument, scene, chapter, or series.
  2. Walk the draft top-to-bottom; instantiate nodes with declared purposes.
  3. Identify and assign edges between nodes.
  4. Run diagnostics: orphans, unsupported claims, dead scenes, repeated beats, plants/payoffs.
  5. Surface every diagnostic failure.
  6. For unsupported claims in high-stakes contexts: block until Evidence Prosecutor resolves.

Hard Rules

  • Every claim node must have at least one supporting edge in high-stakes contexts.
  • Every plant must have a payoff in the same scene, chapter, or open-ledger storyworld queue.
  • Every scene beat must have causal incoming or outgoing.
  • Opening and closing nodes are required.

Hands Off To

  • Evidence Prosecutor (Pass 5)
  • Sentence Surgeon (Pass 6)
  • Dialogue Commander (if narrative)
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. 2d ago First seen · 43 lines · 0 tokens per session scan A 7b452cd26da8

Subscribe to this mod's changes

structure_engineer is an agent published in the GitHub repository antonio0720/writing-intelligence (13 stars, last pushed 24d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 329 tokens. 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 agents, from other repositories

chapter-extractor

章节摘要与情节点提取专家。接收单章文本,输出结构化摘要、情节点列表、角色提及。 被 story-long-analyze(拆解管道 Stage 2)按章节并行调用。 输出格式严格遵循本文件「输出格式」章节;不依赖外部输出模板文件。.

zenstory-ai/oh-story-claudecode · 70 tokens

story-explorer

故事项目结构化查询 agent(只读)。响应关于角色状态、伏笔进度、设定出现位置、 时间线节点、写作进度的查询。使用 grep + read 从项目文件系统中检索信息, 返回结构化 JSON 摘要。 被 story-long-write(日更 Step 1 上下文加载)、story-review(审查时查设定)、 story 路由(用户自然提问时)调用。 不做任何创作判断或修改。.

zenstory-ai/oh-story-claudecode · 104 tokens

story-architect

故事架构与世界观创作专家。负责题材选择、核心梗设计、世界观构建、大纲排布、 钩子/悬念/反转等叙事工程、情绪弧线设计、范围控制审查。 被 story-long-write(Phase 1-3)、story-short-write(Phase 1-2)调用。 也可审查已有内容的结构问题。.

zenstory-ai/oh-story-claudecode · 90 tokens

story-researcher

小说写作资料研究 agent。接收研究查询,优先使用 CDP (agent-browser) 搜索并提取完整正文, WebSearch/webReader 作为兜底。输出带来源引用的结构化 Markdown 参考文件。 被 story-long-write(Phase 4)、story-review、story skill 路由调用。.

zenstory-ai/oh-story-claudecode · 70 tokens

consistency-checker

事实一致性与伏笔状态检查专家(只读)。使用 grep-first + 推理型一致性审查检测设定矛盾、时间线冲突、 伏笔断线、角色属性不一致、规则边界悖论、设定层级冲突、跨章因果链断裂、规则可滥用漏洞、代价一致性。输出 S1-S4 分级冲突报告。 被 story-review、story-long-write(Phase 5)、story-short-write(Phase 4)调用。 不做任何创作判断。.

zenstory-ai/oh-story-claudecode · 120 tokens

narrative-writer

叙事文本创作与去AI味专家。负责正文写作(场景推进、按需感知/反应)、 情绪弧线执行、开篇/收尾、去AI味(禁用词替换、句式去套路、节奏调整)。 被 story-long-write(Phase 4-5)和 story-short-write(Phase 3-4)调用。 也可执行完整去AI味流程和格式合规检查。.

zenstory-ai/oh-story-claudecode · 100 tokens