用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill conversation-sync命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | conversation-sync |
| description | Sync conversation history from .codex/sessions to .claude.json for context preservation |
| version | 1.0.1 |
| tags | ["conversations","sync","backup","context"] |
| status | production |
| triggers | ["copy conversations","sync conversations","import sessions","conversation backup"] |
| author | Claude Code |
This skill copies Claude Code conversation session files from .codex/sessions to the repository's .claude.json file for context preservation and backup.
When working across different environments (e.g., after WSL/Docker crashes), conversation history stored in .codex/sessions can be referenced in .claude.json to maintain context continuity.
# Sync conversations from last N days (default: 7)
./.claude/skills/conversation-sync/sync-conversations.sh --days 7
# Sync conversations from a specific project
./.claude/skills/conversation-sync/sync-conversations.sh --project claude-flow-novice
# Sync conversations from a specific date range
./.claude/skills/conversation-sync/sync-conversations.sh --from 2025-11-20 --to 2025-11-26
# Dry run (show what would be copied)
./.claude/skills/conversation-sync/sync-conversations.sh --dry-run
.codex/sessions for conversation JSONL files.claude.json with references to conversation files.claude.jsonThe skill updates .claude.json with this structure:
{
"conversations": [
{
"session_id": "rollout-2025-11-24T10-24-43-019ab71c-699f-7052-8ce1-892b6208ba94",
"date": "2025/11/24",
"file": "/mnt/c/Users/masha/.codex/sessions/2025/11/24/rollout-2025-11-24T10-24-43-019ab71c-699f-7052-8ce1-892b6208ba94.jsonl"
}
]
}
.claude.json/mnt/c/Users/...) and Linux paths with automatic normalization\) and forward slashes (/)/mnt/c/Users/{username}/.codex/sessions/YYYY/MM/DD/*.jsonl~/.codex/sessions/YYYY/MM/DD/*.jsonl/mnt/wsl/docker-desktop-bind-mounts/ (if applicable)jq - JSON processingbash 4.0+.codex/sessions directory