スキル一覧に戻る
Swoking

symfony-skapi-migration

by Swoking

Claude Code plugin pour projets Symfony StarterKit

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: symfony-sk:api-migration description: Generate a new empty migration file with proper naming. Use when starting a new feature that needs database/settings changes. allowed-tools: Read, Write, Bash, Glob

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

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です