track-init

track-init is a command for Claude Code from wordflowlab/novel-writer. It costs 17 tokens per session (396 once invoked), scanned A, original, MIT.

A command that initializes tracking files for a writing project from its story outline and chapter plan. It records plot points, timelines, relationships, character states, and writing-method checkpoints.

In plain words
What is it for?
Use it after creating the story and outline, before writing, to prepare trackers for plot, time, relationships, characters, and structural milestones.
Why use it?
It gives later writing work a shared record of what has happened and what must stay consistent across chapters.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it after creating the story and outline, before writing, to prepare trackers for plot, time, relationships, characters, and structural milestones.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wordflowlab/novel-writer/track-init
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.

Clone the repo
git clone --depth 1 https://github.com/wordflowlab/novel-writer

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 track-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/wordflowlab/novel-writer/track-init.svg)](https://agentmods.dev/commands/wordflowlab/novel-writer/track-init)
Your own site
<a href="https://agentmods.dev/commands/wordflowlab/novel-writer/track-init"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer/track-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 396 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.00017 $0.00396
Opus 5 $0.00009 $0.00198
Sonnet 5 $0.00003 $0.00079
Haiku 4.5 $0.00002 $0.00040

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

Security

Grade A, and why

track-init 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 8d 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.

.specify/templates/commands/track-init.md · 53 lines

What it actually says

初始化追踪系统

基于已创建的故事大纲和章节规划,初始化所有追踪数据文件。

使用时机

在完成 /story/outline 之后,开始写作之前执行此命令。

初始化流程

  1. 读取基础数据

    • 读取 stories/*/story.md 获取故事设定
    • 读取 stories/*/outline.md 获取章节规划
    • 读取 .specify/config.json 获取写作方法
  2. 初始化追踪文件

    创建或更新 spec/tracking/plot-tracker.json

    • 从大纲提取主线和支线
    • 标记关键情节节点
    • 设置伏笔追踪点

    创建或更新 spec/tracking/timeline.json

    • 根据章节规划设置时间节点
    • 标记重要时间事件

    创建或更新 spec/tracking/relationships.json

    • 从角色设定提取初始关系
    • 设置派系分组

    创建或更新 spec/tracking/character-state.json

    • 初始化角色状态
    • 设置起始位置
  3. 生成追踪报告 显示初始化结果,确认追踪系统就绪

智能关联

  • 根据写作方法自动设置检查点
  • 英雄之旅:12个阶段的追踪点
  • 三幕结构:三幕转折点
  • 七点结构:7个关键节点

追踪系统初始化后,后续写作会自动更新这些数据。

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. 8d ago First seen · 53 lines · 17 tokens per session scan A 3f04ddc571a9

Subscribe to this mod's changes

track-init is a command published in the GitHub repository wordflowlab/novel-writer (940 stars, last pushed 10mo ago), licensed MIT. It adds 17 tokens to every session and 396 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.