agentleFS
craigspatersoncraigspaterson/agent-skills/skills/push-to-ado/SKILL.md

push-to-ado

Skill1 starsChanged 3 months agoMITView on GitHub

Uploads a drafted User Story or Technical Story to Azure DevOps as a work item, populating Title, Description, Acceptance Criteria, Story Points, Priority, and Tags, and optionally linking a parent feature. Also supports creating a full Epic → Feature → Story hierarchy from a structured backlog, and updating existing work items in bulk. Use when the user says "push to ADO", "create in ADO", "upload to ADO", "add to ADO", "update ADO items", or similar after stories have been drafted in conversation.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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. Distinctive:

    After the script completes, show the user the returned work item URL.

    line 56
  2. Distinctive:

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

    line 57
  3. Distinctive:

    Use when the user provides a structured backlog with multiple Epics, Features, and Stories to create in one pass.

    line 63
  4. Very specific:

    Use when stories already exist in ADO (created via upload-hierarchy.ps1 or manually) and need their Title, Description, Acceptance …

    line 103
  5. Distinctive:

    Run the script — all fields are patched in a single PATCH request per item

    line 131

≈ “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

Push to ADO

Three scripts are available. Choose based on what the user provides:

ScenarioScript
Single story drafted by /user-story or /technical-storyupload.ps1
Full backlog with Epics → Features → Storiesupload-hierarchy.ps1
Bulk update existing work items with improved contentupdate-work-items.ps1

Single story — upload.ps1

Extracts structured fields from the story already in context and calls upload.ps1 to create the ADO work item. Do not re-derive the API logic — all implementation lives in the script.

Step 1 — Extract fields from the story in context

Parse the story markdown (output of /technical-story or /user-story) and collect:

FieldSource in story markdown
-Title**Title:** line
-StoryPointsnumeric value from **Story Points:** line
-Priorityvalue from **Priority:** line (Critical / High / Medium / Low)
-ParentIdparent feature ID — ask user if not already in context
-Descriptioncomposed markdown block: story statement + Out of Scope + Dependencies + Notes sections
-AcceptanceCriteriaall AC blocks only (AC1, AC2, … formatted as markdown)
-Tagsoptional; semicolon-separated tags (e.g. "Technical") — omit if none

Work item type is always User Story — hardcoded in the script.

Step 2 — Call the script

pwsh ~/.claude/skills/push-to-ado/scripts/upload.ps1 `
  -Title "..." `
  -Description "..." `
  -AcceptanceCriteria "..." `
  -StoryPoints 3 `
  -Priority "High" `
  -ParentId 2881288

Omit -ParentId if no parent was provided.

Pass -Org and -Project only if the user explicitly provides them; otherwise the script reads from $env:ADO_ORG / $env:ADO_PROJECT.

Step 3 — Report result

After the script completes, show the user the returned work item URL. If the script errors, surface the error message and do not retry silently.


Full hierarchy — upload-hierarchy.ps1

Use when the user provides a structured backlog with multiple Epics, Features, and Stories to create in one pass.

The script defines a New-WorkItem helper function that accepts any ADO work item type (Epic, Feature, User Story) and handles auth, parent linking, and field mapping. Technical stories are created as User Story type with the tag Technical.

How to use it

  1. Open scripts/upload-hierarchy.ps1 and replace the placeholder comment with New-WorkItem calls for the user's backlog, following the call pattern documented below.
  2. Run it:
ADO_ORG=myorg ADO_PROJECT=myproject pwsh ~/.claude/skills/push-to-ado/scripts/upload-hierarchy.ps1

New-WorkItem parameters

ParameterTypeRequiredNotes
-TypestringyesEpic, Feature, or User Story
-Titlestringyes
-DescriptionstringyesRendered as Markdown in ADO
-AcceptanceCriteriastringnoRendered as Markdown; omit for Epics/Features
-StoryPointsintnoOmit for Epics/Features
-PrioritystringnoCritical, High, Medium (default), Low
-ParentIdintnoADO work item ID of the parent
-TagsstringnoSemicolon-separated; use "Technical" to tag technical stories

Parent linking pattern

Capture the returned ID from each Epic/Feature call and pass it as -ParentId to its children:

$epicId    = New-WorkItem -Type "Epic"    -Title "My Epic" ...
$featureId = New-WorkItem -Type "Feature" -Title "My Feature" -ParentId $epicId ...
             New-WorkItem -Type "User Story" -Title "My Story" -ParentId $featureId ...

Bulk update existing items — update-work-items.ps1

Use when stories already exist in ADO (created via upload-hierarchy.ps1 or manually) and need their Title, Description, Acceptance Criteria, Story Points, or Priority replaced with improved content — for example, after re-drafting stories through /user-story or /technical-story.

How to use it

  1. Open scripts/update-work-items.ps1 and replace the placeholder comment with one Update-WorkItem call per item, providing the known ADO work item ID for each.
  2. Run it:
ADO_ORG=myorg ADO_PROJECT=myproject pwsh ~/.claude/skills/push-to-ado/scripts/update-work-items.ps1

Update-WorkItem parameters

ParameterTypeRequiredNotes
-IdintyesExisting ADO work item ID (e.g. 42)
-TitlestringyesReplaces the current title
-DescriptionstringyesReplaces System.Description; rendered as Markdown
-AcceptanceCriteriastringnoReplaces AC field; rendered as Markdown
-StoryPointsintyesReplaces current story points
-PrioritystringyesCritical, High, Medium, or Low
-TagsstringnoSemicolon-separated tags; replaces existing tags when provided

Typical workflow

  1. Draft improved stories using /user-story or /technical-story
  2. Note the ADO ID of each item to update
  3. Populate update-work-items.ps1 with one Update-WorkItem call per item
  4. Run the script — all fields are patched in a single PATCH request per item

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.