# Auto Repo Setup

Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or...

- Repository: https://github.com/daymade/claude-code-skills (1509 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add daymade/claude-code-skills --skill auto-repo-setup -g -a claude-code -y`
Codex: `npx skills add daymade/claude-code-skills --skill auto-repo-setup -g -a codex -y`
Cursor: `npx skills add daymade/claude-code-skills --skill auto-repo-setup -g -a cursor -y`
Gemini CLI: `npx skills add daymade/claude-code-skills --skill auto-repo-setup -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add daymade/claude-code-skills`

## Description

Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex, environment repair, startup sync, hook auditing, collaborator handoff. Use when a repo won't run, a teammate onboards, hook output duplicates, or commit/push/conflict needs guarding. Not for lost-commit recovery (use git-safety-net), GitHub ops (use github-ops), or history scrubbing (use github-sensitive-data-cleanup).

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Auto Repo Setup

Make the repository usable without changing the user's normal way of working.
Treat setup as an evidence-driven repository task, not as a special interface for
people with a particular job title.

## Entry router

Classify the request before changing anything. Do not combine modes merely because
they all contain the word "setup".

| User outcome | Mode | First action |
|---|---|---|
| "It won't run", missing dependency, new machine | Environment repair | Read project instructions and detect the actual stack |
| "Sync before we work", "pull the latest", or a status question during repository maintenance | Session routine | Determine sync authority from the ongoing task and project instructions, then use Workflow B |
| Repeated or unexpected hook output | Hook diagnosis | Count registrations and firing sessions before editing configuration |
| A teammate needs a repeatable handoff | Repository handoff | Audit existing onboarding and fill only the missing operational contract |
| Commit, push, conflict, leaked secret/history | Git safety | Read [references/git_safety.md](references/git_safety.md) before mutation |
| Behavior must happen before the first prompt | Startup automation | Read [references/startup_automation.md](references/startup_automation.md) and pass its hook gate |

## Operating principles

The rest: https://github.com/daymade/claude-code-skills/blob/HEAD/auto-repo-setup/SKILL.md
