Swiftdata Migration Writer
Automates SwiftData model updates and migrations in your frontend codebase, minimizing manual effort and errors.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add swiftdata-migration-writer npx -- -y @trustedskills/swiftdata-migration-writer
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"swiftdata-migration-writer": {
"command": "npx",
"args": [
"-y",
"@trustedskills/swiftdata-migration-writer"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill automatically generates Swift Data migration files based on your provided schema. It simplifies the process of evolving your data models, reducing manual coding and potential errors during app updates. The generated migrations are designed to be compatible with SwiftData's declarative approach to database changes.
When to use it
- You’re updating a SwiftData model and need to create migration files.
- You want to automate the generation of migration code for your data models.
- You're refactoring existing SwiftData schemas and require assistance in creating the necessary migrations.
- You are starting a new project using SwiftData and want to streamline database evolution.
Key capabilities
- Generates Swift Data migration files.
- Supports schema evolution.
- Automates migration code creation.
- Compatible with SwiftData's declarative approach.
Example prompts
- "Generate a migration for my
Usermodel, adding an optionalprofilePictureURLstring." - "Create migrations to rename the
firstNamefield inContacttogivenName." - "I’ve deleted the
OrderItemsmodel; generate the necessary migration files."
Tips & gotchas
This skill requires a clear and accurate definition of your SwiftData schema. Incorrect or incomplete schema information will result in inaccurate or non-functional migrations.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.