agentleFS
tardigrdetardigrde/agent-skill-eval/skills/commit-push-pr/SKILL.md

commit-push-pr

Skill4 starsChanged 5 months agoMITView on GitHub

Check out latest base branch, create a new feature branch, commit changes, push to remote, and create a pull request via gh CLI.

  • Commits and pushes

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use docs-ci, docs-interfaces and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • RachaelQuiselSkill

    client-docs

    Client documentation. Use when a build needs documentation updates or missing project documents need to be identified.

    Also in 3 projects that use this

  • dbankscardSkill

    techdebt

    Find and report technical debt, duplicated code, and cleanup opportunities. Run at end of sessions.

    Also in 5 projects that use this

  • planailabsSkill

    docs-architecture

    Layout, build pipeline, and structural gotchas for this dual-Astro repo. Read before changing structure, routing, or adding content. Operational/dev-server questions → dev-build skill.

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • +4 more from jh941213

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when the user asks to commit, push, create a PR, or get changes into a branch.

    line 16
  2. Distinctive:

    When staging files, stage ALL changed files EXCEPT those in agent config directories

    line 30
  3. Distinctive:

    If the user mentions specific files, prioritize those but also include other changes

    line 31
  4. Distinctive:

    Run git status to find all modified and untracked files.

    line 54
  5. Distinctive:

    If after filtering there are NO changes (no modified files, no untracked files outside agent config dirs), then inform the user "No changes …

    line 59
  6. Very specific:

    Use feature/<descriptive-name> for new features

    line 64
  7. Very specific:

    Use fix/<descriptive-name> for bug fixes

    line 65
  8. Very specific:

    Use conventional commit format: feat:, fix:, chore:, etc.

    line 80
  9. Distinctive:

    Write a clear, descriptive commit message based on the changes

    line 81
  10. Distinctive:

    All of these must be true:

    line 101
  11. Distinctive:

    All changes (excluding agent config) are committed with a descriptive message

    line 103
  12. Distinctive:

    If there are no changes to commit (after excluding agent config dirs), inform the user and stop

    line 110
  13. Very specific:

    If gh CLI is not available, provide the push command and instruct the user to create the PR manually

    line 111
  14. Distinctive:

    If push fails due to conflicts, inform the user and suggest resolution steps

    line 112
  15. Distinctive:

    If the remote doesn't exist, inform the user and stop after the commit

    line 113

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “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

What I do

Automate the full git workflow: update base branch, create feature branch, stage and commit changes, push, and open a PR. You execute ALL steps autonomously without asking the user for confirmation.

When to use me

Use when the user asks to commit, push, create a PR, or get changes into a branch. Trigger on phrases like:

  • "commit and push my changes"
  • "get this into a PR"
  • "push this up and make a PR"
  • "create a pull request"

IMPORTANT: Autonomous execution

You MUST execute all steps below in sequence WITHOUT asking the user for confirmation. Do NOT ask "would you like me to proceed?" or "should I stage these files?". Just do it.

IMPORTANT: What counts as changes

  • Changes include: any modified tracked files AND any untracked files (new files not yet in git)
  • Changes EXCLUDE: agent/skill configuration directories (.opencode/, .claude/, .codex/)
  • When staging files, stage ALL changed files EXCEPT those in agent config directories
  • If the user mentions specific files, prioritize those but also include other changes

Steps

Execute these steps in order. Do not stop or ask for confirmation between steps.

Step 1: Detect the base branch

git remote show origin | grep 'HEAD branch' | awk '{print $NF}'

Fall back to main if detection fails or no remote exists.

Step 2: Fetch and update the base branch

git fetch origin
git checkout <base-branch>
git pull origin <base-branch>

Step 3: Identify changes to commit

Run git status to find all modified and untracked files. Filter out agent config directories:

  • Ignore anything under .opencode/
  • Ignore anything under .claude/
  • Ignore anything under .codex/

If after filtering there are NO changes (no modified files, no untracked files outside agent config dirs), then inform the user "No changes to commit" and STOP. Do not proceed.

Step 4: Create a new feature branch

Generate a descriptive branch name from the changes or user request:

  • Use feature/<descriptive-name> for new features
  • Use fix/<descriptive-name> for bug fixes
git checkout -b <branch-name>

Step 5: Stage and commit changes

Stage all changed files (modified + untracked), excluding agent config directories:

git add <files>
git commit -m "<type>: <description>"
  • Use conventional commit format: feat:, fix:, chore:, etc.
  • Write a clear, descriptive commit message based on the changes

Step 6: Push to remote

git push -u origin <branch-name>

Step 7: Create a pull request

gh pr create --base <base-branch> --title "<PR title>" --body "<PR description>"
  • The PR title should match the commit message
  • The PR body should summarize the changes
  • Report the PR URL back to the user

Definition of done

All of these must be true:

  • A new feature branch was created based on the latest base branch
  • All changes (excluding agent config) are committed with a descriptive message
  • Branch is pushed to the remote with git push
  • A PR is created targeting the base branch via gh pr create
  • The PR URL is reported back to the user

Error handling

  • If there are no changes to commit (after excluding agent config dirs), inform the user and stop
  • If gh CLI is not available, provide the push command and instruct the user to create the PR manually
  • If push fails due to conflicts, inform the user and suggest resolution steps
  • If the remote doesn't exist, inform the user and stop after the commit

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.