Tweak Code

VerifiedSafe

Opens the user's default editor at a specific line number for manual tweaks. Use this when the user wants to make fine-grained adjustments after automated changes.

Sby Skills Guide Bot
DevelopmentBeginner
606/2/2026
Claude Code
#manual-editing#editor-integration#code-tweaks#line-navigation

Recommended for

Our review

Opens the user's default editor at a specific line to allow manual code tweaks after AI-driven changes.

Strengths

  • Opens directly at the edited line
  • Works with multiple editors (Cursor, VS Code, Zed)
  • Enables quick manual adjustments without leaving the terminal
  • Integrates seamlessly after an AI edit

Limitations

  • Only works if an edit has been made prior
  • Multi-line selection is only supported in Zed
  • Relies on automatic editor detection
When to use it

When you want to manually fine-tune specific lines of code after an AI-generated edit.

When not to use it

When you want to make global changes or do not need to manually adjust the code.

Security analysis

Safe
Quality score85/100

The skill instructs the AI to run a local shell script that opens the user's default editor at a specified file and line. There is no indication of destructive, exfiltrating, or obfuscated actions. The script path is fixed within the skill directory and the arguments are constrained to the last edited file. No sensitive system access or network activity is implied.

No concerns found

Examples

Single line tweak
/tweak
Multi-line tweak after edit
I want to manually adjust the changes you just made to the login component. Use /tweak.

name: tweak description: Open the user's default editor at a specific line to manually tweak styles or code. Use when the user wants to make manual adjustments after you've made changes.

Tweak

Opens the user's default editor at a specific file and line number, allowing them to manually tweak the code.

Usage

After making changes to a file, if the user invokes /tweak, run the open-editor.sh script from this skill directory:

~/.claude/skills/tweak/open-editor.sh <file_path> <start_line> [end_line]

Instructions

  1. When the user says /tweak, identify the last file and line range you edited in the conversation
  2. Run the script with the file path, start line, and end line (for multi-line edits)
  3. The script auto-detects which GUI editor is running (Cursor, VS Code, Zed, etc.) and opens the file with the range selected

Example

Single line edit at line 42:

~/.claude/skills/tweak/open-editor.sh /Users/philipp/dev/app/src/Button.tsx 42

Multi-line edit from line 42 to 58 (opens at start line; range selection only works in Zed):

~/.claude/skills/tweak/open-editor.sh /Users/philipp/dev/app/src/Button.tsx 42 58
Related skills