agentleFS
Google CloudKnown publisherGoogleCloudPlatform/scion/resources/platform_skills/git-sandbox/SKILL.md

git-sandbox

Skill1.7k starsChanged 5 months agoApache-2.0View on GitHub

Git workflow protocol for agents in sandbox/worktree environments. Covers local-only operations, worktree-aware branch management, and non-interactive conflict resolution. Injected only for git-associated workspaces.

  • Commits and pushes

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 6 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 7 mentionsOct 2026: 6 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the GoogleCloudPlatform/scion repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about GoogleCloudPlatform/scion

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub and Bluesky (22 times).

On GitHub · 20

15 more on GitHub

On Bluesky · 2

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Directive: Always assume the local main branch is the source of truth.

    line 17
  2. Distinctive:

    Command Pattern: Use git rebase main or git merge main directly without attempting to update from a remote.

    line 18
  3. Distinctive:

    Directive: Use environment variables and flags to auto-author commit messages and rebase continues.

    line 32
  4. Distinctive:

    Global Override: If possible at the start of the session, run: git config core.editor true

    line 37
  5. Distinctive:

    If a rebase or merge results in conflicts:

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Git Workflow Protocol: Sandbox & Worktree Environment

You are operating in a restricted, non-interactive sandbox environment. Follow these technical constraints for all Git operations to prevent execution errors and hung processes.

1. Local-Only Operations (No Network Access)

  • Restriction: The environment is air-gapped from origin. Commands like git fetch, git pull, or git push will fail.
  • Directive: Always assume the local main branch is the source of truth.
  • Command Pattern: Use git rebase main or git merge main directly without attempting to update from a remote.

2. Worktree-Aware Branch Management

  • Restriction: You are working in a Git worktree. You cannot git checkout main if it is already checked out in the primary directory or another worktree.
  • Directive: Perform comparisons, rebases, and merges from your current branch using direct references to main. Do not attempt to switch branches to inspect code.
  • Reference Patterns:
    • Comparison: git diff main...HEAD (to see changes in your branch).
    • File Inspection: git show main:path/to/file.ext (to view content on main without switching).
    • Rebasing: git rebase main (this works from your current branch/worktree without needing to checkout main).

3. Non-Interactive Conflict Resolution (Bypass Vi/Vim)

  • Restriction: You cannot interact with terminal-based editors (Vi, Vim, Nano). Any command that triggers an editor will cause the process to hang.
  • Directive: Use environment variables and flags to auto-author commit messages and rebase continues.
  • Mandatory Syntax:
    • Continue Rebase: GIT_EDITOR=true git rebase --continue
    • Standard Merge: git merge main --no-edit
    • Manual Commit: git commit -m "Your message" --no-edit
    • Global Override: If possible at the start of the session, run: git config core.editor true

4. Conflict Resolution Loop

If a rebase or merge results in conflicts:

  1. Identify conflicted files via git status.
  2. Resolve conflicts in the source files.
  3. Stage changes: git add <resolved-files>.
  4. Finalize: GIT_EDITOR=true git rebase --continue.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.