Frameworks und Abhängigkeiten modernisieren
Aktualisiert Pakete anhand installierter Versionen und bewahrt wichtiges Verhalten an externen Bibliotheksgrenzen.
dependency-framework-modernization
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill beim Wechsel von Frameworks oder Bibliotheken mit abweichenden Standards.
Wobei hilft er dir?
- Erfasst veraltete APIs und offizielle Migrationsanforderungen.
- Begrenzt anbieterspezifische Anpassungen auf passende Schnittstellen.
- Prüft Datum, Fehler, Rückgabewerte und weitere Kompatibilitätsfälle.
Das könntest du fragen
Plane unser Datumsbibliothek-Upgrade mit Zeitzonen- und Sommerzeitvergleichen; trenne Verhaltensänderungen von Syntaxanpassungen. Vergleiche Datumswerte an Zeitumstellungsgrenzen unterstützter Zeitzonen. Geänderte Dauer oder Tagesanzeige erfordert vor Veröffentlichung eine ausdrückliche Entscheidung.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
Dependency & Framework Modernization
Modernizing language syntax, framework conventions or third-party dependencies requires grounding every change in the actual installed versions and official migration guides — never guessing APIs from memory or mixing incompatible generational patterns.
1. Version & Deprecation Discovery
Before touching code for an upgrade or modernization task:
- Inspect manifests and lockfiles: read
package.json+ lockfile,composer.json+composer.lock,Cargo.toml,pyproject.toml,go.modor compiler configs (tsconfig.json,php.ini, target runtime settings) to verify exact installed versions. - Inventory deprecated usage: search the codebase for deprecated API calls, legacy lifecycle hooks, outdated configuration keys, polyfills and custom monkey-patches.
- Consult official version migration guides: verify exact breaking changes, changed default options, altered return types and subtle behavioral shifts between the source and target versions.
2. Wrapping Third-Party Boundaries
When upgrading a widely called third-party SDK, HTTP client, ORM helper, validation library or date/crypto utility:
- Isolate vendor specifics behind an internal adapter: if 60 files call a third-party library directly with vendor-specific options, first introduce or tighten a thin internal wrapper so vendor API churn is contained to one boundary.
- Preserve behavioral edge cases across library swaps:
- Check timezone, locale and daylight-saving semantics when modernizing date/time libraries.
- Check error throwing vs. status-code resolving (e.g.,
fetchvs.axioson4xx/5xxresponses, timeout cancellation and retry semantics). - Check serialization edge cases (
undefinedvs.null,BigInt,Dateformatting, decimal precision).
3. Phased Modernization Execution
- Separate dependency bumps from unrelated refactoring: do not combine a major framework upgrade, a directory reorganization and business-rule changes in the same step.
- Bridge compatibility first:
- Upgrade to the latest minor release of the current major version and resolve all deprecation warnings while existing tests pass.
- Where supported, enable compatibility flags or dual-syntax bridges so modules can be migrated in small, reviewable batches.
- Prefer deterministic codemods and AST rules for mechanical changes: when a framework or language change is purely syntactic across many files, apply consistent transformations and verify every diff rather than hand-editing inconsistently.
- Coordinate with technology specialists: when modernizing framework-specific patterns (such as reactive state, ORM queries, mobile native bridges or desktop IPC), align the target idiom with the corresponding framework specialist.
4. Post-Upgrade Verification
- Run the full typecheck, linter, unit/integration test suite and production build — dev-mode bundlers often hide resolution or tree-shaking issues that fail in production builds.
- Verify runtime startup, configuration loading and at least one end-to-end execution path exercising the modernized dependency.
Enthaltene Dateien 1
SKILL.md
Über dieses Skill-Paket
dependency-framework-modernization
dependency-framework-modernization: Verbessert bestehenden Code in kleinen, prüfbaren Schritten, bewahrt das Verhalten und hält die Komplexität angemessen.
Weniger anzeigen
dependency-framework-modernization
dependency-framework-modernization: Verbessert bestehenden Code in kleinen, prüfbaren Schritten, bewahrt das Verhalten und hält die Komplexität angemessen.
Enthält den vollständigen Skill und seine Begleitdateien (1 Dateien). Der genaue, ursprünglich verfasste Anwendungsbereich bleibt unten erhalten.
Ursprüngliche Skill-Beschreibung (Quellsprache)
Use when upgrading deprecated language features, framework APIs and third-party libraries safely using adapters, codemods, version-pinned verification and phased rollouts.
Installiere den Skill, prüfe seine Quelle und Vertrauenseinstellungen und aktiviere ihn für das passende Projekt oder den Agenten.
Voraussetzungen
- Orqestria auf deinem Computer installiert.
