track-init

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

A command that initializes tracking files for a novel after its story outline and chapter plan are complete. It records plot lines, clues, foreshadowing, and planned story progress.

In plain words
What is it for?
Use it before drafting chapters to create or update plot-tracker.json with the novel’s plot lines, clues, intersections, foreshadowing, and current chapter state.
Why use it?
It avoids setting up these tracking records by hand before writing begins. The command gathers information from the existing story and planning documents into a consistent starting state.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit Use it before drafting chapters to create or update plot-tracker.json with the novel’s plot lines, clues, intersections, foreshadowing, and current chapter state.

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

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-skills/track-init/github.svg)](https://agentmods.dev/commands/wordflowlab/novel-writer-skills/track-init)
Your own site
<a href="https://agentmods.dev/commands/wordflowlab/novel-writer-skills/track-init"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer-skills/track-init/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 track-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/wordflowlab/novel-writer-skills/track-init"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer-skills/track-init.svg" alt="Reviewed on agentmods" width="80" 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 1,080 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.01080
Opus 5 $0.00009 $0.00540
Sonnet 5 $0.00003 $0.00216
Haiku 4.5 $0.00002 $0.00108

Measured 11d ago against content hash a86648480f4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 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.

templates/commands/track-init.md · 120 lines

How it starts

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

初始化追踪系统

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

使用时机

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

初始化流程

  1. 读取基础数据

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

    重要:优先从 specification.md 第五章读取线索管理规格,填充到追踪文件。

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

    • specification.md 5.1节 读取所有线索定义
    • specification.md 5.3节 读取所有交汇点
    • specification.md 5.4节 读取所有伏笔
    • creative-plan.md 读取章节段的线索分布
    • 设置当前状态(假设尚未开始写作)

    plot-tracker.json 结构

    {
      "novel": "[从specification.md读取故事名称]",
      "lastUpdated": "[YYYY-MM-DD]",
      "currentState": {
        "chapter": 0,
        "volume": 1,
        "mainPlotStage": "[初始阶段]"
      },
      "plotlines": {
        "main": {
          "name": "[主线名称]",
          "status": "active",
          "currentNode": "[起点]",
          "completedNodes": [],
          "upcomingNodes": "[从交汇点和章节规划读取]"
        },
        "subplots": [
          {
            "id": "[从5.1读取,如PL-01]",
            "name": "[线索名称]",
            "type": "[主线/支线/主线支撑]",
            "priority": "[P0/P1/P2]",
            "status": "[active/dormant]",
            "plannedStart": "[起始章节]",
            "plannedEnd": "[结束章节]",
            "currentNode": "[当前节点]",
            "completedNodes": [],
            "upcomingNodes": "[从交汇点表读取]",
            "intersectionsWith": "[从5.3交汇点表读取相关线索]",
            "activeChapters": "[从5.2节奏规划读取]"
          }
        ]
      },
      "foreshadowing": [
        {
          "id": "[从5.4读取,如F-001]",
          "content": "[伏笔内容]",
          "planted": {"chapter": null, "description": "[埋设说明]"},
          "hints": [],
          "plannedReveal": {"chapter": "[揭晓章节]", "description": "[揭晓方式]"},
          "status": "planned",
          "importance": "[high/medium/low]",
          "relatedPlotlines": "[涉及的线索ID列表]"
        }
      ],
      "intersections": [
        {
          "id": "[从5.3读取,如X-001]",
          "chapter": "[交汇章节]",
          "plotlines": "[涉及的线索ID列表]",
          "content": "[交汇内容]",
          "status": "upcoming",
          "impact": "[预期效果]"
        }
      ]
    }
    

Read the full file on GitHub · 120 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. 11d ago First seen · 120 lines · 17 tokens per session scan A a86648480f4f

Subscribe to this mod's changes

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