Agent skill

Git Platform

by athola in athola/claude-night-market

Detects git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform.

MITAuto-check passedDevelopment

Install Git Platform

skills CLI
$ npx skills add athola/claude-night-market --skill git-platform -a claude-code

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

GitHub CLI
$ gh skill install athola/claude-night-market git-platform --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/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/leyline/skills/git-platform .claude/skills/git-platform && 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
git-platform
GitHub stars
342
Token cost
~1.2k tokens
SKILL.md length
421 words
Files
2
Skills in repo
159
Repo updated
First seen
Licence
MIT

At a glance

Detects git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform.

  • Works in 4 steps: Declare dependencies:… → Check the session context for git_platform → Use the command mapping table above → …
  • Writing skills that must run on any git hosting provider
  • SKILL.md covers Overview, When To Use, When NOT To Use and Platform Detection, plus 5 more sections
  • Calls gh, glab and git

What it does

Git Platform is an agent skill from athola/claude-night-market. Detects git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform. Use when writing skills that must run on any git hosting provider.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `modules/command-mapping.md`).

It sits in Development, covering Git workflow and Skill authoring. It works with Git, Bitbucket, GitHub and GitLab. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Writing skills that must run on any git hosting provider
  • Tasks that involve Git workflow
  • Tasks that involve Skill authoring

Example prompts

  • “Use the git-platform skill to detect git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform”
  • “/git-platform”

Workflow steps

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

  1. Declare dependencies: [leyline:git-platform]
  2. Check the session context for git_platform
  3. Use the command mapping table above
  4. Fall back gracefully if CLI is unavailable

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. 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:

    • gh
    • glab
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use gh, glab and 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

Git Platform loads about 1.2k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 421 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 421 words, ~1,202 tokens.

Download SKILL.mdSave it as .claude/skills/git-platform/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
git-platform
description
Detects git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform. Use when writing skills that must run on any git hosting provider.
alwaysApply
false
category
infrastructure
tags
git, platform, github, gitlab, bitbucket, cross-platform, forge
dependencies
authentication-patterns
provides.infrastructure
platform-detection, command-mapping, forge-abstraction
provides.patterns
cross-platform-git, cli-selection, terminology-mapping
usage_patterns
platform-detection, command-translation, cross-platform-workflows
complexity
beginner
model_hint
fast
estimated_tokens
400

Git Platform Detection & Command Mapping

Overview

Cross-platform abstraction for git forge operations. Detects whether the current project uses GitHub, GitLab, or Bitbucket, and provides equivalent CLI commands for each platform.

The SessionStart hook (detect-git-platform.sh) automatically injects the detected platform into session context. This skill provides the command reference for translating operations across platforms.

When To Use

  • Before running gh, glab, or forge API commands
  • When a skill or command needs to create issues, PRs/MRs, or post comments
  • When writing CI/CD configuration
  • Any time forge-specific CLI commands appear in a workflow

When NOT To Use

  • Local-only git operations (git commit, git branch, etc.)
  • Projects without a hosted git remote

Platform Detection

Detection is automatic via the SessionStart hook. The session context will contain:

git_platform: github|gitlab|bitbucket, cli: gh|glab, mr_term: pull request|merge request

If you need to re-detect manually:

bash
# Check remote URL
git remote get-url origin 2>/dev/null

# Check file markers
ls -d .github/ .gitlab-ci.yml bitbucket-pipelines.yml 2>/dev/null

# Check CLI availability
command -v gh && echo "GitHub CLI available"
command -v glab && echo "GitLab CLI available"

Quick Command Reference

OperationGitHub (gh)GitLab (glab)
View issuegh issue view N --json title,body,labelsglab issue view N
List issuesgh issue list --json number,titleglab issue list
Create issuegh issue create --title "T" --body "B"glab issue create --title "T" --description "B"
Close issuegh issue close Nglab issue close N
Comment on issuegh issue comment N --body "msg"glab issue note N --message "msg"
View PR/MRgh pr view Nglab mr view N
Create PR/MRgh pr create --title "T" --body "B"glab mr create --title "T" --description "B"
List PR/MR commentsgh api repos/O/R/pulls/N/commentsglab mr note list N
Current PR/MRgh pr view --json numberglab mr view --json iid
Resolve threadsgh api graphqlglab api graphql
Repo infogh repo view --json owner,nameglab repo view

For Bitbucket: No standard CLI exists. Use REST API (curl) or the web interface. See command-mapping module for API equivalents.

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

Terminology

ConceptGitHubGitLabBitbucket
Code review unitPull Request (PR)Merge Request (MR)Pull Request (PR)
CI configuration.github/workflows/*.yml.gitlab-ci.ymlbitbucket-pipelines.yml
Default branchmainmainmain
Review commentsPR review commentsMR discussion notesPR comments

Important: When the platform is GitLab, always say "merge request" (not "pull request") in user-facing output, commit messages, and comments.

Integration Pattern

Skills that perform forge operations should:

  1. Declare dependencies: [leyline:git-platform]
  2. Check the session context for git_platform:
  3. Use the command mapping table above
  4. Fall back gracefully if CLI is unavailable
markdown
# Example skill instruction pattern:

## Step N: Create PR/MR

Use the detected platform CLI (check session context for `git_platform`):
- **GitHub**: `gh pr create --title "..." --body "..."`
- **GitLab**: `glab mr create --title "..." --description "..."`
- **Bitbucket**: Create via web interface

Detailed Resources

  • Full command mapping: See modules/command-mapping.md for complete API equivalents, GraphQL queries, and Bitbucket REST API patterns
  • Authentication: See Skill(leyline:authentication-patterns) for ensure_auth github|gitlab

Exit Criteria

  • Platform detected (or explicitly unknown)
  • Correct CLI tool used for all forge operations
  • Platform-appropriate terminology in user-facing output

© athola, MIT. 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 plugins/leyline/skills/git-platform of athola/claude-night-market.

  • SKILL.md
  • modules/command-mapping.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Git Platform 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.

Git Platform compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Platform this skillathola/claude-night-market342—~1.2kAutomated safety check: PassMIT
degit Project ScaffoldingRich-Harris/degit7.9k—~534Automated safety check: PassMIT
Git Repo Beginner Guidelintendo/Axhub-Skills127—~893Automated safety check: NotesMIT
Git MacheteVirtusLab/git-machete1.1k—~6.1kAutomated safety check: PassMIT
MR and PR Description Draftertabler/tabler42k—~2kAutomated safety check: PassMIT
Git Init Remoteexception-coder/npe_get_jobs176—~662Automated safety check: PassCustom licence

Similar skills

  • 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 25 days ago
    DevelopmentAuto-check passed
  • Git Repo Beginner Guide

    lintendo/Axhub-Skills

    面向不熟悉 Git 的产品经理、设计师、运营、文档作者等非技术用户,引导 GitHub/GitLab/Gitee/Bitbucket/自建 Git 平台的仓库初始化、授权、克隆、提交同步、冲突处理、版本恢复和协作交接。

    127 GitHub stars~893 tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Git Machete

    VirtusLab/git-machete

    A skill your agent uses whenever invoking the git machete CLI to organize branch chains, compute fork points, run stacked rebases/merges, or manage GitHub/GitLab PR/MR chains - especially in a repo…

    1.1k GitHub stars~6.1k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Drafts a merge request or pull request title and body in simple English from the branch's git history and diff against origin/dev, ready to paste into GitLab or GitHub.

    42k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Init Remote

    exception-coder/npe_get_jobs

    Initialize git in a local project without a repository, connect it to a remote, and generate a proper .gitignore.

    176 GitHub stars~662 tokensUpdated 15 days ago
    DevelopmentAuto-check passed
  • Git Smart Push

    exception-coder/npe_get_jobs

    Analyze local code changes, automatically generate meaningful commit messages based on the changes, and push to remote repository (GitHub, GitLab, Gitee, Alibaba Cloud DevOps, etc.).

    176 GitHub stars~2.4k tokensUpdated 15 days ago
    DevelopmentAuto-check: notes

More from athola/claude-night-market

All 159 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    342 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    342 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Questions about Git Platform

What does Git Platform do?

Detects git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform. Git Platform is an agent skill from athola/claude-night-market. Detects git forge (GitHub/GitLab/Bitbucket) and maps CLI commands cross-platform.

When should I use Git Platform?

Git Platform fits situations like: writing skills that must run on any git hosting provider; tasks that involve Git workflow; tasks that involve Skill authoring.

How do I install Git Platform in Claude Code?

Run `npx skills add athola/claude-night-market --skill git-platform -a claude-code`. Or copy the skill folder (plugins/leyline/skills/git-platform in athola/claude-night-market) into .claude/skills/git-platform in your project. Claude Code loads it when a task matches its description.

How do I install Git Platform in Codex?

Run `npx skills add athola/claude-night-market --skill git-platform -a codex`. Or copy the skill folder (plugins/leyline/skills/git-platform in athola/claude-night-market) into .agents/skills/git-platform in your project. Codex loads it when a task matches its description.

Can I use Git Platform 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 athola/claude-night-market --skill git-platform -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-platform, .gemini/skills/git-platform, .github/skills/git-platform and .opencode/skills/git-platform in your project.

What does Git Platform need to run?

Going by SKILL.md and its folder, Git Platform needs the command-line tools its instructions call (gh, glab and git).

Does Git Platform access the network?

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

Is Git Platform safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Platform use?

Git Platform is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Platform use?

About 1.2k tokens (SKILL.md is roughly 4.8k 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 Git Platform?

Skills that share tags, products or a category with Git Platform: degit Project Scaffolding (Rich-Harris/degit, 7.9k stars), Git Repo Beginner Guide (lintendo/Axhub-Skills, 127 stars), Git Machete (VirtusLab/git-machete, 1.1k stars) and MR and PR Description Drafter (tabler/tabler, 42k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Platform?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 342 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.