Agent Skills: Feature Branch

Create a feature branch from an Azure DevOps ticket. Fetches ticket title, slugifies, creates `feature/<id>-<slug>`, and optionally transitions ticket to Active. Trigger when user says "feature branch", "create branch", "/dev-azdo:feature-branch", or provides a ticket id/URL to start work on.

UncategorizedID: lttr/claude-marketplace/feature-branch

Install this agent skill to your local

pnpm dlx add-skill https://github.com/lttr/claude-marketplace/tree/HEAD/plugins/dev-azdo/skills/feature-branch

Skill Files

Browse the full folder contents for feature-branch.

Download Skill

Loading file tree…

plugins/dev-azdo/skills/feature-branch/SKILL.md

Skill Metadata

Name
feature-branch
Description
Create a feature branch from an Azure DevOps ticket. Fetches ticket title, slugifies, creates `feature/<id>-<slug>`, and optionally transitions ticket to Active. Trigger when user says "feature branch", "create branch", "/dev-azdo:feature-branch", or provides a ticket id/URL to start work on.

Feature Branch

Create feature/<ticket-id>-<slug> from an Azure DevOps work item.

Input Detection

Argument is $ARGUMENTS.

| Form | Meaning | | ------------------------------------- | ------------------------------------------- | | empty | look in recent context for ticket; else ask | | numeric (12345) | ticket id, fetch title for slug | | URL containing _workitems/edit/<id> | extract id, fetch title | | <id> <slug-override> | use override slug, skip title fetch |

Workflow

1. Resolve ticket + slug

empty

Scan recent conversation for work item id + title (e.g. prior triage output). Else ask user.

id / URL

az boards work-item show --id <id> --query "{id:id,title:fields.\"System.Title\"}" -o json

Slugify title: lowercase, strip special chars, spaces→hyphens, 3–5 words max.

<id> <override>

Use override directly. Slugify same rules.

2. Pre-flight

git status --short

If dirty → warn, ask: stash / abort.

git branch --show-current

Note current branch (return point).

3. Create branch

git checkout -b feature/<id>-<slug>

If branch already exists → switch to it instead, inform user.

4. Optional: transition ticket → Active

Prompt: "Transition ticket #<id> to Active? (y/N)"

Default: No.

If yes → invoke ticket skill with <id> active.

5. Confirm

Print created branch name + ticket transition status.

Notes

  • Branch and ticket transition are intentionally separate — feature-branch only prompts; clean separation.
  • For follow-up state changes use ticket skill (/dev-azdo:ticket <id> cr, etc.).