Skip to content
Development
Command

/pre-pr

Run complete validation workflow before creating PR

From plugin
safe-agentic-workflow
42924 skills11 agents24 commands
$ npx -y skills add bybren-llc/safe-agentic-workflow --agent claude-code

Command definition

pre-pr.md
description: Run complete validation workflow before creating PR
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob]

> **📋 TEMPLATE**: This command is a template. See "Customization Guide" below to adapt for your infrastructure.

You are preparing to create a Pull Request. Execute the MANDATORY @CONTRIBUTING.md validation workflow:

Validation Checklist

1. Code Quality Validation

Run CI validation suite:

yarn ci:validate

This runs:

  • TypeScript type checking
  • ESLint validation
  • Unit tests
  • Format checking

**BLOCKER**: Must pass before proceeding. Fix any failures.

2. Documentation Linting

Auto-fix markdown formatting:

yarn lint:md:fix

Verify no errors remain:

yarn lint:md

3. Git Status Check

Verify all changes committed:

git status

**BLOCKER**: No uncommitted changes allowed in PR.

4. Rebase onto Latest Dev

Fetch and rebase:

git fetch origin
git rebase origin/dev

**BLOCKER**: Must be up-to-date with dev branch.

5. Commit Message Validation

Check all commits follow SAFe format:

git log origin/dev..HEAD --oneline

**Required format**: `type(scope): description [{{TICKET_PREFIX}}-XXX]`

**BLOCKER**: All commits must reference Linear ticket.

6. Documentation Updates

Verify related docs updated:

  • [ ] CLAUDE.md (if architecture/workflow changed)
  • [ ] CONTRIBUTING.md (if process changed)
  • [ ] Specialized docs (feature-specific)

7. PR Template Ready

Confirm you can fill out ALL sections:

  • 📋 Summary with Linear ticket link
  • 🎯 Changes Made
  • 🧪 Testing
  • 📊 Impact Analysis
  • 🔄 Multi-Team Coordination
  • ✅ Pre-merge Checklist

Workflow

Execute steps 1-6 in order.

Report results for each step:

  • ✅ PASS: Step completed successfully
  • ⚠️ WARNING: Non-blocking issue found
  • ❌ BLOCKER: Must fix before PR

Success Criteria

All validation steps pass. Ready to create PR with:

git push --force-with-lease origin {branch-name}
gh pr create --title "..." --body "..."

Report final status and any remaining blockers.

Customization Guide

To adapt this command for your infrastructure, replace these placeholders:

| Placeholder | Description | Example | | ----------------- | ------------------------- | --------------------- | | `{{TICKET_PREFIX}}` | Your Linear ticket prefix | `WOR`, `PROJ`, `TASK` |

Read more
@bybren-llc
Ships withsafe-agentic-workflow

SAW — SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!) Works for any team with repeatable processes: Software, Marketing, Research, Legal, Operations.

42920 skills11 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
429
Star history of bybren-llc/safe-agentic-workflow on GitHub, a chart by star-history.com

Other commands on safe-agentic-workflow.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command