repo-init

Featured

SLASH COMMAND — type /repo-init to scaffold a new repository (or retrofit an existing one) with a standard project structure. Starts with a short intake grill (--no-grill skips). Research mode by default; --package for a distributable src-layout library. Never overwrites existing files; --dry-run previews.

AI & Automation 61 stars 5 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

Initialize a repository with a standard, opinionated project structure. Run once per project. Re-running (or running on an existing repo) **adds missing pieces only** — it never overwrites or repairs existing files. **The intake is a hard gate.** Create nothing — no directories, no files, not even `git init` — until the step-2 intake is either completed with the user or skipped by an explicit flag (`--no-grill` / `--dry-run`). Scaffolding first and asking later defeats the skill: the answers determine what gets scaffolded. ## File templates (loaded at runtime) ```! D="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/repo-init}"; D="${D:-$HOME/.claude/skills/repo-init}"; cat "$D/TEMPLATES.md" 2>/dev/null || echo "(TEMPLATES.md not found — abort and report a broken install)" ``` ## Live state ```! pwd && git rev-parse --show-toplevel 2>/dev/null || echo "(not a git repo yet)" ``` ## Modes | Invocation | Mode | Shape | |---|---|---| | `/repo-init` | **research** (default) | Analysis project: notebooks, script-first compute, gitignored data/figures | | `/repo-init --package` | **package** | Distributable library: src-layout, pyproject, tests, CI, CITATION.cff | | `[path]` | either | Target directory (default: cwd). Must exist or be creatable. | | `--no-license` | either | Skip the LICENSE file and the pyproject/CITATION `license` fields. | | `--no-grill` | either | Skip the intake grill; scaffold with template stubs as-is (LICENSE defaults to MIT with the git author as hol...

Details

Author
dgilford
Repository
dgilford/ai-science-toolkit
Created
3 months ago
Last Updated
yesterday
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category