Agent git workflow

From SteelMorgan/1c-agent-based-dev-framework · View interactive version

Agent git workflow is an AI agent skill from the GitHub repository SteelMorgan/1c-agent-based-dev-framework. Standardizes git workflow for the AI agent in the sandbox devcontainer: work in agent/<task>-<yyyymmdd>, integrate via agent, never push to main/master, open PRs via GitHub CLI. Use when the user asks to create branches, push changes, open PRs, or follow this sandbox repo setup.

How to use this skill

Skill file

Agent Git Workflow (Sandbox)

Context

Quick start

1) Go to the target repo directory (usually under /workspaces/work/<repo>).

2) Create a task branch off agent:

agent-task-branch <task-slug>

3) Make changes, commit.

4) Optional: push current task branch for remote backup (recommended for long tasks / “in progress” safety):

git push -u origin HEAD

5) Merge your task branch back into agent and push agent:

agent-merge-to-agent

6) Open PR agent → main only when the user explicitly asks (see rules below):

agent-open-pr

Rules

Hard rules (do not violate)

Conventions

Pre-flight (common failure points)

Available scripts / commands

Operational workflow

1) Clone repos under /workspaces/work/<repo>.

2) Create a task branch from agent: agent-task-branch <task>.

3) Commit small, coherent chunks.

4) Optional remote backup push (during work): git push -u origin HEAD.

5) Merge into agent and push agent: agent-merge-to-agent.

6) Only if the user explicitly asked: open PR agent → main:

PR bodies should include:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.