agentleFS
joserprietojoserprieto/ai-skills/skills/repo-kickstart/SKILL.md

repo-kickstart

Skill2 starsChanged 10 months agoMITView on GitHub

Use when creating a new repository, initializing a project from scratch, or setting up OSS infrastructure (CI/CD, linting, releases, docs). Also use when user says "new repo", "init project", "set up repository", "repo-kickstart", or "kickstart repo".

  • Installs packages
  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. About 0 are common, 10 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create all documentation and community files using the templates in assets/templates/.

    line 151
  2. Distinctive:

    MUST use these templates verbatim — do not hallucinate content.

    line 152
  3. Distinctive:

    Create each file by reading the corresponding template below and replacing placeholders:

    line 163
  4. Very specific:

    Create the docs/conventions/ directory with the project convention documents.

    line 193
  5. Very specific:

    cicd.md: Remove the GitHub Actions section if not using GitHub.

    line 212
  6. Very specific:

    testing.md: Add project-specific test commands and framework details

    line 214
  7. Very specific:

    Create each configuration file using the templates in assets/configs/.

    line 218
  8. Distinctive:

    Create each CI component by reading the corresponding reference:

    line 241
  9. Very specific:

    Add the job to the jobs: section (parallel with others)

    line 259
  10. Very specific:

    Add it to ci-summary.needs: [...]

    line 260
  11. Very specific:

    Add env var + output in Determine overall result step

    line 261
  12. Very specific:

    Add the env var to the if condition in Determine overall result

    line 262
  13. Very specific:

    Add a row in Print summary

    line 263
  14. Very specific:

    Add a Handle X failure step and a Handle X success step

    line 264
  15. Very specific:

    Add a job:your-job-name label to labels.json

    line 265
  16. Distinctive:

    Create the Makefile using the template in assets/templates/makefile.tpl.md.

    line 287
  17. Distinctive:

    After creating all files:

    line 294
  18. Distinctive:

    Use the release tooling — do NOT create the tag manually:

    line 333
  19. Distinctive:

    NEVER generate these files' content through the model: Instead, use shell-level copy + substitution:

    line 416
  20. Distinctive:

    When dispatching agents to create repo files, explicitly instruct them:

    line 428
  21. Very specific:

    Use cp + sed for CoC, Security, and any policy files

    line 430
  22. Distinctive:

    Never read template content into the model's context and re-emit it

    line 431
  23. Distinctive:

    Create these files in a SEPARATE step from other files to avoid batch failures

    line 432

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Repo Kickstart

Set up a professional OSS-grade repository with CI/CD, linting, releases, and documentation.

Prerequisites

The following tools must be installed before running this skill:

ToolMin VersionPurposeInstall
Node.js>= 20commit-and-tag-version, markdownlint-cli2, prettiermacOS: brew install node or nvm install 20; Linux: nvm install 20; Windows: nvm-windows
shellcheckanyShell script lintingmacOS: brew install shellcheck; Linux: apt-get install shellcheck
GNU MakeanyTask runnermacOS: built-in; Linux: apt-get install make
GitHub CLI (gh)anyRepo creation, CI scriptsmacOS: brew install gh; Linux: see cli.github.com

Workflow

digraph setup {
  rankdir=TB;
  "Gather project info" -> "Create GitHub repo + git init";
  "Create GitHub repo + git init" -> "Create infrastructure files";
  "Create infrastructure files" -> "Create documentation";
  "Create documentation" -> "Create GitHub config";
  "Create GitHub config" -> "Install deps + run linting";
  "Install deps + run linting" -> "Auto-fix lint issues";
  "Auto-fix lint issues" -> "Initial commit + push + tag";
}

Step 1: Gather Project Info

Human Decision Point

Ask the user to provide the project parameters listed below.

Agent implementation: Use your platform's user interaction mechanism (e.g., AskUserQuestion in Claude Code, input prompts in Gemini CLI, UI dialogs in Cursor/VS Code).

Collect from the user:

ParameterRequiredDefault
Project nameYes—
DescriptionYes—
GitHub owner/orgYes—
GitHub visibilityNopublic
LicenseNoMIT
Tech stackNogeneric
Contact emailYesgit author email

Contact email: This is the public email shown in CODE_OF_CONDUCT.md and SECURITY.md. Suggest the git author email as default (git config user.email). This email MUST be obfuscated in all committed files to prevent scraping (see Data Leak Prevention).

Step 2: Create Repo + Git Init

mkdir -p /path/to/project
cd /path/to/project
git init
gh repo create owner/project-name --public \
  --description "..." --source=. --remote=origin

Step 3: Create Files

Directory structure:

project/
├── .changelog-templates/     # Handlebars for auto-changelog
│   ├── template.hbs
│   ├── header.hbs
│   ├── commit.hbs
│   └── footer.hbs
├── docs/
│   └── conventions/           # Project conventions (from scaffold)
│       ├── build-tools.md
│       ├── changelog.md
│       ├── cicd.md
│       ├── commits.md
│       ├── dev-workflow.md
│       ├── releases.md
│       ├── testing.md
│       └── versioning.md
├── .github/
│   ├── config/labels.json    # Label definitions for sync
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   ├── PULL_REQUEST_TEMPLATE.md
│   ├── dependabot.yml
│   ├── scripts/
│   │   ├── ci/
│   │   │   ├── on-failure.sh   # Create issue on CI failure
│   │   │   └── on-success.sh   # Close issue on CI success
│   │   └── issues/
│   │       ├── create.sh
│   │       ├── search.sh
│   │       ├── close.sh
│   │       └── lib/common.sh   # Shared logging + label constants
│   └── workflows/
│       ├── ci.yml              # Main CI with auto-issue management
│       ├── labels.yml          # Sync labels from labels.json
│       ├── release.yml         # (Optional) GitHub Release from tags
│       └── stale.yml           # (Optional) Close stale issues/PRs
├── .editorconfig
├── .gitignore
├── .gitlint                    # Conventional commits enforcement
├── .markdownlint-cli2.jsonc    # Markdown lint config + ignores
├── .prettierrc
├── .prettierignore
├── .semver                     # Plain-text version (starts at 0.0.0)
├── .versionrc.js               # commit-and-tag-version config
├── CHANGELOG.md
├── .githooks/
│   └── pre-commit              # Personal data leak detection
├── CODE_OF_CONDUCT.md          # Contributor Covenant 2.1
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── README.md
├── ROADMAP.md
├── SECURITY.md
└── package.json                # Release + lint tooling only

Human Decision Point

Confirm the directory structure with the user before creating files.

Agent implementation: Use your platform's user interaction mechanism (e.g., AskUserQuestion in Claude Code, input prompts in Gemini CLI, UI dialogs in Cursor/VS Code).

Step 3b: Documentation and Community Files

Create all documentation and community files using the templates in assets/templates/. The agent MUST use these templates verbatim — do not hallucinate content.

Placeholders used across all templates:

PlaceholderSource
PROJECT_NAMEStep 1: Project name
PROJECT_DESCRIPTIONStep 1: Description
GITHUB_OWNERStep 1: GitHub owner/org
CONTACT_EMAILStep 1: Contact email (obfuscated in output files)

Create each file by reading the corresponding template below and replacing placeholders:

Target fileTemplate
.gitignoreassets/templates/gitignore.tpl
.semverassets/templates/semver.tpl
CHANGELOG.mdassets/templates/changelog.md.tpl
LICENSEassets/templates/license-mit.tpl
README.mdassets/templates/readme.md.tpl
ROADMAP.mdassets/templates/roadmap.md.tpl
CONTRIBUTING.mdassets/templates/contributing.md.tpl
SECURITY.mdassets/templates/security.md.tpl
CODE_OF_CONDUCT.mdassets/templates/code-of-conduct.md.tpl
.github/ISSUE_TEMPLATE/bug_report.mdassets/templates/bug-report.md.tpl
.github/ISSUE_TEMPLATE/feature_request.mdassets/templates/feature-request.md.tpl
.github/PULL_REQUEST_TEMPLATE.mdassets/templates/pull-request-template.md.tpl

Human Decision Point

Confirm license type (default: MIT) and copyright holder name with the user.

Agent implementation: Use your platform's user interaction mechanism (e.g., AskUserQuestion in Claude Code, input prompts in Gemini CLI, UI dialogs in Cursor/VS Code).

Note: CHANGELOG.md MUST be empty (no header). commit-and-tag-version generates the header from config.header in .versionrc.js. Having content in the file causes header duplication on every release.

Step 3c: Project Conventions (Scaffold)

Create the docs/conventions/ directory with the project convention documents. These are generic templates that apply to any project using this infrastructure.

Copy each file from the scaffold templates:

Target fileScaffold template
docs/conventions/versioning.mdassets/scaffold/docs/conventions/versioning.md
docs/conventions/commits.mdassets/scaffold/docs/conventions/commits.md
docs/conventions/changelog.mdassets/scaffold/docs/conventions/changelog.md
docs/conventions/releases.mdassets/scaffold/docs/conventions/releases.md
docs/conventions/build-tools.mdassets/scaffold/docs/conventions/build-tools.md
docs/conventions/dev-workflow.mdassets/scaffold/docs/conventions/dev-workflow.md
docs/conventions/cicd.mdassets/scaffold/docs/conventions/cicd.md
docs/conventions/testing.mdassets/scaffold/docs/conventions/testing.md

After copying, customize:

  • commits.md: Replace example scopes with project-specific scopes
  • cicd.md: Remove the GitHub Actions section if not using GitHub; add platform-specific section for GitLab CI, Jenkins, etc.
  • testing.md: Add project-specific test commands and framework details

Step 4: Key Configuration Patterns

Create each configuration file using the templates in assets/configs/. These files control linting, formatting, versioning, and changelog generation.

Target fileTemplate
package.jsonassets/configs/package-json.md
.markdownlint-cli2.jsoncassets/configs/markdownlint-cli2.md
.versionrc.jsassets/configs/versionrc.md
.changelog-templates/assets/configs/changelog-templates.md
.prettierrcassets/configs/prettierrc.md
.prettierignoreassets/configs/prettierignore.md
.editorconfigassets/configs/editorconfig.md
.gitlintassets/configs/gitlint.md

For context on how these tools work together, see references/release-pipeline.md.

Step 5: CI/CD — Self-Healing Pipeline

The CI system has 3 layers: labels (prerequisite), issue management scripts (reusable library), and the CI workflow (orchestrator). All shell scripts use a shared library for logging and constants.

Create each CI component by reading the corresponding reference:

ComponentReference
Labels config + sync workflowassets/ci/labels.md
Issue management libraryassets/ci/issue-management-library.md
CI auto-issue scriptsassets/ci/auto-issue-scripts.md
CI workflowassets/ci/workflow.md
Dependabotassets/ci/dependabot.md
Optional workflows (release, stale)assets/ci/optional-workflows.md

IMPORTANT: Labels MUST exist before CI can tag issues. Always run the labels sync workflow first.

5.5 Adapting to Your Project

To add/remove CI jobs, follow this pattern:

  1. Add the job to the jobs: section (parallel with others)
  2. Add it to ci-summary.needs: [...]
  3. Add env var + output in Determine overall result step
  4. Add the env var to the if condition in Determine overall result
  5. Add a row in Print summary
  6. Add a Handle X failure step and a Handle X success step
  7. Add a job:your-job-name label to labels.json

🔄 Human Decision Point

Present CI/CD options to the user and confirm which optional workflows to include:

  • release.yml (Recommended: always) — Creates GitHub Releases from version tags. Zero cost, no downside. Include unless the user explicitly opts out.
  • stale.yml (Recommended: public/team repos only) — Auto-closes inactive issues/PRs. Skip for private single-contributor repos.

Use the decision table in assets/ci/optional-workflows.md to guide the recommendation. If including stale.yml, ensure stale, pinned, and security labels are present in labels.json (they are included in the base template).

Agent implementation: Use your platform's user interaction mechanism (e.g., AskUserQuestion in Claude Code, input prompts in Gemini CLI, UI dialogs in Cursor/VS Code).

Step 6: Makefile

The Makefile is the project's command center. All developer operations go through make targets.

Create the Makefile using the template in assets/templates/makefile.tpl.md.

Replace PROJECT_NAME_HERE and PROJECT_DESCRIPTION_HERE with the values from Step 1.

Step 7: Linting Checklist

After creating all files:

  1. npm install
  2. npx markdownlint-cli2 '**/*.md' — fix issues with --fix
  3. shellcheck --severity=warning -x .github/scripts/**/*.sh
  4. npx prettier --check '**/*.{md,json,yml,yaml}' — fix with --write
  5. Make shell scripts executable: chmod +x .github/scripts/**/*.sh

🔄 Human Decision Point

Present lint results to the user and confirm all issues are resolved before committing.

Agent implementation: Use your platform's user interaction mechanism (e.g., AskUserQuestion in Claude Code, input prompts in Gemini CLI, UI dialogs in Cursor/VS Code).

Step 8: Initial Commit + First Release

🔄 Human Decision Point

Show the user the list of files to be committed and get confirmation before pushing.

Agent implementation: Use your platform's user interaction mechanism (e.g., AskUserQuestion in Claude Code, input prompts in Gemini CLI, UI dialogs in Cursor/VS Code).

IMPORTANT: The initial commit MUST have all versions at 0.0.0 (.semver, Makefile, and any extra bump files like pyproject.toml). The CHANGELOG.md MUST be empty (no header — the tool generates it from config.header in .versionrc.js).

Step 8a: Initial commit (version 0.0.0)

git add [all files explicitly]
git commit -m "feat: initial project infrastructure

Repository setup with CI/CD, linting, releases, and documentation."

Step 8b: First release (0.0.0 → 0.1.0)

Use the release tooling — do NOT create the tag manually:

make release/first

This runs commit-and-tag-version --release-as minor --skip.commit --skip.tag, which:

  1. Bumps .semver, Makefile (and pyproject.toml if configured) from 0.0.0 to 0.1.0
  2. Generates CHANGELOG.md with all commits since the beginning
  3. Creates a chore(release): v0.1.0 commit
  4. Creates an annotated v0.1.0 tag

Do NOT use --first-release — it skips the version bump and stays at 0.0.0.

Step 8c: Enrich the CHANGELOG

The auto-generated CHANGELOG only contains commit subjects. Enrich it with descriptive content following Keep a Changelog format, then amend:

# Edit CHANGELOG.md — add rich descriptions under each section
git add CHANGELOG.md
git commit --amend --no-edit
# Recreate the tag on the amended commit
git tag -d v0.1.0
git tag -a v0.1.0 -m "chore(release): v0.1.0"

Step 8d: Push

git push -u origin main --tags

Data Leak Prevention

OSS repos MUST NOT contain personal data beyond the designated contact email. See references/data-leak-prevention.md for the complete guide covering email obfuscation, pre-commit hooks, history purge, and .gitignore patterns.

Common Mistakes

MistakeFix
markdownlint scans node_modulesUse .markdownlint-cli2.jsonc with ignores array
shellcheck fails on dynamic source--severity=warning in Makefile AND severity: warning in CI action
prettier reformats CHANGELOGAdd CHANGELOG.md to .prettierignore
CI workflow interpolates user inputAlways use env: variables, never direct ${{ }} in run:
commit-and-tag-version fails on commitUse --skip.commit --skip.tag, then commit manually
.semver needs trailing newlineSome tools strip it; configure end-of-file-fixer to exclude
Personal email in CODE_OF_CONDUCTUse obfuscated format: hi [at] example [dot] com
Secret scan on a shallow checkoutfetch-depth: 0 on checkout; the default of 1 scans one commit and passes
Enabling a secret scan without checking historyRun gitleaks git . --redact first; a historical finding makes CI permanently red
Personal data in git historygit rm only removes from HEAD; use git filter-repo to purge
Personal paths in examplesUse generic paths (~/Projects/...) not real usernames
Squash doesn't purge historySquash only rewrites HEAD chain; old refs survive in reflog/remotes
.gitkeep for empty directoriesUse .gitignore with * + !.gitignore — protects against leaks
Dependabot PRs have no labelsLabels must pre-exist in the repo; sync labels.json first
CI auto-close doesn't find issuesMissing job:* labels; run labels sync workflow before first CI run
Content filter blocks file creationUse cp + sed for CoC/Security files — never generate through model
--first-release keeps version 0.0.0Use --release-as minor for first release; --first-release skips bump
CHANGELOG header duplicatedStart with empty CHANGELOG.md; config.header in .versionrc.js adds it
pyproject.toml not bumpedwriteVersion regex needs /m (multiline) flag; version = is not at BOF
RELEASE_FILES missing bump targetsEvery file in bumpFiles must also appear in RELEASE_FILES in Makefile
Manual git tag instead of makeAlways use make release/* — manual tags skip CHANGELOG + version bumps
labels.yml with only issues: writeExplicit permissions: replaces defaults → checkout 404s on private repos; add contents: read
Expecting the initial push to sync labels or releaseBranch-creation push skips paths-filtered workflows, and a tag pushed with it fires no event; gh workflow run labels.yml + push the tag separately

Content Filtering — Template Files with Sensitive Language

CRITICAL: Some template files contain language that triggers API content filtering (e.g., Code of Conduct mentions "harassment", "sexual", "ban"). When AI agents attempt to generate this content, the entire output gets blocked — including other legitimate files in the same batch.

Affected Files

  • CODE_OF_CONDUCT.md (Contributor Covenant — contains harassment/discrimination language)
  • SECURITY.md (may trigger on vulnerability/exploit terminology)
  • Any file with anti-harassment policies or enforcement guidelines

Required Approach

NEVER generate these files' content through the model. Instead, use shell-level copy + substitution:

# Copy template and replace placeholders with sed
sed -e 's/CONTACT_EMAIL/hi [at] example [dot] com/g' \
    -e 's/PROJECT_NAME/my-project/g' \
    assets/templates/code-of-conduct.md.tpl > CODE_OF_CONDUCT.md

For Subagents/Teammates

When dispatching agents to create repo files, explicitly instruct them:

  • Use cp + sed for CoC, Security, and any policy files
  • Never read template content into the model's context and re-emit it
  • Create these files in a SEPARATE step from other files to avoid batch failures

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.