clean-code-git-plumbing-for-repos-with-large-pack-files
Sub-skill of clean-code: Git Plumbing for Repos with Large Pack Files (+1).
Best use case
clean-code-git-plumbing-for-repos-with-large-pack-files is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of clean-code: Git Plumbing for Repos with Large Pack Files (+1).
Teams using clean-code-git-plumbing-for-repos-with-large-pack-files should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/git-plumbing-for-repos-with-large-pack-files/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How clean-code-git-plumbing-for-repos-with-large-pack-files Compares
| Feature / Agent | clean-code-git-plumbing-for-repos-with-large-pack-files | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of clean-code: Git Plumbing for Repos with Large Pack Files (+1).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Git Plumbing for Repos with Large Pack Files (+1)
## Git Plumbing for Repos with Large Pack Files
`git commit` hangs indefinitely on repos with pack files ≥4GB (e.g., digitalmodel). Use
plumbing commands instead:
```bash
# Standard commit — HANGS on repos with large pack files
git commit -m "message" # ← do NOT use
# Plumbing workflow — always safe regardless of repo size
TREE=$(git write-tree)
PARENT=$(git rev-parse HEAD)
COMMIT=$(git commit-tree "$TREE" -p "$PARENT" -m "your message here")
git update-ref HEAD "$COMMIT"
```
After this, update the hub-level submodule pointer:
```bash
# From workspace-hub root
git add <submodule-dir>
git commit -m "chore: update <submodule> pointer"
```
## Parallel Execution for Multi-Repo God Object Sprints
When splitting files across multiple repos simultaneously:
```
TeamCreate → spawn agent-repo-A + agent-repo-B in parallel
agent-repo-A: handles one repo (worldenergydata)
agent-repo-B: handles other repo (digitalmodel)
Rules:
- Never run two agents on the SAME repo concurrently (index.lock contention)
- Update hub submodule pointer AFTER each repo agent completes
- agent-repo-B should not start WRK-592 until WRK-591 is committed
(same __init__.py in same repo — sequential within a repo, parallel across repos)
```
---Related Skills
mnt-analysis-cleanup
Survey, classify, and clean up `/mnt/local-analysis/` (or any sibling-to-workspace-hub directory holding orphan worktrees, codex-burn artifacts, agent log accumulations, and outer-clone duplicates) without losing useful code/work. Surfaces a tiered approval menu rather than baking decisions; defers all destructive ops until user confirms.
pre-completion-cleanup-audit
Audit and dispose of session residue (orphan files, scratch dirs, sibling-repo state, locks, trash-stages) BEFORE claiming a task complete. Required gate before any agent says "all done", "task complete", or hands work back to user/orchestrator.
git-worktree-cleanup-at-scale
Identify and remove stale git worktrees blocking branch deletion in multi-repo environments
git-worktree-cleanup-and-branch-reconciliation
Systematic process for cleaning up stale git worktrees, resolving merge conflicts in diverged branches, and reconciling branch state across multiple repositories.
git-worktree-cleanup-and-branch-hygiene
Systematic approach to cleaning up stale git worktrees, orphan branches, and branch hygiene at scale across multiple repos
git-large-file-staging-conflict-recovery
Recover from pre-commit hook blocks on oversized files and corrupted rebase states during bulk repo syncs
git-blob-size-filter-cleanup
Strip oversized blobs from unpushed commits using git filter-branch when GitHub's 100 MB limit blocks push
clean-worktree-integration-from-dirty-main
Land validated issue work from isolated worktrees when the main checkout is dirty by creating a fresh integration worktree, cherry-picking only implementation commits, re-running combined validation, and preparing push/closeout artifacts.
clean-code
Clean code enforcement for workspace-hub Python repos: file/function size limits, God Object detection, naming rules, dead code removal, and refactor decision guidance. Consult before writing new modules or accepting large files.
workspace-hub-mission-contract-first-packet
Plan the first repo-mission canonicalization packet for the workspace ecosystem by reusing the existing control-plane issue, locking Wave-1 scope, and making review criteria deterministic.
overnight-wave-pack-worktree-isolation
Safely launch overnight multi-terminal workspace-hub planning packs from isolated worktrees when the main checkout is dirty or prompts share planning/index files.
live-writer-branch-cleanup-guard
Guardrails for multi-repo sync and branch cleanup when workspace-hub or another shared repo has active writer sessions, worktree-backed branches, or unrelated-history branches.