workspace-pointer-sync

Synchronize workspace pointers across backend and frontend subrepositories.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/oteroweb/OWFINANCE2026 --skill workspace-pointer-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workspace-pointer-sync
Source: https://github.com/oteroweb/OWFINANCE2026/tree/main/.agents/skills/workspace-pointer-sync
Command: npx skills add https://github.com/oteroweb/OWFINANCE2026 --skill workspace-pointer-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps the central workspace consistent by preventing drift between backend/frontend pointers and the root workspace pointer, ensuring all repos reflect a single official state.

Core Features & Use Cases

  • Read the target branch from .gitmodules to avoid guesswork.
  • Normalize detached HEAD states before performing pulls or pushes.
  • Commit the root pointer update separately to preserve a readable workspace history.
  • Push subrepo changes and root updates in a coordinated workflow.
  • Applicable when Backend or Frontend changes must be synchronized to the central workspace.

Quick Start

Run ./sync-submodule-pointers.sh --report to diagnose drift, then run ./push-workspace.sh both 'chore: synchronize workspace' to push updates.

Frequently Asked Questions about workspace-pointer-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent git submodule pointer drift between backend and frontend repositories?

You can automate workspace pointer synchronization across backend and frontend subrepositories to prevent drift. This ensures backend or frontend changes are consistently reflected in the root pointer, keeping the central workspace repository aligned and auditable.

How does syncing workspace submodules using .gitmodules target branches work?

Syncing workspace submodules works by reading the target branch directly from the .gitmodules file to avoid guesswork. It normalizes detached HEAD states before pulling or pushing, ensuring subrepository updates align with the expected branch configuration.

How do I commit and push a root workspace pointer update after submodule changes?

To commit and push a root workspace pointer update, you must explicitly commit the root pointer separately after pushing subrepo changes. This coordinated workflow preserves a readable workspace history and ensures all repos reflect a single official state.

Why does my workspace sync fail on a dirty worktree?

Your workspace sync fails on a dirty worktree because the workflow avoids root updates when the worktree is dirty. This precaution prevents committing uncommitted changes accidentally and ensures a clean, auditable history for the central workspace repository.

Can I diagnose workspace submodule drift before pushing root updates?

Yes, you can diagnose workspace submodule drift before pushing root updates by running a report command. This analyzes the current state of your subrepositories against the root pointer, allowing you to verify alignment before executing any synchronization actions.