Skip to main content

github-flow

Execute Git and GitHub operations using the repository's documented conventions for commits, issues, pull requests, and merging.

Source facts

Repository
ehuerta6/cappy-hub
Last source activity
October 17, 2026 at 16:25
Detected SKILL.md language
English
Stars
2
Forks
2

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
github-flow
description
Execute Git and GitHub operations using the repository's documented conventions for commits, issues, pull requests, and merging.
# GitHub flow Use this skill when performing Git or GitHub workflow operations. For Cappy Hub, use `docs/development-workflow.md`, `docs/pull-requests.md`, `docs/contributing.md`, and `AGENTS.md` for the actual repository procedures. This skill guides applying those procedures; its defaults apply only when the project documentation does not establish a convention. Start with the target repository's `AGENTS.md`, Git documentation, and observed configuration/history. Project-specific instructions and conventions take precedence. Load the canonical `rules/github.md` or a project-adopted copy when accessible; an individual skill installation may not include that separate file. When no repository convention can be established, use these **self-contained defaults** from the canonical GitHub rule: - For collaborative work, prefer a short-lived branch from the latest intended target (commonly `main`), with a `feat/`, `fix/`, `docs/`, `refactor/`, `chore/`, or `ci/` prefix when useful. - Use Conventional Commit-style messages when the project supplies no convention; keep one logical change per commit/PR. - Link implementing PRs to issues with `Closes #<number>` when applicable, and describe the problem, change, verification, and material limitations without copying the issue wholesale. - Report only actually executed checks, distinguishing passed, failed, skipped, and unavailable. Verify the current PR head and required checks before merge. - Prefer squash merge in collaborative repositories unless the project's workflow says otherwise. **Never infer merge authorization** from CI, reviews, or prior PRs. - Protect credentials, tokens, private keys, and local environment files; do not commit them or accidental generated/editor files. State unknown required checks or merge preferences rather than inventing them. Explicit project conventions always override these defaults. ## Process ### 1. Inspect repository conventions Before acting, determine: - target branch; - whether direct work on the target branch is allowed; - branch naming requirements; - commit conventions; - required checks; - PR requirements; - merge strategy. Do not assume every repository uses the same flow. ### 2. Prepare the change Follow the repository's configured workflow. Keep the change focused on one logical unit. Inspect `git status` before switching branches or preparing a worktree. If the checkout is stale, update from the intended base using repository conventions. Preserve uncommitted and untracked changes; use an isolated worktree when switching or cleaning could put them at risk. Never use destructive reset/clean commands without authorization. When using a branch, start from the latest intended base. For independent parallel work, prefer separate branches and worktrees when supported and useful; assign distinct issue and file ownership, and serialize work that shares a working directory or has risky overlap. Use the target repository's own integration conventions after dependencies merge. ### 3. Commit Use the repository's commit convention. When none exists, use the minimal safe guidance above and report any unknown repository requirements. Before committing: - inspect staged changes; - remove accidental files; - confirm no secrets are included. ### 4. Prepare the PR When a PR is part of the repository workflow: - inspect the complete diff; - confirm the PR's current head SHA, effective changed-file diff, and target branch; distinguish the PR's recorded base SHA from the current target tip; - verify acceptance criteria; - run relevant checks; - use the project's PR template when available; otherwise include a short summary, observed checks, material decisions/limitations, and an issue reference when applicable; - link the implementation issue. Report checks only for the exact revision they evaluated. Do not reuse earlier results after the head changes; refresh the verification summary and PR description when needed. If `verify-change` is installed, use it for fuller evidence; otherwise report actual passed, failed, skipped and unavailable checks and the remaining risk directly. Do not assume a sibling skill is installed. ### 5. Merge Use the repository's configured merge strategy. Do not merge unless the user or repository workflow grants that authority. Clean up temporary branches when appropriate. ## Completion GitHub workflow work is complete when: - the change is in the correct place; - commit history follows project conventions; - verification claims are accurate; - issue and PR relationships are preserved; - no unintended files or secrets were included.
View on GitHub