AgentSkillsCN

solid-refactor-assistant

在对现有 SolidJS 代码进行重构时,采用低回归风险的顺序规划,并辅以明确的响应式验证,确保安全可靠。适用于变更组件边界、状态结构、Props 接口,或渲染模式时使用。

SKILL.md
--- frontmatter
name: solid-refactor-assistant
description: Plan and execute safe SolidJS refactors with low-regression sequencing and explicit reactivity validation. Use when changing component boundaries, state shape, props interfaces, or rendering patterns in existing SolidJS code.

solid-refactor-assistant

  1. Identify current behavior and invariants to preserve.
  2. Propose an ordered refactor sequence with rollback-safe increments.
  3. Apply transformations while preserving SolidJS reactivity semantics.
  4. Validate with ../../references/solidjs/reactivity-core.md and ../../references/solidjs/performance-ssr.md.
  5. Output a regression checklist and recommended verification commands.