home/dot_agents/skills/serena/SKILL.md
Token-efficient Serena MCP command for structured app development and problem-solving
npx skillsauth add kryota-dev/dotfiles serenaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/serena <problem> [options] # Basic usage
/serena debug "memory leak in prod" # Debug pattern (5-8 thoughts)
/serena design "auth system" # Design pattern (8-12 thoughts)
/serena review "optimize this code" # Review pattern (4-7 thoughts)
/serena implement "add feature X" # Implementation (6-10 thoughts)
| Option | Description | Usage | Use Case |
| ------ | -------------------------------- | ----------------------------------- | -------------------------------- |
| -q | Quick mode (3-5 thoughts/steps) | /serena "fix button" -q | Simple bugs, minor features |
| -d | Deep mode (10-15 thoughts/steps) | /serena "architecture design" -d | Complex systems, major decisions |
| -c | Code-focused analysis | /serena "optimize performance" -c | Code review, refactoring |
| -s | Step-by-step implementation | /serena "build dashboard" -s | Full feature development |
| -v | Verbose output (show process) | /serena "debug issue" -v | Learning, understanding process |
| -r | Include research phase | /serena "choose framework" -r | Technology decisions |
| -t | Create implementation todos | /serena "new feature" -t | Project management |
# Simple problem solving
/serena "fix login bug"
# Quick feature implementation
/serena "add search filter" -q
# Code optimization
/serena "improve load time" -c
# Complex system design with research
/serena "design microservices architecture" -d -r -v
# Full feature development with todos
/serena "implement user dashboard with charts" -s -t -c
# Deep analysis with documentation
/serena "migrate to new framework" -d -r -v --focus=frontend
find . -maxdepth 2 -name "package.json" -o -name "*.config.*" | head -5 2>/dev/null || echo "No config files"git status --porcelain 2>/dev/null | head -3 || echo "Not git repo"Automatically select thinking pattern based on keywords:
App Development Tasks → Serena MCP
- Component implementation
- API development
- Feature building
- System architecture
All Tasks → Serena MCP
- Component implementation
- API development
- Feature building
- System architecture
- Problem solving and analysis
Thought Control:
--max-thoughts=N: Override default thought count--focus=AREA: Domain-specific analysis (frontend, backend, database, security)--token-budget=N: Optimize for token limitIntegration:
-r: Include Context7 research phase-t: Create implementation todos--context=FILES: Analyze specific files firstOutput:
--summary: Condensed output only--json: Structured output for automation--progressive: Show summary first, details on requestYou are an expert app developer and problem-solver primarily using Serena MCP. For each request:
-s flag usedKey Guidelines:
Token Efficiency Tips:
-q for simple problems (saves ~40% tokens)--summary for overview-only needs--focus to avoid irrelevant analysisdevelopment
`cc-code-review` エージェントを起動して独立したコンテキストでコードレビューを実行する。 現在のセッションのバイアスのないフレッシュな視点で、プロジェクトの CLAUDE.md を踏まえたレビューを行う。 トリガー: "cc-code-review", "ccでレビュー", "別の視点でレビュー", "セカンドオピニオン" 使用場面: (1) PRのコードレビュー (2) ブランチ差分のレビュー (3) 特定ファイルのレビュー (4) 現在の変更のレビュー
tools
Comprehensive guide for the `wtp` (Worktree Plus) CLI by satococoa — an enhanced Git worktree manager. Use this whenever the user wants to create, list, remove, or navigate Git worktrees with wtp, mentions `wtp add`/`wtp cd`/`wtp list`/`wtp remove`/`wtp exec`, asks about automatic worktree paths from branch names, post-create hooks (copy/symlink/command) in `.wtp.yml`, branch tracking for worktrees, or shell integration (`wtp shell-init`, `wtp hook`, tab completion, auto-cd). Trigger this even when the user just describes the workflow — e.g. 'spin up a worktree for this feature branch', 'jump to my auth worktree', 'clean up the worktree and its branch' — without naming wtp explicitly, as long as wtp is the available tool.
tools
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector).
data-ai
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.