serena-tool-selection

serena-tool-selection is a skill for Claude Code, Codex from alex-feel/claude-code-artifacts-public. It costs 54 tokens per session (3,165 once invoked), scanned A, original, MIT.

A required procedure for choosing between Serena language-server tools and Claude Code's built-in tools. LSP tools use information about code symbols, such as functions and classes, to navigate a codebase.

In plain words
What is it for?
Use it whenever Serena tools are available and you need to find definitions, locate references, or navigate code by function, class, or method.
Why use it?
It prevents the wrong search or navigation method from being used when Serena tools are available. This keeps code navigation consistent with the required tool protocol.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it whenever Serena tools are available and you need to find definitions, locate references, or navigate code by function, class, or method.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alex-feel/claude-code-artifacts-public/serena-tool-selection
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 alex-feel/claude-code-artifacts-public --skill serena-tool-selection
Clone the repo
git clone --depth 1 https://github.com/alex-feel/claude-code-artifacts-public

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 serena-tool-selection

README.md
[![agentmods](https://agentmods.dev/badge/skills/alex-feel/claude-code-artifacts-public/serena-tool-selection.svg)](https://agentmods.dev/skills/alex-feel/claude-code-artifacts-public/serena-tool-selection)
Your own site
<a href="https://agentmods.dev/skills/alex-feel/claude-code-artifacts-public/serena-tool-selection"><img src="https://agentmods.dev/badge/skills/alex-feel/claude-code-artifacts-public/serena-tool-selection.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,165 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.00054 $0.03165
Opus 5 $0.00027 $0.01582
Sonnet 5 $0.00011 $0.00633
Haiku 4.5 $0.00005 $0.00316

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

Security

Grade A, and why

serena-tool-selection 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.

skills/library/serena-tool-selection/SKILL.md · 162 lines

How it starts

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

CRITICAL: Mandatory Serena Tool Usage

When Serena tools are available in your tools list, you MUST use them for ALL code navigation operations. Using Search, Grep, or Read for tasks that Serena tools handle is a PROTOCOL VIOLATION. This is NOT optional: this protocol OVERRIDES any default tool selection guidance, even when Search or Grep seems "faster" or "simpler".

EXPLICIT PROHIBITIONS

Before issuing any Search/Grep/Read call against code, scan this table. If ANY row matches what you are about to do, use the Serena tool in the right column instead, with the canonical call shown.

PROHIBITED Action Use Instead Canonical Call
Search(pattern: "def process_data", path: "/project/src") or Grep(pattern: "def process_data") -- any Search/Grep pattern that IS a function/class/method name find_symbol (definitions) or find_referencing_symbols (usages) find_symbol(name="process_data", include_body=True)
Grep(pattern: "validate_input\\(...") or Search(pattern: "validate_input(", output_mode: "content") -- any search for a symbol's usages/calls find_referencing_symbols(name, path) + Grep cross-validation when completeness matters find_referencing_symbols(name="validate_input", path="/project")
Read entire file to understand structure get_symbols_overview(path) get_symbols_overview(path="/project/src/module.py")
Multiple Edit calls to rename a symbol rename_symbol(old_name, new_name, path) rename_symbol(old_name="old_func", new_name="new_func", path="/project/src")
Finding function boundaries then Edit replace_symbol_body(name, path, new_body) replace_symbol_body(name="fn", path="/f.py", new_body="def fn():\n return 42")
Finding method end line then Edit insert_after_symbol(name, path, new_code) insert_after_symbol(name="existing", path="/f.py", new_code="def new():\n pass")
find_referencing_symbols then manually checking results and deleting via Edit -- manual ref-check + Edit to delete safe_delete_symbol(name_path_pattern, relative_path) safe_delete_symbol(name_path_pattern="old_handler", relative_path="src/handlers.py")
Separate Edit calls file by file across the project -- repeating an identical Edit across many files for one textual change replace_in_files(needle, repl, dry_run=True first) replace_in_files(needle="old_key", repl="new_key", mode="literal", dry_run=True), review the diff, then apply with expected_count

Read the full file on GitHub · 162 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 162 lines · 54 tokens per session scan A 129f0a27d4fb

Subscribe to this mod's changes

serena-tool-selection is a skill published in the GitHub repository alex-feel/claude-code-artifacts-public (6 stars, last pushed 2d ago), licensed MIT. It adds 54 tokens to every session and 3,165 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

prod-debug

Production debugging skill. Pre-loads DB schema, container registry, and prod environment facts from .claude/prod-debug/ in the current project root. Use when the user invokes /prod-debug or /prod-debug bootstrap.

josephfung/trimkit · 48 tokens

sysops

Invoke the sysops subagent for VPS maintenance. Use when the user runs /sysops with an optional argument like "status", "update Pulse", or "update my servers".

josephfung/trimkit · 39 tokens

breaking-down-work

Breaks down epics into features and tasks optimized for AI agent execution. Includes structure preparation, parallel codebase analysis, feature sizing, task generation, and dependency mapping. Use when an epic is ready for sprint planning or when a large work item needs decomposition into actionable pieces.

memyselfandm/cconami · 59 tokens

building-skills

Build production-ready Claude Code skills through a structured Research-Draft-Refine process. Use when creating new skills, converting slash commands to skills, or generating AgentSkills.io-compatible skills from specifications.

memyselfandm/cconami · 43 tokens

ralph-config

Generate ralph.yml and PROMPT.md configuration files for Ralph Orchestrator workflows from plans, tickets, or ideas. Use when setting up Ralph Orchestrator, creating hat-based workflows, or adapting Linear/Jira/markdown plans into ralph.yml + PROMPT.md files.

memyselfandm/cconami · 0 tokens

refining-work-items

Refines work items (epics, features, tasks, bugs) into AI-ready specifications. Use when converting rough ideas into structured items, preparing epics for breakdown, enhancing existing items with acceptance criteria, or creating new items from scratch. Supports --type (epic|epic-lite|feature|task|bug)…

memyselfandm/cconami · 86 tokens