search-and-replace

Search and replace text patterns across TypeScript, JavaScript, and Vue files.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/yearofthedan/weaver --skill search-and-replace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search-and-replace
Source: https://github.com/yearofthedan/weaver/tree/main/.claude/skills/search-and-replace
Command: npx skills add https://github.com/yearofthedan/weaver --skill search-and-replace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually editing the same string in many source files is error‑prone and time‑consuming; this Skill automates search and replacement across a project's codebase, ensuring consistent updates without missing files.

Core Features & Use Cases

  • Search: Locate every occurrence of a pattern in TypeScript, JavaScript, and Vue files with weaver search-text, receiving file, line, column, and match text.
  • Replace: Perform bulk regex replacements or targeted surgical edits with weaver replace-text, receiving modification counts and type‑error reports.
  • Scoping: Use workspace and glob patterns to limit operations to specific directories or files, and optionally disable type‑error checks for batch runs.
  • Use Case: Quickly rename a variable or API endpoint across hundreds of files while preserving type safety.

Quick Start

Ask the skill to replace all occurrences of oldName with newName in TypeScript files throughout the workspace.

Frequently Asked Questions about search-and-replace

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

FAQPage Schema
How do I search and replace text patterns across multiple TypeScript and Vue files?

You can scope search and replace text operations using workspace and glob filters to target specific directories containing TypeScript, JavaScript, and Vue files. This returns structured search results and safe replacement edits with type-error detection.

Can I rename an API endpoint across hundreds of files without breaking type safety?

Yes, you can perform bulk regex replacements to rename an API endpoint across hundreds of files while preserving type safety. The process automatically reports type-errors introduced by the modifications.

What is the best way to automate codebase text replacement without missing files?

Automating codebase text replacement is best handled by applying workspace and glob patterns to scope operations. This ensures consistent updates across TypeScript, JavaScript, and Vue files, returning modification counts to verify no files were missed.

Does the search and replace tool support regex patterns for targeted surgical edits?

Yes, the search and replace tool supports regex patterns for both bulk replacements and targeted surgical edits. It provides structured search results with file, line, column, and match text, followed by modification counts and type-error reports.

How do I disable type-error checks during a large batch text replacement?

You can disable type-error checks during a large batch text replacement by using the optional configuration provided for batch runs. This allows you to perform bulk regex replacements across the workspace without receiving type-error reports.

Why does my codebase text replacement report type errors after renaming a variable?

Codebase text replacement reports type errors after renaming a variable because the tool automatically runs type-error detection on modified files. This ensures that broken contracts or missing references from the replacement are caught immediately.