smithery/swoking

symfony-sk:api-migration

Generate a new empty migration file with proper naming. Use when starting a new feature that needs database/settings changes.

Installation

$ npx skills add smithery/swoking --skill symfony-skapi-migration

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/swoking.

npx skills add smithery/swoking

Browse all from smithery/swoking

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Write, Bash, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,712 B
  • docs SUMMARY.md 156 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

API Migration Skill

Mission

Generate a new empty migration file with proper naming convention.


Process

1. Generate via VM

Use vm-commands agent to generate migration:

ssh <host> ". /sk/sk.lib && . /sk/sk_switchProject <code> && ${skv___projectPath}/scripts/dmg"

This creates a new file like api/migrations/Version20260118143022.php

2. Get the filename

The script outputs the created filename. Parse it to get the version name.

3. Update description

Edit the migration to add proper description:

public function getDescription(): string
{
    return '#<ticket> - <description>';
}

Template

<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use App\_Const;
use App\Migrations\AppAbstractMigration;
use Doctrine\DBAL\Schema\Schema;

final class Version<timestamp> extends AppAbstractMigration
{
    public function getDescription(): string
    {
        return '#<ticket> - <description>';
    }

    public function up(Schema $schema): void
    {
        // Labels

        // Error codes

        // Security zones

        // Controllers

        // AutoForms
    }
}

Naming Convention

Description format: #<ticket-number> - <short description>

Examples:

  • #48 - Add engagement completion form
  • #52 - Add user profile settings

Checklist

  • Migration generated via dmg script
  • Description updated with ticket number
  • File extends AppAbstractMigration