repo-clean

Synchronize local Git repositories with remote branches via guided merge or rebase workflows.

2|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/chichex/skills --skill repo-clean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repo-clean
Source: https://github.com/chichex/skills/tree/main/codex/repo-clean
Command: npx skills add https://github.com/chichex/skills --skill repo-clean

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves the friction of managing dirty Git working trees, ensuring your local branch is perfectly aligned with the remote origin without losing work or risking accidental data loss.

Core Features & Use Cases

  • Safe Synchronization: Automatically fetches and merges or rebases your branch based on the repository's specific policies.
  • Intelligent Cleanup: Provides a guided workflow to either commit local changes or discard them, with explicit confirmation steps to prevent accidental deletion.
  • Use Case: Use this when you have finished a task and want to ensure your local branch is clean, synchronized with the latest remote changes, and ready for a new feature without manual command-line juggling.

Quick Start

Ask the assistant to run the repo-clean skill to synchronize your current branch with the remote origin and clean up any pending changes.

Frequently Asked Questions about repo-clean

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

FAQPage Schema
How do I safely synchronize my local Git repository with the remote origin?

To safely synchronize your local Git repository, the Skill fetches remote updates and performs a guided merge or rebase to align your branch with the remote HEAD without executing destructive force-pushes.

What is the best way to clean up a dirty Git working tree without losing uncommitted changes?

Cleaning a dirty Git working tree safely involves a guided workflow that validates repository status and uses explicit confirmation steps to either commit pending changes or discard them, preventing accidental data loss.

Can I sync my local branch with remote changes if I have pending uncommitted work?

Yes, you can sync your local branch with pending work, as the workflow enforces strict pre-flight checks and provides guided options to manage uncommitted changes before proceeding with the synchronization.

Does synchronizing a Git workspace with this workflow perform any destructive actions like force-pushing?

Synchronizing a Git workspace through this workflow does not perform destructive actions like force-pushes, ensuring your local state matches the remote HEAD while maintaining project integrity and preventing accidental overwrites.

When should I use a guided workflow to clean my Git workspace instead of manual commands?

You should use a guided workflow to clean your Git workspace when you have finished a task and want to ensure your local branch is perfectly aligned with the latest remote changes without manual command-line juggling.