Skip to content
Back to skills

Git Workflow

ASecurity

Use before any commit, push, pull request, or release in Megatron.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 4, 2026
developmentgit

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Megatron-HQ/Megatron --skill git-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/megatron-hq-git-workflow/badge)](https://www.skillsdirectory.com/skills/megatron-hq-git-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-workflow
description: Use before any commit, push, pull request, or release in Megatron.
---

# Git workflow

## Branches

- **Work on `staging`**, the default branch. Never push to `main`: it is production, and it receives staging only through a "Promote staging" PR once the changes are final. A person merges that PR.
- **Releases come only from `main`.** `release-check.mjs` refuses a tag whose commit isn't contained in `origin/main`.

## Commits

- **A commit that ships a user-facing feature adds a highlight to the `next` entry** in `src/shared/whats-new.json`, creating the entry if it's absent (4 highlights at most). That entry becomes the What's new card users see after updating. Fixes, CI, docs and refactors leave it alone.

## Release PR

- **The release PR bumps the version with `npm version <x.y.z> --no-git-tag-version`.** Its hook renames `next` to `<x.y.z>`. A release without `next` ships no card. `docs/releases.md` owns the details.

## Push

Before each push, complete applicable local verification. After every push, monitor GitHub Actions for the exact pushed commit SHA and wait for **both** `check (macos-latest)` and `check (windows-latest)` to finish successfully. Do not report the commit/push task complete while either job is queued, running, failed, cancelled, or unverified. Investigate failures, fix and revalidate locally, push the correction, and verify both jobs again. Include the final commit SHA and successful CI run link in the completion report. If CI cannot be checked, state that verification is incomplete.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.