一键导入
safe-refactoring-rules
Ensures all refactoring is deterministic, behavior-preserving, and non-breaking
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Ensures all refactoring is deterministic, behavior-preserving, and non-breaking
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Ensures correct execution order of migrations, seeders, and tests in CI
Defines DTO structure, lifecycle, and transformation rules across the application
Handles Filament multi-tenancy: tenant scoping, TenantAware trait, observer behaviour, isScopedToTenant, and tenant switching. Activates when adding tenant-aware models, fixing company_id scoping, working with Filament::getTenant, debugging tenant isolation, or when the user mentions company scope, tenant, multi-tenancy, or company_id.
Configures Filament panel providers. Activates when adding a new panel, registering module resources in a panel, configuring tenant middleware, adjusting auth or theme settings, or when the user mentions PanelProvider, viteTheme, discoverResources, or panel configuration.
Defines the Filament v4 resource page structure used in this project: Resource + Pages + Schemas + Tables split, action patterns, and BaseResource conventions.
Creates and modifies code inside a modular Laravel structure. Targets internachi/modular (modules as real Composer packages with src/). Activates when adding a new module, adding a model/factory/migration/resource/service to an existing module, registering a module with Filament, or when the user mentions modules, modular, or a specific module name.
| name | safe-refactoring-rules |
| description | Ensures all refactoring is deterministic, behavior-preserving, and non-breaking |
Ensure all refactoring is deterministic, non-breaking, and behavior-preserving.
This skill enforces how changes are made, not how the system is structured.
app(), resolve()).If any of the following is unclear:
Then:
This skill only enforces reuse during refactoring operations.
Global abstraction policy is defined in application-architecture-standard.
Before introducing:
Search for an existing implementation.
Reuse existing abstractions whenever practical.
Duplicate abstractions are architectural defects.
This skill does NOT define:
It ONLY defines safe transformation rules.
If this skill conflicts with others: