Task
- •
Locate the Repository: - Check if the current directory is a Git repo.
- •If not, or if $ARGUMENTS suggests a specific area (like "fe" or "be"), examine the sub-folders.
- •Check which repo has changes and
cdinto it. If uncertain, ask the user.
- •
Branch Management:
- •Check the current branch. If on
mainormasterbranch, create a new feature branch. - •Name the branch descriptively based on the changes.
- •Check the current branch. If on
- •
Commit Changes:
- •If there are uncommitted changes, create a commit with a conventional commit message following the format:
- •
feat:for new features - •
fix:for bug fixes - •
docs:for documentation changes - •
refactor:for code refactoring - •
test:for adding tests - •
chore:for maintenance tasks - •Include a clear, concise description.
- •
- •If there are uncommitted changes, create a commit with a conventional commit message following the format:
- •
Push and PR:
- •Push the branch to origin (with
-uflag if first push). - •Create a pull request to main using
gh pr createwith:- •A clear, descriptive title.
- •A concise body that summarizes all changes/features added using markdown formatting.
- •Include test plan or notes if relevant.
- •Push the branch to origin (with
Constraints
- •You MUST navigate (
cd) into the correct sub-repo before running git commands. - •Do not include the "Generated by Claude" footer in commits.
- •You MUST do all of the above in a single response. Do not send any other text or messages besides these tool calls.
Optional user arguments
$ARGUMENTS