Reshaped v3 to v4 Migration
Apply documented and safe migrations from Reshaped v3 to v4 with minimal edits and explicit reporting.
Scope and inputs
- Canonical migration recipes live in
changes/*.md in this skill directory.
- Each file in
changes/*.md represents one breaking-change topic.
- Follow documented migration paths from those files first; if there is no automated migration path available and you don't have a high confidence solution – don't edit the code and add this case to the migration report.
- Prefer deterministic, low-risk edits over broad refactors.
Operating rules
Confirm migration scope
- Identify which package(s), app(s), or folders should be migrated.
- If scope is unclear, ask a focused clarifying question before editing.
Build an ordered migration checklist
- List all available files in
changes/*.md.
- Process them one by one in a stable order (for example: alphabetical by filename).
- For each change file, determine whether it applies to the target scope.
Apply migrations conservatively
- Use exact symbol/prop matching when possible.
- Keep behavior unchanged unless the migration doc requires behavior changes.
- Avoid unrelated cleanup while migrating.
- Preserve user-authored custom logic and styling intent.
Validate after batches of edits
- Run local checks relevant to the repo (typecheck, lint, tests, build, or targeted checks).
- If a migration introduces uncertainty, stop and verify before continuing.
Report outcomes explicitly
- Produce a migration report after edits.
- Include per-migration status, component counts, confidence, and manual actions.
Per-change execution loop
For each migration file in changes/*.md:
- Read the migration file fully.
- Extract:
- Trigger pattern (what old API usage to find).
- Target pattern (what v4 usage should replace it).
- Constraints, caveats, and exceptions.
- Search the scoped codebase for matches.
- Classify each match:
- Safe automated migration.
- Requires contextual/manual decision.
- Not applicable/false positive.
- Apply changes for safe matches.
- Record report data for this migration, even when no matches were found.
Confidence model
Use these confidence levels in the report:
high: mechanical replacement with unambiguous mapping and local validation passes.
medium: mapping is mostly clear but depends on component context, composition, or styling intent.
low: migration path is incomplete, risky, or requires product/UX intent to resolve.
For every medium or low item, include exact code locations that need review.
Required migration report
Create a report file in the workspace root named:
reshaped-v3-v4-migration-report.md
Report format:
# Reshaped v3 -> v4 Migration Report
## Scope
- Target: <folders/packages migrated>
- Date: <YYYY-MM-DD>
## Migration Results
### <migration name from file>
- Status: `completed` | `partial` | `not-applicable` | `blocked`
- Components updated: <number>
- Confidence: `high` | `medium` | `low`
- Medium/low review locations:
- `<path>:<line>` - <why review is needed>
- Notes: <key decisions, caveats>
- Manual steps (if any):
- <required human follow-up>
<!-- Repeat for every changes/*.md file -->
## Summary
- Total migrations processed: <number>
- Completed: <number>
- Partial: <number>
- Not applicable: <number>
- Blocked: <number>
- Total components updated: <number>
Handling missing automated paths
If a change file has no safe automated migration path:
- Mark status as
blocked or partial (depending on progress).
- Explain why automation is unsafe or impossible.
- Provide concrete manual remediation steps.
- Include precise locations for manual edits.
Communication style
- Be explicit and audit-friendly.
- Prefer short, factual notes over long explanations.
- Distinguish clearly between applied changes and recommendations.
Source: reshaped-ui/reshaped — distributed by TomeVault.
1---2name: reshaped-v3-v43description: Migrates apps from Reshaped v3 to v4 breaking API changes. Use when the user asks to upgrade to v4, fix breaking changes, or migrate deprecated Reshaped APIs. Use when this capability is needed.4---56# Reshaped v3 to v4 Migration78Apply documented and safe migrations from Reshaped v3 to v4 with minimal edits and explicit reporting.910## Scope and inputs1112- Canonical migration recipes live in `changes/*.md` in this skill directory.13- Each file in `changes/*.md` represents one breaking-change topic.14- Follow documented migration paths from those files first; if there is no automated migration path available and you don't have a high confidence solution – don't edit the code and add this case to the migration report.15- Prefer deterministic, low-risk edits over broad refactors.1617## Operating rules18191. Confirm migration scope20 - Identify which package(s), app(s), or folders should be migrated.21 - If scope is unclear, ask a focused clarifying question before editing.22232. Build an ordered migration checklist24 - List all available files in `changes/*.md`.25 - Process them one by one in a stable order (for example: alphabetical by filename).26 - For each change file, determine whether it applies to the target scope.27283. Apply migrations conservatively29 - Use exact symbol/prop matching when possible.30 - Keep behavior unchanged unless the migration doc requires behavior changes.31 - Avoid unrelated cleanup while migrating.32 - Preserve user-authored custom logic and styling intent.33344. Validate after batches of edits35 - Run local checks relevant to the repo (typecheck, lint, tests, build, or targeted checks).36 - If a migration introduces uncertainty, stop and verify before continuing.37385. Report outcomes explicitly39 - Produce a migration report after edits.40 - Include per-migration status, component counts, confidence, and manual actions.4142## Per-change execution loop4344For each migration file in `changes/*.md`:45461. Read the migration file fully.472. Extract:48 - Trigger pattern (what old API usage to find).49 - Target pattern (what v4 usage should replace it).50 - Constraints, caveats, and exceptions.513. Search the scoped codebase for matches.524. Classify each match:53 - Safe automated migration.54 - Requires contextual/manual decision.55 - Not applicable/false positive.565. Apply changes for safe matches.576. Record report data for this migration, even when no matches were found.5859## Confidence model6061Use these confidence levels in the report:6263- `high`: mechanical replacement with unambiguous mapping and local validation passes.64- `medium`: mapping is mostly clear but depends on component context, composition, or styling intent.65- `low`: migration path is incomplete, risky, or requires product/UX intent to resolve.6667For every `medium` or `low` item, include exact code locations that need review.6869## Required migration report7071Create a report file in the workspace root named:7273- `reshaped-v3-v4-migration-report.md`7475Report format:7677```markdown78# Reshaped v3 -> v4 Migration Report7980## Scope8182- Target: <folders/packages migrated>83- Date: <YYYY-MM-DD>8485## Migration Results8687### <migration name from file>8889- Status: `completed` | `partial` | `not-applicable` | `blocked`90- Components updated: <number>91- Confidence: `high` | `medium` | `low`92- Medium/low review locations:93 - `<path>:<line>` - <why review is needed>94- Notes: <key decisions, caveats>95- Manual steps (if any):96 - <required human follow-up>9798<!-- Repeat for every changes/*.md file -->99100## Summary101102- Total migrations processed: <number>103- Completed: <number>104- Partial: <number>105- Not applicable: <number>106- Blocked: <number>107- Total components updated: <number>108```109110## Handling missing automated paths111112If a change file has no safe automated migration path:113114- Mark status as `blocked` or `partial` (depending on progress).115- Explain why automation is unsafe or impossible.116- Provide concrete manual remediation steps.117- Include precise locations for manual edits.118119## Communication style120121- Be explicit and audit-friendly.122- Prefer short, factual notes over long explanations.123- Distinguish clearly between applied changes and recommendations.124125---126> Source: [reshaped-ui/reshaped](https://github.com/reshaped-ui/reshaped) — distributed by [TomeVault](https://tomevault.io).127<!-- tomevault:4.0:skill_md:2026-06-28 -->