ast-injection

Use AST-aware edits to reduce syntax errors and maintain structure.

📖 中文导读:Use AST-aware edits to reduce syntax errors and maintain structure. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: ast_injection description: Use AST-aware edits to reduce syntax errors and maintain structure. metadata: short-description: AST-aware edits

Purpose

Apply structural code changes safely.

Steps

  1. Prefer AST insertion over raw text replacement.
  2. Validate with tests or static checks.
  3. Record assumptions when AST tooling is unavailable.