技能图谱SKILLSGROVE
技能图谱/效率工具/tance-mang/chinese-webnovel-skills/grok-write

grok-write

安装

$npx skills add https://github.com/tance-mang/chinese-webnovel-skills --skill grok-write
$git clone --depth 1 https://github.com/tance-mang/chinese-webnovel-skills.git /tmp/chinese-webnovel-skills && mkdir -p ~/.claude/skills && cp -r /tmp/chinese-webnovel-skills/skills/grok-write ~/.claude/skills/grok-write
请帮我安装这个 Agent Skill:https://github.com/tance-mang/chinese-webnovel-skills/tree/7e797ec9d4fcdd240db1039da8bea77beb86b5df/skills/grok-write ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT使用 Grok API 写小说、续写、翻译或改稿。适用于作者要接入 xAI、查看可用模型、用指定本地资料写作,或把结果另存为待改草稿。
以下 SKILL.md 内容转载自 tance-mang/chinese-webnovel-skills(提交 7e797ec),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 tance-mang 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

用 Grok 写小说

使用 Grok 写作入口。程序写作使用 xAI API,Grok Bot 做研究或评审时使用手动交接。若作者没有 API Key,可准备本地任务文件,由作者在有权使用的 Grok 聊天里手动执行。

  1. 核对作者已选的模型、语言、任务范围、篇幅,以及允许发送的原稿或设定。未配置模型时先执行 python cli/webnovel.py --grok --models。密钥只从本机环境变量读取。
  2. 选择 original、continue、adapt、translate 或 revise。写作要求放 --prompt-file,可选材料用 --source-file。长篇只附当前章节所需的作者确认内容。实质改编沿用已确认决策,其余列为待定。
  3. 写入新的 --output 文件,作为待作者采用的草稿。简述范围、稿件位置与缺失材料。续写核对上章衔接、角色知情与伏笔。只把作者采纳的内容写进正式档案。

连接失败、额度不足或拒绝时报告原因。作者明确重新选择前保持当前模型和书稿。投稿走 submission,并对照当日平台政策记录生成、辅助与翻译的实际用法。

查看许可证全文(MIT)
MIT License

Copyright (c) 2026 tance-mang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.