create-twig-index-template

create-twig-index-template is a skill for Claude Code, Codex from jeffsenso/prestashop-skills. It costs 46 tokens per session (469 once invoked), scanned A, original, MIT.

A Twig template for an administration page that lists records in a grid. Twig is a template language used to generate web pages from data.

In plain words
What is it for?
It helps create an entity listing page, connect it to the controller's grid data, add an “Add new” button, and customize how particular columns are shown.
Why use it?
It provides the page structure needed to display the grid, messages, and actions such as adding a record.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create an entity listing page, connect it to the controller's grid data, add an “Add new” button, and customize how particular columns are shown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffsenso/prestashop-skills/create-twig-index-template
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jeffsenso/prestashop-skills --skill create-twig-index-template
Clone the repo
git clone --depth 1 https://github.com/jeffsenso/prestashop-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-twig-index-template

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-twig-index-template/github.svg)](https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-twig-index-template)
Your own site
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-twig-index-template"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-twig-index-template/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-twig-index-template

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffsenso/prestashop-skills/create-twig-index-template"><img src="https://agentmods.dev/badge/skills/jeffsenso/prestashop-skills/create-twig-index-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00469
Opus 5 $0.00023 $0.00234
Sonnet 5 $0.00009 $0.00094
Haiku 4.5 $0.00005 $0.00047

Measured 11d ago against content hash 3f034892d532, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

create-twig-index-template scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prestashop-module-development/ps9-core-ai/Component/Twig/skills/create-twig-index-template/SKILL.md · 52 lines

What it actually says

create-twig-index-template

Read @.ai/Component/Twig/CONTEXT.md for template conventions (layout, flash messages, routes, form themes).

1. Index template

Create src/PrestaShopBundle/Resources/views/Admin/{Section}/{Domain}/index.html.twig:

{% extends '@PrestaShop/Admin/layout.html.twig' %}

{% block content %}
  {% include '@PrestaShop/Admin/Common/Grid/grid_panel.html.twig' with {grid: grid} %}
{% endblock %}

{% block page_header_toolbar %}
  <div class="toolbar-icons">
    <a href="{{ path('admin_{domain}s_create') }}" class="btn btn-primary">
      {{ 'Add new'|trans({}, 'Admin.Actions') }}
    </a>
  </div>
{% endblock %}

The grid variable is passed from the controller's indexAction via the grid presenter.

Reference: src/PrestaShopBundle/Resources/views/Admin/Improve/International/Tax/index.html.twig (simple), src/PrestaShopBundle/Resources/views/Admin/Sell/Catalog/Manufacturer/index.html.twig (two grids)

2. Custom grid column rendering (only if needed)

Most grids work with default column rendering. Only add custom blocks when a column needs domain-specific HTML:

  • Override via {% block column_{column_id}_content %} in the grid panel include
  • Common case: image thumbnail, custom badge, formatted compound value
  • Leave default columns alone — only override what's necessary

Rules

Conventions (layout extension, path() for routes, flash messages auto-handling, toolbar buttons) are in Twig/CONTEXT.md. Skill-specific reminder:

  • The grid variable name must match what the controller passes to render()
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 52 lines · 46 tokens per session scan A 3f034892d532

Subscribe to this mod's changes

create-twig-index-template is a skill published in the GitHub repository jeffsenso/prestashop-skills (5 stars, last pushed 17d ago), licensed MIT. It adds 46 tokens to every session and 469 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.