Finalize
Usage
code
/finalize [commit-message] [--skip-docs] [--skip-lint] [--skip-types] [--skip-build] [--dry-run] [--no-push]
Workflow Pipeline
- •Update documentation (.md files) with latest changes
- •Detect Next.js version from package.json
- •If Next.js < 16: Run
bun lintfor code quality validation - •Run
bun typefor TypeScript type checking - •Run
bun buildfor compilation verification - •Generate structured commit message if not provided
- •Git add, commit, and push if all gates pass
Note: Next.js 16+ removed
next lint. The command auto-detects the version and skips linting for Next.js 16+.
Auto-Persona Activation
- •DevOps: Infrastructure and deployment automation
- •QA: Quality assurance and testing validation
- •Scribe: Professional commit message generation
MCP Integration
- •Sequential: Workflow coordination and systematic validation
- •Context7: Best practices and commit message patterns
Arguments
- •
[commit-message]- Custom commit message (optional) - •
--skip-docs- Skip documentation updates - •
--skip-lint- Skip linting validation (only applies to Next.js < 16) - •
--skip-types- Skip TypeScript type checking - •
--skip-build- Skip build verification - •
--dry-run- Show what would be done without executing - •
--no-push- Commit locally but don't push to remote
Examples
bash
# Full workflow with custom message /finalize "feat: add user authentication system" # Skip some steps /finalize --skip-docs --skip-build # Dry run to see what would happen /finalize --dry-run # Commit locally only /finalize "fix: resolve login bug" --no-push
Perfect for automating the repetitive "document + lint + build + commit + push" workflow you mentioned!