/agile-backlog-toolkit:enrich-work-itemfrom agile-backlog-toolkit
Enriches 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.
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.
Conductor for applying the enricher pattern to an existing work-item description. Load references as each phase needs them.
References (start at ../../common/workflows/enrich-work-item.md):
../../common/workflows/enrich-work-item.md — type map, enricher routing, artifacts paths../references/azure-ingest.md — Azure URL/id ingest: work item, attachments, description refs.../../common/templates/output-formats.md — per-type output contracts.../../common/templates/ — read-only shape contracts. Validate enriched
output against the matching template before presenting.../../common/workflows/enrichers/ — authoritative prose rules:
epic-enricher.prompt.md, feature-enricher.prompt.md, work-item-enricher.prompt.md../../common/specs/enrich-work-item/ — spec forms for optional analysis artifacts../references/examples/ — illustrative dummy outputs (content reference only; shape contract is
./references/canonical/).../../references/decomposition-rules.md — hierarchy, story-point heuristic.../../references/ticket-structure.md — draft file constraints.../../common/providers.md — neutral artifact contract and provider translations.../generate-plain-language-documentation/references/integration-notes.md — prose polish sub-pass
(PHASE 4).Not in scope: generating a raw work item from a title alone — use generate-work-item first.
Gather inputs one at a time via the host UI. Each step: brief purpose, required vs optional.
| Input | Required | Purpose |
|---|---|---|
source | yes | url | local path | pasted text — the material to enrich |
work_item_type | yes | epic | feature | user-story | task |
parent | when type ≠ epic | Parent id or Azure URL for hierarchy context |
attachment | no | Extra doc URL or path |
Accept /enrich-work-item flags or conversational inference (see Examples).
Normalize type → enricher + Azure workItemType per pipeline.md.
Resolve the artifacts path with bin/agile-backlog-toolkit config --show, which reads
.agile-backlog-toolkit/config.json and falls back to older locations. See
../../references/project-config.md.
Read ./references/azure-ingest.md when source is an Azure DevOps URL or numeric id.
source:
azure-ingest.md: parse id, wit_get_work_item(expand=relations),
enumerate AttachedFile relations, parse description for linked docs/URLs/paths, fetch attachment
and referenced content into supplementary_context. Set Descrição Original from
System.Description verbatim.parent provided: wit_get_work_item — capture parent chain for context and filename prefix.
When source is Azure and parent omitted, use System.Parent from the fetched item.attachment provided: read or fetch; fold into enricher context (dedupe against Azure
attachments already ingested).Read the common output contract and matching enricher:
work_item_type | Enricher |
|---|---|
epic | enrichers/epic-enricher.prompt.md |
feature | enrichers/feature-enricher.prompt.md |
user-story | enrichers/work-item-enricher.prompt.md |
task | enrichers/task-enricher.prompt.md |
Load enricher prompts from ../../common/workflows/enrichers/.
Follow enricher Contexto Obrigatório when host monorepo docs exist; skip gracefully when absent.
For user-story sources, classify Bug vs User Story per enricher §1 keywords when applicable.
When the user will persist locally, fill the matching common spec-*.md
into <artifacts>/Specs/[<parent-id>-]<kebab-slug>-spec.md. Skip when destination is chat-only.
Apply the enricher rules to produce the exact output format defined in enricher §4 (Epic/Feature) or §6 (work item). The enriched body IS the deliverable — emoji sections, scope blocks, complexity drivers, ASCII diagrams as the enricher specifies.
Plain-language sub-pass: Read
../generate-plain-language-documentation/references/integration-notes.md § enrich-work-item; polish
narrative paragraphs inside sections (not emoji headings; not Descrição Original). Glossary-verify
when locale is pt-BR.
Run the enricher Checklist de Auto-Revisão before presenting.
Compare shape against ../../common/templates/canonical-<type>.md (read-only contract; do not
edit). Use ./references/examples/example-<type>.md only for illustrative content patterns.
Present the enriched markdown in chat. Suggest a title outside the markdown block when the enricher requires it (work-item enricher).
── GATE — WAIT for explicit approval before any write. Silence is not approval.
Then ask where to persist (if not already chosen):
parentId and its managed Agile label.If no destination was named and the user wants chat-only, skip local/Azure unless they approve artifacts path save.
Translate the common contract through the selected provider per ../../common/providers.md.
Artifacts use only provider, string provider_id, and string parent_id.
When a remote provider was used, read back the parent and description. Update the draft's neutral provider identity fields when creating new items.
On failure: STOP and report.
Append checkpoint to open Agent_Sessions/ record when the host keeps a session artifacts path.
Slash command:
/enrich-work-item --type feature --source Tickets/Ready/6800-oauth-login.md --parent 6800
Conversational trigger:
Enrich this user story — [pasted description]
→ Infer work_item_type: user-story, source: text, run enricher pipeline.
Azure source:
Format issue 6871 in the team template
→ source: url (Azure), resolve per azure-ingest.md (work item + attachments + description refs),
enrich, present for approval.
What SKILL.md sets; muted values are Claude Code's defaults
9 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.
npx claudepluginhub theocarranza/agile-backlog-toolkit --plugin agile-backlog-toolkit