Rp banner
Damages9 Damages9

Rp

Development community

Description

在当前目录下启动话本RP流程。 ## 第一步:扫描当前目录 查找素材文件(PNG角色卡、JSON世界书、TXT小说): - Glob 搜索 `*.png`, `*.json`, `*.txt` - 同时检查 `chat_log.json` 和 `memory/` 是否存在 ## 第二步:根据扫描结果执行 ### 情况 A — 有素材,无 chat_log.json(新卡开局) 按 CLAUDE.md「自动启动流程」步骤 0-8 完整执行: 0. 清理残留 Python 进程,确认端口 8765 空闲 1. 启动桥接服务器 `python skills/server.py &` 2. 写入卡片路径到 `skills/styles/.card_path` 3. 按 CLAUDE.md「自动启动流程」步骤 1-6 完整执行(导入管线 → 服务器 → 上下文 → ScheduleWakeup 输入监听 → 开局交付) 4. 告知用户:「前端已就绪,打开 http://localhost:8765」「在输入框打字,点提交即可」 ### 情况 B — 有 chat_log.json

Installation

Installs to ~/.claude/commands/damages9-airp_claudecode-rp.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Damages9/AIRP_ClaudeCode/HEAD/.claude/commands/rp.md -o ~/.claude/commands/damages9-airp_claudecode-rp.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository