# Chai Fen Sao Miao

> |

- **Type:** Skill
- **Install:** `agentstack add skill-anarcadia-chuanban-jp-novel-translator-chai-fen-sao-miao`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Anarcadia](https://agentstack.voostack.com/s/anarcadia)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Anarcadia](https://github.com/Anarcadia)
- **Source:** https://github.com/Anarcadia/chuanban-jp-novel-translator/tree/main/skills/chai-fen-sao-miao

## Install

```sh
agentstack add skill-anarcadia-chuanban-jp-novel-translator-chai-fen-sao-miao
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 拆分扫描

小说拆分扫描工具。对给定的小说文件进行结构扫描和章节拆分。

## 使用方式

用户提供小说文件路径，执行以下流程：

1. **扫描阶段**：调用 Python 脚本扫描小说结构
2. **报告阶段**：展示扫描结果，询问用户拆分粒度
3. **拆分阶段**：按用户指定的层级执行拆分
4. **完成报告**：展示拆分结果

## 执行步骤

### 步骤1：扫描结构

执行命令：
```bash
python3 {SCRIPTS_DIR}/novel_splitter.py --scan "文件路径"
```

### 步骤2：展示报告并询问用户

根据扫描结果，向用户展示检测到的章节层级，询问：
- 希望按哪个层级拆分？（卷/章/节/话等）

### 步骤3：执行拆分

执行命令：
```bash
python3 {SCRIPTS_DIR}/novel_splitter.py --split [层级] "文件路径"
```

### 步骤4：报告完成

告知用户：
- 输出目录位置
- 生成的文件数量
- 是否有异常情况

## 输入参数

用户输入 - 小说文件路径（支持 txt、epub、md 格式）

## 输出目录结构

```
{OUTPUT_DIR}/{书名}/
├── {书名}.txt           # 源文件（拆分后自动移入）
├── 拆分/
│   ├── 001_第一章_xxx.md
│   ├── 002_第二章_xxx.md
│   └── ...
├── 概括/                # 后续概括生成
├── 人物和设定/          # 后续分析生成
└── 全书概括.md          # 后续概括生成
```

## 注意事项

- 如果未检测到标准章节结构，提示用户可能需要手动指定或检查文件
- 无法识别的内容会合并到前一个已识别章节
- 支持的拆分层级：卷、部、篇、章、集、回、话、节
- **项目目录命名**：统一使用 `{书名}/` 格式（不带书名号），与源文件名保持一致
- **源文件处理**：拆分完成后，源文件自动移动到项目目录下，保持与目录同名
- **防嵌套机制**：
  - 脚本会自动检测并避免创建嵌套目录结构
  - 如果检测到已存在的嵌套目录（如 `书名/《书名》/`），会自动合并到父目录
  - 支持检测和清理带书名号的嵌套目录（《》、「」等）

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Anarcadia](https://github.com/Anarcadia)
- **Source:** [Anarcadia/chuanban-jp-novel-translator](https://github.com/Anarcadia/chuanban-jp-novel-translator)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-anarcadia-chuanban-jp-novel-translator-chai-fen-sao-miao
- Seller: https://agentstack.voostack.com/s/anarcadia
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
