Skip to content

GitHub skill: add branch naming, commit/PR guidelines, and multi-phase workflow #165

Closed as not planned

Description

@sentry-junior

Summary

The GitHub skill's commit and PR workflows lack depth: they don't enforce branch naming conventions, don't incorporate pr-writer/commit message guidelines, and jump straight to creating the changeset without a structured analysis phase. This ticket adds those gaps.

Background

The GitHub skill (skills/github) currently handles PR creation and commits without:

  • Branch naming rules (e.g. prefix/short-description conventions)
  • PR title/body guidelines from the project's pr-writer standards
  • Commit message conventions (type, scope, subject line length, etc.)
  • A multi-phase workflow that forces planning before execution

As a result, agents using the skill produce inconsistently named branches and under-specified commits/PRs.

Scope

In scope:

  • Add branch naming conventions to the skill's reference files or instructions
  • Incorporate pr-writer/commit message guidelines (sourced from the junior repo's existing standards) into the skill
  • Restructure the PR and commit workflows into a mandatory multi-phase sequence:
    1. Analyze — understand the task, inspect relevant code, identify affected files
    2. Plan — produce a concrete implementation plan before touching any code
    3. Execute — implement the plan
    4. Verify — confirm the implementation matches the plan and passes checks
    5. Changeset — create the branch, commit(s), and PR only after verification

Out of scope:

  • Changes to non-GitHub skills
  • Enforcing branch naming on pre-existing branches

Implementation

  • Audit skills/github/ reference files for existing PR/commit guidance
  • Pull branch naming and commit/PR message conventions from the junior repo's pr-writer guidelines (or document them if not yet formalized)
  • Add a references/branch-naming.md and references/pr-commit-guidelines.md (or equivalent) to the skill
  • Update SKILL.md to reference the new files and enforce the multi-phase workflow ordering for any operation that produces commits or PRs
  • Add a guardrail: agents must not call gh pr create or git commit until the Verify phase is complete

Dependencies

  • Existing pr-writer/commit message standards in getsentry/junior (source of truth for guidelines)

Action taken on behalf of David Cramer.

Activity

  1. dcramer commented on Apr 7, 2026

    @dcramer
    Member

    actually going ot just put a code-change skill in junior-prod for now. We could maybe backport it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions