Created
May 14, 2026 13:29
-
-
Save monteiro/fd64ed71d19107b02d753403918b365a to your computer and use it in GitHub Desktop.
Add this to the end of your .profile or .bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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