AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Unlicense Self-run

Using Git And Github

skill-yale-som-hpc-claude-code-marketplace-using-git-and-github · by yale-som-hpc

Git and GitHub for research work — commits, branches, what to track, big-file pushback, PRs; on the Yale SOM HPC cluster also module load git and SSH agent forwarding. TRIGGER when running git/gh, committing, deciding what to track or ignore, or opening PRs.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-yale-som-hpc-claude-code-marketplace-using-git-and-github

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-yale-som-hpc-claude-code-marketplace-using-git-and-github)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Using Git And Github? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Using Git and GitHub

For agents helping researchers get version-control benefits without becoming git experts.

Rules

  • Track code, config, metadata, docs, lockfiles, small examples.
  • Do not track raw data, secrets, env dirs, package libraries, large generated outputs.
  • Commit logical checkpoints.
  • Prefer simple history. No force-push on shared branches unless explicitly approved.
  • Explain git decisions plainly.

Git on HPC

Git may require a module:

module load git
git --version

Use module load git in setup notes/scripts that need git on HPC.

Auth and pushing

Laptop: HTTPS with gh auth login or normal SSH keys are fine.

HPC: prefer SSH agent forwarding so private keys stay on the laptop:

ssh -A hpc
module load git
ssh -T git@github.com
git push

If SSH_AUTH_SOCK is stale, fix the socket pointer. Do not copy private keys to the cluster. See [connecting securely](../connecting-securely/SKILL.md).

HTTPS / gh token auth is also fine if already configured:

module load git
gh auth status
git push

Never copy ~/.ssh/id_* private keys onto the cluster. Public keys (*.pub) are safe; private keys are not.

Agent behavior

  • Run git status --short before and after edits.
  • Do not silently stage ambiguous untracked files. Report and propose track/ignore/refuse.
  • Commit when asked, or when a coherent requested task is complete and repo norms expect commits. If uncertain, ask once.
  • Use imperative messages: Add panel construction script, Fix Slurm memory request.
  • Report hash + summary.

Track / ignore

Track:

  • source, scripts, Slurm scripts,
  • README/docs,
  • pyproject.toml, uv.lock, renv.lock, .Rprofile,
  • small metadata/codebooks/config,
  • tiny synthetic fixtures,
  • Makefiles/justfiles.

Ignore:

# Data and outputs
data/raw/
data/derived/
output/
outputs/
results/
logs/
*.parquet
*.rds
*.RDS
*.dta
*.sas7bdat
*.feather
*.h5
*.h5ad

# Python
.venv/
__pycache__/
*.pyc
.pytest_cache/
.ruff_cache/

# R
.Rhistory
.RData
.Rproj.user/
renv/library/
renv/local/
renv/staging/

# Secrets / local config
.env
.env.local
*.pem
*.key

# OS/editor
.DS_Store
Thumbs.db

Adjust per project. Final manuscript figures may belong in paper/figures/; rebuildable results/ usually does not.

Big files

Before committing:

git diff --cached --name-only | while read -r f; do
  test -f "$f" && wc -c "$f"
done | sort -n

Rules:

  • >5 MB: warn and ask.
  • >50 MB: refuse unless strong reason and repo policy allow it.
  • Do not suggest Git LFS reflexively. Prefer documented filesystem path, DOI, or object store.

Track a pointer file instead:

- name: crsp_panel.parquet
  location: /gpfs/project/myproject/data/derived/crsp_panel.parquet
  size_bytes: 1234567890
  description: Rebuildable panel from scripts/build_panel.py

Branches

Default for solo/small research repos: commit on main.

Use a branch when multiple people are active, the change is experimental, the user asks, or review matters.

Never force-push a shared branch. Prefer revert commits.

GitHub CLI

gh auth status
gh repo view --web
gh pr create --fill

If gh is missing on HPC, do not block. Use git + web UI.

Checklist

  • [ ] module load git used on HPC if needed
  • [ ] git status --short reviewed
  • [ ] No raw data, secrets, env dirs, or large outputs staged
  • [ ] Lockfiles updated if deps changed
  • [ ] Smoke test/check run if practical
  • [ ] Plain specific commit message
  • [ ] No private SSH keys copied to HPC

Further reading

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.