From nation-of-elites
Complete PR workflow - runs tests, linting, security scan, simplification, then commits, pushes, creates PR with comments, and optionally creates a release. Use after completing feature implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nation-of-elites:pr-readyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Complete pre-PR checklist with automated git operations.
Complete pre-PR checklist with automated git operations.
# Auto-detect and run test suite
npm test || yarn test || pnpm test || pytest || go test ./... || bundle exec rspec || cargo test
# Auto-detect and run linter
npm run lint || yarn lint || ruff check . || golangci-lint run || rubocop || cargo clippy
# TypeScript/Python type checking
npx tsc --noEmit || mypy . || pyright
Run Semgrep SAST scan (if available):
semgrep scan --config auto --error .
Check for:
npm audit / pip-audit)Delegate the behavior-preserving cleanup and the severity-rated review to the dedicated reasoning skill instead of inlining the checklist:
/pipeline-review
This runs Pass 1 (simplification: reuse, redundancy, naming, efficiency — tests still pass) and Pass 2 (review: correctness, security, error handling, performance, maintainability via the code-reviewer agent). Any 🔴 Critical / 🟠 High finding blocks the PR until resolved.
git status
git diff --stat
git add -p # Interactive staging (or specific files)
git commit -m "$(cat <<'EOF'
feat(scope): Brief description of change
- Detail 1
- Detail 2
Co-Authored-By: Claude <[email protected]>
EOF
)"
Follow conventional commits:
feat: - New featurefix: - Bug fixdocs: - Documentationrefactor: - Code refactoringtest: - Adding testschore: - Maintenancegit push origin HEAD
# Or create new branch and push
git checkout -b feature/branch-name
git push -u origin feature/branch-name
gh pr create \
--title "feat(scope): Brief description" \
--body "$(cat <<'EOF'
## Summary
[1-3 bullet points describing the change]
## Changes
- [List of specific changes]
## Test Plan
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Manual testing completed
## Screenshots (if UI changes)
[Add screenshots if applicable]
---
🤖 Generated with [Claude Code](https://claude.ai/code)
EOF
)"
# Add review comments for specific lines
gh pr comment --body "Note: This section handles edge case X"
# Request reviewers
gh pr edit --add-reviewer username1,username2
Only if user requests release:
# Bump version (detect package manager)
npm version patch|minor|major || poetry version patch|minor|major
# Create git tag
git tag -a v1.2.3 -m "Release v1.2.3: Brief description"
git push --tags
# Create GitHub release
gh release create v1.2.3 \
--title "v1.2.3" \
--notes "$(cat <<'EOF'
## What's Changed
- Feature 1
- Fix 2
## Contributors
- @username
**Full Changelog**: https://github.com/owner/repo/compare/v1.2.2...v1.2.3
EOF
)"
## PR Ready Report
### Quality Checks
| Check | Status | Details |
|-------|--------|---------|
| Tests | ✅ PASS | 47/47 passed, 92% coverage |
| Lint | ✅ PASS | 0 errors, 2 warnings (ignored) |
| Types | ✅ PASS | No type errors |
| Security | ✅ PASS | No vulnerabilities |
| Simplify + Review | ✅ PASS | Removed 12 lines; 0 blocking findings (/pipeline-review) |
### Documentation
- [x] Comments adequate
- [x] README current
- [x] CHANGELOG updated
### Git Operations
- **Branch**: feature/user-profile-edit
- **Commits**: 3 new commits
- **Files changed**: 8
- **Insertions**: +247
- **Deletions**: -34
### Pull Request
- **PR URL**: https://github.com/owner/repo/pull/123
- **Title**: feat(profile): Add user profile editing with image upload
- **Reviewers**: @reviewer1, @reviewer2
- **Labels**: enhancement, needs-review
### Release (if created)
- **Version**: v1.2.3
- **Tag**: https://github.com/owner/repo/releases/tag/v1.2.3
---
✅ **PR created successfully!**
The skill will ask for confirmation at key points:
/pr-ready # Full workflow, prompts for release
/pr-ready --no-release # Skip release step
/pr-ready --release minor # Auto-create minor release
/pr-ready --draft # Create draft PR
/pr-ready --reviewer @user # Add specific reviewer
npx claudepluginhub advisely/claude-code-agents-team-nation-of-elites --plugin nation-of-elitesCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.