Agent skill

Setup Git

by probabl-ai in probabl-ai/skills

Set up git for an ML workspace after scaffolding. An agent skill from probabl-ai/skills.

BSD-3-ClauseAuto-check: notesDevelopment

Install Setup Git

skills CLI
$ npx skills add probabl-ai/skills --skill setup-git -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install probabl-ai/skills setup-git --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/probabl-ai/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/setup-git .claude/skills/setup-git && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
setup-git
GitHub stars
135
Token cost
~1.4k tokens
SKILL.md length
776 words
Files
2
Skills in repo
23
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Set up git for an ML workspace after scaffolding. An agent skill from probabl-ai/skills.

  • Works in 9 steps: Run python -m skore_skills status. If… → If there is no .git directory, run git… → Run python -m skore_skills git… → …
  • The user asks to initialize version control
  • SKILL.md covers Pre-flight, Sequence and Stop conditions
  • Calls git and python

What it does

Setup Git is an agent skill from probabl-ai/skills. Set up git for an ML workspace after scaffolding. Trigger when the user asks to initialize version control, add ignore rules, or make the first commit. This action owns first-time git setup only. Before the first commit, ask once which unknown hidden files and review paths to keep tracked.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).

It sits in Development, covering Git workflow and Project scaffolding. It works with Git and Python. The repository describes itself as: Tabular Data Science Skills for guardrailing AI Agents. The licence is BSD-3-Clause.

When your agent uses it

  • The user asks to initialize version control
  • Add ignore rules
  • Make the first commit

Example prompts

  • “/setup-git”

Requirements

  • Python 3

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Run python -m skore_skills status. If the user asked to
  2. If there is no .git directory, run git init -b main. The
  3. Run python -m skore_skills git ignore-merge. Keep the JSON
  4. If policy.git.autocommit is null, ask once: should later
  5. If autocommit is off, stop. Do not ask which files to keep.
  6. If autocommit is on and HEAD exists, stop after ignore-merge.
  7. If autocommit is on and this repo has no HEAD yet, run
  8. Then git status. git add -- only paths that are
  9. When setup-ml-project dispatched this turn and is in this

What it can do on your machine

Read from SKILL.md and the folder at commit 5edc7a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Setup Git loads about 1.4k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 776 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:99
    gone from the next JSON. Never `--keep` `.env` or
  • NoteMentions a .env fileSKILL.md:104
    cond time about autocommit. Never stage `.env` or
  • NoteMentions a .env fileSKILL.md:114
    - Never stage `.env`, `.skore`, or a review path that was not

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from probabl-ai/skills at commit 5edc7a4, republished under its BSD-3-Clause licence (© probabl-ai). 776 words, ~1,433 tokens.

Download SKILL.mdSave it as .claude/skills/setup-git/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
setup-git
description
Set up git for an ML workspace after scaffolding. Trigger when the user asks to initialize version control, add ignore rules, or make the first commit. This action owns first-time git setup only. Before the first commit, ask once which unknown hidden files and review paths to keep tracked.

Set Up Git

Pre-flight

Tick, then immediately run the matching sequence step. Do not stop after listing the boxes.

- [ ] status (skip autocommit ask if already on/off, unless the user asked to change it)
- [ ] git init -b main if no .git
- [ ] git ignore-merge (record ambiguous_dotfiles; do not ask yet)
- [ ] git.autocommit ask if null
- [ ] off, or on and HEAD exists → stop; no file question; no commit
- [ ] on and no HEAD → git review; one keep-or-ignore question if either list is non-empty; first commit

Sequence

  1. Run python -m skore_skills status. If the user asked to change the commit choice and policy.git.autocommit is already on or off, re-ask that question and persist on or off. Do not git init. Do not git ignore-merge. If the new value is on and the repo has no HEAD yet, continue at the first-commit review (step 7). If the new value is off, or on and HEAD exists, stop this sequence: use the return rule in step 9 and do not continue at step 2. Do not invent another commit. Later stages follow the new value. Otherwise, if autocommit is already on or off, do not ask that question again.

  2. If there is no .git directory, run git init -b main. The initial branch is main. Do not run git config. Do not name that branch master. Do not rename a branch that already exists.

  3. Run python -m skore_skills git ignore-merge. Keep the JSON ambiguous_dotfiles list. Exit code 2 is that structured list, not a command failure. Do not ask yet.

  4. If policy.git.autocommit is null, ask once: should later stages persist with git commit (on) or never (off)? State in 2–4 lines what the answer authorizes — commits at the end of later stages, starting with the first commit this turn — and which paths stay ignored; a file link is an addition, never the context. Persist with python -m skore_skills policy set git.autocommit on or off. That answer is also consent for the first commit. It does not authorize tracking ambiguous_dotfiles or review_paths. When setup-ml-project already persisted on or off this turn, do not ask again.

  5. If autocommit is off, stop. Do not ask which files to keep. Do not git commit. Use the return rule in step 9.

  6. If autocommit is on and HEAD exists, stop after ignore-merge. Do not ask which files to keep. Do not invent another commit. Later stages use python -m skore_skills git end-turn --stage <stage> then persist-ml-git, where <stage> is setup, data_analysis, implement, evaluate, or backlog. When that skill is not installed, those stages report the pending paths instead of committing.

  7. If autocommit is on and this repo has no HEAD yet, run python -m skore_skills git review. When this step is reached from step 1, ignore-merge did not run: use only review_paths. If ambiguous_dotfiles and review_paths are both empty, do not ask. If either list is non-empty, ask once which of those paths to keep tracked. List every hidden path and each review path with its kind. Say that paths they do not keep are ignored. Do not ask a second question for the other list. Copy paths from the JSON; do not reclassify them. Do not ask about file size, artifacts, or datasets when review_paths is empty, and do not ask about hidden files when ambiguous_dotfiles is empty. Then:

    • ambiguous_dotfiles was non-empty → re-run python -m skore_skills git ignore-merge --decide plus --keep <path> for each chosen hidden path (no --keep if they keep none).
    • review_paths was non-empty → python -m skore_skills git review-decide with --keep <path> for each chosen path and --ignore <path> for every other path in that list (no --keep if they keep none). Pass a folder path through with its trailing slash so the ignore line is that folder. Exit code 2 from git review or git review-decide is the structured review outcome, not a generic command failure: read its JSON. The question in this step is that decision; do not ask again. If review-decide still lists paths, rerun it with the same choices.

    Run only the command for a list that was non-empty. Do not re-ask paths gone from the next JSON. Never --keep .env or .skore.

  8. Then git status. git add -- <paths> only paths that are not still listed in review_paths, and git commit -m "<one-line subject>" from this setup turn. Do not ask a second time about autocommit. Never stage .env or .skore.

  9. When setup-ml-project dispatched this turn and is in this session, return control to it. Otherwise load triage-ml-task if status.skills reports it installed, else stop.

Show full SKILL.md (79 more words)Show less

Stop conditions

  • Never overwrite .gitignore; git ignore-merge unions packaged rules.
  • Never stage .env, .skore, or a review path that was not kept.
  • Never split hidden files and review paths into two questions before the first commit.
  • Never push, create a remote, amend, rebase, or set git identity.
  • The initial branch is main. Do not name it master. Do not rename a branch that already exists.
  • Do not call python -m skore_skills git end-turn --stage … to create the first commit.

© probabl-ai, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/setup-git of probabl-ai/skills.

  • SKILL.md
  • evals/evals.json

Open the folder on GitHubat commit 5edc7a4

Compare with similar skills

Setup Git next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Setup Git compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Setup Git this skillprobabl-ai/skills135—~1.4kAutomated safety check: NotesBSD-3-Clause
Light Project StructureLight0305/Light-skills640—~3kAutomated safety check: NotesMIT
Project Initathola/claude-night-market342—~1.2kAutomated safety check: PassMIT
Skyvern Version BumpSkyvern-AI/skyvern23k—~1kAutomated safety check: NotesAGPL-3.0
Saleor Commit Workflowsaleor/saleor23k—~575Automated safety check: PassBSD-3-Clause
pybind11 Release Preparationpybind/pybind1118k—~1.7kAutomated safety check: PassCustom licence

Similar skills

  • Light Project Structure

    Light0305/Light-skills

    Audits, scaffolds and safely migrates research project folder structures, keeping existing repositories read-only until you approve exact moves from a plan.

    640 GitHub stars~3k tokensUpdated 3 mo ago
    DevelopmentAuto-check: notes
  • Project Init

    athola/claude-night-market

    Scaffolds new projects with git, CI/CD workflows, pre-commit hooks, and build config.

    342 GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Skyvern Version Bump

    Skyvern-AI/skyvern

    Walks through a Skyvern open-source release bump: update the version, rebuild the Python and TypeScript SDKs with Fern, commit, and open a pull request.

    23k GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Opens the pybind11 release-preparation pull request: picking the release base, bumping the version in common.h and integrating the changelog, following docs/release.rst.

    18k GitHub stars~1.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • degit Project Scaffolding

    Rich-Harris/degit

    Downloads a repository snapshot or template with degit into an empty folder, from GitHub, GitLab, Bitbucket, Sourcehut or a Gist, optionally at a branch, tag or commit.

    7.9k GitHub stars~534 tokensUpdated 24 days ago
    DevelopmentAuto-check passed

More from probabl-ai/skills

All 23 skills in this repo
  • Add Python Package

    probabl-ai/skills

    Add a Python dependency through the project env manager, or ask the user to install it when env.managed is false.

    135 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Build ML Pipeline

    probabl-ai/skills

    Declare the pipeline from data source to predictor as a skrub DataOps graph.

    135 GitHub stars~4k tokensUpdated yesterday
    Auto-check passed
  • Evaluate ML Pipeline

    probabl-ai/skills

    Evaluate one learner with skore.evaluate. An agent skill from probabl-ai/skills.

    135 GitHub stars~4.2k tokensUpdated yesterday
    Auto-check passed
  • Setup Workspace

    probabl-ai/skills

    Detect an existing ML workspace or scaffold a fresh one via python -m skoreskills scaffold --package <pkg.

    135 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Audit ML Pipeline

    probabl-ai/skills

    Read-only audit of one persisted skore report: audit/NN<stem.py (jupytext percent), 1:1 with experiments/ and journal/.

    135 GitHub stars~9.5k tokensUpdated yesterday
    Auto-check passed
  • Explore ML Data

    probabl-ai/skills

    Owns data understanding before any model is designed. An agent skill from probabl-ai/skills.

    135 GitHub stars~5.7k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Setup Git

What does Setup Git do?

Set up git for an ML workspace after scaffolding. An agent skill from probabl-ai/skills. Setup Git is an agent skill from probabl-ai/skills. Set up git for an ML workspace after scaffolding.

When should I use Setup Git?

Setup Git fits situations like: the user asks to initialize version control; add ignore rules; make the first commit.

How do I install Setup Git in Claude Code?

Run `npx skills add probabl-ai/skills --skill setup-git -a claude-code`. Or copy the skill folder (skills/setup-git in probabl-ai/skills) into .claude/skills/setup-git in your project. Claude Code loads it when a task matches its description.

How do I install Setup Git in Codex?

Run `npx skills add probabl-ai/skills --skill setup-git -a codex`. Or copy the skill folder (skills/setup-git in probabl-ai/skills) into .agents/skills/setup-git in your project. Codex loads it when a task matches its description.

Can I use Setup Git in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add probabl-ai/skills --skill setup-git -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/setup-git, .gemini/skills/setup-git, .github/skills/setup-git and .opencode/skills/setup-git in your project.

What does Setup Git need to run?

Going by SKILL.md and its folder, Setup Git needs the command-line tools its instructions call (git and python). Our summary lists: Python 3.

Does Setup Git access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Setup Git safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Setup Git use?

Setup Git is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Setup Git use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Setup Git?

Skills that share tags, products or a category with Setup Git: Light Project Structure (Light0305/Light-skills, 640 stars), Project Init (athola/claude-night-market, 342 stars), Skyvern Version Bump (Skyvern-AI/skyvern, 23k stars) and Saleor Commit Workflow (saleor/saleor, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Setup Git?

probabl-ai (a GitHub organization) maintains it in probabl-ai/skills, which has 135 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 6, 2026.

Source: probabl-ai/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.