Socket
Book a DemoInstallSign in
Socket

@thekarel/spiral

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thekarel/spiral

A tiny helper for Linear git workflow

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
0
Created
Source

Spiral

A tiny helper for Linear & Git Town workflow

oclif Version Downloads/week

Installation

npm install -g @thekarel/spiral

What is this?

This tool slightly simplifies a very specific and repetitive workflow:

  • Creating a new, clean branch from a Linear ticket using Git Town
  • Work...
  • Fill the commit message with the ticket information from Linear
  • Publish the changes in a sane way using Git Town

If you've been doing git hack and git town often you know what I mean.

The CLI has two commands:

  • spiral hack abc-123: Create a new branch from a Linear ticket using git town hack
  • spiral ship: Pre-fill the commit message with the ticket information and run git town ship

The format of the branch name and the commit message structure are hard coded, and so are the commands this CLI runs. This might change in the future.

Context:

Hack

The hack command creates a new branch from a Linear ticket, using Git Town. The format of the branch name is ticket-number-title-of-your-ticket, for example abc-123-exciting-the-new-feature.

Keystrokes saved: several!

Ship

The ship command pre-fills the commit message with the ticket information, allows you to edit the message and then runs git town ship.

The goal is to avoid copy-pasting all the bits and manually formatting the commit message into the expected format.

Productivity increase: not insignificant!

API Key

Export your API key as LINEAR_API_KEY.

You can create one in your Linear account settings under Security & access. Only add READ permissions.

Usage

$ npm install -g @thekarel/spiral
$ spiral COMMAND
running command...
$ spiral (--version)
@thekarel/spiral/0.1.3 linux-x64 node-v24.4.1
$ spiral --help [COMMAND]
USAGE
  $ spiral COMMAND
...

Commands

spiral hack ID

Create a new branch for a ticket (git hack)

USAGE
  $ spiral hack ID [--dry]

ARGUMENTS
  ID  The ticket ID, e.g. ABC-123

FLAGS
  --dry  Show the shell command to run but do not execute it. Will still try to read from Linear.

DESCRIPTION
  Create a new branch for a ticket (git hack)

EXAMPLES
  $ spiral hack ABC-123

See code: src/commands/hack.ts

spiral help [COMMAND]

Display help for spiral.

USAGE
  $ spiral help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for spiral.

See code: @oclif/plugin-help

spiral ship

Ship your work to the remote repo (git ship)

USAGE
  $ spiral ship [--confirm] [--edit] [--scope <value>]

FLAGS
  --confirm        Ask for confirmation before executing the command (default: false)
  --[no-]edit      Edit the commit message before committing. Otherwise it's auto generated (default: true)
  --scope=<value>  [default: fix] Scope of the commit, e.g. "feature" or "fix(Admin)", will be used as the commit
                   message prefix (default: "fix")

DESCRIPTION
  Ship your work to the remote repo (git ship)

EXAMPLES
  $ spiral ship

See code: src/commands/ship.ts

Keywords

oclif

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts