Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 2.36 KB

File metadata and controls

58 lines (42 loc) · 2.36 KB

English | 中文

Scripts

Raycast Script Commands for quick git operations powered by Claude Code CLI. These are lightweight shell scripts that run as Raycast Script Commands — no extension build required.

Scripts

git-push.sh

One-click git push. Stages, commits, and pushes all changes in the target repo using Claude's /git-push-changes skill.

Parameter Type Description
directory path text Path to the git repo (supports zoxide fuzzy resolution)

Behavior:

  • Resolves the directory path via zoxide (falls back to literal path)
  • Spawns a fully detached Claude process so Raycast returns immediately
  • Sends a macOS notification on success or failure via terminal-notifier
  • Maintains a history file (.claude-git-push-history, last 20 entries)

create-pr.sh

One-click PR creation. Creates a pull request from the current branch to a specified target branch using Claude's /create-pr skill.

Parameter Type Description
directory path text Path to the git repo (supports zoxide)
target branch text Branch to merge into (e.g. dev, main)

Behavior:

  • Same path resolution and detached execution as git-push.sh
  • Extracts the GitHub PR URL from Claude's output
  • Notification includes a clickable link to the newly created PR
  • Shares the same history file with git-push.sh

curl-convert.sh

Runs a clipboard curl command as curlie and displays the command output in Raycast.

Behavior:

  • Reads the curl command from the clipboard
  • Replaces only the leading curl command word with curlie --pretty
  • Adds an explicit GET when the curl command has no method or body, preventing curlie from treating stdin as a POST body
  • Prints the actual curlie command before the response output
  • Executes the converted command in a zsh shell
  • Shows stdout and stderr in Raycast full output mode
  • Rejects input that does not start with curl

Requirements

  • claude CLI in PATH (~/.local/bin/claude)
  • git in PATH
  • curlie in PATH
  • terminal-notifier for git-push.sh and create-pr.sh macOS notifications
  • Optional: zoxide for fuzzy directory resolution
  • Optional: gh CLI (used by Claude internally for PR creation)