yamcodes/arkenv/sync-main

Claude Code and agent skill by yamcodes/arkenv

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Update the v0 docs archive on main (arkenv-v0.vercel.app) immediately without waiting for a new npm release. Use this skill whenever the user mentions 'hotfix docs', 'push doc changes live now', 'promote docs to main', 'bypass package release for docs', 'sync-main', 'sync main', or wants to rescue already-merged doc commits from dev. It handles cherry-picking to main and merging main back into dev to prevent git drift. Note: Production / arkenv.js.org tracks v1 — sync-main does not flip apex.

Install

npx vskill@latest install yamcodes/arkenv/sync-main

SKILL.md

Sync Main

This skill enables you to safely sync documentation and tooling changes from the dev branch to main without waiting for the next package release, while ensuring that the dev and main branches remain in a clean, compatible topological state (preventing future merge conflicts).

After the RC docs cutover (Option A), a push to main refreshes the v0 archive at https://arkenv-v0.vercel.app. It does not deploy Production / arkenv.js.org (that tracks v1). Use this skill for urgent legacy v0 doc fixes, not for the live v1 site.


Analysis Step (Do This First)

Before performing any Git actions, you must analyze the changes between dev and main to classify the sync:

Run the following command to check the list of changed files:

bash
git fetch origin
git diff --name-only origin/main...origin/dev

Based on the file list, classify the sync into one of the following three categories:

  1. Doc-Only (Easy Case): All changed files are strictly under docs/, apps/www/, or are root-level Markdown files (matching the regex ^(docs/|apps/www/|[^/]+\.md)$).
  2. Infra-Only (Easy Case + Force): There are no changes to package code, tests, or examples, but there are changes to workflows, scripts, or skills (e.g. .github/workflows/, scripts/, skills/).
  3. Code Changes (Hard Case): There are modifications to files in the packages/, tests/, examples/, or apps/ directories (unreleased library features, fixes, or test/example updates).

Easy Case Workflows

Category 1: Doc-Only Sync

Since the changes are strictly doc-only, they are safe to sync directly:

  • Instruct the user that they can run the Sync main workflow normally.
  • Or trigger it automatically via GitHub CLI:

``bash gh workflow run sync-main.yml --ref dev ``

Category 2: Infra-Only Sync

Since the changes contain tooling or workflow updates but do not touch the library package code, they can be synced, but the workflow's safety check will block them unless overridden:

  • Instruct the user that they can run the Sync main workflow but must check the `force_override` checkbox in the GitHub UI.
  • Or trigger it automatically via GitHub CLI with the bypass flag:

``bash gh workflow run sync-main.yml --ref dev -f force_override=true ``


Hard Case Workflow

If there are changes in the packages/ directory, do not execute any git commands automatically. You must stop and interview the user in the chat to align on how to proceed.

The Interview

Present the user with a clear summary of the unreleased package files that were detected, outline their choices, and make a recommendation based on the situation:

  1. Option 1: Wait for Release
  • Keep the doc changes on dev and let them deploy naturally on the next package release.
  • Recommendation: Use this if the doc fix is not urgent.
  1. Option 2: Run a Patch Release
  • Release a patch version of the packages (pnpm changeset -> trigger release workflow).
  • Recommendation: Use this if the doc fix is urgent, and the unreleased library code on dev is stable and ready to go live.
  1. Option 3: Cherry-Pick/Rescue
  • Cherry-pick only the doc commits onto main (if the doc fixes are isolated in their own clean commits).
  • Recommendation: Use this if the doc fix is urgent, the library code on dev cannot be released, AND the doc commits do not contain unreleased code.
  1. Option 4: Manual Recreation (Tangled Commits)
  • If the urgent doc fix is bundled in the exact same commit as unreleased package code, do not cherry-pick. Instead, manually recreate the doc fix directly against main using your code editing tools.
  • Recommendation: Use this if the doc fix is urgent but the commits are hopelessly tangled with unreleased code.

Executing Option 3 (Cherry-Pick / Rescue)

If the user explicitly approves Option 3, follow these steps using the helper script:

  1. Identify Commit Hashes:

Locate the specific commit hashes on dev containing the doc changes.

  1. Run Rescue Script:

Execute the helper script to cherry-pick these commits onto a branch from origin/main: ``bash ./scripts/sync-main.sh rescue <commit-hash-1> [commit-hash-2 ...] ``

  1. Submit PR:

The script will attempt to create a PR to main via gh CLI. If it fails, help the user open the PR manually.

  1. Deploy:

Once the PR is merged to main, the v0 archive (https://arkenv-v0.vercel.app) refreshes. Production / arkenv.js.org is unchanged (tracks v1).

  1. Reconcile:

Merge main back into dev to prevent drift: ``bash ./scripts/sync-main.sh reconcile ` If conflicts occur during reconciliation, prompt the user to help resolve them, commit, and push dev`.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yamcodes/arkenv/sync-main/badge)](https://verified-skill.com/skills/yamcodes/arkenv/sync-main)

Something wrong with this skill or its page? Tell us.