Skip to content

Instantly share code, notes, and snippets.

@monteiro
Created May 14, 2026 13:29
Show Gist options
  • Select an option

  • Save monteiro/fd64ed71d19107b02d753403918b365a to your computer and use it in GitHub Desktop.

Select an option

Save monteiro/fd64ed71d19107b02d753403918b365a to your computer and use it in GitHub Desktop.
Add this to the end of your .profile or .bash_profile
#
# using https://worktrunk.dev/ (wt)
#
issue() {
local mode="$1"
local url="$2"
local flags="${3:-}"
local prompt
case "$mode" in
implement) prompt="Implement this Linear issue: $url. Fetch it, explore the codebase, then make the changes." ;;
debug) prompt="Debug this issue: $url. Fetch it, find the root cause in the code, propose a fix." ;;
plan) prompt="Plan the implementation for: $url. Fetch it, explore the architecture, write a detailed plan. No code yet." ;;
*) echo "Usage: issue <implement|debug|plan> <linear-url> [claude-flags]"; return 1 ;;
esac
local slug="${url##*/issue/}"
slug="${slug,,}"
slug="${slug//\//-}"
echo "$mode $slug"
wt switch -c -x claude "$slug" -- $flags "$prompt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment