スキル一覧に戻る
Swoking

symfony-sksecurity-zone

by Swoking

Claude Code plugin pour projets Symfony StarterKit

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

SKILL.md


name: symfony-sk:security-zone description: Create security zones and assign rights to profiles. Use when registering controllers. allowed-tools: Read, Write, Edit, Glob, Grep

Security Zone Skill

⛔ CRITICAL RULES

MANDATORY: Validate with AskUserQuestion BEFORE writing to migration.


Mission

Create security zones, register controllers, and assign profile access rights.


Functions

// Create zone with translations
$this->addSkSecurityZone(_Const::SECZONE_FEATURE, [
    'FR' => 'Gestion des fonctionnalités',
    'EN' => 'Feature management',
]);

// Register controller
$this->addSkControllers(self::SERVICE_FRONT, 'ControllerName', _Const::SECZONE_FEATURE);
$this->addSkControllers(self::SERVICE_API, 'ActionName', _Const::SECZONE_FEATURE);

// Grant access
$this->addSkAppRights(_Const::PROFILE_ADMIN, _Const::SECZONE_FEATURE, self::SECURITY_LEVEL_FULLACCESS);

Constants

Services

  • self::SERVICE_FRONT (0)
  • self::SERVICE_BACK (1)
  • self::SERVICE_API (2)

Security Levels

  • self::SECURITY_LEVEL_NOACCESS (0)
  • self::SECURITY_LEVEL_READONLY (1)
  • self::SECURITY_LEVEL_FULLACCESS (2)

Public Zone

  • Constants::SECZONE_ANONYMOUS - For public routes

Process

  1. Define zone: Name + translations
  2. Add constant: In api/src/_Const.php
  3. Register controllers: Front, back, and/or API
  4. Assign rights: Per profile
  5. Validate: Use AskUserQuestion

Checklist

  • Zone constant added to _Const.php
  • Zone has translations for all languages
  • All controllers registered
  • Rights assigned to profiles
  • AskUserQuestion used before writing

スコア

総合スコア

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

レビュー

💬

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