← スキル一覧に戻る

symfony-skfront-service
by Swoking
Claude Code plugin pour projets Symfony StarterKit
⭐ 0🍴 0📅 2026年1月19日
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
- Constructor injection (unlike Route controllers)
- Inject
HelperServicefor language and logging - Use
$this->helper->getLanguage()for API calls - Return
ApiResult - Log method calls
Checklist
-
HelperServiceinjected - Api service(s) injected
- Methods use
$this->helper->getLanguage() - Debug logging at method entry
- Returns
ApiResult
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です