Agent skill

Auto Repo Setup

by daymade in daymade/claude-code-skills

Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair, startup sync, hook auditing, collaborator handoff.

MITAuto-check: notesDevelopment

Install Auto Repo Setup

skills CLI
$ npx skills add daymade/claude-code-skills --skill auto-repo-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install daymade/claude-code-skills auto-repo-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/daymade/claude-code-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/auto-repo-setup .claude/skills/auto-repo-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
auto-repo-setup
GitHub stars
1.4k
Token cost
~2.8k tokens
SKILL.md length
1,362 words
Files
10 (incl. scripts, references)
Skills in repo
103
Repo updated
First seen
Licence
MIT

At a glance

Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair, startup sync, hook auditing, collaborator handoff.

  • Works in 6 steps: Do not infer competence from role. Match… → Use the least mechanism that satisfies… → Inspect authority before producing. Read… → …
  • A repo wont run
  • SKILL.md covers Entry router, Operating principles, Workflow A — Environment repair and Workflow B — Routine Git sync, plus 5 more sections
  • Runs Python and Shell scripts from its folder; calls uv

What it does

Auto Repo Setup is an agent skill from daymade/claude-code-skills. 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).

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `evals/evals.json`, `references/git_safety.md` and `references/onboarding_template.md`).

It sits in Development, covering Git workflow. It works with Git and GitHub. The repository describes itself as: Professional Claude Code skills marketplace featuring production-ready skills for enhanced development workflows. The licence is MIT.

When your agent uses it

  • A repo wont run
  • A teammate onboards
  • Hook output duplicates
  • Commit/push/conflict needs guarding

Example prompts

  • “Use the auto-repo-setup skill to diagnose and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair…”
  • “/auto-repo-setup”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Do not infer competence from role. Match the user's demonstrated altitude.
  2. Use the least mechanism that satisfies the outcome. Prefer, in order
  3. Inspect authority before producing. Read the current user request, then
  4. Preserve user work. Never auto-stash, merge, rebase, force, discard, or
  5. Define a falsifiable success state. "Dependencies installed" is not enough;
  6. Keep diagnosis read-only until the cause is known. Installation, config

What it can do on your machine

Read from SKILL.md and the folder at commit 872127b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Auto Repo Setup loads about 2.8k tokens when it runs, and up to ~7.7k if it reads all its reference files. Until then it costs about 107 tokens; SKILL.md has 1,362 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~107
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:42
    ke ONBOARDING.md, Python, uv, ffmpeg, or .env mandatory
  • NoteMentions a .env fileSKILL.md:107
    Do not print .env or credential contents; verify presence and behavior without

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from daymade/claude-code-skills at commit 872127b, republished under its MIT licence (© daymade). 1,362 words, ~2,776 tokens.

Download SKILL.mdSave it as .claude/skills/auto-repo-setup/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
auto-repo-setup
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).
argument-hint
[repository path]

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 outcomeModeFirst action
"It won't run", missing dependency, new machineEnvironment repairRead project instructions and detect the actual stack
"Sync before we work", "pull the latest"Session routineUse project instructions or execute the user's natural-language request
Repeated or unexpected hook outputHook diagnosisCount registrations and firing sessions before editing configuration
A teammate needs a repeatable handoffRepository handoffAudit existing onboarding and fill only the missing operational contract
Commit, push, conflict, leaked secret/historyGit safetyRead references/git_safety.md before mutation
Behavior must happen before the first promptStartup automationRead references/startup_automation.md and pass its hook gate

Operating principles

  1. Do not infer competence from role. Match the user's demonstrated altitude. A collaborator can tell an agent "sync the remote first"; do not invent a launcher, shortcut, or wizard unless the user asked for one.
  2. Use the least mechanism that satisfies the outcome. Prefer, in order: direct Agent instruction → project instruction → explicit command → lifecycle hook. A hook is not a more professional version of a sentence.
  3. Inspect authority before producing. Read the current user request, then project instructions, onboarding/runbooks, manifests, lockfiles, and actual command output. Do not make ONBOARDING.md, Python, uv, ffmpeg, or .env mandatory for repositories that do not declare them.
  4. Preserve user work. Never auto-stash, merge, rebase, force, discard, or overwrite local changes to make setup look successful. Already-authorized delivery of this task's isolated changes may use the repository's declared scoped workflow under Authorized shared-checkout delivery; this does not authorize integrating unrelated local commits or shared WIP.
  5. Define a falsifiable success state. "Dependencies installed" is not enough; run the project's real smoke test or startup command and verify the observable result.
  6. Keep diagnosis read-only until the cause is known. Installation, config edits, hook registration, commits, and external writes require the authority implied by the user's request; destructive or public actions require explicit approval.

Workflow A — Environment repair

A1. Read the project map

Read only files that exist, in this order:

  1. AGENTS.md and AGENTS.override.md
  2. CLAUDE.md and scoped project rules
  3. ONBOARDING.md or the repository's named setup/runbook
  4. README.md
  5. Manifests, lockfiles, task runners, CI, and container configuration
  6. Existing Claude/Codex settings only when the request concerns agent behavior

If no onboarding guide exists, infer the setup path from authoritative manifests and exercised commands. Do not stop to ask whether to create documentation unless a durable handoff is part of the request.

A2. Run a read-only capability inventory

Use the bundled scripts/check_env.py against the repository root when a Python 3.10+ runner is already available. It detects the declared ecosystem and checks only the relevant toolchain; it does not install dependencies or read secret values. If Python is itself the missing prerequisite, perform the same read-only manifest inventory directly instead of installing Python merely to run the audit.

bash
uv run python scripts/check_env.py --repo <repo-root>
uv run python scripts/check_env.py --repo <repo-root> --json

Treat the inventory as evidence, not as the project setup specification. A custom runbook or CI workflow can require tools the generic inventory cannot infer.

Expected result:

  • exit 0: all toolchains inferred from manifests are available;
  • exit 1: one or more inferred prerequisites are missing;
  • exit 2: the repository or its metadata could not be inspected safely.
A3. Repair the root cause

For each failed requirement:

  1. Capture the exact command, exit code, stdout, and stderr.
  2. Trace the failure to the declaring source: project guide, manifest, lockfile, configuration, or runtime log.
  3. Apply the smallest project-consistent repair.
  4. Re-run the failed check before moving on.

Do not restart, reinstall everything, or switch package managers as a first move. Do not print .env or credential contents; verify presence and behavior without echoing values.

A4. Verify the product path

Run the project's documented smoke test, build, or start command. If none exists, derive one from CI/task-runner configuration and label the derivation. Verify the observable result, not merely a zero exit code.

Report:

  • what was broken and the evidence;
  • what changed;
  • the exact verification and result;
  • any remaining user action or blocked authority.

Workflow B — Routine Git sync

For "sync before work", prefer a short project instruction shared by the agents that use the repository. The routine is:

  1. Inspect branch, upstream, and working-tree state.
  2. If the task includes already-authorized delivery and the repository declares usable scoped tools that preserve unrelated shared HEAD, index, and WIP, use Authorized shared-checkout delivery. Dirty or divergent state alone is not a reason to leave that delivery waiting.
  3. Otherwise, if the working tree is clean, run git pull --ff-only.
  4. If there are local changes, do not auto-stash or pull; explain the state.
  5. If local and remote histories diverged, do not auto-merge, rebase, or force; explain the state.
  6. If the network fails, say so and continue locally only when the user's task can safely proceed on the local version.

A collaborator may also simply say:

Sync the latest remote version before starting.

That is a normal Agent instruction, not a degraded fallback.

Do not register SessionStart merely to automate this routine. Static behavior belongs in AGENTS.md/CLAUDE.md; the Agent can inspect context and handle exceptional Git states instead of hiding them in a shell process.

Show full SKILL.md (459 more words)Show less

Workflow C — Repository handoff

Create or revise onboarding only when the user wants a durable handoff and the existing project map does not already provide one.

Use references/onboarding_template.md as a checklist, not as a literal Python/video template:

  • derive prerequisites from manifests and actual project commands;
  • include expected output after each command;
  • separate one-time setup from daily use;
  • include recovery for real observed failures;
  • keep project instructions as the operational SSOT and avoid duplicating values.

Validate every command on the target operating systems that matter to the user.

Workflow D — Startup automation and hook diagnosis

Read references/startup_automation.md before adding or changing any hook.

Diagnose repeated output first
  1. Enumerate project, local, user, managed, and plugin hook registrations.
  2. Count matching entries; do not infer "three registrations" from three outputs.
  3. Identify which root sessions, resumes, compactions, or subagents fired them.
  4. Verify the event matcher and current runtime payload.
  5. State the root cause before proposing a change.
Install only after the hook gate passes

The bundled initializer is Claude Code-specific and installs only a lightweight startup context nudge. It preserves unrelated settings, adds matcher startup, validates the guide path, writes atomically, and is idempotent.

Preview first:

bash
uv run python scripts/init_session_start_hook.py \
  --repo <repo-root> \
  --guide ONBOARDING.md \
  --dry-run

After the user confirms that pre-prompt injection is genuinely required, run the same command without --dry-run. Remove only the managed entry with --remove.

Never copy this configuration into Codex by analogy. Codex project behavior should normally live in AGENTS.md; if a Codex hook is truly required, verify the installed version's root/subagent behavior and payload first.

Git safety

Read references/git_safety.md before commit, push, conflict resolution, or history rewrite. The load-bearing rules are:

  • stage only intended paths;
  • never bypass hooks unless the user explicitly typed the bypass in this session;
  • verify repository visibility from the hosting service before push;
  • get explicit approval before public push, force push, or history rewrite;
  • resolve conflicts from project semantics, never by blindly choosing "ours" or "theirs";
  • revoke leaked credentials before treating history cleanup as complete.

Use references/pii_guard.md for public-distribution content review. A green scanner does not replace semantic review.

For a read-only history scan, the existing scripts/sanitize_history.sh remains available. It never rewrites history; treat its findings as candidates and do not execute rewrite commands without explicit approval.

Counter-review boundary

Use counter-review when the approved work materially changes security policy, shared lifecycle hooks, CI/CD, dependencies, or destructive Git behavior. Do not spawn a review team for an ordinary setup check or a one-line project instruction. Filter every finding by probability, cost, real usage, and direct verification.

Resources

© daymade, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references) in auto-repo-setup of daymade/claude-code-skills.

  • SKILL.md
  • evals/evals.json
  • references/git_safety.md
  • references/onboarding_template.md
  • references/pii_guard.md
  • references/startup_automation.md
  • scripts/check_env.py
  • scripts/init_session_start_hook.py
  • scripts/sanitize_history.sh
  • tests/test_scripts.py

Open the folder on GitHubat commit 872127b

Compare with similar skills

Auto Repo Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Auto Repo Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Auto Repo Setup this skilldaymade/claude-code-skills1.4k—~2.8kAutomated safety check: NotesMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Release Bumpjamiepine/voicebox57k—~1.1kAutomated safety check: PassMIT
Creating Description For Gh PRredis/jedis12k—~838Automated safety check: PassMIT
Create Pull Request with Work Item IDmakeplane/plane61k—~824Automated safety check: PassAGPL-3.0

Similar skills

  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Release Bump

    jamiepine/voicebox

    Ends a release cycle by moving the Unreleased changelog notes under a dated version heading, bumping version files with bumpversion and tagging the commit.

    57k GitHub stars~1.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Official

    Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.

    12k GitHub stars~838 tokensUpdated today
    DevelopmentAuto-check passed
  • Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.

    61k GitHub stars~824 tokensUpdated today
    DevelopmentAuto-check passed
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed

More from daymade/claude-code-skills

All 103 skills in this repo
  • Video Comparer

    daymade/claude-code-skills

    This skill should be used when comparing two videos to analyze compression results or quality differences.

    1.4k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check: notes
  • CLI Demo Generator

    daymade/claude-code-skills

    Generates professional animated CLI demos as GIFs using VHS terminal recordings.

    1.4k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Doc To Markdown

    daymade/claude-code-skills

    Converts DOCX/PDF/PPTX and saved HTML/HTM to high-quality Markdown with automatic post-processing.

    1.4k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Interaction Design Board

    daymade/claude-code-skills

    Generates several distinct, clickable HTML interaction prototypes for one product surface into a Design Board and collects selection/remix feedback before implementation.

    1.4k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Bigdata Skill

    daymade/claude-code-skills

    Pulls Bigdata.com (RavenPack) financial and news data via the official bigdata-client SDK and /v1/ REST endpoints — structured financials, prices, analyst estimates, entity-sentiment series…

    1.4k GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Bilibili Source

    daymade/claude-code-skills

    Fetches real, citable Bilibili (B站) video data — stats, metadata, tags, and full danmaku text — via login-free API calls, never hand-typed or estimated.

    1.4k GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Auto Repo Setup

What does Auto Repo Setup do?

Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair, startup sync, hook auditing, collaborator handoff. Auto Repo Setup is an agent skill from daymade/claude-code-skills. Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair, startup sync, hook auditing, collaborator handoff.

When should I use Auto Repo Setup?

Auto Repo Setup fits situations like: A repo wont run; A teammate onboards; hook output duplicates; commit/push/conflict needs guarding.

How do I install Auto Repo Setup in Claude Code?

Run `npx skills add daymade/claude-code-skills --skill auto-repo-setup -a claude-code`. Or copy the skill folder (auto-repo-setup in daymade/claude-code-skills) into .claude/skills/auto-repo-setup in your project. Claude Code loads it when a task matches its description.

How do I install Auto Repo Setup in Codex?

Run `npx skills add daymade/claude-code-skills --skill auto-repo-setup -a codex`. Or copy the skill folder (auto-repo-setup in daymade/claude-code-skills) into .agents/skills/auto-repo-setup in your project. Codex loads it when a task matches its description.

Can I use Auto Repo Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add daymade/claude-code-skills --skill auto-repo-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/auto-repo-setup, .gemini/skills/auto-repo-setup, .github/skills/auto-repo-setup and .opencode/skills/auto-repo-setup in your project.

What does Auto Repo Setup need to run?

Going by SKILL.md and its folder, Auto Repo Setup needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3; A Bash shell.

Does Auto Repo Setup access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Auto Repo Setup safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Auto Repo Setup use?

Auto Repo Setup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Auto Repo Setup use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to Auto Repo Setup?

Skills that share tags, products or a category with Auto Repo Setup: Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars), Release Bump (jamiepine/voicebox, 57k stars) and Creating Description For Gh PR (redis/jedis, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Auto Repo Setup?

daymade (a GitHub user) maintains it in daymade/claude-code-skills, which has 1,447 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 9, 2026.

Source: daymade/claude-code-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.