multi-platform-sync
Synchronize AI agent configs across multiple harnesses (OpenCode, Claude Code, Codex, Cursor, Gemini).
- License 许可
- MIT
- 最近更新
- 2026-08-26
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- multi-platform-sync
- description
- Synchronize AI agent configs across multiple harnesses (OpenCode, Claude Code, Codex, Cursor, Gemini).
02 资源文件 2
- 参考文档.skill-meta.json345 B
- 参考文档README.md431 B
03 SKILL.md 正文
Multi-Platform Sync
Synchronize AI agent configuration across multiple harnesses. Supports OpenCode, Claude Code, Codex, Cursor, and Gemini.
Supported Platforms
| Platform | Config Directory | Primary File |
|---|---|---|
| Claude Code | .claude/ |
project.md |
| Codex | .codex/ |
instructions.md |
| Cursor | .cursor/ |
rules.mdcursorrules |
| Gemini | .gemini/ |
gemini.yaml |
| OpenCode | .config/opencode/ |
opencode.json |
| Kiro | .kiro/ |
config.json |
Config Layers
Shared (canonical source)
↓
Platform-Specific Overrides
↓
Local Customizations
Shared Config
Common rules, skills, commands used across all platforms.
Platform Overrides
Platform-specific adaptations (e.g., different tool names).
Local Customizations
Project-specific customizations.
Workflow
Phase 1 — Detect Platforms
ls -la .claude .codex .cursor .gemini .kiro .config/opencode 2>/dev/null
# Find which platforms are used
Phase 2 — Compare
# Find differences
/multi-platform-sync --compare
# Show conflict matrix
/platform-matrix
Phase 3 — Sync
# Sync shared configs to all platforms
/multi-platform-sync --sync=shared
# Sync rules
/multi-platform-sync --sync=rules
# Sync skills
/multi-platform-sync --sync=skills
Phase 4 — Validate
# Validate all configs
/multi-platform-sync --validate
# Check for conflicts
/multi-platform-sync --check-conflicts
Platform Mapping
Shared → Platform
| Shared | Claude Code | Codex | Cursor | Gemini | OpenCode | |--------|-------------|-------|--------|--------|---------|----------| | Rules | project.md | instructions.md | rules.mdcursorrules | gemini.yaml | rules/ | | Skills | skills/ | skills/ | skills/ | skills/ | skills/ | | Commands | commands/ | commands/ | commands/ | commands/ | commands/ |
Tool Name Mapping
| OpenCode | Claude Code | Codex | Cursor | Gemini |
|---|---|---|---|---|
| delegate | Agent | agent | Agent | - |
| read | read | Read | Read | read |
| write | write | Edit | Edit | write |
| bash | bash | Bash | Terminal | bash |
Usage
# Detect all platforms
/multi-platform-sync --detect
# Compare configs
/multi-platform-sync --compare
# Sync to specific platform
/multi-platform-sync --to=claude-code
/multi-platform-sync --to=codex
/multi-platform-sync --to=cursor
/multi-platform-sync --to=gemini
# Sync all platforms
/multi-platform-sync --sync=all
# Validate
/multi-platform-sync --validate
Output Format
## Platform Sync Report
### Detected Platforms
- Claude Code: ✅ (project.md present)
- Codex: ⚠️ (missing skills/)
- Cursor: ✅
- Gemini: ❌ (not installed)
- OpenCode: ✅ (opencode.json)
### Sync Status
| Platform | Rules | Skills | Commands |
|----------|-------|--------|----------|
| Claude Code | In sync | In sync | In sync |
| Codex | Outdated | Missing | In sync |
| Cursor | In sync | In sync | Outdated |
### Actions Needed
1. Sync Codex → add skills/
2. Sync Cursor → update commands/
Conflict Resolution
When same config exists in multiple places:
| Priority | Source | Use |
|---|---|---|
| 1 | Local | Most specific |
| 2 | Platform Override | Platform-specific |
| 3 | Shared | Default |
Best Practices
- Single source of truth: Define shared configs once
- Platform overrides minimal: Only override what's different
- Validate after sync: Always validate after syncing
- Version control: Commit synced configs
- Monitor changes: Track platform-specific drift
04 同仓库更多 Skills
zustand-5
Zustand 5 state management patterns. Trigger: When managing React state with Zustand.
zod-4
Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.
x-bookmark-quote-posts
Workflow para revisar bookmarks de X/Twitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.