Create Pull Request
Create a pull request. If an issue number is provided in $ARGUMENTS, use it. If no issue is provided, continue without requiring one.
Workflow
Follow these steps:
Check current git status and branch information
- Run
git statusandgit branchto understand the current state
- Run
Create branch if needed
- If no branch name is provided and we are on the main branch, create a branch based on the code changes
- If working on a worktree, create a branch based on the worktree branch, don't change the name
- Otherwise, work on the current branch
Review commit history and code differences
- Run
git logandgit diff main...HEADto understand all changes from the main branch
- Run
Add changeset record if necessary
Manually add a file in
.changeset/directory following changeset conventionThe package name is always
@read-frog/extension. This is a single-package workspace and changesets matches the header against thenamein the rootpackage.json; a bareread-frogis not a workspace package and makes the release plan fail.File shape — fill in the bump level and the summary, leave the package name as written:
--- "@read-frog/extension": patch --- fix(subtitles): follow YouTube's own default caption trackChangeset summary should use conventional commit style and should match the descriptive PR title
Versioning rules:
patch(0.0.x) — Users barely notice- Bug fixes
- Small feature enhancements (e.g., drag-and-drop reordering)
- UI tweaks, performance optimizations
- Refactors, code cleanup
- i18n additions
- Adding a single config toggle
minor(0.x.0) — Users can clearly perceive "something new"- Independent, complete new features (e.g., subtitle translation, TTS)
- New AI provider support
- Major UI overhaul (new pages/panels)
- New user-facing configuration system (not just a single toggle)
major(x.0.0) — Users need to pay attention / adapt. Almost never use. Must ask user for explicit approval before using.- Config format incompatibility (cannot auto-migrate)
- Removal of existing features
- API/storage structure breaking changes
- Fundamental migrations (e.g., Manifest V2 → V3)
Verify the changeset before committing:
pnpm exec changeset statusmust list the expected bump under@read-frog/extension. A non-zero exit means the changeset is malformed and the release plan will not generate.
Ensure all changes are committed
- Stage and commit any uncommitted changes
- Branch should be ready for PR
Push the branch to remote
- Run
git push -u origin <branch-name>if needed
- Run
Create PR with GitHub CLI
- Use
gh pr createwith:- A descriptive title following commit convention
- Comprehensive PR description following the template at
.github/PULL_REQUEST_TEMPLATE.md - If an issue number was provided, include it in the PR description using
Closes #<issue-number> - If no issue number was provided, search for a relevant issue only if it is easy to identify; otherwise leave the issue field empty instead of blocking the workflow
- Use
Return the PR URL for easy access
Commit Convention
Follow these commit types:
feat: New featuresfix: Bug fixesdocs: Documentation changesstyle: Code style changesrefactor: Code refactoringtest: Adding or updating testschore: Maintenance tasksbuild: Build system changesci: CI/CD changesperf: Performance improvementsrevert: Reverting previous commitsi18n: Internationalization changesai: AI-related features
Format: type(scope): description
References
- PR Template:
.github/PULL_REQUEST_TEMPLATE.md - Project Guidelines:
CLAUDE.md