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.
npx skills add Guiziweb/guiziweb-plugins --skill add-twig-contextgit clone --depth 1 https://github.com/Guiziweb/guiziweb-pluginsWrote 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.
[](https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-twig-context)<a href="https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-twig-context"><img src="https://agentmods.dev/badge/skills/guiziweb/guiziweb-plugins/add-twig-context/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.
<a href="https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-twig-context"><img src="https://agentmods.dev/badge/skills/guiziweb/guiziweb-plugins/add-twig-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.00781 |
| Opus 5.5 | $0.00010 | $0.00312 |
| Sonnet 5.5 | $0.00005 | $0.00156 |
| Haiku 4.5 | $0.00003 | $0.00078 |
Grade A, and why
add-twig-context 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a Twig Context Factory — Sylius Stack
Ask the user if not provided:
- The resource (
ModelName) and the target operation (typicallyShow,Index,Create,Update). - The variable(s) to add and where the value comes from (related entities, repository call, aggregated counts, external service…).
- The factory class name. Default:
{Operation}{ModelName}ContextFactory(e.g.ShowBookContextFactory).
If the user only needs to change the template path of an operation, do not create a factory — use the template: option on the operation instead:
new Show(template: 'book/custom_show.html.twig')
1. Create the context factory
src/Twig/Context/Factory/{FactoryName}.php
<?php
declare(strict_types=1);
namespace App\Twig\Context\Factory;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Operation;
use Sylius\Resource\Twig\Context\Factory\ContextFactoryInterface;
final class {FactoryName} implements ContextFactoryInterface
{
public function __construct(
private ContextFactoryInterface $decorated,
// TODO: inject the services used to build your extra variables (repositories, services…)
) {
}
public function create(mixed $data, Operation $operation, Context $context): array
{
return array_merge($this->decorated->create($data, $operation, $context), [
// TODO: add your extra variables here, e.g.:
// 'related_books' => $this->bookRepository->findRelatedTo($data),
// 'stats' => $this->statsService->for($data),
]);
}
}
The decorated default factory is kept in the constructor so the existing context (resource, {model_snake}, form, operation, resource_metadata, …) remains available.
2. Wire the factory on the operation
Edit src/Entity/{ModelName}.php:
use App\Twig\Context\Factory\{FactoryName};
new Show(twigContextFactory: {FactoryName}::class),
3. Use the new variables in the template
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.
- 3mo ago First seen · 105 lines · 25 tokens per session scan A 7dbbdbf03fc2
add-twig-context is a skill published in the GitHub repository Guiziweb/guiziweb-plugins (4 stars, last pushed 4mo ago), licensed MIT. It adds 25 tokens to every session and 781 once invoked, about $0.0001 per session on Opus 5.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.
add-twig-context compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-twig-contextGuiziweb/guiziweb-plugins | Skill | 4 | 4mo ago | MIT | A | 25 | Claude Code |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 5d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 695 | yesterday | MIT | A | 105 | Claude Code, Codex |