agentleFS
MindrallyMindrally/skills/github-workflow/SKILL.md

github-workflow

Skill275 starsChanged 52 days agoApache-2.0View on GitHub

GitHub best practices for pull requests, code reviews, issues, Actions workflows, and repository management

  • Reads credentials

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use marketing-psychology, copywriting and 4 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.
  • SentrySkill

    marketing-psychology

    When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental models organized for marketing application.

    Also in 3 projects that use this

  • SupabaseSkill

    copywriting

    Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.

    Also in 3 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 13 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 13

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use pull requests for all code changes to enable review and discussion

    line 15
  2. Distinctive:

    Follow security best practices for repository access and secrets

    line 18
  3. Distinctive:

    Document repositories thoroughly with README and contributing guidelines

    line 19
  4. Very specific:

    Use conventional commit style: feat: add user authentication

    line 31
  5. Very specific:

    Use Closes #123 or Fixes #123 to auto-close issues

    line 53
  6. Distinctive:

    Create a base feature branch

    line 60
  7. Distinctive:

    Create subsequent PRs that build on each other

    line 61
  8. Distinctive:

    Keep each PR small and reviewable

    line 63
  9. Distinctive:

    Use prefixes to indicate comment severity:

    line 79
  10. Distinctive:

    All blocking comments addressed

    line 102
  11. Very specific:

    Use secrets for sensitive data

    line 161
  12. Very specific:

    Create .github/ISSUE_TEMPLATE/ with templates:

    line 176
  13. Distinctive:

    Use repository or organization secrets

    line 260
  14. Distinctive:

    Never commit secrets to code

    line 262
  15. Distinctive:

    Use teams for permissions

    line 265
  16. Distinctive:

    Follow principle of least privilege

    line 266
  17. Distinctive:

    Use semantic-release or release-please for automated releases based on conventional commits.

    line 295

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

You are an expert in GitHub workflows, including pull requests, code reviews, GitHub Actions, issue management, and repository best practices.

Core Principles

  • Use pull requests for all code changes to enable review and discussion
  • Automate workflows with GitHub Actions for CI/CD
  • Maintain clear issue tracking and project management
  • Follow security best practices for repository access and secrets
  • Document repositories thoroughly with README and contributing guidelines

Pull Request Best Practices

Creating Effective Pull Requests

  1. Keep PRs small and focused
    • One feature or fix per PR
    • Aim for under 400 lines of changes when possible
    • Split large features into stacked PRs
  2. Write descriptive PR titles
    • Use conventional commit style: feat: add user authentication
    • Be specific about what the PR accomplishes
  3. PR Description Template
    ## Summary
    Brief description of changes and motivation.
    
    ## Changes
    - Bullet points of specific changes made
    
    ## Testing
    - How the changes were tested
    - Steps to reproduce/verify
    
    ## Related Issues
    Closes #123
    
    ## Screenshots (if applicable)
  4. Link related issues
    • Use Closes #123 or Fixes #123 to auto-close issues
    • Reference related issues with #123

Stacked Pull Requests

For complex features, use stacked PRs:

  1. Create a base feature branch
  2. Create subsequent PRs that build on each other
  3. Merge in order from base to top
  4. Keep each PR small and reviewable

Code Review Guidelines

As a Reviewer

  1. Review promptly - Respond within 24 hours when possible
  2. Be constructive - Focus on improvement, not criticism
  3. Ask questions - Seek to understand before suggesting changes
  4. Prioritize feedback:
    • Blocking: Security issues, bugs, breaking changes
    • Important: Performance, maintainability
    • Nice-to-have: Style preferences, minor improvements

Comment Conventions

Use prefixes to indicate comment severity:

  • blocking: Must be addressed before merge
  • suggestion: Recommended improvement
  • question: Seeking clarification
  • nit: Minor style or preference (optional to address)
  • praise: Positive feedback on good code

Example Review Comments

blocking: This SQL query is vulnerable to injection.
Please use parameterized queries.

suggestion: Consider extracting this logic into a separate
function for better testability.

nit: Prefer `const` over `let` here since this value
is never reassigned.

Approval Criteria

  • All blocking comments addressed
  • Tests pass
  • CI/CD checks pass
  • At least one approval from code owner

GitHub Actions

Workflow Best Practices

  1. Use workflow templates
    name: CI
    on:
      push:
        branches: [main]
      pull_request:
        branches: [main]
    
    jobs:
      build:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - name: Setup Node.js
            uses: actions/setup-node@v4
            with:
              node-version: '20'
              cache: 'npm'
          - run: npm ci
          - run: npm test
  2. Cache dependencies
    - uses: actions/cache@v4
      with:
        path: ~/.npm
        key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
  3. Use reusable workflows
    jobs:
      call-workflow:
        uses: ./.github/workflows/reusable.yml
        with:
          environment: production
        secrets: inherit
  4. Set appropriate timeouts
    jobs:
      build:
        timeout-minutes: 10

Security in Actions

  • Use secrets for sensitive data
  • Pin action versions with SHA: uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
  • Limit GITHUB_TOKEN permissions
  • Review third-party actions before use
permissions:
  contents: read
  pull-requests: write

Issue Management

Issue Templates

Create .github/ISSUE_TEMPLATE/ with templates:

Bug Report:

---
name: Bug Report
about: Report a bug
labels: bug
---

## Description
Clear description of the bug.

## Steps to Reproduce
1. Step one
2. Step two

## Expected Behavior
What should happen.

## Actual Behavior
What actually happens.

## Environment
- OS:
- Browser:
- Version:

Feature Request:

---
name: Feature Request
about: Suggest a new feature
labels: enhancement
---

## Problem
Describe the problem this feature would solve.

## Proposed Solution
Describe your proposed solution.

## Alternatives Considered
Other approaches you've considered.

Labels

Use consistent labels:

  • bug, enhancement, documentation
  • good first issue, help wanted
  • priority: high, priority: medium, priority: low
  • status: in progress, status: blocked

Repository Management

Branch Protection Rules

Configure for main branch:

  • Require pull request reviews
  • Require status checks to pass
  • Require conversation resolution
  • Require signed commits (optional)
  • Restrict force pushes

CODEOWNERS File

# .github/CODEOWNERS
* @default-team
/docs/ @docs-team
/src/api/ @backend-team
*.js @frontend-team

Security Best Practices

  1. Enable security features
    • Dependabot alerts and updates
    • Code scanning with CodeQL
    • Secret scanning
  2. Manage secrets properly
    • Use repository or organization secrets
    • Rotate secrets regularly
    • Never commit secrets to code
  3. Access control
    • Use teams for permissions
    • Follow principle of least privilege
    • Audit access regularly

Automation Recommendations

Auto-merge for Dependabot

name: Dependabot auto-merge
on: pull_request

permissions:
  contents: write
  pull-requests: write

jobs:
  dependabot:
    runs-on: ubuntu-latest
    if: github.actor == 'dependabot[bot]'
    steps:
      - name: Auto-merge minor updates
        run: gh pr merge --auto --squash "$PR_URL"
        env:
          PR_URL: ${{ github.event.pull_request.html_url }}
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Release Automation

Use semantic-release or release-please for automated releases based on conventional commits.

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.