sync-pd2-wiki/CLAUDE.md

56 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PD2 Wiki Sync Tool - Claude Code 配置
## 项目概述
Project Diablo 2 Wiki 中英文同步工具。
## 环境要求
### Python 虚拟环境
**必须**先激活虚拟环境再运行任何 Python 脚本:
```bash
source venv/bin/activate
```
### 依赖
```bash
pip install -r requirements.txt
```
## 使用方式
本工具通过 Claude Code 的 Skill 方式使用,不提供命令行直接调用。
### 基本用法
启动 Claude Code 后,使用 `/wiki-sync-translate` 命令:
```
/wiki-sync-translate <描述你想要同步的内容>
```
### 使用示例
| 场景 | 命令示例 |
|------|---------|
| 同步所有变更 | `/wiki-sync-translate 同步从2026-01-02以来的所有变更` |
| 同步单个页面 | `/wiki-sync-translate 同步 Maps 页面` |
| 同步特定时间范围的页面 | `/wiki-sync-translate 同步从2026-01-01开始的 General Changes 页面` |
| 同步最近变更 | `/wiki-sync-translate 同步最近一周的所有变更` |
## Skill 位置
`.claude/skills/wiki-sync-translate/`
## 输出目录
`wiki_sync_output/<时间戳>/`
## 注意事项
- 中文 Wiki 行号必须与英文完全对应
- 变更配对使用内容相似度算法(阈值 0.5