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 gabrielgts/magento-boost --skill plugin-observer-recipesgit clone --depth 1 https://github.com/gabrielgts/magento-boostWrote 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/gabrielgts/magento-boost/plugin-observer-recipes)<a href="https://agentmods.dev/skills/gabrielgts/magento-boost/plugin-observer-recipes"><img src="https://agentmods.dev/badge/skills/gabrielgts/magento-boost/plugin-observer-recipes/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/gabrielgts/magento-boost/plugin-observer-recipes"><img src="https://agentmods.dev/badge/skills/gabrielgts/magento-boost/plugin-observer-recipes.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.00022 | $0.00552 |
| Opus 5.5 | $0.00009 | $0.00221 |
| Sonnet 5.5 | $0.00004 | $0.00110 |
| Haiku 4.5 | $0.00002 | $0.00055 |
Grade A, and why
plugin-observer-recipes 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 2mo 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 — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Plugin, Observer, and Preference Recipes
When to use
When a user asks to "intercept a method", "hook into X", "listen to an event", "extend class Y", or "modify the behavior of Z".
Decision guide
| Goal | Mechanism | Reason |
|---|---|---|
| Modify method inputs or return value | Plugin (before/after/around) |
Composable; multiple plugins can coexist |
| React to a business event | Observer | Decoupled; fire-and-forget |
| Replace the entire class | Preference | Last resort; use only when plugins cannot reach the target |
| Add new methods to an interface | Extension attributes + extension_attributes.xml |
API-safe; does not break interfaces |
Plugin boilerplate
etc/di.xml:
<type name="Magento\Catalog\Model\Product">
<plugin name="{vendor}_{module}_product" type="{Vendor}\{Module}\Plugin\ProductPlugin" sortOrder="10"/>
</type>
Plugin/ProductPlugin.php:
<?php
declare(strict_types=1);
namespace {Vendor}\{Module}\Plugin;
class ProductPlugin
{
public function afterGetName(\Magento\Catalog\Model\Product $subject, string $result): string
{
return $result . ' (modified)';
}
}
Observer boilerplate
etc/frontend/events.xml:
<config>
<event name="catalog_product_load_after">
<observer name="{vendor}_{module}_product_load"
instance="{Vendor}\{Module}\Observer\AfterProductLoad"/>
</event>
</config>
Observer/AfterProductLoad.php:
<?php
declare(strict_types=1);
namespace {Vendor}\{Module}\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\Event\Observer;
class AfterProductLoad implements ObserverInterface
{
public function execute(Observer $observer): void
{
$product = $observer->getEvent()->getProduct();
// your logic here
}
}
Notes
aroundplugins wrap the entire method call, including its own plugins below them. Use only when you must conditionally skip the original method.- Do not declare preferences for classes you do not own if a plugin can achieve the same result.
- Observers cannot return values or modify arguments; they react to data via the event object.
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.
- 2mo ago First seen · 81 lines · 22 tokens per session scan A 2b3a60ed5f6c
plugin-observer-recipes is a skill published in the GitHub repository gabrielgts/magento-boost (10 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 552 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.
plugin-observer-recipes compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plugin-observer-recipesgabrielgts/magento-boost | Skill | 10 | 5mo ago | MIT | A | 22 | Claude Code, Codex |
| amazon-reviews-api-skillbrowser-act/skills | Skill | 6.3k | 3d ago | MIT | A | 124 | Claude Code, Codex |
| amazon-competitor-analyzerbrowser-act/skills | Skill | 6.3k | 3d ago | MIT | A | 48 | Claude Code, Codex |
| asc-subscription-localizationrorkai/app-store-connect-cli-skills | Skill | 1.1k | yesterday | MIT | A | 60 | Claude Code |
| external-purchasesrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 76 | Claude Code |
| food-orderBitterbot-AI/bitterbot-desktop | Skill | 2.5k | today | MIT | A | 53 | Claude Code, Codex |
| Product Photoshoot Workflowjau123/MeiGen-AI-Design-MCP | Skill | 1.8k | yesterday | MIT | A | 111 | Claude Code |