smithery/wjiajie

story-display-skill

负责小说?

Installation

$ npx skills add smithery/wjiajie --skill story-display-skill

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/wjiajie.

npx skills add smithery/wjiajie

Browse all from smithery/wjiajie

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,583 B
  • docs SUMMARY.md 159 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

小说情节展示技能 (Story Display Skill)

概述

本技能是”万言小说”最后落地的关键环节。它通过”写入 -> 校验 -> TUI 展示”的闭环,确保每一回剧情都能安全存盘并以沉浸式阅读体验呈现在玩家终端上。

核心职责

  1. 稳健写入:将 story-engine 生成的内容写入 ./history/chapters/。
  2. 落盘校验:写入后通过脚本检测文件是否存在且字节数正常。
  3. TUI 沉浸展示:基于 rich 库启动交互式阅读器,支持分页翻页、关键词高亮。

TUI 阅读器功能

  • 分页浏览:PageUp/PageDown/方向键翻页
  • 关键词高亮:武学名(青)、武器名(黄)、地名(绿)、人名(紫)、境界(红)
  • 进度指示:底部显示当前页码和阅读进度
  • 快捷键:

- ↑/b/k - 上一页 - ↓/f/j/空格 - 下一页 - g/G - 跳转首/末页 - q/ESC - 退出

使用流程

  1. 当一章剧情生成完毕后,调用:

python .agent/skills/story-display-skill/scripts/display_chapter.py --chapter <N> --content “<CONTENT>” --finalize

  1. 脚本会自动处理写入、校验并启动 TUI 阅读器
  2. 如需禁用 TUI 使用传统模式,添加 --no-tui 参数

脚本索引

  • scripts/display_chapter.py: 处理核心写入、校验与展示分发
  • scripts/tui_viewer.py: TUI 沉浸式阅读器实现