semantic-rename

Rename TypeScript symbols across files using compiler APIs.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/TbK0ng/silver-bullet-kernel --skill semantic-rename
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-rename
Source: https://github.com/TbK0ng/silver-bullet-kernel/tree/main/.agents/skills/semantic-rename
Command: npx skills add https://github.com/TbK0ng/silver-bullet-kernel --skill semantic-rename

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the risk of errors and inconsistencies when renaming code symbols (variables, functions, classes) by using compiler APIs for precise, text-independent replacements.

Core Features & Use Cases

  • Deterministic Renaming: Ensures accurate renames by understanding code structure, not just text patterns.
  • Cross-File Refactoring: Safely updates symbol references across multiple files in a project.
  • Use Case: When refactoring a large codebase, use this skill to rename a widely used function without fear of accidentally changing unrelated text or missing a reference.

Quick Start

Use the semantic-rename skill to rename the symbol at file main.ts, line 10, column 5 to newVariableName.

Frequently Asked Questions about semantic-rename

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rename a TypeScript variable across multiple files?

Semantic renaming uses TypeScript compiler APIs to identify and replace symbols deterministically, ensuring accurate cross-file refactoring by understanding code structure rather than relying on text pattern matching.

What is the best way to rename a widely used function in a large codebase?

The best way to rename a widely used function in a large codebase is using compiler APIs for deterministic symbol identification. This ensures precise cross-file replacement, preventing missed references or accidental changes to unrelated text.

How do I rename a TypeScript symbol at a specific file location?

To rename a TypeScript symbol at a specific file location, execute npm scripts targeting the precise file, line, and column. The compiler APIs identify the exact symbol at that position to apply the new name safely.

Does semantic TypeScript renaming work without relying on text matching?

Yes, semantic TypeScript renaming works without text matching by leveraging compiler APIs. It analyzes the code structure to perform deterministic, text-independent replacements, ensuring only the correct symbol references are updated.

Do I need npm scripts to perform deterministic TypeScript symbol renaming?

Yes, you need npm scripts for execution and verification when performing deterministic TypeScript symbol renaming. These scripts ensure the compiler API modifications are applied safely and scoped correctly across the project.