/agile-backlog-toolkit:split-storyfrom agile-backlog-toolkit
Lateral story-sizing skill. Takes a single User Story and determines if it should be split, how many sub-stories to create, and what split pattern to use — then drafts sub-stories and hands them off. Use when the user asks "split this story", "is this story too big?", "analyze this story for sizing", or provides a artifacts path / Azure ID / file path / raw text and wants a split recommendation. One story per invocation.
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.
Lateral story-sizing skill. Load reference files as each phase needs them.
References (shared, in ../../references/):
decomposition-rules.md — 6-driver MAX heuristic, story-point ceiling, DoR, hierarchy rules.ticket-structure.md — body sections, frontmatter constraints, content hygiene.azure-mechanics.md — MCP calls, linking gotchas, rendering rules.References (skill-specific, in ./references/):
split-patterns.md — split pattern catalog with detection signals and auto-selection rules.scoring-guide.md — 6-driver scoring table, ceiling logic, spike detection rule, discrepancy
handling.../../common/templates/canonical-user-story.md — read-only shape contract for split sub-story drafts
(seven emoji sections). Do not edit; validate output against this template.../../common/contracts/split-story/canonical-spike.md — read-only shape contract for spike stubs.
Do not edit; validate spike output against this template.Input: one of — local draft path, Azure work item ID, arbitrary file system path, or raw text pasted inline.
Determine source from the argument:
If local draft path (path under the artifacts path, recognized by artifacts path prefix or .md
extension inside the artifacts tree):
work_item_type, story_points,
parent_id, provider_id. Parse body: identify sections by emoji + label headings.If Azure ID (numeric argument):
wit_get_work_item(id=<id>, expand=relations).System.Title, System.Description,
Microsoft.VSTS.Scheduling.StoryPoints, System.Parent.If file system path (non-artifacts path to a .md or .txt file):
If raw text (multi-line pasted content, no recognizable path or ID):
Normalize into a unified artifact record:
{
title: string | null (frontmatter/title field, or first heading, or null)
body: string (full description / body text)
story_points: number | null (null if not declared in any source)
acceptance_criteria: string[] (each AC line from the ✅ Critérios de Aceite section;
empty array if the section is absent)
parent_id: string | null
provider: "local" | "azure-devops" | "linear"
provider_id: string | null
source: "artifacts path" | "azure-devops" | "linear" | "filesystem" | "raw"
}
Extract acceptance_criteria by reading the ✅ Critérios de Aceite section and splitting on
checkbox lines (- [ ] or - [x]). For Azure source, parse the same section from
System.Description markdown. For raw text or filesystem source, parse from the body if the
section heading is present; otherwise acceptance_criteria = [].
If artifact cannot be parsed (empty content, unreadable file, MCP error): STOP and report the specific failure. Do not proceed.
Read ./references/scoring-guide.md for the complete driver table, ceiling value, spike rule,
and discrepancy-handling protocol before scoring.
Apply the 6-driver MAX heuristic to the normalized artifact:
calculated_points = MAX(all driver scores).Discrepancy check (run only if story_points is declared and non-null):
declared == calculated: proceed with active_points = declared.declared ≠ calculated: follow the discrepancy-handling protocol in scoring-guide.md
exactly — show both values with driver breakdown and wait for user choice.
active_points = user-chosen value.If story_points not declared: active_points = calculated_points. No prompt shown.
Read ./references/split-patterns.md for the pattern catalog and auto-selection decision tree.
Branch A — No split needed:
If active_points ≤ ceiling (default 5, or override from invocation argument):
Story is right-sized at <active_points> pts (ceiling: <ceiling>).Branch B — Spike recommended:
If Incerteza == 5 AND Incerteza is the sole MAX driver (no other driver also scored 5):
Branch C — Split:
split_count = ⌈active_points / ceiling⌉.split-patterns.md.split_count sub-story titles and one-line scopes.── GATE 1: present split plan to user ──
Show:
Wait for explicit approval (yes / proceed / ok or equivalent) before entering DRAFT.
If the user revises the plan (different pattern, different count, adjusted titles): incorporate
revisions and re-show the updated plan. Do not proceed until the plan is approved.
Read ../../references/ticket-structure.md and ../../references/decomposition-rules.md
before writing any files.
Spike mode (Branch B confirmed):
<artifacts>/Tickets/Ready/<parent_id>-spike-<slug>.md./references/scoring-guide.md.[placeholder] with content derived from the original story.Split mode (Branch C approved):
For each approved sub-story:
<parent_id>-<n>-<kebab-slug>.md — e.g., 6868-1-register-flow.md.<artifacts>/Tickets/Ready/<filename>.status: and no provider_id before provider creation):---
date: <YYYY-MM-DD>
type: ticket
work_item_type: User Story
parent_id: <parent_id>
provider: local
story_points: <estimated-points>
---
ticket-structure.md and ./references/canonical/canonical-user-story.md
(in order):
Coverage check (run after all files are written, before HANDOFF):
📄 Descrição Original.ORPHAN AC: <item> — dropped requirement.DUPLICATE COVERAGE: <item> — ambiguous scope.Present a summary:
Show options:
Sub-stories drafted. What would you like to do?
1. Keep as local drafts — done; continue manually or via decompose-backlog.
2. Create in the configured provider and link to the parent Feature.
3. Discard drafts — delete files and stop.
Wait for user choice.
Option 1 — Keep: Report file paths and stop. No further action.
Option 2 — Provider:
Read ../../common/providers.md and use the selected Azure DevOps or Linear connector.
For each sub-story draft (in order):
wit_create_work_item with Markdown description = full body from the draft.System.Id. If absent: STOP and report failure with the item
title and the raw error.wit_work_items_link with explicit type: "parent" linking the new item to
parent_id.wit_get_work_item(id=<new_id>, expand=relations).
Assert System.Parent == parent_id.
Assert that the relations array contains no System.LinkTypes.Related links
(no stray Related links from prior failed runs).
If either assertion fails: STOP and report
LINK ASSERTION FAILED for <title>: expected parent <parent_id>, got <actual>
or STRAY RELATED LINKS for <title>: <links found>.provider_id: <new_id>. Rename file to
<new_id>-<slug>.md.After all items: report each title, provider identifier, and parent link status.
Option 3 — Discard:
Delete each local draft file written in PHASE 4. Report Drafts discarded. and stop.
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
/amend-workitemsAnalyze 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.
/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.
/enrich-work-itemEnriches an existing Epic, Feature, User Story, or Task into the host team's structured format using type-specific enricher prompts (emoji sections, scope blocks, complexity drivers, ASCII diagrams). Use when the user runs /enrich-work-item, asks to "enrich a ticket", "enrich this issue", "format this user story", "polish this feature", "structure this epic", or provides a path, URL, or pasted text plus work-item type. For raw title + requirement bullets from scratch, use generate-work-item instead. For plain-language narrative inside enricher sections, this skill delegates a sub-pass to generate-plain-language-documentation after enricher assembly.
/generate-breakdown-work-itemsFrom a User Story (or Feature/Epic with child Stories), generate an Implementation Plan in the local artifacts and atomic child Tasks aligned to acceptance criteria — including Staging, Review, and a Done Breakdown Task. Use when the user runs /generate-breakdown-work-items, says "break down this story into tasks", "create tasks from acceptance criteria", "breakdown work items", or provides a Story/Feature/Epic id, URL, or artifacts path and wants plan + Task children for delivery. Does not invent acceptance criteria or implement product code.
/generate-plain-language-documentationWrites and rewrites human-facing prose in plain language — documentation, reports, guides, proposals, README sections, work-item descriptions, acceptance-criteria narratives, and any non-code text. Use when the user mentions documentation, documenting, writing prose, explaining something in plain language, making text readable, translating technical content for humans, or any action involving written text other than code — even if they do not say "documentation." Also invoke when sibling skills (generate-work-item, enrich-work-item, decompose-backlog) need polished requirement bullets or narrative sections. Not for dense agent-facing prompts, cheat sheets, or SKILL.md bodies — those may stay compressed.