auto-repo-setup
Skill1.4k starsChanged 8 months agoMITView on GitHub
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).
- Reads credentials
Trending
Less talk lately.thin dataabout the whole repository
Who's talking about daymade/claude-code-skills
- Ven0m0/claude-config“Add a structured external integration plan to the root TODO backlog”GitHub · Mar 18, 2026 · 4 reactions
- Ven0m0/claude-config“TODO list”GitHub · Jan 31, 2026 · 1 reactions
- sudosubin/agents.nix“claude-code-plugins.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Sep 26, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub (14 times).
On GitHub · 14
- Mar 18, 2026Add a structured external integration plan to the root TODO backlog — Ven0m0/claude-config4 reactions · 4 comments
- Jan 31, 2026TODO list — Ven0m0/claude-config1 reaction · 18 comments
- Oct 4, 2026claude-code-plugins.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
9 more on GitHub
- Aug 28, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Aug 24, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Aug 23, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Jul 5, 2026[Skills Review Weekly] 2026-07-06 — nozomiishii/dotfiles0 reactions
- May 30, 2026Add daymade-skills plugin marketplace to project settings — fmassonmips/mips-platform0 reactions
- Apr 11, 2026Mac 磁盘撑爆了怎么办? — vv13/blog0 reactions
- Mar 19, 2026feat: prompt manager — gohypergiant/agent-skills0 reactions · 3 comments
- Feb 6, 2026🟢 Importar skills de pesquisa, otimização e verificação (claude-code-skills) — arbgjr/sdlc_agentico0 reactions
- Nov 23, 2025Explore github-ops skill — PaulRBerg/dot-claude0 reactions · 1 comment
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- daymade-skill/CLAUDE.mdCLAUDE.md
- bilibili-sourceSkill
- cli-demo-generatorSkill
- cloudflare-troubleshootingSkill
- competitors-analysisSkill
- data-visualization-disciplineSkill
- debugging-network-issuesSkill
- deep-researchSkill
- douban-skillSkill
- download-gemini-imagesSkill
- excalidraw-useSkill
- fact-checkerSkill
- feishu-doc-scraperSkill
- frontend-visual-qaSkill
- gemini-history-analyzerSkill
- ghostty-useSkill
- github-contributorSkill
- github-opsSkill
- github-review-prSkill
- github-sensitive-data-cleanupSkill
- git-safety-netSkill
- i18n-expertSkill
- ima-copilotSkill
- kimi-useSkill
- llm-eval-harnessSkill
- llm-icon-finderSkill
- llm-wiki-setupSkill
- marketplace-health-checkSkill
- meme-creatorSkill
- notify-wecomSkill
- openclaw-model-switchSkill
- openclawSkill
- peer-messageSkill
- product-analysisSkill
- promptfoo-evaluationSkill
- prompt-optimizerSkill
- qa-expertSkill
- repomix-safe-mixerSkill
- repomix-unmixerSkill
- report-with-htmlSkill
- scrapling-skillSkill
- setup-notifications-via-wecomSkill
- slides-creatorSkill
- teams-channel-post-writerSkill
- terraform-skillSkill
- tibo-reset-codexSkill
- tunnel-doctorSkill
- twitter-readerSkill
- ui-designerSkill
- video-comparerSkill
- windows-remote-desktop-connection-doctorSkill
- wps-doc-scraperSkill
- youtube-downloaderSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 25 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈25
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 15
Treat setup as an evidence-driven repository task, not as a special interface for people with a particular job title.
- Distinctive: line 37
Use the least mechanism that satisfies the outcome: Prefer, in order: direct Agent instruction → project instruction → explicit command → …
- Distinctive: line 40
Inspect authority before producing: Read the current user request, then project instructions, onboarding/runbooks, manifests, lockfiles, …
- Distinctive: line 44
Preserve user work: Never auto-stash, merge, rebase, force, discard, or overwrite local changes to make setup look successful.
- Distinctive: line 58
Read only files that exist, in this order:
- Distinctive: line 67
If no onboarding guide exists, infer the setup path from authoritative manifests and exercised commands.
- Very specific: line 73
Use the bundled scripts/check_env.py against the repository root when a Python 3.10+ runner is already available.
- Distinctive: line 84
Treat the inventory as evidence, not as the project setup specification.
- Distinctive: line 103
Do not restart, reinstall everything, or switch package managers as a first move.
- Distinctive: line 104
Do not print .env or credential contents.
- Distinctive: line 109
Run the project's documented smoke test, build, or start command.
- Very specific: line 126
If the working tree is clean, run git pull --ff-only.
- Distinctive: line 127
If there are local changes, do not auto-stash or pull.
- Distinctive: line 128
If local and remote histories diverged, do not auto-merge, rebase, or force.
- Distinctive: line 130
If the network fails, say so and continue locally only when the user's task can safely proceed on the local version.
- Distinctive: line 139
Do not register SessionStart merely to automate this routine.
- Distinctive: line 145
Create or revise onboarding only when the user wants a durable handoff and the existing project map does not already provide one.
- Distinctive: line 148
Use references/onboarding_template.md as a checklist, not as a literal Python/video template:
- Distinctive: line 155
keep project instructions as the operational SSOT and avoid duplicating values.
- Distinctive: line 161
Read references/startup_automation.md before adding or changing any hook.
- Distinctive: line 169
Verify the event matcher and current runtime payload.
- Very specific: line 187
After the user confirms that pre-prompt injection is genuinely required, run the same command without --dry-run.
- Distinctive: line 190
Never copy this configuration into Codex by analogy.
- Distinctive: line 196
Read references/git_safety.md before commit, push, conflict resolution, or history rewrite.
- Distinctive: line 200
never bypass hooks unless the user explicitly typed the bypass in this session.
- Distinctive: line 201
verify repository visibility from the hosting service before push.
- Distinctive: line 207
Use references/pii_guard.md for public-distribution content review.
- Distinctive: line 216
Use counter-review when the approved work materially changes security policy, shared lifecycle hooks, CI/CD, dependencies, or destructive …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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" | Session routine | Use project instructions or execute the user's natural-language request |
| 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 before mutation |
| Behavior must happen before the first prompt | Startup automation | Read references/startup_automation.md and pass its hook gate |
Operating principles
- 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.
- 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.
- 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.
- Preserve user work. Never auto-stash, merge, rebase, force, discard, or overwrite local changes to make setup look successful.
- 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.
- 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:
- AGENTS.md and AGENTS.override.md
- CLAUDE.md and scoped project rules
- ONBOARDING.md or the repository's named setup/runbook
- README.md
- Manifests, lockfiles, task runners, CI, and container configuration
- 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.
uv run python scripts/check_env.py --repo <repo-root>
uv run python scripts/check_env.py --repo <repo-root> --jsonTreat 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:
- Capture the exact command, exit code, stdout, and stderr.
- Trace the failure to the declaring source: project guide, manifest, lockfile, configuration, or runtime log.
- Apply the smallest project-consistent repair.
- 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:
- Inspect branch, upstream, and working-tree state.
- If the working tree is clean, run git pull --ff-only.
- If there are local changes, do not auto-stash or pull; explain the state.
- If local and remote histories diverged, do not auto-merge, rebase, or force; explain the state.
- 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.
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
- Enumerate project, local, user, managed, and plugin hook registrations.
- Count matching entries; do not infer "three registrations" from three outputs.
- Identify which root sessions, resumes, compactions, or subagents fired them.
- Verify the event matcher and current runtime payload.
- 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:
uv run python scripts/init_session_start_hook.py \
--repo <repo-root> \
--guide ONBOARDING.md \
--dry-runAfter 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
- scripts/check_env.py — stack-aware, read-only repository inventory
- scripts/init_session_start_hook.py — guarded Claude Code startup-nudge manager
- scripts/sanitize_history.sh — read-only history candidate scan
- references/startup_automation.md — project instruction vs command vs hook decision and verification
- references/git_safety.md — sync, commit, push, conflict, and history rewrite gates
- references/onboarding_template.md — durable handoff checklist
- references/pii_guard.md — public-content scan layers
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

