All skills
asyrafhussin avatar

/git-workflow

@b02a263

Git best practices, branching strategies, commit conventions, and PR workflows. Use when reviewing git history, writing commits, setting up branching strategy, or improving git practices. Triggers on "git best practices", "commit message", "branching strategy", or "PR workflow".

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/git-workflow

This session only. Nothing lands on disk.

rulespr-description-template.md

≈861 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PR Description Template

Use a consistent, informative template for pull request descriptions to aid reviewers and document changes.

Bad Example

# No description
gh pr create --title "fix stuff"
# Body: (empty)

# Minimal unhelpful description
gh pr create --title "Update code" --body "Made some changes"

# Just restating the title
gh pr create --title "Add login feature" --body "This PR adds a login feature"

# Technical without context
gh pr create --title "Refactor auth" --body "
Changed AuthService.ts
Modified UserController.js
Updated tests
"

Good Example

gh pr create --title "feat: add two-factor authentication" --body "$(cat <<'EOF'
## Summary
Implements TOTP-based two-factor authentication for user accounts, addressing security requirements from the Q4 audit.

## Changes
- Add TOTP secret generation and verification in AuthService
- Create 2FA setup flow with QR code display
- Add backup codes generation and storage
- Update login flow to prompt for 2FA when enabled

## Testing
- [ ] Manual testing of setup flow completed
- [ ] Verified QR codes work with Google Authenticator
- [ ] Tested backup code usage
- [ ] Unit tests added for TOTP verification

## Screenshots
![2FA Setup Screen](url-to-screenshot)

## Related
- Closes #234
- Depends on #230 (merged)
- Security audit: AUDIT-2024-15

## Notes for Reviewers
- The TOTP library choice is discussed in #220
- Backup codes are hashed, not encrypted (intentional)
- Please verify the rate limiting logic in AuthService.ts:45-60
EOF
)"

# Bug fix template
gh pr create --title "fix: resolve payment timeout on slow connections" --body "$(cat <<'EOF'
## Problem
Users on slow connections (>500ms latency) experience payment failures due to API timeout.

## Root Cause
The payment gateway timeout was set to 5 seconds, but slow connections need 10-15 seconds for round-trip.

## Solution
- Increase timeout to 30 seconds for payment endpoints
- Add retry logic with exponential backoff
- Show loading indicator during processing

## Testing
- Tested with network throttling (3G, slow 3G)
- Verified no regression on fast connections
- Added integration test for timeout scenarios

## Fixes
Closes #567
EOF
)"

Why

Good PR descriptions improve the entire development process:

  1. Context for Reviewers: Understand WHY before reviewing HOW
  2. Documentation: PR descriptions become part of project history
  3. Self-Review: Writing forces you to think through your changes
  4. Onboarding: New team members learn from well-documented PRs
  5. Debugging Aid: Future investigators find context for changes

Recommended template sections:

## Summary
Brief description of what this PR does and why.

## Changes
- Bullet list of significant changes
- Focus on what's notable for reviewers

## Testing
How was this tested? Include manual and automated testing.

## Screenshots/Videos
For UI changes, include before/after screenshots.

## Related
- Links to issues, other PRs, documentation
- Dependencies or blockers

## Notes for Reviewers
- Areas that need extra attention
- Questions or uncertainties
- Non-obvious decisions

Store template in .github/PULL_REQUEST_TEMPLATE.md to auto-populate.

Source: SKILL.md on GitHub

1 alert16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides a comprehensive and secure set of guidelines for managing Git workflows, including commit message standards, branching strategies, and pull request best practices. It promotes industry-standard tools and safety measures, such as protected branches and automated linting, with no malicious patterns detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    19/32 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at b02a263. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago
metadata
{
  "author": "AsyrafHussin",
  "version": "1.2.0"
}

README badge

README badge for asyrafhussin/agent-skills/git-workflow