single-file-edit

Guide staged multi-file TypeScript edits with type-checking between changes.

Updated May 21, 2026
One-click install
npx skills add https://github.com/mica-agent/mica-solar-system --skill single-file-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-file-edit
Source: https://github.com/mica-agent/mica-solar-system/tree/main/.qwen/skills/single-file-edit
Command: npx skills add https://github.com/mica-agent/mica-solar-system --skill single-file-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents risky, hard-to-debug edits when a task requires touching several files by enforcing a controlled, file-by-file workflow with verification between steps.

Core Features & Use Cases

  • Planned multi-file editing: Names exactly which files must change and what each change will do before editing starts.
  • Dependency-aware ordering: Recommends an update sequence (e.g., types → producers → consumers) to avoid breaking downstream code.
  • Continuous type verification: Suggests running a TypeScript type-check between file edits to catch cross-file issues early.
  • Change verification guardrails: Encourages asking for permission before proceeding and warns against restarting backend scripts during tool execution.

Quick Start

Tell the skill which feature or bug you are working on and what files you expect to change, and ask it to update the files one at a time with type-checking between each edit.

Frequently Asked Questions about single-file-edit

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

FAQPage Schema
How do I safely refactor TypeScript code across multiple files?

To safely refactor TypeScript code across multiple files, apply a staged edit process that updates files one at a time in a dependency-aware order and runs npx tsc --noEmit between edits to catch cross-file issues early.

What is the best way to implement a feature that changes types and their callers in JavaScript?

The best way to implement a feature changing types and callers is to list affected files, propose a dependency-aware update sequence like types then producers then consumers, and edit files sequentially with type-checking between each step.

How do I prevent broken downstream code when modifying shared modules?

To prevent broken downstream code when modifying shared modules, establish a planned edit order targeting dependencies first and verify type integrity by running npx tsc --noEmit after each individual file modification before proceeding to the next.

Does staged multi-file editing work without a TypeScript compiler?

Staged multi-file editing does not require a TypeScript compiler to apply text changes, but running npx tsc --noEmit between file edits is necessary to achieve continuous type verification and catch cross-file integration issues early.

Why should I avoid restarting backend scripts during multi-file code editing?

You should avoid restarting backend scripts during multi-file code editing because the workflow requires pausing to verify type correctness between file updates, and restarting scripts mid-sequence disrupts the controlled, staged verification process.