/ Annuaire / Playground / symfony-ux-skills
● Communauté smnandre ⚡ Instantané

symfony-ux-skills

par smnandre · smnandre/symfony-ux-skills

Teach Claude the Symfony UX stack — Live Component, Twig Component, Turbo, Stimulus — so it writes idiomatic full-stack Symfony code.

A bundle of Agent Skills that document the Symfony UX ecosystem (Live Components, Twig Components, Turbo, Stimulus controllers, Autocomplete, React/Vue/Svelte integration). Once cloned into ~/.claude/skills/, Claude loads the relevant skill whenever you ask for a Live Component, a Stimulus controller, or a Turbo Frame, and follows Symfony UX conventions instead of inventing patterns.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

symfony-ux-skill.replay ▶ prêt
0/0

Installer

Choisissez votre client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "symfony-ux-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/smnandre/symfony-ux-skills",
        "~/.claude/skills/symfony-ux-skills"
      ],
      "_inferred": true
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "symfony-ux-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/smnandre/symfony-ux-skills",
        "~/.claude/skills/symfony-ux-skills"
      ],
      "_inferred": true
    }
  }
}

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "symfony-ux-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/smnandre/symfony-ux-skills",
        "~/.claude/skills/symfony-ux-skills"
      ],
      "_inferred": true
    }
  }
}

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "symfony-ux-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/smnandre/symfony-ux-skills",
        "~/.claude/skills/symfony-ux-skills"
      ],
      "_inferred": true
    }
  }
}

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "symfony-ux-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/smnandre/symfony-ux-skills",
        "~/.claude/skills/symfony-ux-skills"
      ]
    }
  ]
}

Continue utilise un tableau d'objets serveur plutôt qu'une map.

~/.config/zed/settings.json
{
  "context_servers": {
    "symfony-ux-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/smnandre/symfony-ux-skills",
          "~/.claude/skills/symfony-ux-skills"
        ]
      }
    }
  }
}

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

claude mcp add symfony-ux-skill -- git clone https://github.com/smnandre/symfony-ux-skills ~/.claude/skills/symfony-ux-skills

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : symfony-ux-skills

How to build a Symfony Live Component with Claude

👤 Symfony developers adding real-time UI without writing JS ⏱ ~20 min intermediate

Quand l'utiliser : You need a reactive form, filter, or list that updates on the server without a full page reload.

Prérequis
  • Symfony 6.4+ project with symfony/ux-live-component installed — composer require symfony/ux-live-component
  • Skill cloned into ~/.claude/skills/ — git clone https://github.com/smnandre/symfony-ux-skills ~/.claude/skills/symfony-ux-skills
Déroulement
  1. Describe the component you need
    Build a Live Component for a product search filter with checkboxes for categories and a text query — updates results live as the user types.✓ Copié
    → Claude references LiveProp, LiveAction, debounce modifiers from the skill
  2. Let Claude scaffold the PHP + Twig
    Generate the PHP component class and the Twig template. Use attributes, not annotations.✓ Copié
    → File output follows Symfony UX naming (src/Twig/Components/...)
  3. Ask Claude to wire the parent page
    Show me how to embed this component in an existing Twig page and pass initial state.✓ Copié
    → Uses {{ component() }} helper correctly

Résultat : A working Live Component with proper LiveProp typing and no custom JS.

Pièges
  • Claude mixes Live Component and Twig Component concepts — Re-ask naming the package explicitly: 'use symfony/ux-live-component, not twig-component'
Combiner avec : filesystem · git

Refactor legacy JS into a Stimulus controller

👤 Developers modernizing a Symfony app's front-end ⏱ ~15 min beginner

Quand l'utiliser : Your app has jQuery or vanilla JS sprinkled in Twig — you want to move to Stimulus cleanly.

Prérequis
  • Symfony UX + Stimulus configured (importmap or Webpack Encore) — symfony console importmap:require @hotwired/stimulus if missing
Déroulement
  1. Paste the legacy snippet and ask for a Stimulus conversion
    Convert this jQuery snippet to an idiomatic Stimulus controller with targets and values.✓ Copié
    → Controller with static targets, static values, clear actions
  2. Update the Twig template
    Show me the data-controller, data-*-target, and data-action attributes for the Twig side.✓ Copié
    → Correct data attributes, no inline handlers

Résultat : A clean Stimulus controller plus Twig wiring, ready to commit.

Pièges
  • Controller name mismatch between file and data-controller attribute — Remind Claude of the naming rule: hello_controller.js → data-controller=hello
Combiner avec : filesystem

Add Turbo-powered pagination without a page reload

👤 Symfony devs who want SPA-like UX with minimal JS ⏱ ~15 min intermediate

Quand l'utiliser : You have a paginated list and want Next/Prev to swap content in-place.

Déroulement
  1. Ask Claude to wrap the list in a Turbo Frame
    Wrap my paginated product list in a turbo-frame and make pagination links target that frame.✓ Copié
    → Uses <turbo-frame id=...> and frame-targeted links
  2. Handle the partial response
    Update the controller to render only the frame when the request has the Turbo-Frame header.✓ Copié
    → Controller checks request header and picks the right template

Résultat : Pagination swaps in-place with no full-page reload.

Pièges
  • Full page keeps reloading — Frame id on the link target must match frame id on the page — repeat it to Claude
Combiner avec : filesystem

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

symfony-ux-skill + filesystem

Claude reads your existing Twig/PHP and writes components matching codebase style

Read src/Entity/Product.php and src/Twig/Components/, then add a new LiveComponent for a product filter following the same patterns.✓ Copié
symfony-ux-skill + github

Open a PR with the new component once files are on disk

Commit the new LiveComponent files to a branch and open a PR titled 'Live product filter'.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
live-component-authoring component intent, props, actions You need a reactive UI piece in Symfony 0 — prompt-only
twig-component-authoring UI primitive description Reusable presentational block with no live server interactions 0
stimulus-controller-authoring behavior + targets/values Client-side interactivity that doesn't need the server 0
turbo-integration frame/stream intent Partial-page updates and form responses 0

Coût et limites

Coût d'exécution

Quota d'API
none — skill is local markdown
Tokens par appel
adds ~2–8k tokens of context when the skill activates
Monétaire
free, MIT-licensed
Astuce
Keep the skill dir small — clone only the subskills you use if context-constrained

Sécurité

Permissions, secrets, portée

Stockage des identifiants : none — no credentials needed
Sortie de données : none — pure instruction bundle, no network calls

Dépannage

Erreurs courantes et correctifs

Skill doesn't activate

Confirm the directory is ~/.claude/skills/symfony-ux-skills/ and contains SKILL.md at the root. Restart Claude Code.

Vérifier : ls ~/.claude/skills/symfony-ux-skills/SKILL.md
Claude uses generic PHP instead of Symfony UX

Prompt explicitly: 'use the symfony-ux-skills you have loaded'

Generated code references UX packages you don't have installed

composer require the package, or tell Claude which packages are installed

Vérifier : composer show | grep symfony/ux

Alternatives

symfony-ux-skills vs autres

AlternativeQuand l'utiliserCompromis
sivalabs-agent-skillsYou work in Spring Boot instead of SymfonyDifferent stack entirely
claude-wordpress-skillsYou work in WordPress / PHP but not SymfonyWordPress-specific patterns, no Twig/Turbo

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills