Auto Repo Setup
Evidence-driven diagnosis and repair of repository setup, plus guarded Git sync, commit, push and hook workflows.
Dev & CodingIntermediate★ 1,519⑂ 235AI score 9/10Last updated: Nov 8, 2026
What it does
- Environment repair: reads AGENTS.md, CLAUDE.md, onboarding docs, README, manifests and lockfiles in order, runs the bundled read-only
scripts/check_env.pyinventory, then applies the smallest project-consistent fix and verifies it with the project's real smoke test. - Safe Git sync: checks branch, upstream and working-tree cleanliness; only uses
git pull --ff-onlyon a clean, behind-only branch. Never auto-stashes, rebases, force-pushes or absorbs others' commits. - Hook diagnosis: enumerates project/local/user/managed/plugin hook registrations and identifies which sessions fired before touching configuration.
- Repository handoff: creates onboarding only when one is genuinely missing, with real commands and expected output.
Who it's for
- Developers who keep hitting "cloned it, it won't run" on new machines or with new teammates
- Teams letting an agent commit and push but worried about history damage
- Anyone chasing duplicated SessionStart hook output
Examples
- "The server won't start on this machine" → stack detected from manifests → missing toolchain reported → minimal repair → verified via the documented start/smoke command.
- "Sync to remote before we work" → branch/clean checks → fast-forward only; on divergence it shows the graph and asks instead of rebasing.
- "My hook message prints three times" → all registration sources counted → root/subagent/resume origin identified → only then a fix is proposed.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/daymade/claude-code-skills/HEAD/auto-repo-setup/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the auto-repo-setup folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/auto-repo-setup/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs && mkdir -p ~/.claude/skills && cp -r /tmp/ccs/auto-repo-setup ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs - Create the skills directory:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r /tmp/ccs/auto-repo-setup ~/.claude/skills/ - Confirm the bundled
references/andscripts/came along:ls ~/.claude/skills/auto-repo-setup - Install Python 3.10+ (ideally
uv) if you want to runscripts/check_env.py. - Restart Claude Code and try: "Check and repair the setup for this repository."
View source on GitHub ↗License: MIT