agentleFS
craigspatersoncraigspaterson/agent-skills/skills/start-story/SKILL.md

start-story

Skill1 starsChanged 3 months agoMITView on GitHub

Activates a work item or issue and creates the feature branch in one step. Supports ADO work items and GitHub issues, selected via the ISSUE_TRACKER config setting. Use when the user says "start story", "start working on", "begin AB#N", "kick off AB#N", "start issue #N", or provides a work item/issue ID and wants to begin development.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Fallback: If ISSUE_TRACKER is not set but ADO_ORG is present, the skill behaves as ISSUE_TRACKER=ado with no error.

    line 36
  2. Distinctive:

    If the script errors, surface the full error message and do not retry silently.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Start Story

Activates a work item or issue and creates the feature branch in one step. Supports ADO work items and GitHub issues via the ISSUE_TRACKER config setting.

Prerequisites

Set ISSUE_TRACKER in ~/.claude/settings.json under the env block:

{
  "env": {
    "ISSUE_TRACKER": "github"
  }
}

Or for ADO:

{
  "env": {
    "ISSUE_TRACKER": "ado",
    "ADO_ORG": "your-org",
    "ADO_PROJECT": "your-project",
    "ADO_USER": "you@example.com"
  }
}

Fallback: If ISSUE_TRACKER is not set but ADO_ORG is present, the skill behaves as ISSUE_TRACKER=ado with no error.

GitHub flow requirements

  • gh CLI installed and authenticated (gh auth login)

ADO flow requirements

  • ADO_ORG, ADO_PROJECT, and ADO_USER set in the env block
  • Azure CLI authenticated (az login)

Step 1 — Parse the ID

Extract the numeric ID from the user's input. Accept any of these formats:

FormatExampleTracker hint
AB#NAB#38ADO (prefix stripped)
ABNAB38ADO (prefix stripped)
GH#NGH#3GitHub (prefix stripped)
#N#3GitHub (prefix stripped)
N3Resolved from ISSUE_TRACKER config

Strip all prefixes — routing is driven by ISSUE_TRACKER, not the prefix format.

Step 2 — Call the script

pwsh ~/.claude/skills/start-story/scripts/start-story.ps1 -Id {N}

Replace {N} with the ID exactly as the user provided it (e.g. 3, #3, AB#38). The script handles prefix stripping and tracker routing internally.

Pass -Org, -Project, or -User only if the user explicitly overrides them for the ADO flow; otherwise the script reads from env vars.

Step 3 — Report result

GitHub flow — tell the user:

  • The issue title and state (warn if closed)
  • The feature branch name that was created and pushed (feature/gh-{N}-{slug})

ADO flow — tell the user:

  • Whether the work item state was changed to Active (or was already Active)
  • Whether the assignee was updated (or was already correct)
  • The feature branch name that was created and pushed (feature/AB{N}-{slug})

If the script errors, surface the full error message and do not retry silently.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.