What problem does it solve?
Repositories often fail to run on new machines, onboarding instructions are missing or outdated, SessionStart hooks fire unexpectedly, and Git operations like sync, push, or history cleanup carry real risk. This Skill provides an evidence-driven workflow to diagnose environment failures, standardize onboarding, audit hooks, and apply guarded Git safety gates without changing how the user normally works.
Core Features & Use Cases
- Environment Repair: Runs a read-only, stack-aware capability inventory (scripts/check_env.py) that detects toolchains from manifests and lockfiles, then repairs root causes and verifies with the project's real smoke test.
- Git Safety Gates: Enforces guarded workflows for sync, commit, push, conflict resolution, and secret/PII history cleanup, including hosting-service visibility checks before any push.
- Startup Hook Management: Diagnoses duplicated SessionStart output across all hook scopes and installs a single guarded, idempotent Claude Code startup nudge via scripts/init_session_start_hook.py with dry-run preview and managed removal.
- Use Case: A teammate clones a TypeScript repository that will not start. The Skill reads project instructions and lockfiles, detects npm from package-lock.json, repairs the missing prerequisite, runs the documented start command, and reports verified results without inventing Python or .env requirements.
Quick Start
Ask the agent to diagnose why this repository will not run and repair the environment using the auto-repo-setup workflow.