About opencode-mirror
A small development skill for maintaining an OpenCode Git mirror in vendor/opencode. It documents the clone and fast-forward-only update commands, along with mirror-specific repository precautions.
Key features
- 01Clone the OpenCode mirror
- 02Update with fast-forward-only pulls
- 03Keep the mirror gitignored
Use cases
- 01Set up vendor/opencode
- 02Refresh the mirror without merge commits
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ different-ai/ openwork --skill opencode-mirrorAfter installing, type/opencode-mirrorin Claude Code to confirm it loaded.
Details
From the project READMEQuick Usage (Already Configured)
Update mirror
git -C vendor/opencode pull --ff-only
Common Gotchas
- Keep the mirror gitignored; never commit
vendor/opencode. - Use
--ff-onlyto avoid merge commits in the mirror.
First-Time Setup (If Not Configured)
Clone mirror
git clone https://github.com/anomalyco/opencode vendor/opencode
Comments
Markdown supported