agentleFS
transilienceaitransilienceai/communitytools/skills/github-workflow/SKILL.md

github-workflow

Skill555 starsChanged 8 months agoMITView on GitHub

GitHub workflow automation — branching, committing, pushing, pull requests, issues, and code review. Use when asked to commit, push, create PRs/branches/issues, or manage git workflow.

  • Reads credentials
  • Commits and pushes

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Check repo state: git status, git branch, git log --oneline -5

    line 13
  2. Distinctive:

    Always branch from up-to-date main

    line 28
  3. Very specific:

    Use conventional naming: feature/add-jwt-testing, bugfix/fix-port-detection

    line 29
  4. Very specific:

    Never commit .env, credentials, or secrets

    line 42
  5. Distinctive:

    Never force-push to main/master without explicit user approval

    line 54
  6. Distinctive:

    If push is rejected, git pull --rebase first

    line 55
  7. Very specific:

    Always link to issue: Fixes #N or Closes #N

    line 74
  8. Very specific:

    NEVER: commit secrets, .env files, or credentials

    line 114
  9. Distinctive:

    NEVER: use git add -A without reviewing what's staged

    line 115
  10. Very specific:

    ALWAYS: use conventional commit format: type(scope): description

    line 118
  11. Distinctive:

    ALWAYS: check git status before committing

    line 120
  12. Distinctive:

    ALWAYS: create branches from up-to-date main

    line 122

“Common” is measured: kept by at least 6 in 10 of the 7 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

GitHub Workflow

Automate the full GitHub development lifecycle: branches, commits, pushes, PRs, issues, and code review.

Quick Start

  1. User requests a git action (commit, PR, branch, push, issue)
  2. Check repo state: git status, git branch, git log --oneline -5
  3. Execute the appropriate workflow below
  4. Confirm result to user

Workflows

1. Branching

# Create feature branch from main
git checkout main && git pull origin main
git checkout -b <type>/<name>
# Types: feature/, bugfix/, docs/, refactor/, test/, chore/
  • Always branch from up-to-date main
  • Use conventional naming: feature/add-jwt-testing, bugfix/fix-port-detection

2. Committing

# Stage specific files (never git add -A blindly)
git add <file1> <file2>
# Commit with conventional format
git commit -m "type(scope): description"
  • Types: feat, fix, docs, refactor, test, chore
  • Message focuses on why, not what
  • Never commit .env, credentials, or secrets
  • See reference/commit-conventions.md

3. Pushing

# First push (set upstream)
git push -u origin <branch-name>
# Subsequent pushes
git push
  • Never force-push to main/master without explicit user approval
  • If push is rejected, git pull --rebase first

4. Pull Requests

# Create PR linking to issue
gh pr create --title "Short title < 70 chars" --body "$(cat <<'EOF'
## Summary
- What changed and why

## Test plan
- [ ] How to verify

Fixes #<issue-number>
EOF
)"
  • Title < 70 chars, details in body
  • Always link to issue: Fixes #N or Closes #N
  • See reference/pr-workflow.md

5. Issues

gh issue create --title "type: description" --body "$(cat <<'EOF'
## Problem
What needs to change

## Proposed solution
How to fix it

## Acceptance criteria
- [ ] Criteria 1
EOF
)"

6. Code Review

# Review a PR
gh pr view <number>
gh pr diff <number>
gh pr checks <number>
# Comment or approve
gh pr review <number> --approve
gh pr review <number> --comment --body "feedback"

Reference

  • commit-conventions.md — Commit message format and examples
  • pr-workflow.md — PR creation, review, and merge workflow
  • branch-strategy.md — Branching model and naming conventions

Critical Rules

  • NEVER force-push to main/master without explicit user approval
  • NEVER commit secrets, .env files, or credentials
  • NEVER use git add -A without reviewing what's staged
  • NEVER skip pre-commit hooks (--no-verify) unless user explicitly asks
  • NEVER amend published commits — create new commits instead
  • ALWAYS use conventional commit format: type(scope): description
  • ALWAYS link PRs to issues
  • ALWAYS check git status before committing
  • ALWAYS pull before pushing to avoid conflicts
  • ALWAYS create branches from up-to-date main

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.