remote-git-operations

remote-git-operations is a skill for Claude Code, Codex from jnPiyush/AgentX. It costs 56 tokens per session (1,491 once invoked), scanned A, original, Apache-2.0.

A guide to working with remote Git repositories such as GitHub, GitLab, Azure DevOps, and Bitbucket. It covers authentication, pull requests, branches, large files, and remote collaboration.

In plain words
What is it for?
Use it to configure remotes and authentication, manage pull requests, sync branches, protect branches, connect Git with CI/CD, and handle large files with Git LFS.
Why use it?
It helps prevent access, synchronization, and collaboration problems when code is shared through an online repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure remotes and authentication, manage pull requests, sync branches, protect branches, connect Git with CI/CD, and handle large files with Git LFS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jnpiyush/agentx/remote-git-operations
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jnPiyush/AgentX --skill remote-git-operations
Clone the repo
git clone --depth 1 https://github.com/jnPiyush/AgentX

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remote-git-operations

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnpiyush/agentx/remote-git-operations/github.svg)](https://agentmods.dev/skills/jnpiyush/agentx/remote-git-operations)
Your own site
<a href="https://agentmods.dev/skills/jnpiyush/agentx/remote-git-operations"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/remote-git-operations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for remote-git-operations

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnpiyush/agentx/remote-git-operations"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/remote-git-operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,491 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 115
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.01491
Opus 5.5 $0.00022 $0.00596
Sonnet 5.5 $0.00011 $0.00298
Haiku 4.5 $0.00006 $0.00149

Measured 1mo ago against content hash 111b6631a842, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

remote-git-operations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/operations/remote-git-operations/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Remote Git Repository Operations

Purpose: Best practices for working with remote Git repositories, including GitHub, Azure DevOps, GitLab, and Bitbucket.


When to Use This Skill

  • Configuring remote Git repositories and authentication
  • Managing pull request workflows across platforms
  • Resolving conflicts between local and remote branches
  • Integrating Git with CI/CD pipelines
  • Working with Git LFS for large files

Prerequisites

  • Git 2.30+ installed
  • Remote repository access (GitHub, Azure DevOps, GitLab, etc.)

Decision Tree

What remote Git operation?
+-- Setting up authentication?
|   +-- Personal machine? -> SSH key
|   +-- CI/CD pipeline? -> Deploy key or app token
|   +-- Temporary access? -> HTTPS + credential helper
+-- Collaborating on code?
|   +-- Small team, single remote? -> Feature branch + PR
|   +-- Fork-based (open source)? -> Fork + upstream remote + PR
|   +-- Multiple remotes? -> Named remotes (origin, upstream)
+-- Syncing with remote?
|   +-- Linear history preferred? -> git pull --rebase
|   +-- Merge commits acceptable? -> git pull (merge)
|   +-- CI branch behind? -> git fetch + git rebase origin/main
+-- Handling large files?
|   +-- Binary assets (images, models, videos)? -> Git LFS
|   +-- Large repo history? -> Shallow clone (--depth 1)

Remote Repository Setup

Adding and Managing Remotes

# View existing remotes
git remote -v

# Add a new remote
git remote add origin https://github.com/username/repo.git
git remote add upstream https://github.com/original/repo.git

# Change remote URL
git remote set-url origin https://github.com/username/new-repo.git

# Remove a remote
git remote remove upstream

# Rename a remote
git remote rename origin main-repo

# Fetch remote information
git remote show origin

Clone Strategies

# Standard clone
git clone https://github.com/username/repo.git

# Clone with different folder name
git clone https://github.com/username/repo.git my-project

# Clone specific branch
git clone -b develop https://github.com/username/repo.git

# Shallow clone (faster, less history)
git clone --depth 1 https://github.com/username/repo.git

# Clone with submodules
git clone --recursive https://github.com/username/repo.git

# Clone using SSH
git clone [email protected]:username/repo.git

Read the full file on GitHub · 215 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 111b6631a842
  2. 1mo ago First seen · 215 lines · 56 tokens per session scan A ff44d8397cdb

Subscribe to this mod's changes

remote-git-operations is a skill published in the GitHub repository jnPiyush/AgentX (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,491 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories