m

Community

Reset your worktree to origin/main safely.

Authorpedropaulovc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the problem of a messy or drifted Git working directory by resetting your current worktree back to the exact state of origin/main, with optional cleanup and dependency reinstallation.

Core Features & Use Cases

  • Safeguarded reset flow: checks for uncommitted changes and untracked files, and asks before deleting uncertain untracked items.
  • Deterministic branch alignment: fetches/prunes remotes, removes stale local branches, resets the current branch to origin/main, and supports linked worktree branches.
  • Dependency refresh: runs npm install and go mod download when applicable, and can update all worktrees for consistent environments.

Quick Start

In your repo, run the m command to reset the current worktree to origin/main and reinstall dependencies.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: m
Download link: https://github.com/pedropaulovc/agent-plugins/archive/main.zip#m

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.