mcp-serena

113
13
Source

Initialize projects, efficiently edit code, search symbols, and manage dependencies for streamlined development and refactoring.

Install

mkdir -p .claude/skills/mcp-serena && curl -L -o skill.zip "https://mcp.directory/api/skills/download/117" && unzip -o skill.zip -d .claude/skills/mcp-serena && rm skill.zip

Installs to .claude/skills/mcp-serena

About this skill

Serena MCP エキスパートガイド

🎯 使用タイミング

  • プロジェクト開始時(必須): .serenaディレクトリが存在しない場合
  • コード編集・解析時(最優先): ファイル全体読込の代わりにシンボル単位で操作
  • リファクタリング時: 依存関係を分析してから変更

📋 必須手順

1. プロジェクト初期化(初回のみ)

# .serenaディレクトリ確認
ls -la .serena

# 存在しない場合
mcp__serena__activate_project(project=".")
mcp__serena__check_onboarding_performed()
mcp__serena__onboarding()  # 未実施の場合

2. コード分析ワークフロー

# ファイル概要取得
mcp__serena__get_symbols_overview(relative_path="src/file.ts")

# シンボル検索
mcp__serena__find_symbol(name_path="ClassName/methodName")

# 依存関係分析
mcp__serena__find_referencing_symbols(name_path="functionName", relative_path="src/file.ts")

# パターン検索
mcp__serena__search_for_pattern(substring_pattern="TODO|FIXME")

3. 効率的編集

# シンボル置換
mcp__serena__replace_symbol_body(name_path="methodName", relative_path="src/file.ts", body="new code")

# シンボル前に挿入(import文追加等)
mcp__serena__insert_before_symbol(name_path="firstSymbol", relative_path="src/file.ts", body="import ...")

# シンボル後に挿入(新規メソッド追加等)
mcp__serena__insert_after_symbol(name_path="lastMethod", relative_path="src/file.ts", body="newMethod() {}")

4. プロジェクト知識管理

# メモリ一覧
mcp__serena__list_memories()

# メモリ読込
mcp__serena__read_memory(memory_file_name="architecture.md")

# メモリ保存
mcp__serena__write_memory(memory_name="decisions", content="設計決定内容")

⚠️ 重要な原則

  1. ファイル全体読込は最終手段: まずSerenaでシンボル検索
  2. トークン効率: シンボル単位の操作で大幅削減
  3. Worktree使用時: .serenaを親からコピー(cp -r ../.serena .serena

📚 参照ツール

  • mcp__serena__activate_project
  • mcp__serena__get_symbols_overview
  • mcp__serena__find_symbol
  • mcp__serena__replace_symbol_body
  • mcp__serena__insert_before_symbol
  • mcp__serena__insert_after_symbol
  • mcp__serena__write_memory
  • mcp__serena__read_memory

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

291790

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

213415

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

213296

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

222234

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

173201

rust-coding-skill

UtakataKyosui

Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.

166173

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.