add-responder

add-responder is a skill for Claude Code from Guiziweb/guiziweb-plugins. It costs 27 tokens per session (764 once invoked), scanned A, original, MIT.

A guide for returning custom HTTP responses from a Sylius operation instead of the usual web page. These responses can be files, streams, redirects, or specially structured data.

In plain words
What is it for?
Use it to create PDF or XLSX downloads, stream files, return custom JSON, or produce another response format from a Sylius operation.
Why use it?
It gives an operation a clear place to build downloads and other non-page responses, while avoiding unnecessary custom code for simple redirects or added template data.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the sylius-stack plugin — 12 skills shipped together

Good fit Use it to create PDF or XLSX downloads, stream files, return custom JSON, or produce another response format from a Sylius operation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guiziweb/guiziweb-plugins/add-responder
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 Guiziweb/guiziweb-plugins --skill add-responder
Clone the repo
git clone --depth 1 https://github.com/Guiziweb/guiziweb-plugins

Made for: Claude Code.

Or install sylius-stack, the plugin that ships this one along with the rest of its 12 skills.

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 add-responder

README.md
[![agentmods](https://agentmods.dev/badge/skills/guiziweb/guiziweb-plugins/add-responder/github.svg)](https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-responder)
Your own site
<a href="https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-responder"><img src="https://agentmods.dev/badge/skills/guiziweb/guiziweb-plugins/add-responder/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 add-responder

Your own site · 80×15
<a href="https://agentmods.dev/skills/guiziweb/guiziweb-plugins/add-responder"><img src="https://agentmods.dev/badge/skills/guiziweb/guiziweb-plugins/add-responder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 764 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.00027 $0.00764
Opus 5 $0.00014 $0.00382
Sonnet 5 $0.00005 $0.00153
Haiku 4.5 $0.00003 $0.00076

Measured 8d ago against content hash 19090b015b98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-responder 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 8d 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.

plugins/sylius-stack/skills/add-responder/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a Custom Responder — Sylius Stack

Ask the user if not provided:

  • The resource (ModelName) and the target operation.
  • The responder class name. Default: {Purpose}Responder (e.g. ExportGridToXlsxResponder, BookPdfResponder).
  • The format to return (file stream, PDF, XLSX, raw JSON with a specific structure, redirect, …). This drives the body.

If the user only needs a custom redirect after a Create/Update/Delete, do not create a responder — suggest the operation flags:

new Create(
    redirectToRoute: 'app_admin_author_show',
    redirectArguments: ['id' => 'resource.getAuthor().getId()'],
)

If the user only needs extra variables in the default Twig template, use /sylius-stack:add-twig-context instead.


1. Create the responder class

src/Responder/{ResponderName}.php

<?php

declare(strict_types=1);

namespace App\Responder;

use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Operation;
use Sylius\Resource\State\ResponderInterface;
use Symfony\Component\HttpFoundation\Response;

final readonly class {ResponderName} implements ResponderInterface
{
    public function __construct(
        // TODO: inject the services needed to build the response (renderer, http client, serializer…)
    ) {
    }

    public function respond(mixed $data, Operation $operation, Context $context): mixed
    {
        // TODO: transform $data into a Symfony Response and return it
        //       examples: new Response($body), new StreamedResponse(...), new BinaryFileResponse(...)
        return new Response();
    }
}

For a streaming / download response, follow this pattern (see also add-grid-export for a concrete CSV example):

use Symfony\Component\HttpFoundation\StreamedResponse;

$response = new StreamedResponse(function () use ($data) {
    // write bytes to php://output
});
$response->headers->set('Content-Type', 'application/pdf');
$response->headers->set('Content-Disposition', 'attachment; filename="export.pdf"');

return $response;

Read the full file on GitHub · 110 lines

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. 8d ago First seen · 110 lines · 27 tokens per session scan A 19090b015b98

Subscribe to this mod's changes

add-responder is a skill published in the GitHub repository Guiziweb/guiziweb-plugins (4 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 764 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.