using-serena-symbols

using-serena-symbols is a skill for Claude Code from rjmurillo/ai-agents. It costs 66 tokens per session (2,110 once invoked), scanned A, original, MIT.

A code-navigation guide for Serena, a tool that understands functions, classes, references, and imports across files. It explains when structured symbol analysis is more accurate than text search.

In plain words
What is it for?
Use it to inspect a file's structure, find a class or function, trace references, analyze imports, or understand call hierarchies.
Why use it?
It helps agents find the actual definition or uses of a symbol without being distracted by comments or matching text. This makes exploring unfamiliar code and tracing relationships more reliable.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the project-toolkit plugin — 125 skills, 25 commands, 33 agents, 5 hooks shipped together

Good fit Use it to inspect a file's structure, find a class or function, trace references, analyze imports, or understand call hierarchies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjmurillo/ai-agents/using-serena-symbols
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 rjmurillo/ai-agents --skill using-serena-symbols
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 125 skills, 25 commands, 33 agents, 5 hooks.

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 using-serena-symbols

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/using-serena-symbols/github.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/using-serena-symbols)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/using-serena-symbols"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/using-serena-symbols/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 using-serena-symbols

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/using-serena-symbols"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/using-serena-symbols.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,110 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.02110
Opus 5.5 $0.00026 $0.00844
Sonnet 5.5 $0.00013 $0.00422
Haiku 4.5 $0.00007 $0.00211

Measured 6d ago against content hash d23aec0ef6f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

using-serena-symbols 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.

.claude/skills/using-serena-symbols/SKILL.md · 287 lines

How it starts

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

Using Serena Symbol Analysis

Serena provides LSP-powered code intelligence for accurate symbol extraction, relationship discovery, and cross-file analysis.

Use Serena Use Grep/Text Search
Finding class/function definitions Searching for string literals
Tracing method references Finding patterns in comments
Understanding call hierarchies Searching config files
Analyzing imports/dependencies Finding TODO/FIXME markers
Cross-file architecture analysis Simple keyword search

Key advantage: Serena understands code structure. find_symbol("UserService") finds the actual class definition, not every mention of "UserService" in comments or strings.

Core Tools

1. get_symbols_overview

Get high-level view of symbols in a file. Start here when exploring a new file.

mcp__plugin_serena_serena__get_symbols_overview(
    {
        "relative_path": "src/services/auth.py",
        "depth": 1,  # 0=top-level only, 1=include methods
    }
)

Returns: Classes, functions, variables with their kind and location.

2. find_symbol

Find symbols by name pattern. Supports flexible matching.

Name path patterns:

  • UserService - Find any symbol named "UserService"
  • UserService/authenticate - Find method in class
  • /UserService - Exact match (absolute path)
  • Service with substring_matching: true - Matches "UserService", "AuthService", etc.
mcp__plugin_serena_serena__find_symbol(
    {
        "name_path_pattern": "UserService/authenticate",
        "include_body": true,  # Get source code
        "depth": 0,  # 0=just this symbol, 1=include children
    }
)

Key parameters:

  • include_body (bool): Include source code (use judiciously for context)
  • depth (int): How many levels of children to retrieve
  • relative_path (str): Restrict search to file/directory
  • substring_matching (bool): Partial name matching

Read the full file on GitHub · 287 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. 6d ago Changed · -7 lines d23aec0ef6f7
  2. 9d ago Changed 43b0aaeee7a9
  3. 20d ago Changed · +12 lines d3af01019f96
  4. 22d ago Changed · +5 lines 6d579ece2a15
  5. 1mo ago Changed · -5 lines · -32 tokens per session 5494fcd5aac8
  6. 1mo ago First seen · 282 lines · 98 tokens per session scan A 28a9499ea305

Subscribe to this mod's changes

using-serena-symbols is a skill published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 2,110 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-03.