Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计提醒

serenaserena 搜索

Agent Skill

serena 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,399

周安装

102

GitHub Stars

公开资料未说明

下载量

840
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:serena(serena 搜索)
来源仓库:https://github.com/juanclaw/serena
安装命令:
openclaw skills install serena
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install serena

简介

在处理具有重要结构的现有软件项目时,尤其是多文件存储库时,请使用 Serena 支持的语义代码导航和编辑。

SKILL.md

name
serena
description
Use Serena-backed semantic code navigation and editing when working in existing software projects with non-trivial structure, especially multi-file repos where symbol-aware lookup and targeted edits are more reliable and token-efficient than brute-force file reading. Use when the environment exposes Serena tools such as project activation, symbol lookup, reference search, semantic search, file reads, directory listing, file finding, or symbol-scoped edits.

Serena

Use Serena as the first choice for understanding and editing existing codebases when the necessary tools are available.

What this skill is for

Use this skill when another agent needs to integrate Serena into its normal coding workflow instead of treating the repo as a pile of text files.

Aim for this behavior:

  • activate the project once
  • inspect structure semantically before reading large files
  • trace references before editing
  • prefer symbol-scoped edits when possible
  • fall back to normal file tools only when Serena is missing a capability or fails

For extra examples and trigger patterns, read references/integration-patterns.md.

Core workflow

  1. Resolve the target project path.
  2. Call serena_activate_project.
  3. Start with structure discovery:

- serena_project_overview - serena_find_symbol - serena_list_dir - serena_find_file - serena_session_status when you need to inspect active Serena sessions

  1. Narrow scope with:

- serena_find_references - serena_search_pattern - serena_read_symbol - serena_read_file

  1. Prefer semantic edits when changing existing code:

- serena_replace_symbol_body - serena_insert_before_symbol - serena_insert_after_symbol - serena_rename_symbol

  1. Use broader edit tools only when symbol-scoped tools are not a good fit:

- serena_replace_content - serena_create_text_file

  1. Use serena_execute_shell_command only as an advanced escape hatch when project-context shell execution is genuinely the right tool.
  2. Use serena_call_tool only when the normalized surface does not cover the needed Serena capability.
  3. Fall back to ordinary file tools only when Serena cannot answer safely or reliably.

When Serena is worth the overhead

Prefer Serena when:

  • the project spans multiple files
  • the user asks about references, call chains, or symbol relationships
  • the user wants a precise edit to an existing class, function, method, or module
  • reading whole files would be noisy or wasteful
  • the repo already has real structure and semantic lookup is available

Skip or delay Serena when:

  • the task is a tiny one-file change and the target location is already obvious
  • you are creating a brand-new file with little dependency on existing code
  • Serena is unavailable or failing and direct file tools are simpler
  • the user already provided the exact file region and semantic lookup adds no value

Tool preference order

For existing codebases, prefer this order:

  1. serena_activate_project
  2. serena_project_overview / serena_find_symbol / serena_find_file
  3. serena_find_references / serena_search_pattern
  4. serena_read_symbol / serena_read_file
  5. symbol-scoped edit tools
  6. broader Serena edit tools
  7. serena_session_status for session inspection/debugging
  8. serena_execute_shell_command only when semantic tools are not the right mechanism
  9. fallback to read, edit, and exec only when needed

Integration guidance for agent authors

When you want another agent to use Serena well, instruct it to:

  • activate the project before semantic reads or edits
  • inspect symbols and references before modifying code
  • use normalized Serena tools first
  • keep edits narrow and structured
  • avoid whole-file rewrites when a symbol-scoped edit is possible
  • treat passthrough as an escape hatch, not the default workflow

A good instruction pattern is:

Use Serena on the repo. Start with serena_activate_project, then narrow scope with serena_find_symbol, serena_find_references, and serena_read_symbol before editing.

Practical usage patterns

Understand a repo area

Use this sequence:

  1. serena_activate_project
  2. serena_find_file or serena_list_dir
  3. serena_project_overview
  4. serena_find_symbol
  5. serena_read_symbol

Trace impact before changing code

Use this sequence:

  1. serena_find_symbol
  2. serena_find_references
  3. serena_search_pattern if naming or text-level usage matters
  4. serena_read_symbol for the most relevant callers/callees

Make a targeted edit

Use this sequence:

  1. locate the exact symbol
  2. read the symbol body
  3. inspect references if behavior changes could ripple outward
  4. choose the narrowest valid edit tool
  5. re-read the changed symbol or nearby references when confidence is low

Editing rules

  • Keep edits as narrow as possible.
  • Prefer symbol-targeted edits over text replacement across a whole file.
  • Prefer semantic rename over manual multi-file rename logic.
  • Re-read the relevant symbol or references after a material edit when confidence is low.
  • If semantic identity is ambiguous, do not guess; disambiguate using path or extra lookup.
  • In read-only mode, do not attempt mutating Serena tools.

Safety and fallback behavior

If Serena fails:

  1. Explain briefly what failed.
  2. Fall back to standard file-based workflow.
  3. Keep using the smallest possible read/edit scope.
  4. Do not pretend the semantic result was confirmed if it was not.

If a raw Serena passthrough tool is available:

  • use it only when the normalized tool surface does not cover the needed capability
  • prefer stable normalized tools for repeated workflows
  • avoid passthrough for routine actions that already have a clear normalized tool

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.82%
按下载量换算813

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install serena 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills