视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
create-pull-request【文档与办公】Create and manage pull requests using GitHub CLI. Covers branch preparation, writing PR titles and descriptions, creating PRs, handling review feedback, and merge/cleanup workflows. Use when proposing changes from a feature or fix branch for review, merging completed work into the main branch, requesting code review from collaborators, or documenting…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Create GitHub pull request with clear title, structured description, proper branch setup.
main)Verify branch is up to date with base and all changes committed:
# Check for uncommitted changes
git status
# Fetch latest from remote
git fetch origin
# Rebase on latest main (or merge)
git rebase origin/main
Got: Branch ahead of origin/main with no uncommitted changes, no conflicts.
If fail: Rebase conflicts? Resolve them (see resolve-git-conflicts skill), then git rebase --continue. Branch diverged far? Consider git merge origin/main instead.
Examine full diff and commit history going into PR:
# See all commits on this branch (not on main)
git log origin/main..HEAD --oneline
# See the full diff against main
git diff origin/main...HEAD
# Check if branch tracks remote and is pushed
git status -sb
Got: All commits relevant to PR. Diff shows only intended changes.
If fail: Unrelated commits present? Consider interactive rebase to clean history before creating PR.
# Push branch to remote (set upstream tracking)
git push -u origin HEAD
Got: Branch shows on GitHub remote.
If fail: Push rejected? Pull first with git pull --rebase origin <branch> and resolve conflicts.
Keep title under 70 characters. Use body for details:
gh pr create --title "Add weighted mean calculation" --body "$(cat <<'EOF'
## Summary
- Implement `weighted_mean()` with NA handling and zero-weight filtering
- Add input validation for mismatched vector lengths
- Include unit tests covering edge cases
## Test plan
- [ ] `devtools::test()` passes with no failures
- [ ] Manual verification with example data
- [ ] Edge cases: empty vectors, all-NA weights, zero-length input
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
For draft PRs:
gh pr create --title "WIP: Add authentication" --body "..." --draft
Got: PR created on GitHub with URL returned. Description clearly tells what changed and how to test.
If fail: gh not authenticated? Run gh auth login. Wrong base branch? Specify with --base main.
Respond to review comments. Push updates:
# View PR comments
gh api repos/{owner}/{repo}/pulls/{number}/comments
# View PR review status
gh pr checks
# After making changes, commit and push
git add <files>
git commit -m "$(cat <<'EOF'
fix: address review feedback on input validation
EOF
)"
git push
Got: New commits show on PR. Review comments addressed.
If fail: CI checks fail after pushing? Read check output with gh pr checks. Fix issues before asking for re-review.
After approval:
# Merge the PR (squash merge keeps history clean)
gh pr merge --squash --delete-branch
# Or merge with all commits preserved
gh pr merge --merge --delete-branch
# Or rebase merge (linear history)
gh pr merge --rebase --delete-branch
After merge, update local main:
git checkout main
git pull origin main
Got: PR merged, remote branch deleted, local main updated.
If fail: Merge blocked by failing checks or missing approvals? Fix those first. Do not force-merge without clearing blockers.
gh pr checks before asking for re-review. Failing CI wastes reviewers' time.--delete-branch with merge to keep remote clean.commit-changes - creating commits for PRmanage-git-branches - branch creation and naming conventionsresolve-git-conflicts - handling conflicts during rebase/mergecreate-github-release - releasing after merge