How this skill is triggered — by the user, by Claude, or both
Slash command
/flex-workflow:deployThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill creates deployment Pull Requests for QA and Production stages with organized commit summaries.
This skill creates deployment Pull Requests for QA and Production stages with organized commit summaries.
When user types deploy {qa|prod}, extract the stage:
deploy qa → QA deploymentdeploy prod → Production deployment# For QA: today + 2 days
# For Prod: today
# Get current date
CURRENT_DATE=$(date +%Y-%m-%d)
# For QA, add 2 days
QA_DATE=$(date -v+2d +%Y-%m-%d)
# Format: YYYY-MM-DD
# Ensure single-digit dates have leading zero (already handled by date format)
Date formatting for PR title:
v2.{year}-{month}-{date}.0v2.2026-01-15.0ALWAYS sync both base and head branches before creating PR:
# For QA deployment
git fetch origin
git checkout qa
git pull origin qa
git checkout develop
git pull origin develop
# For Prod deployment
git fetch origin
git checkout main
git pull origin main
git checkout qa
git pull origin qa
For QA (develop → qa):
git log qa..develop --format="%H|%s|%an" --no-merges
For Prod (qa → main):
git log main..qa --format="%H|%s|%an" --no-merges
Output format: {commit_hash}|{commit_subject}|{author_name}
For each commit:
Parse commit message:
fix(objective): fix issue with objective (#4156)
fixobjectivefix issue with objective4156 (if present in commit message)Extract PR number:
(#XXXX) pattern in commit subjectBuild commit data structure:
{
"hash": "abc123",
"type": "fix",
"domain": "objective",
"message": "fix issue with objective",
"pr_number": "4156",
"author": "John Doe"
}
Create a markdown file with three sections:
Group commits by domain (scope):
# Domains
## objective
- [fix: fix issue with objective](https://github.com/{owner}/{repo}/pull/4156)
- [feat: add new objective feature](https://github.com/{owner}/{repo}/pull/4157)
## user
- [fix: fix user authentication bug](https://github.com/{owner}/{repo}/pull/4158)
List all commits in chronological order:
# Orders
- [fix: fix issue with objective](https://github.com/{owner}/{repo}/pull/4156)
- [feat: add new objective feature](https://github.com/{owner}/{repo}/pull/4157)
- [fix: fix user authentication bug](https://github.com/{owner}/{repo}/pull/4158)
Group commits by author:
# Authors
## John Doe
- [fix: fix issue with objective](https://github.com/{owner}/{repo}/pull/4156)
- [feat: add new objective feature](https://github.com/{owner}/{repo}/pull/4157)
## Jane Smith
- [fix: fix user authentication bug](https://github.com/{owner}/{repo}/pull/4158)
# Create temporary file in project root
cat > deployment-summary.md <<'EOF'
# Domains
...
# Orders
...
# Authors
...
EOF
IMPORTANT: PR Body Creation
Use one of these correct methods:
Method 1: Store content in variable first
BODY_CONTENT=$(cat deployment-summary.md)
gh pr create --title "..." --base qa --head develop --assignee @me --body "$BODY_CONTENT
Generated with Claude Code
Co-Authored-By: Claude <[email protected]>"
PR Options:
For QA:
gh pr create \
--title "release(all): v2.{year}-{month}-{date}.0 정기배포 QA Release" \
--base qa \
--head develop \
--assignee @me \
--body "..."
For Prod:
gh pr create \
--title "release(all): v2.{year}-{month}-{date}.0 정기배포 Prod Release" \
--base main \
--head qa \
--assignee @me \
--body "..."
rm deployment-summary.md
Show the PR URL and summary:
develop → qa → main
Error: No commits found between {base} and {head}
This might mean:
- Branches are already in sync
- Need to pull latest changes from remote
Error: Failed to create PR
Possible causes:
- Insufficient permissions
- Branch protection rules
- Conflicting PR already exists
Warning: Could not parse commit: {commit_subject}
Skipping this commit from summary.
Warning: Could not find PR number for commit: {commit_subject}
Using commit link instead: https://github.com/{owner}/{repo}/commit/{hash}
npx claudepluginhub flex-hyuntae/claude-plugins --plugin flex-workflowGenerates changelog entries, deployment checklists, and updates release PR descriptions from conventional commits. Supports version bump suggestions and focus areas.
Orchestrates multi-agent git workflow from code review and quality checks through testing, Conventional Commits, PR creation, and deployment readiness. Supports trunk-based and feature-branch strategies.
Creates GitHub pull requests with formatted descriptions, labels, issue references, draft mode, reviewers, and base branch selection from pushed branches. Use for 'create PR' or 'submit for review'.