[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75XFEF38KS6FYH7H7VZMM3Z":3,"skill-same:01M75XFEF38KS6FYH7H7VZMM3Z":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":29,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75XFEF38KS6FYH7H7VZMM3Z","project-templates",null,"Use when working on `.html.twig` files, Twig components or Turbo stream templates.","loupe-ac\u002Floupe","loupe-ac","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F345019842?v=4","01M75XDH3V7GZDHB5M0J04BFTP","Loupe","01M75XDH4EWXVAMQEHFV5TWBMF",2,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproject-templates\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: project-templates\ndescription: \"Use when working on `.html.twig` files, Twig components or Turbo stream templates.\"\n---\n\n# Templates, Twig components and form theme\n\n## Twig templates\n\n- Every `{% include %}` passes its variables explicitly with `with { ... } only`. Context does not cascade.\n- When you extract a shared partial, list every variable it reads. Pass them all at every include site.\n- Turbo stream templates run in a different controller context and inherit no page variables. Pass every variable explicitly.\n- Turbo stream templates target element IDs directly, for example `\u003Cturbo-stream target=\"event-hero-title\">`. When you change or remove an element `id`, search the stream templates for that ID and update them. They live in another file, and a wrong ID raises no compile error.\n- Hard-reload (`ignoreCache: true`) before you inspect the live DOM with DevTools or the Chrome MCP. Turbo's page cache serves snapshots with stale class names.\n\n### The authenticated layout owns `project`\n\n`base.html.twig` runs `{% set project = current_project() %}` before it yields `block body`. On a route with no project `{id}` param, it resolves to null. It then overwrites a controller-passed variable named `project`, with no error. Never pass `project` from a param-less route to a template inside the authenticated layout. Use a distinct name (`wizardProject`), or forward the raw id string so `current_project()` resolves it.\n\n## Render a form field by field, because there is no form theme\n\nThis project registers no `form_themes`. `form_row()` therefore emits Symfony's default markup, which nothing here styles. The label sits against the placeholder, and the input has no box around it.\n\nRender each field with the form part components. `FormField` draws the label, the widget, the hint and the errors of one field:\n\n```twig\n{{ form_start(form, {'attr': {'class': 'lp-form'}}) }}\n    \u003Ctwig:Ds:FormField :fieldView=\"form.title\" \u002F>\n    \u003Ctwig:Ds:FormField :fieldView=\"form.kind\" widgetKind=\"select\" \u002F>\n    \u003Ctwig:Ds:Button variant=\"primary\" type=\"submit\">{{ 'x.submit'|trans }}\u003C\u002Ftwig:Ds:Button>\n{{ form_end(form) }}\n```\n\nA field that needs its own layout takes the classes from `ds_input_class('select')` and `ds_label_class()`, and uses `\u003Ctwig:Ds:FieldErrors :fieldView=\"form.kind\" \u002F>`. Never write `lp-input`, `lp-label`, `lp-form-field`, `lp-field-errors` or `lp-form-hint` by hand, because `just gamache` blocks it.\n\nKeep `form_end()`. It renders the hidden CSRF field.\n\nNothing fails when you use `form_row()` instead. The page returns 200, the form submits, every test passes, and the diff reads as correct Twig. Only a person who looks at the page sees the problem, so no gate in this repository catches it.\n\nNo template uses `form_row()`. Treat a `form_row()` in a diff as a mistake rather than a style choice.\n\n## Module template namespaces\n\nEach module's `templates\u002FModule\u002F\u003CModule>\u002F` directory is registered as `@\u003CModule>` in `config\u002Fpackages\u002Ftwig.yaml` under `twig.paths`. Reference module templates by that namespace, never by the plain `Module\u002F\u003CModule>\u002F...` path.\n\n```yaml\ntwig:\n    paths:\n        '%kernel.project_dir%\u002Ftemplates\u002FModule\u002FAccount': 'Account'\n```\n\nWrite `@Account\u002Fsecurity\u002Flogin.html.twig` everywhere: in PHP (`render()`, `->htmlTemplate()`, `->textTemplate()`) and in Twig (`extends`, `include`, `embed`, `from`, `import`). The namespace name is the module name verbatim.\n\n- Templates in the `templates\u002F` root stay un-namespaced: `base.html.twig`, `form\u002F...`, `email\u002F...`.\n- `twig_component.yaml` directory mappings are unrelated. They map component PHP namespaces to scan directories (`Module\u002F\u003CModule>\u002Fcomponents\u002F`) and stay plain paths. Components are referenced by `\u003Ctwig:Name>`, never by an `@`-path.\n- When you add a module, register its `@\u003CModule>` namespace in `twig.yaml` in the same change. Otherwise every template reference 404s at render time.\n- A builder that assembles a template path from a class's module segment must emit `@\u003CModule>\u002F...`, not `Module\u002F\u003CModule>\u002F...`.\n- Verify registration with `bin\u002Fconsole debug:twig`, which lists all loader namespaces.\n\n`lint:twig` validates syntax only. It does not check that `extends` and `include` targets resolve. A green `lint:twig` therefore does not prove a template-path refactor is correct. Verify with `bin\u002Fconsole debug:twig` for namespace registration, and with the e2e suite for render-time resolution failures.\n\n## Twig components\n\n- `config\u002Fpackages\u002Ftwig_component.yaml` resolves component templates by namespace prefix. Each `defaults` entry must end in `\\`. The config supports no per-component override.\n- For a template outside its namespace-mapped directory, set the path on the attribute: `#[AsTwigComponent(template: 'path\u002Fto\u002FComponent.html.twig')]`.\n- Component PHP classes live in their owning module, under `Module\u002F\u003CName>\u002FTwig\u002FComponents\u002F` (namespace `App\\Module\\\u003CName>\\Twig\\Components\\`). Never use a central `src\u002FTwig\u002FComponents\u002F`. Each module registers its own namespace to directory mapping:\n\n```yaml\ntwig_component:\n    defaults:\n        App\\Module\\Event\\Twig\\Components\\: 'Module\u002FEvent\u002Fcomponents\u002F'\n        App\\Module\\Event\\Twig\\Components\\Admin\\: 'Module\u002FEvent\u002Fadmin\u002Fcomponents\u002F'\n        App\\Module\\Poll\\Twig\\Components\\: 'Module\u002FPoll\u002Fcomponents\u002F'\n```\n\nUse `\u003Ctwig:ComponentName prop=\"{{ value }}\" \u002F>`. To pass a PHP object, prefix the prop with a colon: `:prop=\"someObject\"` evaluates the Twig expression. Without the colon the value is a literal string.\n\nA self-contained component that needs an entity injects a repository and resolves the entity from the raw route attribute. It does not take the entity as a prop. `EntityValueResolver` does not write the resolved entity back to the request attributes. `$request->attributes->get('param')` therefore always returns the raw string from the URL. See `symfony-entity-route-mapping`.\n\n```php\npublic function mount(): void\n{\n    $raw = $this->requestStack->getCurrentRequest()?->attributes->get('param');\n    if (!is_string($raw) || '' === $raw) {\n        return;\n    }\n    $this->entity = $this->repository->findOneBy(['slug' => $raw]);\n    \u002F\u002F ...\n}\n```\n\nA component template can start with a header comment that documents its props. Those props must then match the component's `mount()` signature. When you add, remove or rename a `mount()` parameter, update the comment in the same commit. A stale comment is worse than no comment.\n\n## Turbo frames and active state\n\nNever render active state on the server for links inside a Turbo frame. Only the frame content re-renders on navigation, so the sidebar stays stale. Derive the active state client-side. For example, match `window.location.pathname` against each link's `href` on `turbo:load`. Use a dedicated Stimulus controller for this pattern.\n\n## Template naming\n\nA template file name must match the controller's verb prefix. `CreateFooController` renders `create_foo.html.twig`, and `new_foo.html.twig` is wrong. The verb (create, list, view, edit, delete) is identical in both names. When you create or rename a controller, rename its template in the same commit. Gamache's `ControllerTemplateNameRule` enforces this. It also mirrors the controller path to the template path.\n\n## Page titles\n\nA page `{% block title %}` composes two translated strings, the page-specific part and the brand. Never use one key with the brand baked in.\n\n```twig\n{% block title %}{{ 'account.login.page.title'|trans }} — {{ 'app.name'|trans }}{% endblock %}\n```\n\nThe page-title trans-unit holds only the page part: `account.login.page.title` gives `Sign in`. `app.name` is the single source of truth for the brand name in titles. Do not write `Sign in — Loupe` into the title key. The brand then changes in one place, and review expects it.\n","# Templates, Twig components and form theme\n\n## Twig templates\n\n- Every `{% include %}` passes its variables explicitly with `with { ... } only`. Context does not cascade.\n- When you extract a shared partial, list every variable it reads. Pass them all at every include site.\n- Turbo stream templates run in a different controller context and inherit no page variables. Pass every variable explicitly.\n- Turbo stream templates target element IDs directly, for example `\u003Cturbo-stream target=\"event-hero-title\">`. When you change or remove an element `id`, search the stream templates for that ID and update them. They live in another file, and a wrong ID raises no compile error.\n- Hard-reload (`ignoreCache: true`) before you inspect the live DOM with DevTools or the Chrome MCP. Turbo's page cache serves snapshots with stale class names.\n\n### The authenticated layout owns `project`\n\n`base.html.twig` runs `{% set project = current_project() %}` before it yields `block body`. On a route with no project `{id}` param, it resolves to null. It then overwrites a controller-passed variable named `project`, with no error. Never pass `project` from a param-less route to a template inside the authenticated layout. Use a distinct name (`wizardProject`), or forward the raw id string so `current_project()` resolves it.\n\n## Render a form field by field, because there is no form theme\n\nThis project registers no `form_themes`. `form_row()` therefore emits Symfony's default markup, which nothing here styles. The label sits against the placeholder, and the input has no box around it.\n\nRender each field with the form part components. `FormField` draws the label, the widget, the hint and the errors of one field:\n\n```twig\n{{ form_start(form, {'attr': {'class': 'lp-form'}}) }}\n    \u003Ctwig:Ds:FormField :fieldView=\"form.title\" \u002F>\n    \u003Ctwig:Ds:FormField :fieldView=\"form.kind\" widgetKind=\"select\" \u002F>\n    \u003Ctwig:Ds:Button variant=\"primary\" type=\"submit\">{{ 'x.submit'|trans }}\u003C\u002Ftwig:Ds:Button>\n{{ form_end(form) }}\n```\n\nA field that needs its own layout takes the classes from `ds_input_class('select')` and `ds_label_class()`, and uses `\u003Ctwig:Ds:FieldErrors :fieldView=\"form.kind\" \u002F>`. Never write `lp-input`, `lp-label`, `lp-form-field`, `lp-field-errors` or `lp-form-hint` by hand, because `just gamache` blocks it.\n\nKeep `form_end()`. It renders the hidden CSRF field.\n\nNothing fails when you use `form_row()` instead. The page returns 200, the form submits, every test passes, and the diff reads as correct Twig. Only a person who looks at the page sees the problem, so no gate in this repository catches it.\n\nNo template uses `form_row()`. Treat a `form_row()` in a diff as a mistake rather than a style choice.\n\n## Module template namespaces\n\nEach module's `templates\u002FModule\u002F\u003CModule>\u002F` directory is registered as `@\u003CModule>` in `config\u002Fpackages\u002Ftwig.yaml` under `twig.paths`. Reference module templates by that namespace, never by the plain `Module\u002F\u003CModule>\u002F...` path.\n\n```yaml\ntwig:\n    paths:\n        '%kernel.project_dir%\u002Ftemplates\u002FModule\u002FAccount': 'Account'\n```\n\nWrite `@Account\u002Fsecurity\u002Flogin.html.twig` everywhere: in PHP (`render()`, `->htmlTemplate()`, `->textTemplate()`) and in Twig (`extends`, `include`, `embed`, `from`, `import`). The namespace name is the module name verbatim.\n\n- Templates in the `templates\u002F` root stay un-namespaced: `base.html.twig`, `form\u002F...`, `email\u002F...`.\n- `twig_component.yaml` directory mappings are unrelated. They map component PHP namespaces to scan directories (`Module\u002F\u003CModule>\u002Fcomponents\u002F`) and stay plain paths. Components are referenced by `\u003Ctwig:Name>`, never by an `@`-path.\n- When you add a module, register its `@\u003CModule>` namespace in `twig.yaml` in the same change. Otherwise every template reference 404s at render time.\n- A builder that assembles a template path from a class's module segment must emit `@\u003CModule>\u002F...`, not `Module\u002F\u003CModule>\u002F...`.\n- Verify registration with `bin\u002Fconsole debug:twig`, which lists all loader namespaces.\n\n`lint:twig` validates syntax only. It does not check that `extends` and `include` targets resolve. A green `lint:twig` therefore does not prove a template-path refactor is correct. Verify with `bin\u002Fconsole debug:twig` for namespace registration, and with the e2e suite for render-time resolution failures.\n\n## Twig components\n\n- `config\u002Fpackages\u002Ftwig_component.yaml` resolves component templates by namespace prefix. Each `defaults` entry must end in `\\`. The config supports no per-component override.\n- For a template outside its namespace-mapped directory, set the path on the attribute: `#[AsTwigComponent(template: 'path\u002Fto\u002FComponent.html.twig')]`.\n- Component PHP classes live in their owning module, under `Module\u002F\u003CName>\u002FTwig\u002FComponents\u002F` (namespace `App\\Module\\\u003CName>\\Twig\\Components\\`). Never use a central `src\u002FTwig\u002FComponents\u002F`. Each module registers its own namespace to directory mapping:\n\n```yaml\ntwig_component:\n    defaults:\n        App\\Module\\Event\\Twig\\Components\\: 'Module\u002FEvent\u002Fcomponents\u002F'\n        App\\Module\\Event\\Twig\\Components\\Admin\\: 'Module\u002FEvent\u002Fadmin\u002Fcomponents\u002F'\n        App\\Module\\Poll\\Twig\\Components\\: 'Module\u002FPoll\u002Fcomponents\u002F'\n```\n\nUse `\u003Ctwig:ComponentName prop=\"{{ value }}\" \u002F>`. To pass a PHP object, prefix the prop with a colon: `:prop=\"someObject\"` evaluates the Twig expression. Without the colon the value is a literal string.\n\nA self-contained component that needs an entity injects a repository and resolves the entity from the raw route attribute. It does not take the entity as a prop. `EntityValueResolver` does not write the resolved entity back to the request attributes. `$request->attributes->get('param')` therefore always returns the raw string from the URL. See `symfony-entity-route-mapping`.\n\n```php\npublic function mount(): void\n{\n    $raw = $this->requestStack->getCurrentRequest()?->attributes->get('param');\n    if (!is_string($raw) || '' === $raw) {\n        return;\n    }\n    $this->entity = $this->repository->findOneBy(['slug' => $raw]);\n    \u002F\u002F ...\n}\n```\n\nA component template can start with a header comment that documents its props. Those props must then match the component's `mount()` signature. When you add, remove or rename a `mount()` parameter, update the comment in the same commit. A stale comment is worse than no comment.\n\n## Turbo frames and active state\n\nNever render active state on the server for links inside a Turbo frame. Only the frame content re-renders on navigation, so the sidebar stays stale. Derive the active state client-side. For example, match `window.location.pathname` against each link's `href` on `turbo:load`. Use a dedicated Stimulus controller for this pattern.\n\n## Template naming\n\nA template file name must match the controller's verb prefix. `CreateFooController` renders `create_foo.html.twig`, and `new_foo.html.twig` is wrong. The verb (create, list, view, edit, delete) is identical in both names. When you create or rename a controller, rename its template in the same commit. Gamache's `ControllerTemplateNameRule` enforces this. It also mirrors the controller path to the template path.\n\n## Page titles\n\nA page `{% block title %}` composes two translated strings, the page-specific part and the brand. Never use one key with the brand baked in.\n\n```twig\n{% block title %}{{ 'account.login.page.title'|trans }} — {{ 'app.name'|trans }}{% endblock %}\n```\n\nThe page-title trans-unit holds only the page part: `account.login.page.title` gives `Sign in`. `app.name` is the single source of truth for the brand name in titles. Do not write `Sign in — Loupe` into the title key. The brand then changes in one place, and review expects it.\n",{"name":5,"description":7},"main","b0ae29efd5410c4e5bf9a6ed6aed4b6c1d82e55a",".agents\u002Fskills\u002Fproject-templates",0,"https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe","https:\u002F\u002Floupe.ac\u002F","https:\u002F\u002Fgithub.com\u002Floupe-ac","The control plane for your agent loops.","2026-11-15 04:50:14",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add loupe-ac\u002Floupe --skill project-templates",{"tool":39,"command":40},"bunx","bunx skills add loupe-ac\u002Floupe --skill project-templates",{"tool":42,"command":43},"pnpm","pnpm dlx skills add loupe-ac\u002Floupe --skill project-templates","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproject-templates\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M75XHSK6MYZ0BH7PJHP378QV","loupe-workers","Use when reading worker runs or bridges through the loupe MCP, stopping, resuming or holding workers, cancelling a bridge command, or recovering workers after a usage limit or network outage.","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002Fplugins\u002Floupe\u002Fskills\u002Floupe-workers\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M75XHPW77P75PPWY8Z7Q9XMZ","loupe-site-review","Use when acting on live-review feedback through the loupe MCP: reading the feedback of a card or project, fixing it, or marking it addressed.","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002Fplugins\u002Floupe\u002Fskills\u002Floupe-site-review\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M75XHK6EZP2FZRQ1B4PS4CGH","loupe-inbox","Use when an agent needs a decision, answer or review from the project owner through the loupe MCP, hands a question or to-do to a person, resumes after an ask closed, or needs its session id.","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002Fplugins\u002Floupe\u002Fskills\u002Floupe-inbox\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M75XHDN9XG71R4T248BZ540A","loupe-documents","Use when writing or revising a document for the Loupe app through the loupe MCP, such as a plan, spec, RFC, audit report or retrospective.","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002Fplugins\u002Floupe\u002Fskills\u002Floupe-documents\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M75XHBERM2SWJ7SJ1EB5M4SB","loupe-discovery","Use when a bridge runs a discovery run of a Loupe project, when a prompt names loupe-discovery, or when writing a readiness report.","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002Fplugins\u002Floupe\u002Fskills\u002Floupe-discovery\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M75XH7X2KCFWPVMQJJAMPYJN","loupe-board","Use when working a Loupe project board through the loupe MCP: reading or writing a card, moving a card, changing the columns, or linking a document or a pull request to a card.","https:\u002F\u002Fgithub.com\u002Floupe-ac\u002Floupe\u002Fblob\u002Fmain\u002Fplugins\u002Floupe\u002Fskills\u002Floupe-board\u002FSKILL.md",[],[]]