ai-demo: Skill for Claude Code

.agents/skills/mate-symfony-log-investigation/SKILL.md

mate-symfony-log-investigation is a skill for Claude Code, Codex from symfony/ai-demo. It costs 74 tokens per session (960 once invoked), scanned A, original, MIT.

A log investigation tool for Symfony applications using Monolog, a library that writes application events and errors to log files. It searches and filters entries across files, channels, dates, levels, and structured context.

In plain words
What is it for?
Use it to list log files and channels, view recent entries, search for text or patterns, and find entries by fields such as a user or request identifier.
Why use it?
It avoids manually opening many log files when you need to trace a request or user, find when a problem began, or measure how often it occurs.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is symfony/ai-demo's own configuration. It tells Claude Code and Codex how to work on ai-demo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-demo configures →

About the project

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.

symfony/ai-demo · 48 stars · on GitHub · symfony.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/symfony/ai-demo/main/.agents/skills/mate-symfony-log-investigation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/symfony/ai-demo

Made for: Claude Code, Codex.

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 mate-symfony-log-investigation

README.md
[![agentmods](https://agentmods.dev/badge/skills/symfony/ai-demo/mate-symfony-log-investigation/github.svg)](https://agentmods.dev/skills/symfony/ai-demo/mate-symfony-log-investigation)
Your own site
<a href="https://agentmods.dev/skills/symfony/ai-demo/mate-symfony-log-investigation"><img src="https://agentmods.dev/badge/skills/symfony/ai-demo/mate-symfony-log-investigation/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 mate-symfony-log-investigation

Your own site · 80×15
<a href="https://agentmods.dev/skills/symfony/ai-demo/mate-symfony-log-investigation"><img src="https://agentmods.dev/badge/skills/symfony/ai-demo/mate-symfony-log-investigation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 960 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.00074 $0.00960
Opus 5.5 $0.00030 $0.00384
Sonnet 5.5 $0.00015 $0.00192
Haiku 4.5 $0.00007 $0.00096

Measured 1mo ago against content hash 229be1052f57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mate-symfony-log-investigation 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 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.

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.

.agents/skills/mate-symfony-log-investigation/SKILL.md · 40 lines

How it starts

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

Log investigation

Reads Monolog files through Mate's CLI. Entries come back as {datetime, channel, level, message, context, extra, source_file, line_number}. Sensitive context keys are redacted in the output but still matched when you search them.

  • monolog-list-files (opt environment): what log files exist, newest first.
  • monolog-list-channels: distinct channel names (app, security, doctrine, ...). Reads every file, so it is the slow one; skip it if you already know the channel.
  • monolog-tail (limit, level, environment, channel): most recent entries. Reads ONLY the single newest file.
  • monolog-search (term, regex, level, channel, environment, from, to, limit): searches across all files. term is optional; omit it (or pass an empty string) to filter by level/channel/from/to only, e.g. "just show me the errors".
  • monolog-context-search (key, value, level, environment, limit): matches a structured context field. No channel or date filter here.

These commands accept --format: json to parse the result, toon (when helgesverre/toon is installed) for the smallest context footprint. A wide search returns many entries, so narrow with filters and a limit before widening the output format.

Workflow

  1. Orient: vendor/bin/mate tools:call monolog-list-files. Confirm the environment you care about is present and recently modified.
  2. Latest state: vendor/bin/mate tools:call monolog-tail --level=error --limit=50. Good for "what just broke", nothing else.
  3. Narrow with search:
    • vendor/bin/mate tools:call monolog-search --term="Timeout" --level=error
    • Time-box it: --from="-1 hour", --from=2026-07-01 --to=2026-07-02. Any PHP-parseable date works.
    • Regex: vendor/bin/mate tools:call monolog-search --term="user \d+ locked" --regex. A bare pattern is wrapped as /.../i; pass your own /.../ or #...# to control anchoring and flags.
  4. Pivot on a field: once you have an identifier (request id, user id, order id), follow it with vendor/bin/mate tools:call monolog-context-search --key=request_id --value=abc123. This is how you reconstruct one request or one user across many lines.

Read the full file on GitHub · 40 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. 1mo ago First seen · 40 lines · 74 tokens per session scan A 229be1052f57

Subscribe to this mod's changes

mate-symfony-log-investigation is a skill published in the GitHub repository symfony/ai-demo (48 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 960 once invoked, about $0.0003 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-09-25.