<< All versions

Skill v1.0.1

Automated scan100/100
ain3sh/.agents/ticket-branch

+2 new

──Details
PublishedNovember 5, 2026 at 07:25 PM
Content Hashsha256:931d8a321e1d751b...
Git SHA1c03dbc46585
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 63 lines · 2.2 KB

name: ticket-branch description: Shared atom for creating or resolving a Linear ticket and checking out a clean branch. Background knowledge for workflow commands -- not invoked directly. metadata: version: "1.0.1"


Ticket + Branch

Resolve or Create Ticket

  • Ticket ID provided (e.g., TEAM-123): fetch it with comments and direct

lineage. ``bash linear i get <ID> --output json --comments linear rel list <ID> --output json ` If the ticket details or relation list names direct parent/child tickets, fetch each one hop: `bash linear i get <RELATED_ID> --output json --comments `` Extract parent goal, child scope boundaries, inherited acceptance criteria, constraints, and discussion context. Do not chase deeper hierarchy unless the ticket explicitly depends on it. Use the provided ticket for branch naming.

  • No ticket: create one.

Discover teams with linear t list --output json --compact --fields key,name. Default priority: 3 (medium).

Write a meaningful description before creating. The description should include:

  • What: 1-2 sentences on the problem or feature.
  • Why: Context on motivation (bug report, user feedback, tech debt, etc.).
  • Acceptance criteria: Concrete conditions for "done" (when known).

If the user mentions a parent issue or epic, search for it: ``bash linear search issues "<keywords>" --output json --compact --fields id,identifier,title ` Then link via --parent <parent-ID>` when creating.

``bash ID=$(linear i create "<title>" -t <TEAM> -p <priority> -d "<description>" --id-only --quiet) ``

Extract from the ticket identifier:

  • Team prefix: the letters before the dash (e.g., FAC).
  • Issue number: the digits after the dash (e.g., 456).

Create Branch

bash
DEFAULT_BRANCH=$(git remote show origin 2>/dev/null | awk '/HEAD branch/ {print $NF}')
git fetch origin
git checkout -b "<owner>/<prefix>-<number>-<stub>" "origin/$DEFAULT_BRANCH"
  • Derive <stub> from the ticket title: lowercase, hyphenated, ASCII-only.
  • Full branch name must be <= 32 characters. Truncate the stub to fit.
  • Replace <owner> with your branch namespace.
  • Example: FAC-456 "Fix onboarding tooltip" -> team/fac-456-fix-onboard
← v1.0.0All versionsv1.0.2 →