Auto task.execute with stacked prs

From gpsaggese/helpers · View interactive version

Auto task.execute with stacked prs is an AI agent skill from the GitHub repository gpsaggese/helpers. Execute a sequence of tasks as one stack of branches and PRs

How to use this skill

Skill file

Goal

and named

Input

When to Use This Skill

chain, and a user who prefers one batch review over interruptions

Clarification Before Executing an Unclear Plan". Do not build on a guess

Workflow

Confirm the Task List

Executing". Each ordered task is one branch

means rebasing the whole stack above it

Create the Issue and the First Branch (`_1`)

of Work": one issue covers the whole stack

```bash

> git_create_issue_and_branch.py \

--gh_issue_title "<TITLE>" --gh_issue_body "<Description of entire stack>" \

--suffix 1

```

Stack Each Following Branch (`_<ID>`)

it from <BASE>_<ID-1>, not from master:

```bash

> invoke git_branch_create --issue-id <NUM> --suffix <ID> \

--no-only-branch-from-master --no-create-pr

```

current branch, so from <BASE>_<ID-1> it gives <BASE>_<ID-1>_1

(True) branches from origin/master, not from the current branch

```bash

> gh pr create --base <BASE>_<ID-1> --head <BASE>_<ID> --title "<TITLE>"

```

Report the Stack

ID

How the Stack Gets Merged

branch was deleted: gh pr edit <BASE>_<ID> --base master

and push:

```bash

> invoke git_merge_master

```

identical content: Git cannot tell the squashed commit from the originals

the user first

Conventions

testing conventions

"Multi-Repo Issues, Branches, and PRs"), only the outer repo stacks

invoke git_branch_create --suffix does not fan out to submodules

git_create_issue_and_branch.py call, then refresh the companion PR links after

the stack is built:

```bash

> git_create_issue_and_branch.py --gh_issue_id <NUM> --submodules \

--update_pr_links

```

Constraints

Merge Decisions" and "One GitHub Issue Is the Unit of Work"

compounds into everything stacked on it

Verification

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.