git-workflow

Guides the ordered use of slash commands for branching, committing, syncing, and opening pull requests.

Updated Aug 8, 2026
One-click install
npx skills add https://github.com/harperaa/testa2 --skill git-workflow-harperaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow
Source: https://github.com/harperaa/testa2/tree/main/.claude/skills/git-workflow
Command: npx skills add https://github.com/harperaa/testa2 --skill git-workflow-harperaa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers on this repo often lose track of which slash command comes next when moving from starting a feature to opening a pull request, or risk unsafe rebases on shared branches. This Skill documents the exact end-to-end branch workflow so every step happens in the right order. ## Core Features & Use Cases - Everyday Workflow: Chains /create-feature-branch, /commit, /push, /security-assessment, and /create-pull-request into a clear sequence from feature start to PR. - Mid-Task Parking: Explains how to use /stash-push and /stash-pop to set work aside and resume it later. - Branch Synchronization: Clarifies when to rebase a personal feature branch with /sync-feature-branch versus merging main into the shared testing branch with /sync-testing-branch. - Use Case: You start a new login feature, commit and push to get a preview URL, run a security assessment, and open a PR — all by following the documented command order without guessing. ## Quick Start Ask the assistant to walk you through the git workflow for starting a new feature branch and opening a pull request in this repo.

Frequently Asked Questions about git-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start a new feature and open a pull request in this repo?

Run /create-feature-branch with a branch name, write your code, then run /commit, /push, /security-assessment, and finally /create-pull-request. The commands are designed to chain in that exact order.

How do I pause work mid-task and resume it later with git?

Use /stash-push to park your uncommitted changes, do whatever else you need, then run /stash-pop to restore the changes and continue where you left off.

When should I rebase versus merge to update a branch with main?

Use /sync-feature-branch to rebase only on personal branches nobody else has checked out, since it force-pushes. For the shared testing branch, use /sync-testing-branch, which merges main instead of rebasing.

Why is force-pushing unsafe on the shared testing branch?

Force-pushing rewrites history that other developers may have based work on, breaking their local branches. That is why the testing branch uses merge-based syncing while rebase is reserved for personal branches.

What should I run before opening a pull request?

Run /security-assessment after testing your changes on the preview URL from /push. This assesses the branch for security issues before /create-pull-request opens the PR for review.