rajatslakhina

Repo Admission Gate Kit — Git skill for Claude Code

Git community

Admission gate for untrusted iOS repos in front of coding agents: scans git config/hooks/attributes, SwiftPM plugins/macros/packages and Xcode script phases; gates git/swift/xcodebuild calls via a Cla.

How to install Repo Admission Gate Kit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open rajatslakhina/repo-admission-gate-kit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Repo Admission Gate Kit does

Admission gate for untrusted iOS repos in front of coding agents: scans git config/hooks/attributes, SwiftPM plugins/macros/packages and Xcode script phases; gates git/swift/xcodebuild calls via a Claude Code PreToolUse hook.

Alternatives in Git

  • 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
  • Zcf — GitHub Repo stars Zero-Config Code Flow for Claude code & Codex Zero-config workflow 5.8k ★
  • Auteur — The Claude Code skill that directs a website like a film 1k ★

README

RepoAdmission

**In an iOS repository, "just build it" is arbitrary code execution in at least five places — and a coding agent runs `git status` before it has read a single file.**

[![CI](https://github.com/rajatslakhina/repo-admission-gate-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/rajatslakhina/repo-admission-gate-kit/actions/workflows/ci.yml) ![Swift 6](https://img.shields.io/badge/Swift-6.0%2B-orange) ![Platforms](https://img.shields.io/badge/platforms-iOS%2017%20%7C%20macOS%2014%20%7C%20Linux-blue) ![Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen)

RepoAdmission is an **admission gate for untrusted repositories**, built to sit in front of a coding agent as a Claude Code `PreToolUse` hook. It inventories every place a cloned iOS repository can make your machine run its code, scores each one against a declarative, content-addressed policy, and decides each `git` / `swift` / `xcodebuild` tool call **before it runs**: allow, deny, or ask — with approvals bound to a SHA-256 of what was approved, and every decision in a hash-chained provenance log.

Demo app: **[repo-admission-gate-kit-demo](https://github.com/rajatslakhina/repo-admission-gate-kit-demo)** — a separate Xcode project that consumes this package as a remote dependency (`upToNextMajorVersion` from 2.0.0, locked by a committed `Package.resolved`) and lets you sanitize, approve, and then watch an upstream edit void the approval.


Why this matters

In September 2026, researchers disclosed eight Git configuration flaws that let a *received repository* run commands through seven AI coding agents — several still unpatched at publication ([The Hacker News](https://thehackernews.com/2026/09/malicious-git-configs-can-make-claude.html)). That is the general case. iOS repositories are worse, because the Apple toolchain executes repository-controlled content in more places than most:

Family What runs Fired by
Git config in config a