AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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.py inventory, 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-only on 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

  1. "The server won't start on this machine" → stack detected from manifests → missing toolchain reported → minimal repair → verified via the documented start/smoke command.
  2. "Sync to remote before we work" → branch/clean checks → fast-forward only; on divergence it shows the graph and asks instead of rebasing.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy just this skill: cp -r /tmp/ccs/auto-repo-setup ~/.claude/skills/
  5. Confirm the bundled references/ and scripts/ came along: ls ~/.claude/skills/auto-repo-setup
  6. Install Python 3.10+ (ideally uv) if you want to run scripts/check_env.py.
  7. Restart Claude Code and try: "Check and repair the setup for this repository."