mathaix

Currentfeature — Git skill for Claude Code

Git community

Archive the current feature and start a new branch.

How to install Currentfeature

Installs to ~/.claude/commands/mathaix-openclawmachines-currentfeature.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/mathaix/OpenClawMachines/HEAD/.claude/commands/currentfeature.md -o ~/.claude/commands/mathaix-openclawmachines-currentfeature.md

Restart Claude Code, or start a new session, for it to be picked up.

What Currentfeature does

Archive the current feature and start a new branch.

Instructions

  1. **Ask for the new branch name:**

    • Ask the user: "What should the new branch be named?"
    • Wait for their response. Store it as BRANCH_NAME.
  2. **Switch to main and pull latest:**

    git fetch origin && git checkout main && git pull origin main
  3. **Find the last merged PR:**

    gh pr list --state merged --limit 1 --json number,title
    • Extract the PR number as PR_NUM and tit

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • PR Summary — Generate a pull request summary for the current branch 5.8k ★
  • MiniCode Roadmap — MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t 388 ★

Full documentation available on GitHub

View Source Repository