What it is for
Phase four of modernization. It finds the smallest units that can move and be released independently, maps their dependencies and rules, proposes a sequence, and, after your approval of the sequence, writes the work packages. Use it when- You have an approved target architecture and need a backlog and migration order.
Prerequisites
- A repository that CoreStory v3 has indexed. The skill checks this first with
statusandcorpus_info, and stops if the snapshot is missing or the last ingest failed. Setup is on the CoreStory v3 playbooks overview. - The
corestory-localplugin or the MCP connection, so the agent can reach the CoreStory v3 tools. - The earlier phase files in
modernization/, approved by a person. See the phase-file convention. 03-target-architecture.md(approved, with its decision filled in) and02-rules-inventory.md. Under Vibe Modernization with an existing target, the approved assessment’s target idioms stand in for03.
How to invoke it
- Automatic. With the Claude Code plugin, a session hook points the agent to the matching skill before it edits or answers. The agent picks
decomposition-sequencingwhen the request fits. - By name. Ask for it directly (
/decomposition-sequencingin Claude Code; the plugin may show it ascorestory-local:decomposition-sequencing), or say “use the decomposition-sequencing skill” in other agents. - From a rules file. Without the plugin hook, add the one-line fallback from the overview to
CLAUDE.mdorAGENTS.md.
What it produces
modernization/04-work-packages.md: units, dependencies, sequence, and then the work packages (scope, rule ids carried, transform, coexist, eliminate, acceptance criteria), withNot verified. No tickets are created in any external tool unless you ask.
How it works
- Preflight, then read the approved inputs.
- Part A: find migration units with
list_filesandconnections, and mark dependencies as hard, soft or shared data, citingpath:start-endfor edges that were read and marking inferred ones. - Attach rules to each unit with
search(kind:"sao:Rule") andrules_for, followingnext_call. - Propose a sequence by dependency, risk, value and capacity, and name quick wins, parallel lanes and the critical path.
- Gate: stop and ask the engineering lead to approve the sequence.
- Part B, after approval: write each work package with an id such as
WP-01that later phases use.
Limits
- Edges that were inferred rather than read are labeled. The skill does not claim the sequence reduces risk or time.
- Packages stay in the file for manual import; creating Jira or Linear items is a separate request.
- CoreStory reads and indexes code. It does not run or test it. Any test results in the output are the agent’s own, from commands it ran.
- Results describe the ingested snapshot, which may differ from your working tree if files changed since.
- Hits from
searchare leads, not proof. The skill reads the cited lines before it relies on a rule, and lists what it could not check underNot verified. - Compared with the hosted playbook: the hosted playbook is Decomposition and Sequencing.
Skill source
The full recipe is the skill file itself:decomposition-sequencing/SKILL.md on GitHub.