git-repo-organizer

Organize git repositories by language into GOPATH or ~/src directories.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/knowledgexhunta/devops-toolkit --skill git-repo-organizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-repo-organizer
Source: https://github.com/knowledgexhunta/devops-toolkit/tree/main/plugins/devops-toolkit/skills/git-repo-organizer
Command: npx skills add https://github.com/knowledgexhunta/devops-toolkit --skill git-repo-organizer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organize git repositories by language following GOPATH conventions for Go and ~/src/ for everything else.

Core Features & Use Cases

  • Detect Go vs non-Go projects and place them under the appropriate directory (eg, ~/go/src/github.com/org/repo or ~/src/github.com/org/repo).
  • Audit and identify misplaced repositories across the home directory, then guide safe moves and references updates.
  • Verify integrity after relocation by providing lightweight checks (e.g., presence of remotes and basic build checks).

Quick Start

Organize a new repository by language placement according to GOPATH conventions.

Frequently Asked Questions about git-repo-organizer

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

FAQPage Schema
How do I organize git repositories to align with GOPATH conventions?

To organize git repositories by language placement, the tool detects Go projects and moves them to GOPATH directories, while relocating other repositories to ~/src/ with updated references and remotes.

What is the best way to audit and relocate misplaced git repos in my home directory?

Auditing and relocating misplaced git repos involves scanning the home directory, identifying project languages, proposing deterministic paths, and guiding safe moves with reference updates.

How does repository relocation verification work after moving git projects?

Repository relocation verification works by performing lightweight checks after moving git projects, confirming the presence of remotes and running basic build checks to ensure integrity.

Can I automatically detect Go vs non-Go projects for directory placement?

Yes, you can detect Go vs non-Go projects for directory placement automatically. The tool identifies the project type and proposes paths like ~/go/src/ for Go and ~/src/ for others.

Does organizing git repos by language update remote references automatically?

Organizing git repos by language includes updating references and remotes after relocation. This ensures your local repository moves do not break existing connections to remote sources.