Skip to content
Writing
Command

/relations

管理和追踪角色关系变化

From plugin
novel-writer-skills
24715 skills15 commands
Install
$ npx -y skills add wordflowlab/novel-writer-skills --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/relations

Context preview

What this command does when you run it.

管理和追踪角色关系变化

Command definition

relations.md
name: relations
description: 管理和追踪角色关系变化
argument-hint: [update | show | history | check] [角色] [关系] [目标角色]
allowed-tools: Read(//spec/tracking/relationships.json), Read(spec/tracking/relationships.json), Write(//spec/tracking/relationships.json), Write(spec/tracking/relationships.json), Bash(find:*), Bash(*)
model: claude-sonnet-4-5-20250929
scripts:
  sh: .specify/scripts/bash/manage-relations.sh
  ps: .specify/scripts/powershell/manage-relations.ps1

角色关系管理

追踪和管理角色之间的关系动态,确保关系发展的合理性。

功能

1. **关系网络** - 维护角色之间的关系图谱 2. **关系变化** - 记录关系的演变历程 3. **派系管理** - 追踪各势力派系的对立与合作 4. **情感追踪** - 管理角色间的情感发展

使用方法

执行脚本 {SCRIPT} [操作] [参数]:

  • `update` - 更新角色关系
  • `show` - 显示关系网络
  • `history` - 查看关系变化历史
  • `check` - 验证关系逻辑

示例:

{SCRIPT} update 李中庸 allies 沈玉卿 --chapter 61 --note 初入翰林相助
# PowerShell:
{SCRIPT} -Command update -A 李中庸 -Relation allies -B 沈玉卿 -Chapter 61 -Note 初入翰林相助

数据存储

关系数据存储在 `spec/tracking/relationships.json`:

{
  "characters": {
    "主角": {
      "盟友": ["角色A", "角色B"],
      "敌对": ["角色C"],
      "爱慕": ["角色D"],
      "未知": ["角色E"]
    }
  },
  "factions": {
    "改革派": ["主角", "角色A"],
    "保守派": ["角色C", "角色F"]
  }
}

输出示例

👥 角色关系网络
━━━━━━━━━━━━━━━━━━━━
主角:李中庸
├─ 💕 爱慕:沈玉卿
├─ 🤝 盟友:张居正(隐藏)
├─ 📚 导师:利玛窦
├─ ⚔️ 敌对:申时行派系
└─ 👁️ 监视:东厂

派系对立:
改革派 ←→ 保守派
东林党 ←→ 阉党

最近变化(第60章):
- 沈玉卿:陌生人 → 相互吸引
- 张居正:未知 → 师承关系
Ships withnovel-writer-skills

🚀 专为 Claude Code 设计的 AI 智能小说创作助手 深度集成 Slash Commands 和 Agent Skills,提供最佳创作体验

Get the whole plugin