Agent skill
github-scrum-flow
Unified expert for Project Management (Scrum/Agile) and GitHub Flow enforcement. Use this skill for track orchestration, backlog hygiene, GitHub Issue synchronization, branch management, and enforcing git best practices.
Install this agent skill to your Project
npx add-skill https://github.com/gabeosx/agent-skills/tree/main/skills/github-scrum-flow
SKILL.md
GitHub Scrum Flow
Overview
This skill consolidates the responsibilities of a Scrum Master and Release Manager. It is the single source of truth for:
- Project Orchestration: Synchronizing
plan.mdtracks with GitHub Issues. - Git Hygiene: Enforcing strict branching, commit, and merging standards.
- Status Reporting: Managing the lifecycle of tasks via the
ghCLI.
Core Mandates
1. The "Golden Thread" (Issue <-> Track <-> Branch)
Every unit of work must trace back to a source of truth:
- GitHub Issue: The stakeholder view (What & Why).
- Conductor Track (
plan.md): The engineering view (How). - Git Branch: The implementation workspace.
Rule: You generally do not start coding without a Branch, and you do not start a Branch without a plan item (and ideally a linked Issue).
2. GitHub Flow Enforcement
- No Direct Commits or Merges to Main:
mainis sacred and deployable. The agent MUST NOT merge branches tomainlocally. All code must go through a Pull Request. - PR-First Workflow: Every track or significant change requires a Pull Request created via
gh pr create. - Short-Lived Branches: Branches should live for hours or days, not weeks.
- Atomic Commits: One logical change per commit.
- Strict Naming: Branches and commits must follow conventions.
3. Professional Visibility
- Updates to GitHub Issues must be concise, professional, and frequent enough to show heartbeat, but not noisy.
- Use
ghCLI for all issue interactions to ensure audit trails.
Procedures
Phase 1: Initialization (Start of Task/Track)
Trigger: When starting a new track or task from plan.md.
- Sync with GitHub Issue:
- If a track corresponds to a GitHub Issue, post the plan summary.
gh issue comment <issue_id> --body "Starting work on Track <track_id>. Plan summary: ..."
- Establish Context:
- Ensure your local
mainis up to date:git checkout main && git pull origin main
- Ensure your local
- Create Branch:
- Name format:
<type>/<short-description>-<issue_id> - Types:
feat: New featuresfix: Bug fixeschore: Maintenance/Configrefactor: Code restructuringdocs: Documentationtest: Adding tests
- Example:
git checkout -b feat/inventory-ledger-123
- Name format:
Phase 2: Implementation (The Loop)
Trigger: During active coding.
- Scope Management:
- If work drifts outside the branch name's scope (e.g., fixing a UI bug while in
feat/api-auth), STOP. - Stash changes, switch to main, create a new
fix/...branch, or log it as a new task.
- If work drifts outside the branch name's scope (e.g., fixing a UI bug while in
- Status Updates:
- Post to GitHub Issue on: Blockers, Major Architectural Decisions, or Phase Completion.
gh issue comment <issue_id> --body "Update: [Topic]. Summary: ..."
- Commit Protocol:
- Stage only relevant files.
- Format:
type(scope): description(e.g.,feat(auth): implement jwt validation).
Phase 3: Verification & Closure
Trigger: When a task or track is marked [x].
- Final Verification:
- Ensure all tests pass.
- Ensure
pnpm lintandpnpm type-checkpass.
- Pull Request Submission:
- MANDATORY: Push the branch and create a PR. Do NOT merge locally.
bash
git push origin <branch_name> gh pr create --title "Track <track_id>: <Title>" --body "Closes #<issue_id>. Verification: [Evidence]"
- MANDATORY: Push the branch and create a PR. Do NOT merge locally.
- Issue Handover:
- Inform the user that the PR is ready for review and merge.
- Do NOT delete the branch until the PR is merged (usually by the user or CI).
Reference: CLI Cheatsheet
GitHub (gh)
- List Issues:
gh issue list - View Issue:
gh issue view <id> - Comment:
gh issue comment <id> --body "..." - Close:
gh issue close <id> - Create PR:
gh pr create --title "..." --body "..."
Git
- New Branch:
git checkout -b <name> - Delete Branch:
git branch -d <name> - Log (One Line):
git log --oneline -n 10 - Status:
git status
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
apple-container-skill
Interact with the Apple Container CLI to manage containers, images, volumes, networks, and system services on macOS. Use this skill when the user asks to run, build, or inspect containers or manage the container runtime.
devcontainer-helper
Use this skill when the user asks to create, configure, update, or explain a `devcontainer.json` file or development container environment.
ux-designer
Expert UX/UI design assistant based on the "Refactoring UI" philosophy (by Wathan & Schoger). Enforces logic-based design, strict hierarchy, and "buildable" visual systems. Use for converting requirements into professional, high-fidelity specs.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
Didn't find tool you were looking for?