auto-repo-setup
An agent skill by daymade, from daymade/claude-code-skills. Tags: debugging, devops, local-workflow, setup, version-control.
What it does
Diagnose, repair, and standardize repository setup and safe Git workflows for Claude Code or Codex. Use when a repository will not run, a collaborator is onboarding, dependencies or credentials are missing, the user wants startup sync, SessionStart output is duplicated, project instructions or hooks need auditing, or commit/push/conflict/history-cleanup needs a guarded workflow. Route ordinary startup behavior through project instructions or a natural language request; use lifecycle hooks only when behavior must occur before the first prompt and the target runtime has been verified.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add daymade/claude-code-skills --skill auto-repo-setup
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/daymade/claude-code-skills
cp -r claude-code-skills/auto-repo-setup ~/.claude/skills/auto-repo-setup
Safety box score
Grade C, moderate risk: 33 of 100 risk points, rated 2026-10-19. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill is a repository-operations helper that shells out to git for inspection and can persist Claude Code startup config in `.claude/settings.json` and `.gitignore`. Its main blast radius is repo-local configuration and session behavior, with network use only for the safe-sync / push-verification workflows it describes.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 2 (moderate) | It runs host commands during inspection and setup, e.g. `subprocess.run(...)` in `scripts/check_env.py` and the install/remove flow in `scripts/init_session_start_hook.py`. |
| Network access | 2 (moderate) | The Git sync and push-safety workflows explicitly use remote operations like `git pull --ff-only` and `gh repo view`, so the skill can contact remotes and hosting APIs when used as intended. |
| Filesystem reach | 2 (moderate) | It can write and replace repo files such as `.claude/settings.json` and `.gitignore`, and the startup hook manager persists those changes atomically. |
| Secrets & credentials | 1 (low) | The scripts deliberately avoid reading secret values, but they do inspect `.env` presence and discuss credential revocation / replacement in history-cleanup guidance. |
| Privilege & persistence | 0 (none) | There is no sudo, global install, service registration, shell-startup editing, or other elevated-system action in the shipped files. |
| Instruction hijack surface | 0 (none) | The files add a guarded startup nudge (`matcher: "startup"`) but do not tell the agent to skip approvals, ignore rules, or follow remote instructions. |
| Irreversible actions | 2 (moderate) | The skill can change future session behavior via managed hooks and can perform repo sync actions like fast-forward pulls; these are real actions but remain bounded and approval-gated for commits/pushes. |
| Transparency | 0 (none) | All shipped content is plain text source; there are no binaries, embedded blobs, or decoded-at-runtime payloads. |
Before installing
- Read `scripts/init_session_start_hook.py` and confirm you want a persistent `SessionStart` hook that edits `.claude/settings.json`.
- Check whether your repo should ever allow the sync path that runs `git pull --ff-only` and queries hosting metadata with `gh repo view`.
- Run `python scripts/check_env.py --repo <repo>` in a scratch clone first and verify it only reports toolchains, not secret values.
- If you do not want repo-local agent config changes, avoid the startup-hook workflow and use the normal instructions in `AGENTS.md`/`CLAUDE.md` instead.
Rated 2026-10-19 by an automated review of 10 files from the skill's repository.
Source
- Repository
- daymade/claude-code-skills (all skills from this repository)
- Path
- auto-repo-setup/SKILL.md
- Branch
- main
- Updated
- 2026-09-20
Related skills
- setup-devops-agent — Setup and diagnostics for the AWS DevOps Agent MCP connection.
- claude-code-hooks — How to write, test, register, and debug Claude Code hooks — PreToolUse / PostToolUse / SessionStart / Stop Bash guards that enforce a rule the model would.
- agents-deploy — Use when deploying your agent to AWS, or when a deploy has failed.
- agents-get-started — Use when a developer wants to create a new agent project or get started with AgentCore.
- devcontainer-setup — Creates devcontainers with Claude Code, language-specific tooling (Python/Node/Rust/Go), and persistent volumes.
- devcontainers — Set up local development environments with production parity for DigitalOcean App Platform.