Symfony AI Demo is a Symfony application that demonstrates AI components through a chatbot using OpenAI language and embedding models, with PostgreSQL and pgvector storing contextual embeddings. Developers use it to explore a Symfony-based AI application and its setup.
Borrowing it
Nothing to install: this file belongs to symfony/ai-demo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/symfony/ai-demo/main/.agents/skills/mate-symfony-profiler-debugging/SKILL.mdgit clone --depth 1 https://github.com/symfony/ai-demoWrote 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/symfony/ai-demo/mate-symfony-profiler-debugging)<a href="https://agentmods.dev/skills/symfony/ai-demo/mate-symfony-profiler-debugging"><img src="https://agentmods.dev/badge/skills/symfony/ai-demo/mate-symfony-profiler-debugging/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/symfony/ai-demo/mate-symfony-profiler-debugging"><img src="https://agentmods.dev/badge/skills/symfony/ai-demo/mate-symfony-profiler-debugging.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.00071 | $0.01048 |
| Opus 5.5 | $0.00028 | $0.00419 |
| Sonnet 5.5 | $0.00014 | $0.00210 |
| Haiku 4.5 | $0.00007 | $0.00105 |
Grade A, and why
mate-symfony-profiler-debugging scanned grade A with 1 finding 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`summary` has `method`, `path`, `route`, `status_code`, `content_type`. `data` has the sanitized bags (`request_query`, `request_request`, `request_headers`, `session_attributes`). Sensitive values, the raw body, and the How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Profiler debugging
Reads the profiler through Mate's CLI. Two tools, two resources:
symfony-profiler-listfilters profiles (method,url,ip,statusCode,context,from,to,limit). Newest first, so--limit=1is the latest. Returns summaries with aresource_uriper profile.symfony-profiler-get --token=<t>returns one profile's metadata. It does NOT list collectors.symfony-profiler://profile/{token}lists the collectors this profile actually has, each with its URI.symfony-profiler://profile/{token}/{collector}returns that collector, as{name, data, summary}.summaryis the triage view,datathe full detail.
These commands accept --format: json to parse the result, toon (when helgesverre/toon is installed) for the smallest context footprint. On a large profile, prefer one of these over the human-readable default.
Workflow
- Find the profile. Do not scroll all profiles.
- Error:
vendor/bin/mate tools:call symfony-profiler-list --statusCode=500 --limit=5 - Known URL:
--url=/checkout. Latest request:--limit=1.
- Error:
vendor/bin/mate resources:read symfony-profiler://profile/<token>to see which collectors exist. Apps differ; only read what is present.- Read collectors in diagnosis order, not all of them.
Reading order
Branch on the symptom.
Errored (5xx / exception): read exception first.
data.class, message (secrets scrubbed), file, line, and trace (top 10 frames) are the fix. If has_exception is false on an error response, the failure is upstream: check request for the status and logger for what was logged.
Slow but succeeded: skip exception, go to time, then db, then memory.
time:duration_msis total.eventsare sorted slowest first with acategory(e.g.doctrine,template,controller) that tells you which subsystem ate the time. That category picks the next collector.db:query_countplussummary.duplicate_query_count.queriesare grouped by identical SQL, sorted bytotal_time_ms. An N+1 shows as one grouped entry with a highcount(same statement fired in a loop), or a highduplicate_query_count. One slow statement shows as a highavg_time_ms.sample_paramsshows what was bound. Grouped list caps at 50 (queries_truncated).memory:usage_percentagainst the limit. Only relevant when the request is heavy or OOMs.
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.
- 1mo ago First seen · 50 lines · 71 tokens per session scan A 0ec3a0cd7955
mate-symfony-profiler-debugging is a skill published in the GitHub repository symfony/ai-demo (48 stars, last pushed 2d ago), licensed MIT. It adds 71 tokens to every session and 1,048 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.
Other skills, from other repositories
system-information
Resolve which dependency versions are actually installed, from composer show and composer.lock, when diagnosing version-specific behavior such as a method, argument or class that does not exist in the release that is really running. For the PHP runtime itself (version, OS, loaded extensions) use the…
php-environment-check
Check the PHP runtime with server-info, its version, OS, and loaded extensions. Reach for it when a Mate tool itself fails or a capability is missing and you suspect the environment, a missing extension or an old PHP, rather than the app or its config. Not for diagnosing app behavior (profiler, log investigation) or…
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
agent-merge-conflict-arbiter
Neutral arbiter for merge conflicts between two agents.
triage-issues
Triage GitHub issues in the googleapis/mcp-toolbox repo: propose the correct labels (type / priority / product / status), check for duplicates, verify a bug has enough info to act on, and draft a triage comment. Use whenever a maintainer asks you to triage, label, categorize, prioritize, or "look at" an issue (or a…
python-debugpy
Debug Python: pdb REPL + debugpy remote (DAP).