agentleFS
wachterjohanneswachterjohannes/symfony-skills/skills/templates/SKILL.md

templates

Skill4 starsChanged 2 months agoMITView on GitHub

Use when creating or editing Twig templates, naming template files, or adding CSS and JavaScript to a Symfony project.

25 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Twig templates

Naming

Everything is snake_case — files, directories and variables.

templates/product/index.html.twig        not  templates/Product/Index.html.twig
templates/user_profile/edit.html.twig    not  templates/UserProfile/Edit.html.twig

Fragments meant to be included or embedded get a leading underscore, so a full page and a partial are distinguishable at a glance:

templates/product/_card.html.twig
templates/layout/_navigation.html.twig

Variables passed from a controller follow the same rule:

return $this->render('product/show.html.twig', [
    'product_list' => $products,
    'is_published' => true,
]);

URLs

Generate them with path() and url(). A hard-coded URL in a template survives exactly until someone changes a route.

Assets

AssetMapper, not Webpack or Encore. It serves modern JavaScript and CSS without a build step. Encore remains valid in projects that already use it — this is about what to reach for in a project that has neither.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.