← Back to list

symfony-sklabel
by Swoking
Claude Code plugin pour projets Symfony StarterKit
⭐ 0🍴 0📅 Jan 19, 2026
SKILL.md
name: symfony-sk:label description: Add labels with translations to migrations. Use for ANY UI text - titles, buttons, messages, placeholders, etc. allowed-tools: Read, Write, Edit, Glob, Grep
Label Skill
⛔ CRITICAL RULES
MANDATORY: Validate with AskUserQuestion BEFORE writing to migration.
Validation workflow:
- Determine key name, target, translations
- Use AskUserQuestion to show all values
- WAIT for user confirmation
- Write only after "oui/yes/ok"
Mission
Add translation labels to migrations for all UI text.
Key Naming Convention
Format: <feature>_<context>_<element>
| Part | Examples |
|---|---|
| feature | engagement, event, cohort |
| context | confirm_done, edit, list |
| element | title, btn, placeholder |
Prefix js_ for keys only used in JavaScript.
Functions
$this->addLabelFO('key', ['FR' => '...', 'EN' => '...']); // Front office
$this->addLabelBO('key', ['FR' => '...', 'EN' => '...']); // Back office
Process
- Check languages: Query
sk_languagetable - Propose: Key + target + all translations
- Validate: Use AskUserQuestion
- Write: Add to migration after confirmation
AskUserQuestion Format
{
"questions": [{
"question": "Label proposé :\n• Clé : feature_action_title\n• Cible : labelFO\n\nTraductions :\n• FR : Titre\n• EN : Title\n\nCorrect ?",
"header": "Label",
"options": [
{"label": "Oui, valider", "description": "Correct"},
{"label": "Modifier", "description": "Changer"}
],
"multiSelect": false
}]
}
Checklist
- Key follows
<feature>_<context>_<element>convention - All languages have translations
- AskUserQuestion used before writing
- User confirmed
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