Repository navigation
feat: Add sync command for Claude Code personal config - #123
Merged
Merged
Conversation
Add `compound-plugin sync` command to sync ~/.claude/ personal config (skills and MCP servers) to OpenCode or Codex. Features: - Parses ~/.claude/skills/ for personal skills (supports symlinks) - Parses ~/.claude/settings.json for MCP servers - Syncs skills as symlinks (single source of truth) - Converts MCP to JSON (OpenCode) or TOML (Codex) - Dedicated sync functions bypass existing converter architecture Usage: compound-plugin sync --target opencode compound-plugin sync --target codex 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Security fixes: - Add path traversal validation with isValidSkillName() - Warn when MCP servers contain potential secrets (API keys, tokens) - Set restrictive file permissions (600) on config files - Safe forceSymlink refuses to delete real directories - Proper TOML escaping for quotes/backslashes/control chars Code quality fixes: - Extract shared symlink utils to src/utils/symlink.ts - Replace process.exit(1) with thrown error - Distinguish ENOENT from other errors in catch blocks - Remove unused `root` field from ClaudeHomeConfig - Make Codex sync idempotent (remove+rewrite managed section) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
terry-li-hm
force-pushed
the
feat/claude-home-sync
branch
from
January 26, 2026 02:56
8c6c3dd to
34f3f91
Compare
Collaborator
|
Ohh sick! Will try tomorrow! |
Contributor
Author
|
This one is ready as well—I've bumped the root version to 0.2.0. It remains separate as it contains the TypeScript logic for the new |
kprimdal
added a commit
to primux-dk/laravel-compound-engineering
that referenced
this pull request
Feb 9, 2026
- Add `sync` command to sync ~/.claude/ personal config to OpenCode/Codex (EveryInc#123) - Backup existing config files before overwriting (EveryInc#119) - Remove worktree creation confirmation prompt (EveryInc#144) - Fix .git file detection in worktrees (use -e instead of -d) (EveryInc#159) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Contributor
Author
|
Thanks for the merge, Kieran — made my day! Let me know if there's anything else I can contribute. |
2 of 3 tasks
tmchow
added a commit
that referenced
this pull request
Apr 26, 2026
…ription DU-3 was reading the PR body but not gathering the branch diff/commit list — the writing reference assumes both are already in context, so description updates would compose from stale or empty diff context. The description-only mode also promised to describe a pasted PR URL/number but never threaded that ref into Step 6's gh pr view calls, so "describe PR #123" silently described the current branch. Fixes both gaps without restructuring either flow. Address PR review feedback (#700) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
tmchow
added a commit
that referenced
this pull request
Aug 18, 2026
…d stop Cursor Bugbot: a refused scratch root only gates 2e media downloads, so listing it as leaving state unwritable could stop a run that can still record and release. The stop condition is a state write that cannot land; scratch failure joins download and analysis as a mark-and-continue. Cursor Security Reviewer (medium): a validated ref like #123 interpolated unquoted starts a shell comment and truncates the verification command. Strip the leading # and quote the substituted values in run.md's 2f commands. Claude-Session: https://claude.ai/code/session_01VKhf7iAsmem2ARmutqBzQS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
compound-plugin synccommand to sync~/.claude/personal configuration to OpenCode or Codex.Problem: The current
convertcommand only handles.claude-plugin/directories. Users with personal skills in~/.claude/skills/or MCP servers in~/.claude/settings.jsoncannot sync these to OpenCode/Codex without manual work.Solution: New dedicated sync command that:
~/.claude/skills/for personal skills (supports symlinks)~/.claude/settings.jsonfor MCP serversUsage
Files Changed
src/parsers/claude-home.tssrc/commands/sync.tssrc/sync/opencode.tssrc/sync/codex.tssrc/utils/symlink.tssrc/index.tsREADME.mdSecurity Considerations
isValidSkillName()rejects../,/,\, null bytesDesign Decisions
ClaudeHomeConfig) — doesn't polluteClaudePlugintype with home directory semanticsTesting
All 34 tests pass after rebase on upstream/main.