Back to list
Swoking

symfony-skfront-service

by Swoking

Claude Code plugin pour projets Symfony StarterKit

0🍴 0📅 Jan 19, 2026

SKILL.md


name: symfony-sk:front-service description: Create Bll services for front/back. Use for business logic that calls API. allowed-tools: Read, Write, Edit, Glob, Grep

Front Service (Bll) Skill

Mission

Create Business Logic Layer services that call API services.


Location

  • Front: front/src/Service/Bll/<Name>Service.php
  • Back: back/src/Service/Bll/<Name>Service.php

Template

<?php

namespace App\Service\Bll;

use App\Service\Api\Api<Feature>;
use StarterKit\Model\ApiResult;
use StarterKit\Service\Bll\HelperService;

class <Feature>Service
{
    public function __construct(
        private readonly HelperService $helper,
        private readonly Api<Feature>  $api,
    ) {
        $this->helper->logDebug("[App] - Service - <Feature>Service - Load");
    }

    public function read(string $key): ApiResult
    {
        $this->helper->logDebug("[App] - Service - <Feature>Service - Read");

        return $this->api->read($this->helper->getLanguage(), $key);
    }

    public function update(string $key, array $data): ApiResult
    {
        $this->helper->logDebug("[App] - Service - <Feature>Service - Update");

        return $this->api->update($this->helper->getLanguage(), $key, $data);
    }
}

Key Rules

  1. Constructor injection (unlike Route controllers)
  2. Inject HelperService for language and logging
  3. Use $this->helper->getLanguage() for API calls
  4. Return ApiResult
  5. Log method calls

Checklist

  • HelperService injected
  • Api service(s) injected
  • Methods use $this->helper->getLanguage()
  • Debug logging at method entry
  • Returns ApiResult

Score

Total Score

50/100

Based on repository quality metrics

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

Reviews

💬

Reviews coming soon