commit-smart
Create smart commit with quality checks and conventional format
Create pull request with proper validation
How it fires
How this command gets triggered: by you, by Claude, or both.
/create-prContext preview
What this command does when you run it.
Create pull request with proper validation
title: /create-pr description: Create pull request with proper validation
You are helping the user create a pull request that follows ClaudeForge conventions.
1. **Detect Current Branch**
CURRENT_BRANCH=$(git branch --show-current) echo "Current branch: $CURRENT_BRANCH"
2. **Determine Target Branch**
3. **Validate Branch Name**
git branch -m feature/new-name
4. **Check for Uncommitted Changes**
git status --short
5. **Push Branch** (if needed)
git push -u origin $CURRENT_BRANCH
6. **Generate PR Title**
7. **Generate PR Description**
Use PR template format:
## Description [Describe changes] ## Type of Change - [x] [Selected type] ## Related Issues Closes #[issue number] ## Changes Made - Change 1 - Change 2 ## Testing Performed - [x] Tested installation - [x] Tested slash command ...
8. **Create PR**
gh pr create \
--base [target branch] \
--title "[PR title]" \
--body "[PR description]"Or for draft:
gh pr create --draft \
--base [target branch] \
--title "[PR title]" \
--body "[PR description]"9. **Post-Creation**
Before creating PR, verify:
**Feature PR to dev:**
gh pr create \ --base dev \ --title "feat(skill): add Rust template support" \ --body "## Description Adds Rust project template with Cargo.toml detection and appropriate CLAUDE.md generation. ## Type of Change - [x] New feature ## Related Issues Closes #42 ## Changes Made - Add Rust template in skill/examples/ - Update template_selector.py with Rust detection - Add Rust-specific validation rules ## Testing Performed - [x] Tested on sample Rust project - [x] Validated template output - [x] Python syntax checks pass"
**Release PR (dev to main):**
gh pr create \ --base main \ --title "release: v1.1.0" \ --body "## Description Release version 1.1.0 with new features and bug fixes. ## Changes in This Release - feat(skill): Rust template support - feat(installer): Windows improvements - fix(skill): Template selection bugs - docs: Updated installation guide ## Related Issues Closes #42, #45, #48 ## CHANGELOG See CHANGELOG.md for full details. ## Testing - [x] All quality gates pass - [x] Tested installation on macOS, Linux, Windows - [x] Tested all new features"
**PR to dev:**
**PR to main:**
Show user: 1. PR URL 2. Workflow status link 3. Next steps (wait for CI, request review) 4. Link to relevant docs (GITHUB_WORKFLOWS.md, BRANCHING_STRATEGY.md)
Provide clear guidance and actual commands user can run.
Automated CLAUDE.md creation, enhancement, and maintenance for Claude Code projects ClaudeForge is a comprehensive toolkit that eliminates the tedious process of manually creating and maintaining CLAUDE.md files.
Repo: alirezarezvani/ClaudeForge
Create smart commit with quality checks and conventional format