Skip to content
Back to skills

Creating Repos

ASecurity

Use when the user asks to create, start, scaffold, bootstrap or standardise a new GitHub repository, or to bring an existing repo up to the standard starter files.

  • 24 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongobashnodedockergitapi

Works with

  • terminal
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add modem7/claude-config-sync --skill creating-repos --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Creating Repos?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Creating Repos
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modem7-creating-repos/badge)](https://www.skillsdirectory.com/skills/modem7-creating-repos)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: creating-repos
description: Use when the user asks to create, start, scaffold, bootstrap or standardise a new GitHub repository, or to bring an existing repo up to the standard starter files.
---

# Creating repos

New repos start from `modem7/DefaultRepo` (local: `~/project/DefaultRepo`). It is the single source of truth for starter files. Read it live; do not work from a remembered file list, because it changes (Renovate preset, auto-assign workflow and labels have all moved recently).

DefaultRepo is a plain repo, not a GitHub template, so copy files rather than using `--template`.

## Steps

1. **Repo state.** `git -C ~/project/DefaultRepo pull --ff-only` and check `git status`. Check the target name is free: `gh repo view modem7/NAME`.
2. **Confirm with the user before creating anything on GitHub:** name, one-line description, public or private, topics, and stack (none, Python, Node). State that the first commit goes straight to `master` because an empty repo has no base for a PR, that the user runs that one push themselves (step 7), and that every later change is a PR.
3. **Create and clone:** `gh repo create modem7/NAME --public|--private --clone` into `~/project/NAME`.
4. **Copy the baseline** from DefaultRepo, excluding `.git`: `rsync -a --exclude .git ~/project/DefaultRepo/ ~/project/NAME/`.
5. **Customise** (the "Things to update" table in DefaultRepo's README is the authority; these are the usual edits):
   - `.wakatime-project`: repo name.
   - `.github/settings.yml`: `name`, `description`, `homepage`, `topics`, `private`. Keep the top line `_extends: .github` (labels and defaults come from `modem7/.github`; do not add a labels block) and keep the full `repository:` block, because the Settings App only merges labels, not other keys. Keep `default_branch: master` and delete-branch-on-merge.
   - `README.md`: replace with real docs (what it is, install, usage). Remove the DefaultRepo-only sections (line endings, "things to update").
   - `LICENSE`: file name is `LICENSE` (not `LICENCE.txt`, which only the older 2021 Docker repos use), MIT, text `Copyright (c) <current year> modem7`. DefaultRepo's copy carries an old year, so always update it.
   - `renovate.json`: leave as `extends github>modem7/renovate-config`; add `:docker`, `:automergePatch` or `:automergeDigest` presets only where the stack needs them.
   - `.github/CODEOWNERS`, `autoassign.yml`, issue and PR templates: keep as is. `FUNDING.yml` is inherited from `modem7/.github`, so do not copy one.
6. **Add what the baseline lacks:**
   - `.desloppify/` in `.gitignore`, if the copied one lacks it. Every GitHub repo gets it; ssc (subseacraft) repos are never on GitHub, so there is no exception to check for.
   - Ask whether to add `CLAUDE.md` / `AGENTS.md`. Only claude-config and claude-config-sync are "AI safe" by default; others get one only if the user wants it.
   - Stack extras are repo dependent; ask rather than assume. Python gets `pyproject.toml` via `uv init`, `requirements-dev.txt`/lockfile, a `ci.yml` workflow; Node gets `package.json` and a `ci.yml`.
7. **First commit and hand-over:** stage by name and commit "Initial commit from DefaultRepo". Commit message and any later PR body go in the scratchpad and are passed with `-F` / `--body-file`. No AI attribution lines.

   Do not run the first push: the branch guard (`branch-guard.sh`) blocks a push that names `master`, including this one, and has no exception for an empty repo. Give the user this command, with the real name filled in, to type and run in their own terminal themselves (do not send it through a terminal tool or any other tool), then wait for them to say it is done:

   ```bash
   git -C ~/project/NAME push -u origin master
   ```

   Never get round the guard: no reworded push command, no bare `git push` or `git push origin HEAD`, no `gh repo create --push`, no temporary branch renamed to `master`.
8. **Verify** once the user has pushed (`git -C ~/project/NAME ls-remote --heads origin` lists `master`), and report each result:
   - `gh api repos/modem7/NAME --jq '{default_branch,private,delete_branch_on_merge}'`
   - Settings app applied: description and topics match `.github/settings.yml`, and labels match those in `modem7/.github`.
   - `git ls-files | git check-attr -a --stdin | grep "text eol=lf"` finds no unmatched files.
   - Renovate onboarding or the Dependency Dashboard appears (can lag; say so if not yet there).

## Never

- Enable branch protection rules. The PR workflow plus the local push-guard hook cover it.
- Push to the default branch yourself, including the initial commit.
- Create the GitHub repo before step 2 is confirmed.

## Quick reference

| Item | Standard |
|---|---|
| Default branch | `master` |
| Owner / assignee / CODEOWNER | `modem7` |
| Licence | MIT, `LICENSE`, `Copyright (c) <year> modem7` |
| Line endings | LF, `.gitattributes` + `.editorconfig` |
| Dependency updates | Renovate via `modem7/renovate-config` |
| Repo settings | `.github/settings.yml` with `_extends: .github` (GitHub Settings App) |
| CI | GitHub Actions in `.github/workflows/` |

## Keeping this in step

If DefaultRepo drifts from reality (a standard file gets added to most repos but not to DefaultRepo), fix DefaultRepo first via PR, then this skill.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.