Skip to content
Development
Command

/pre-pr

Run complete validation workflow before creating PR

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

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/pre-pr

Context preview

What this command does when you run it.

Run complete validation workflow before creating PR

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
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.

Get the whole plugin