jetbrains-coding

Use when JetBrains MCP tools are available (mcp__jetbrains__*) - enforces IDE-native workflow with problem checking after file completion, and smart refactoring tools instead of grep/sed

$ Installer

git clone https://github.com/maidevberlin/logikids /tmp/logikids && cp -r /tmp/logikids/.claude/skills/jetbrains-coding ~/.claude/skills/logikids

// tip: Run this command in your terminal to install the skill


name: jetbrains-coding description: Use when JetBrains MCP tools are available (mcp__jetbrains__*) - enforces IDE-native workflow with problem checking after file completion, and smart refactoring tools instead of grep/sed

JetBrains IDE-Native Coding

Overview

When JetBrains MCP tools are available, use them instead of Bash/grep/sed. The IDE provides smarter refactoring, real-time error detection, and code formatting that understands your project.

Trigger: MCP tools starting with mcp__jetbrains__ are available.

Mandatory Workflow

EDIT → FILE COMPLETE → CHECK PROBLEMS → FIX → (repeat until 0 problems)
  1. After completing a file: Call get_file_problems
  2. If problems found: Fix them, check again
  3. Continue until: 0 errors/warnings

Tool Preference

Instead of...Use JetBrains Tool
grep, rg, Grep toolsearch_in_files_by_text or find_usages
find, Glob toolfind_files_by_name_keyword
cat, Read toolget_file_text_by_path
sed, Edit toolreplace_text_in_file (targeted)
tree, lslist_directory_tree
Manual rename + greprename_refactoring (updates ALL refs)
git statusget_project_vcs_status
git log --grepfind_commit_by_message

When to use standard tools: Non-code files, complex shell pipelines, operations without JetBrains equivalent.

Available Tools (Quick Reference)

Code Intelligence

ToolPurpose
find_usagesFind all usages of a symbol across project
get_symbol_infoGet docs, type info, declaration location
rename_refactoringSmart rename - updates all references
get_file_problemsIDE inspections (errors, warnings) for a file
get_project_problemsAll problems across entire project

File Operations

ToolPurpose
get_file_text_by_pathRead file content
replace_text_in_fileTargeted text replacement
create_new_fileCreate file with content
open_file_in_editorOpen file in IDE

Search

ToolPurpose
search_in_files_by_textText search across project (indexed)
search_in_files_by_regexRegex search across project
find_files_by_name_keywordFind files by name substring
find_files_by_globFind files by glob pattern

Navigation

ToolPurpose
list_directory_treeTree view of directory
get_all_open_file_pathsCurrently open files in IDE

Execution

ToolPurpose
execute_terminal_commandRun shell command in IDE terminal
run_configurationRun IDE run configuration
get_run_configurationsList available run configs

VCS

ToolPurpose
get_project_vcs_statusGit status via IDE
find_commit_by_messageSearch commit history
get_repositoriesList VCS roots

Debugging

ToolPurpose
get_debugger_breakpointsList all breakpoints
toggle_debugger_breakpointAdd/remove breakpoint

Renaming Files

When renaming files (e.g., task.service.tsservice.ts):

  1. Check if IDE has file rename: Some JetBrains MCP versions expose file rename that updates imports automatically
  2. If not available: Use git mv for rename, then update imports with replace_text_in_file using replaceAll: true
  3. After renaming: ALWAYS run type-check to catch missed imports

Key insight: rename_refactoring is for SYMBOLS (classes, functions, variables), not files. For file renames, you need to update import paths separately.

Common Mistakes

MistakeFix
Using Grep to find symbol usagesUse find_usages - understands code structure
Manual rename + search/replaceUse rename_refactoring - updates imports, references
Not checking for problemsCall get_file_problems after completing a file
Ignoring IDE warningsFix ALL problems before moving on
Using git mv then manually updating imports one by oneUse replace_text_in_file with replaceAll: true to batch update

projectPath Parameter

Always pass projectPath to JetBrains tools:

projectPath: "/absolute/path/to/project"

This avoids ambiguity when multiple projects are open.