/pre-pr
Run complete validation workflow before creating PR
$ npx -y skills add bybren-llc/safe-agentic-workflow --agent claude-codeHow 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.mddescription: 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
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` |
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.
Other commands on safe-agentic-workflow.
- /audit-deps
Run comprehensive dependency audit
Open command - /check-docker-status
Check if {{DEV_MACHINE}} Docker environment needs updating
Open command - /check-workflow
Quick status check of current workflow state
Open command - /deploy-dev
Deploy latest Docker image to {{DEV_MACHINE}} dev environment
Open command - /dev-health
Check {{DEV_MACHINE}} dev environment health dashboard
Open command - /dev-logs
View {{DEV_MACHINE}} dev container logs
Open command

