/agile-backlog-toolkit:amend-workitemsfrom agile-backlog-toolkit
Analyze user instructions and safely amend an entire Azure DevOps or local artifacts work-item tree. Use when a user supplies corrections or adjustments for an Epic or Feature and expects the Epic, Features, User Stories, and child Tasks to be scanned, placed, reviewed, and updated consistently. This skill gathers and presents a change set before any write, creates a recoverable tree backup, and never changes work items without explicit approval.
Ships in agile-backlog-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Safely incorporate approved corrections across a complete Epic or Feature tree. The skill is content-only by default: hierarchy, state, assignee, area, iteration, tags, and unrelated text remain unchanged. Read the references below before making placement or persistence decisions.
References:
./references/placement.md — keyword ranking and type/section placement../references/backup-and-artifacts path.md — backup, revision, Obsidian, and recovery rules../references/approval-and-persistence.md — change-set approval and delegated writers.../../references/ticket-structure.md — artifacts path structure and section order.../../references/azure-mechanics.md — Azure reads, links, updates, and read-back.../enrich-work-item/references/ — canonical sections and examples for Epic, Feature, and Story.../generate-breakdown-work-items/references/ — Implementation Plans and Task child rules.Ask one question at a time through the host UI:
Do not read or write the tree before the reference is supplied. If the reference is ambiguous, stop and ask for a resolvable id, URL, or path.
Read backup-and-artifacts path.md before resolving the source. Create a backup of the entire tree before
semantic analysis. The snapshot must include every Epic, Feature, Story, and Task body; ids,
revisions, parent links, child links, attachments, and related Implementation_Plans/ notes. Verify
that the backup is readable and complete. A failed or partial backup is a hard stop.
Resolve the reference and enumerate descendants from Epic → Feature → User Story → Task before
proposing changes. Read each node and retain its original revision. When a local Artifacts exists,
use obsidian search/CLI first for title, id, and extracted keywords; use rg as the fallback or
secondary index. Search exact phrases, identifiers, normalized tokens, and stemmed terms from the
instructions. Keep unmatched instructions visible instead of silently dropping them.
Split the instructions into atomic amendments. For each amendment, score candidate nodes and
canonical sections using exact identifiers, title matches, phrase matches, and type/section
compatibility. Read placement.md and the relevant canonical/example reference before deciding.
Present a single-select UI list for each amendment. Put the recommended placement first, include
the reason and affected node/section, and make the final option exactly Other so the user can
describe an alternative. Do not apply a placement until the user selects it. If a placement would
require a new work item, structural relink, deletion, or state transition, flag it as out of scope
and request explicit direction.
Produce a consolidated preview containing, for every selected placement:
Re-read current revisions immediately before the approval prompt. If any revision changed since the scan, refresh that node and rebuild the affected proposal. Request explicit approval through the UI. Cancellation or rejection ends the run without writes.
After approval, delegate type-specific content work to the existing skills rather than inventing a parallel format:
$enrich-work-item with its canonical
references and approval gate.$generate-plain-language-documentation.$generate-breakdown-work-items rules; update
the saved Implementation Plan before reconciling its Tasks.$generate-work-item and then link it
as a child of the Story.Apply approved content top-down. Never mutate hierarchy, state, ownership, area, iteration, tags, or unrelated sections. Reconcile the Task child list without deleting existing Tasks: update only affected Task content, add approved missing Tasks, and report stale/unmatched Tasks for review.
Any change to a Story's Task list invalidates its hour estimates. Whenever Tasks are added,
removed, retitled, or rescoped, recompute the whole Story's split, write the new figures, and
report every one that moved (old → new). Nothing asked for approval, so nothing may move silently.
Re-check the total against the assignee's remaining capacity in the active sprint; if it no longer
fits, STOP and ask before writing. Full rules in
../generate-breakdown-work-items/references/atomic-tasks.md.
Update related Artifacts Implementation Plans when the amendment changes scope, acceptance coverage,
or task sequencing. Read back every changed Azure item and Artifacts file, verify parent links and
revisions, and run the applicable validate-artifact checks. Stop on the first failed write or
read-back; leave the backup intact and report the exact recovery target.
Report backup location, scanned tree counts, approved placements, changed nodes, recomputed Task hours (old → new), Task-list and Implementation-Plan updates, validation results, and unresolved instructions. State explicitly that no state or hierarchy changes were made when that is true.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub theocarranza/agile-backlog-toolkit --plugin agile-backlog-toolkit9 skills in this plugin
/auto-fix-artifactValidates an agile artifact (Epic, Feature, or User Story) and automatically fixes any issues found. Accepts an Azure workitem ID, artifacts path document, filesystem reference, or pasted string. If validation passes, outputs the report. If validation fails, it shows the report, asks for permission to fix, systematically corrects each problem based on the quality gate rules, and offers to save the corrected version back to Azure or the artifacts path.
/decompose-backlogDecompose a parent work item into correctly-parented, audited child Stories. Use when the user asks to "break down this Feature", "decompose Epic/Feature N into stories", "create the user stories for <feature>", "groom this backlog item", or provides a Feature/Epic id and wants Stories drafted and created in Azure DevOps. Drives 7 phases: ingest the parent, split into right-sized Stories (1 Story = 1 sprint = 1 PR), draft them in the artifacts path, enrich to the team format, create them in Azure DevOps parented to the FEATURE, verify the hierarchy, and audit that every parent requirement has a home. Self-contained rules; two approval gates before any write. For plain-language scope lines and story narrative, delegates sub-passes to generate-plain-language-documentation in DRAFT and ENRICH phases.