agentleFS
bybren-llcbybren-llc/safe-agentic-workflow/.claude/skills/release-patterns/SKILL.md

release-patterns

Skill419 starsChanged 4 months agoMITView on GitHub

PR creation, CI/CD validation, and release coordination patterns. Use when creating pull requests, running pre-PR validation, checking CI status, or coordinating merges.

  • Deletes or force-pushes
  • Commits and pushes

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ensure consistent PR creation, CI/CD validation, and release coordination following rebase-first workflow.

    line 13
  2. Distinctive:

    Before creating any PR:

    line 63
  3. Distinctive:

    ONLY: use rebase merge:

    line 114
  4. Distinctive:

    Before merging any PR, invoke QAS for independent review:

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release Patterns Skill

Purpose

Ensure consistent PR creation, CI/CD validation, and release coordination following rebase-first workflow.

When This Skill Applies

Invoke this skill when:

  • Creating pull requests
  • Running pre-PR validation (yarn ci:validate)
  • Checking CI/CD status
  • Coordinating merge timing
  • Verifying rebase status

Stop-the-Line Conditions

FORBIDDEN Patterns

# FORBIDDEN: Missing ticket reference
gh pr create --title "feat: add feature"  # Missing [{{TICKET_PREFIX}}-XXX]

# FORBIDDEN: Using squash/merge commits
gh pr merge --squash  # Breaks linear history
gh pr merge --merge   # Creates merge commit

# FORBIDDEN: Skipping CI validation
git push origin feature  # Without yarn ci:validate first

# FORBIDDEN: Pushing without rebase
git push origin feature  # When branch is behind dev

CORRECT Patterns

# CORRECT: Ticket reference in title
gh pr create --title "feat(scope): description [{{TICKET_PREFIX}}-XXX]"

# CORRECT: Rebase merge only
gh pr merge --rebase --delete-branch

# CORRECT: CI validation before push
yarn ci:validate && git push --force-with-lease

# CORRECT: Always rebase first
git fetch origin && git rebase origin/dev
git push --force-with-lease origin {{TICKET_PREFIX}}-XXX-description

Pre-PR Checklist (MANDATORY)

Before creating any PR:

  • Branch name: {{TICKET_PREFIX}}-{number}-{description}
  • Commits follow: type(scope): description [{{TICKET_PREFIX}}-XXX]
  • Rebased on latest dev: git fetch origin && git rebase origin/dev
  • CI passes locally: yarn ci:validate
  • Linear history: No merge commits (git log --oneline --graph -10)

CI/CD Validation Command

# MANDATORY before any PR
yarn ci:validate && echo "READY FOR PR" || echo "FIX ISSUES FIRST"

PR Creation Template

gh pr create --title "feat(scope): description [{{TICKET_PREFIX}}-XXX]" --body "$(cat <<'EOF'
## Summary

Implements [feature/fix] as specified in Linear ticket {{TICKET_PREFIX}}-XXX.

**Linear Ticket**: https://linear.app/{{LINEAR_WORKSPACE}}/issue/{{TICKET_PREFIX}}-XXX

## Changes Made

- Change 1
- Change 2

## Testing

```bash
yarn ci:validate
# All checks passed

Pre-merge Checklist

  • Rebased on latest dev
  • CI passes
  • Linear ticket referenced

🤖 Generated with Claude Code EOF )"


## Merge Strategy

**ONLY** use rebase merge:

```bash
# CORRECT
gh pr merge --rebase --delete-branch

# NEVER
gh pr merge --squash   # Loses commit history
gh pr merge --merge    # Creates merge commits

QAS Gate (MANDATORY)

Before merging any PR, invoke QAS for independent review:

Task tool: QAS subagent
Prompt: "Review PR #XXX for {{TICKET_PREFIX}}-YYY. Validate commit format, CI status, patterns."

Authoritative References

  • PR Template: .github/pull_request_template.md
  • Workflow Guide: CONTRIBUTING.md (Pull Request Process section)
  • CI/CD Pipeline: docs/CI-CD-Pipeline-Guide.md
  • Agent Workflow SOP: docs/sop/AGENT_WORKFLOW_SOP.md (3-stage review chain)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.