write

A command for starting a novel project or continuing its next chapter. It loads saved outlines, character notes, progress, and recent chapters from a chosen folder.

In plain words
What is it for?
Use it to create a new novel workspace, resume an existing story, write the next chapter, and save chapter and progress files.
Why use it?
It restores the story context before writing, reducing the need to explain the project again each time.

Command

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 commands/js-mark/skills/write
Clone the repo
git clone --depth 1 https://github.com/JS-mark/skills
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 683 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.00009 $0.00683
Opus 5 $0.00005 $0.00342
Sonnet 5 $0.00002 $0.00137
Haiku 4.5 $0.00001 $0.00068

Measured yesterday against content hash 21a5c197546a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

write 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 yesterday.

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/novel-writer/commands/write.md · 66 lines

What it actually says

/write 小说创作命令

默认存储路径 ~/Desktop/novel/,用户可通过 /write /path/to/my-novel 或对话中指定自定义路径。确定后的路径记为 <NOVEL_ROOT>

第一步:确定路径并加载存档(必须先执行)

  1. 确定 <NOVEL_ROOT>
    • 如果命令带参数(如 /write ~/Documents/my-story),使用该路径
    • 如果用户之前在对话中指定过路径,沿用该路径
    • 否则使用默认路径 ~/Desktop/novel/
  2. 使用 Glob 检查 <NOVEL_ROOT>/ 是否存在
  3. 如果存在,并行读取以下文件:
    • <NOVEL_ROOT>/outline.md(故事大纲)
    • <NOVEL_ROOT>/characters.md(角色档案)
    • <NOVEL_ROOT>/progress.md(创作进度)
  4. 使用 Glob 查找 <NOVEL_ROOT>/chapters/**/*.md,读取最近 1-2 章恢复上下文
  5. 向用户汇报当前状态:
    📖 已加载创作存档
    存储路径:<NOVEL_ROOT>
    书名:《XXX》
    当前进度:第X卷 · 第XX章
    上章概要:XXX
    下章预告:XXX
    

第二步:判断并执行

  1. 如果 <NOVEL_ROOT>/outline.md 不存在

    • 全新创作
    • 使用 AskUserQuestion 询问是否使用默认路径 ~/Desktop/novel/,还是自定义路径
    • 确认后使用 Bash 创建 <NOVEL_ROOT>/chapters/ 子目录
    • 以热情友好的语气打招呼,介绍自己是创作搭档
    • 询问用户想创作什么类型的小说
    • 引导进入故事大纲阶段
  2. 如果大纲存在但 <NOVEL_ROOT>/characters.md 不存在

    • 大纲已完成,角色档案未完成
    • 引导用户进入角色设计阶段
  3. 如果大纲和角色都存在

    • 根据 progress.md 和大纲确定下一章走向
    • 直接开始创作下一章

第三步:创作输出

创作时

  • 严格按照故事大纲推进
  • 每章 3000-5000 中文字符
  • 章末必须有钩子
  • 如需素材,使用 WebSearch 搜索

创作后

  • 使用 Write 保存章节到 <NOVEL_ROOT>/chapters/第X卷/第XXX章-标题.md
  • 使用 Write/Edit 更新 <NOVEL_ROOT>/progress.md
  • 附上进度报告
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. yesterday First seen · 66 lines · 9 tokens per session scan A 21a5c197546a

Subscribe to this mod's changes

write is a command published in the GitHub repository JS-mark/skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 683 once invoked, about $0.0000 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-31.