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 agentmods add skills/guiziweb/guiziweb-plugins/add-autocompletenpx skills add Guiziweb/guiziweb-plugins --skill add-autocompletegit 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-autocomplete)<a href="https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-autocomplete"><img src="https://agentmods.dev/badge/skills/guiziweb/guiziweb-plugins/add-autocomplete.svg" alt="Measured on agentmods" 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.00029 | $0.01912 |
| Opus 5 | $0.00015 | $0.00956 |
| Sonnet 5 | $0.00006 | $0.00382 |
| Haiku 4.5 | $0.00003 | $0.00191 |
Grade A, and why
add-autocomplete 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 6d 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 — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add an Autocomplete Type for a Sylius Resource
This skill is for exposing a resource as an autocomplete in a form. For a grid filter, use ux_autocomplete / ux_translatable_autocomplete directly in the grid YAML (see /sylius-app:add-grid) — no custom form type needed.
Ask the user for:
- ModelName: the resource to make searchable (e.g.
Article) - TargetModelName: the existing Sylius entity whose form should receive the field (e.g.
Product). Optional — skip steps 3–4 if not provided.
Read src/Entity/{ModelName}/{ModelName}.php to detect the entity's fields and whether it uses TranslatableTrait.
Prerequisites: /sylius-app:add-model (and /sylius-app:add-translatable-model if applicable) must have been run first.
Key rules
For translatable entities (uses TranslatableTrait)
- Use
TranslatableAutocompleteTypeas parent - Always set
entity_fields: []inextra_options— the default is['code'], which crashes if the entity has nocodefield - Set
translation_fieldsto the actual translated field names (e.g.['title']) - Set
choice_labeldirectly via$resolver->setDefault('choice_label', fn(Options $options) => ...)— NOT insideextra_options
For non-translatable entities
- Use
BaseEntityAutocompleteTypeas parent - Set
searchable_fieldsvia$resolver->setDefault('searchable_fields', fn(Options $options) => [...])
Always
- Inject the model class via constructor (
%app.model.{model_snake}.class%) - Register explicitly in
services.yamlwith bothform.typeandux.entity_autocomplete_fieldtags — PHP attributes alone are not enough without autoconfigure filter_queryis a PHP callable — it can NOT be passed viaextra_options(only scalars/arrays travel via URL). Define it insideconfigureOptionsinstead.
1. Create the AutocompleteType
Translatable entity
src/Form/Type/{ModelName}/{ModelName}AutocompleteType.php:
<?php
declare(strict_types=1);
namespace App\Form\Type\{ModelName};
use Doctrine\ORM\QueryBuilder;
use Sylius\Bundle\AdminBundle\Form\Type\TranslatableAutocompleteType;
use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\UX\Autocomplete\Form\AsEntityAutocompleteField;
#[AsEntityAutocompleteField(
alias: 'app_{model_snake}',
route: 'sylius_admin_entity_autocomplete',
)]
class {ModelName}AutocompleteType extends AbstractType
{
public function __construct(private readonly string ${model_snake}Class)
{
}
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'class' => $this->{model_snake}Class,
'extra_options' => [
'entity_fields' => [], // ⚠️ required if entity has no 'code' field
'translation_fields' => ['{label_field}'], // translated fields to search in
],
// filter_query must be defined here — NOT via extra_options (no callables via URL)
// 'filter_query' => function (QueryBuilder $qb, string $query, EntityRepository $repository): void {
// $qb->andWhere('entity.enabled = :enabled')->setParameter('enabled', true);
// },
]);
$resolver->setDefault('choice_label', function (Options $options): string {
return $options['extra_options']['choice_label'] ?? '{label_field}';
});
}
public function getBlockPrefix(): string
{
return 'app_{model_snake}_autocomplete';
}
public function getParent(): string
{
return TranslatableAutocompleteType::class;
}
}
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.
- 6d ago First seen · 218 lines · 29 tokens per session scan A 109868968720
add-autocomplete is a skill published in the GitHub repository Guiziweb/guiziweb-plugins (4 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 1,912 once invoked, about $0.0001 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…