opencode-mirror

$npx mdskill add different-ai/openwork/opencode-mirror

Maintains a local mirror of the OpenCode repository for reference

  • Synchronizes the local OpenCode mirror with upstream changes
  • Uses Git commands to clone and pull from the official OpenCode GitHub repository
  • Applies fast-forward-only merges to preserve a clean commit history
  • Stores the mirrored repository in the `vendor/opencode` directory
SKILL.md
.github/skills/opencode-mirrorView on GitHub ↗
---
name: opencode-mirror
description: Maintain the local OpenCode mirror for self-reference
---

## Quick Usage (Already Configured)

### Update mirror
```bash
git -C vendor/opencode pull --ff-only
```

## Common Gotchas

- Keep the mirror gitignored; never commit `vendor/opencode`.
- Use `--ff-only` to avoid merge commits in the mirror.

## First-Time Setup (If Not Configured)

### Clone mirror
```bash
git clone https://github.com/anomalyco/opencode vendor/opencode
```
More from different-ai/openwork