[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV9SRVT8X06CTK2SZEBEXP":3,"skill-same:01M7CV9SRVT8X06CTK2SZEBEXP":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7CV9SRVT8X06CTK2SZEBEXP","maui-app-lifecycle",null,".NET MAUI app lifecycle guidance — the four app states, cross-platform Window lifecycle events (Created, Activated, Deactivated, Stopped, Resumed, Destroying), platform-specific lifecycle mapping, backgrounding and resume behavior, and state-preservation patterns. USE FOR: \"app lifecycle\", \"window lifecycle events\", \"save state on background\", \"resume app\", \"OnStopped\", \"OnResumed\", \"backgrounding\", \"deactivated event\", \"ConfigureLifecycleEvents\", \"platform lifecycle hooks\". DO NOT USE FOR: navigation events (use maui-shell-navigation), dependency injection setup (use maui-dependency-injection), platform API invocation (use conditional compilation and partial classes).","deadmade\u002Fdead-agent-skills","deadmade","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130925709?v=4","01M7CTQ65AGYR4J9K9TX0YR9V3","01M7CTQ66B4VMJFEDZP4EKKE6K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmaui-app-lifecycle\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: maui-app-lifecycle\ndescription: >-\n  .NET MAUI app lifecycle guidance — the four app states, cross-platform Window\n  lifecycle events (Created, Activated, Deactivated, Stopped, Resumed, Destroying),\n  platform-specific lifecycle mapping, backgrounding and resume behavior, and\n  state-preservation patterns.\n  USE FOR: \"app lifecycle\", \"window lifecycle events\", \"save state on background\",\n  \"resume app\", \"OnStopped\", \"OnResumed\", \"backgrounding\", \"deactivated event\",\n  \"ConfigureLifecycleEvents\", \"platform lifecycle hooks\".\n  DO NOT USE FOR: navigation events (use maui-shell-navigation),\n  dependency injection setup (use maui-dependency-injection),\n  platform API invocation (use conditional compilation and partial classes).\nlicense: MIT\n---\n\n# .NET MAUI App Lifecycle\n\nHandle application state transitions correctly in .NET MAUI. This skill covers the cross-platform Window lifecycle events, their platform-native mappings, and patterns for preserving state across backgrounding and resume cycles.\n\n## When to Use\n\n- Saving or restoring state when the app backgrounds or resumes\n- Subscribing to Window lifecycle events (Created, Activated, Deactivated, Stopped, Resumed, Destroying)\n- Hooking into platform-native lifecycle callbacks via `ConfigureLifecycleEvents`\n- Deciding where to place initialization, teardown, or refresh logic\n- Understanding the difference between Deactivated and Stopped\n\n## When Not to Use\n\n- Page-level navigation events — use Shell navigation guidance instead\n- Registering services at startup — use dependency injection guidance instead\n- Calling platform-specific APIs outside lifecycle context — use platform invoke guidance instead\n\n## Inputs\n\n- The target lifecycle transition (e.g., \"save draft when backgrounded\", \"refresh data on resume\")\n- Which platforms the developer targets (Android, iOS, Mac Catalyst, Windows)\n- Whether the app uses multiple windows (iPad, Mac Catalyst, desktop Windows)\n\n## App States\n\nA .NET MAUI app moves through four states:\n\n| State | Description |\n|---|---|\n| **Not Running** | Process does not exist |\n| **Running** | Foreground, receiving input |\n| **Deactivated** | Visible but lost focus (dialog, split-screen, notification shade) |\n| **Stopped** | Fully backgrounded, UI not visible |\n\nTypical flow: Not Running → Running → Deactivated → Stopped → Running (resumed) or Not Running (terminated).\n\n## Window Lifecycle Events\n\n`Microsoft.Maui.Controls.Window` exposes six cross-platform events:\n\n| Event | Fires when |\n|---|---|\n| `Created` | Native window allocated |\n| `Activated` | Window receives input focus |\n| `Deactivated` | Window loses focus (may still be visible) |\n| `Stopped` | Window is no longer visible |\n| `Resumed` | Window returns to foreground after Stopped |\n| `Destroying` | Native window is being torn down |\n\n### Subscribing via CreateWindow\n\nOverride `CreateWindow` in your `App` class and attach event handlers:\n\n```csharp\npublic partial class App : Application\n{\n    protected override Window CreateWindow(IActivationState? activationState)\n    {\n        var window = base.CreateWindow(activationState);\n\n        window.Created += (s, e) => Debug.WriteLine(\"Created\");\n        window.Activated += (s, e) => Debug.WriteLine(\"Activated\");\n        window.Deactivated += (s, e) => Debug.WriteLine(\"Deactivated\");\n        window.Stopped += (s, e) => Debug.WriteLine(\"Stopped\");\n        window.Resumed += (s, e) => Debug.WriteLine(\"Resumed\");\n        window.Destroying += (s, e) => Debug.WriteLine(\"Destroying\");\n\n        return window;\n    }\n}\n```\n\n### Subscribing via a Custom Window Subclass\n\nCreate a `Window` subclass and override the virtual methods:\n\n```csharp\npublic class AppWindow : Window\n{\n    public AppWindow(Page page) : base(page) { }\n\n    protected override void OnActivated() { \u002F* refresh UI *\u002F }\n    protected override void OnStopped() { \u002F* save state *\u002F }\n    protected override void OnResumed() { \u002F* restore state *\u002F }\n    protected override void OnDestroying() { \u002F* cleanup *\u002F }\n}\n```\n\nReturn it from `CreateWindow`:\n\n```csharp\nprotected override Window CreateWindow(IActivationState? activationState)\n    => new AppWindow(new AppShell());\n```\n\n## Workflow: Save and Restore State on Background\n\n1. **Identify transient state** — draft text, scroll position, form inputs, timer values.\n2. **Save in `OnStopped`** — use `Preferences` for small values or file serialization for larger state.\n3. **Restore in `OnResumed`** — read back saved values and apply to your view model.\n4. **Also save in `OnDestroying`** on Android — the back button can skip `Stopped` entirely.\n5. **Keep handlers fast** — complete within 1–2 seconds to avoid ANR on Android or watchdog kills on iOS.\n\n```csharp\nprotected override void OnStopped()\n{\n    base.OnStopped();\n    Preferences.Set(\"draft_text\", _viewModel.DraftText);\n    Preferences.Set(\"scroll_y\", _viewModel.ScrollY);\n}\n\nprotected override void OnResumed()\n{\n    base.OnResumed();\n    _viewModel.DraftText = Preferences.Get(\"draft_text\", string.Empty);\n    _viewModel.ScrollY = Preferences.Get(\"scroll_y\", 0.0);\n}\n\nprotected override void OnDestroying()\n{\n    base.OnDestroying();\n    \u002F\u002F Android back-button can skip Stopped\n    Preferences.Set(\"draft_text\", _viewModel.DraftText);\n}\n```\n\n## Platform Lifecycle Mapping\n\n### Android\n\n| Window Event | Android Callback |\n|---|---|\n| Created | `OnCreate` |\n| Activated | `OnResume` |\n| Deactivated | `OnPause` |\n| Stopped | `OnStop` |\n| Resumed | `OnRestart` → `OnStart` → `OnResume` |\n| Destroying | `OnDestroy` |\n\n### iOS \u002F Mac Catalyst\n\n| Window Event | UIKit Callback | `AddiOS` builder method |\n|---|---|---|\n| Created | `WillFinishLaunching` \u002F `SceneWillConnect` | `.WillFinishLaunching()` \u002F `.SceneWillConnect()` |\n| Activated | `DidBecomeActive` | `.OnActivated()` |\n| Deactivated | `WillResignActive` | `.OnResignActivation()` |\n| Stopped | `DidEnterBackground` | `.DidEnterBackground()` |\n| Resumed | `WillEnterForeground` | `.WillEnterForeground()` |\n| Destroying | `WillTerminate` | `.WillTerminate()` |\n\n> ⚠️ The UIKit selector names and the `AddiOS` builder method names differ for\n> activation. There is **no** `.DidBecomeActive()` or `.WillResignActive()` builder\n> method — use `.OnActivated()` and `.OnResignActivation()` or the code will not compile.\n\n### Windows (WinUI)\n\n| Window Event | WinUI Callback |\n|---|---|\n| Created | `OnLaunched` |\n| Activated | `Activated` (foreground) |\n| Deactivated | `Activated` (background) |\n| Stopped | `VisibilityChanged` (false) |\n| Resumed | `VisibilityChanged` (true) |\n| Destroying | `Closed` |\n\n## Hooking Native Lifecycle Directly\n\nUse `ConfigureLifecycleEvents` in `MauiProgram.cs` when you need platform-specific callbacks beyond what Window events provide:\n\n```csharp\nbuilder.ConfigureLifecycleEvents(events =>\n{\n#if ANDROID\n    events.AddAndroid(android => android\n        .OnCreate((activity, bundle) => Debug.WriteLine(\"Android OnCreate\"))\n        .OnResume(activity => Debug.WriteLine(\"Android OnResume\"))\n        .OnPause(activity => Debug.WriteLine(\"Android OnPause\"))\n        .OnStop(activity => Debug.WriteLine(\"Android OnStop\"))\n        .OnDestroy(activity => Debug.WriteLine(\"Android OnDestroy\")));\n#elif IOS || MACCATALYST\n    events.AddiOS(ios => ios\n        .OnActivated(app => Debug.WriteLine(\"iOS OnActivated\"))\n        .OnResignActivation(app => Debug.WriteLine(\"iOS OnResignActivation\"))\n        .DidEnterBackground(app => Debug.WriteLine(\"iOS DidEnterBackground\"))\n        .WillEnterForeground(app => Debug.WriteLine(\"iOS WillEnterForeground\")));\n#elif WINDOWS\n    events.AddWindows(windows => windows\n        .OnLaunched((app, args) => Debug.WriteLine(\"Windows OnLaunched\"))\n        .OnActivated((window, args) => Debug.WriteLine(\"Windows Activated\"))\n        .OnClosed((window, args) => Debug.WriteLine(\"Windows Closed\")));\n#endif\n});\n```\n\n## Common Pitfalls\n\n1. **Resumed does not fire on first launch.** The initial sequence is `Created` → `Activated`. Use `OnActivated` for logic that must run on every foreground entry, not `OnResumed`.\n\n2. **Deactivated ≠ Stopped.** A dialog, split-screen, or notification pull-down triggers `Deactivated` without `Stopped`. Do not perform heavy saves in `OnDeactivated` — the app may never actually background.\n\n3. **Android back button skips Stopped.** On Android, pressing back may call `Destroying` directly without `Stopped`. Place critical save logic in both `OnStopped` and `OnDestroying`.\n\n4. **Multi-window apps fire events independently.** On iPad, Mac Catalyst, and desktop Windows each `Window` instance fires its own lifecycle events. Do not assume a single global lifecycle.\n\n5. **Long-running handlers cause kills.** Android enforces a ~5 second ANR timeout; iOS has limited background execution time. Keep lifecycle handlers synchronous and fast — use `Preferences` for quick saves, not database writes.\n\n6. **Do not use legacy Xamarin.Forms lifecycle methods.** `Application.OnStart()`, `Application.OnSleep()`, and `Application.OnResume()` exist for backward compatibility but bypass Window-level events. In .NET MAUI, prefer `Window` lifecycle events (`OnActivated`, `OnStopped`, `OnResumed`, etc.) for correct multi-window behavior.\n","# .NET MAUI App Lifecycle\n\nHandle application state transitions correctly in .NET MAUI. This skill covers the cross-platform Window lifecycle events, their platform-native mappings, and patterns for preserving state across backgrounding and resume cycles.\n\n## When to Use\n\n- Saving or restoring state when the app backgrounds or resumes\n- Subscribing to Window lifecycle events (Created, Activated, Deactivated, Stopped, Resumed, Destroying)\n- Hooking into platform-native lifecycle callbacks via `ConfigureLifecycleEvents`\n- Deciding where to place initialization, teardown, or refresh logic\n- Understanding the difference between Deactivated and Stopped\n\n## When Not to Use\n\n- Page-level navigation events — use Shell navigation guidance instead\n- Registering services at startup — use dependency injection guidance instead\n- Calling platform-specific APIs outside lifecycle context — use platform invoke guidance instead\n\n## Inputs\n\n- The target lifecycle transition (e.g., \"save draft when backgrounded\", \"refresh data on resume\")\n- Which platforms the developer targets (Android, iOS, Mac Catalyst, Windows)\n- Whether the app uses multiple windows (iPad, Mac Catalyst, desktop Windows)\n\n## App States\n\nA .NET MAUI app moves through four states:\n\n| State | Description |\n|---|---|\n| **Not Running** | Process does not exist |\n| **Running** | Foreground, receiving input |\n| **Deactivated** | Visible but lost focus (dialog, split-screen, notification shade) |\n| **Stopped** | Fully backgrounded, UI not visible |\n\nTypical flow: Not Running → Running → Deactivated → Stopped → Running (resumed) or Not Running (terminated).\n\n## Window Lifecycle Events\n\n`Microsoft.Maui.Controls.Window` exposes six cross-platform events:\n\n| Event | Fires when |\n|---|---|\n| `Created` | Native window allocated |\n| `Activated` | Window receives input focus |\n| `Deactivated` | Window loses focus (may still be visible) |\n| `Stopped` | Window is no longer visible |\n| `Resumed` | Window returns to foreground after Stopped |\n| `Destroying` | Native window is being torn down |\n\n### Subscribing via CreateWindow\n\nOverride `CreateWindow` in your `App` class and attach event handlers:\n\n```csharp\npublic partial class App : Application\n{\n    protected override Window CreateWindow(IActivationState? activationState)\n    {\n        var window = base.CreateWindow(activationState);\n\n        window.Created += (s, e) => Debug.WriteLine(\"Created\");\n        window.Activated += (s, e) => Debug.WriteLine(\"Activated\");\n        window.Deactivated += (s, e) => Debug.WriteLine(\"Deactivated\");\n        window.Stopped += (s, e) => Debug.WriteLine(\"Stopped\");\n        window.Resumed += (s, e) => Debug.WriteLine(\"Resumed\");\n        window.Destroying += (s, e) => Debug.WriteLine(\"Destroying\");\n\n        return window;\n    }\n}\n```\n\n### Subscribing via a Custom Window Subclass\n\nCreate a `Window` subclass and override the virtual methods:\n\n```csharp\npublic class AppWindow : Window\n{\n    public AppWindow(Page page) : base(page) { }\n\n    protected override void OnActivated() { \u002F* refresh UI *\u002F }\n    protected override void OnStopped() { \u002F* save state *\u002F }\n    protected override void OnResumed() { \u002F* restore state *\u002F }\n    protected override void OnDestroying() { \u002F* cleanup *\u002F }\n}\n```\n\nReturn it from `CreateWindow`:\n\n```csharp\nprotected override Window CreateWindow(IActivationState? activationState)\n    => new AppWindow(new AppShell());\n```\n\n## Workflow: Save and Restore State on Background\n\n1. **Identify transient state** — draft text, scroll position, form inputs, timer values.\n2. **Save in `OnStopped`** — use `Preferences` for small values or file serialization for larger state.\n3. **Restore in `OnResumed`** — read back saved values and apply to your view model.\n4. **Also save in `OnDestroying`** on Android — the back button can skip `Stopped` entirely.\n5. **Keep handlers fast** — complete within 1–2 seconds to avoid ANR on Android or watchdog kills on iOS.\n\n```csharp\nprotected override void OnStopped()\n{\n    base.OnStopped();\n    Preferences.Set(\"draft_text\", _viewModel.DraftText);\n    Preferences.Set(\"scroll_y\", _viewModel.ScrollY);\n}\n\nprotected override void OnResumed()\n{\n    base.OnResumed();\n    _viewModel.DraftText = Preferences.Get(\"draft_text\", string.Empty);\n    _viewModel.ScrollY = Preferences.Get(\"scroll_y\", 0.0);\n}\n\nprotected override void OnDestroying()\n{\n    base.OnDestroying();\n    \u002F\u002F Android back-button can skip Stopped\n    Preferences.Set(\"draft_text\", _viewModel.DraftText);\n}\n```\n\n## Platform Lifecycle Mapping\n\n### Android\n\n| Window Event | Android Callback |\n|---|---|\n| Created | `OnCreate` |\n| Activated | `OnResume` |\n| Deactivated | `OnPause` |\n| Stopped | `OnStop` |\n| Resumed | `OnRestart` → `OnStart` → `OnResume` |\n| Destroying | `OnDestroy` |\n\n### iOS \u002F Mac Catalyst\n\n| Window Event | UIKit Callback | `AddiOS` builder method |\n|---|---|---|\n| Created | `WillFinishLaunching` \u002F `SceneWillConnect` | `.WillFinishLaunching()` \u002F `.SceneWillConnect()` |\n| Activated | `DidBecomeActive` | `.OnActivated()` |\n| Deactivated | `WillResignActive` | `.OnResignActivation()` |\n| Stopped | `DidEnterBackground` | `.DidEnterBackground()` |\n| Resumed | `WillEnterForeground` | `.WillEnterForeground()` |\n| Destroying | `WillTerminate` | `.WillTerminate()` |\n\n> ⚠️ The UIKit selector names and the `AddiOS` builder method names differ for\n> activation. There is **no** `.DidBecomeActive()` or `.WillResignActive()` builder\n> method — use `.OnActivated()` and `.OnResignActivation()` or the code will not compile.\n\n### Windows (WinUI)\n\n| Window Event | WinUI Callback |\n|---|---|\n| Created | `OnLaunched` |\n| Activated | `Activated` (foreground) |\n| Deactivated | `Activated` (background) |\n| Stopped | `VisibilityChanged` (false) |\n| Resumed | `VisibilityChanged` (true) |\n| Destroying | `Closed` |\n\n## Hooking Native Lifecycle Directly\n\nUse `ConfigureLifecycleEvents` in `MauiProgram.cs` when you need platform-specific callbacks beyond what Window events provide:\n\n```csharp\nbuilder.ConfigureLifecycleEvents(events =>\n{\n#if ANDROID\n    events.AddAndroid(android => android\n        .OnCreate((activity, bundle) => Debug.WriteLine(\"Android OnCreate\"))\n        .OnResume(activity => Debug.WriteLine(\"Android OnResume\"))\n        .OnPause(activity => Debug.WriteLine(\"Android OnPause\"))\n        .OnStop(activity => Debug.WriteLine(\"Android OnStop\"))\n        .OnDestroy(activity => Debug.WriteLine(\"Android OnDestroy\")));\n#elif IOS || MACCATALYST\n    events.AddiOS(ios => ios\n        .OnActivated(app => Debug.WriteLine(\"iOS OnActivated\"))\n        .OnResignActivation(app => Debug.WriteLine(\"iOS OnResignActivation\"))\n        .DidEnterBackground(app => Debug.WriteLine(\"iOS DidEnterBackground\"))\n        .WillEnterForeground(app => Debug.WriteLine(\"iOS WillEnterForeground\")));\n#elif WINDOWS\n    events.AddWindows(windows => windows\n        .OnLaunched((app, args) => Debug.WriteLine(\"Windows OnLaunched\"))\n        .OnActivated((window, args) => Debug.WriteLine(\"Windows Activated\"))\n        .OnClosed((window, args) => Debug.WriteLine(\"Windows Closed\")));\n#endif\n});\n```\n\n## Common Pitfalls\n\n1. **Resumed does not fire on first launch.** The initial sequence is `Created` → `Activated`. Use `OnActivated` for logic that must run on every foreground entry, not `OnResumed`.\n\n2. **Deactivated ≠ Stopped.** A dialog, split-screen, or notification pull-down triggers `Deactivated` without `Stopped`. Do not perform heavy saves in `OnDeactivated` — the app may never actually background.\n\n3. **Android back button skips Stopped.** On Android, pressing back may call `Destroying` directly without `Stopped`. Place critical save logic in both `OnStopped` and `OnDestroying`.\n\n4. **Multi-window apps fire events independently.** On iPad, Mac Catalyst, and desktop Windows each `Window` instance fires its own lifecycle events. Do not assume a single global lifecycle.\n\n5. **Long-running handlers cause kills.** Android enforces a ~5 second ANR timeout; iOS has limited background execution time. Keep lifecycle handlers synchronous and fast — use `Preferences` for quick saves, not database writes.\n\n6. **Do not use legacy Xamarin.Forms lifecycle methods.** `Application.OnStart()`, `Application.OnSleep()`, and `Application.OnResume()` exist for backward compatibility but bypass Window-level events. In .NET MAUI, prefer `Window` lifecycle events (`OnActivated`, `OnStopped`, `OnResumed`, etc.) for correct multi-window behavior.\n",{"name":5,"license":14,"description":7},"main","ccab8dffc0ecc173838f51e4c5f0d3b51a704f41","plugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmaui-app-lifecycle","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills","https:\u002F\u002Fgithub.com\u002Fdeadmade","https:\u002F\u002Fdeadmade.github.io\u002F","Blood, an Ocean of blood","2026-11-14 02:03:31",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add deadmade\u002Fdead-agent-skills --skill maui-app-lifecycle",{"tool":37,"command":38},"bunx","bunx skills add deadmade\u002Fdead-agent-skills --skill maui-app-lifecycle",{"tool":40,"command":41},"pnpm","pnpm dlx skills add deadmade\u002Fdead-agent-skills --skill maui-app-lifecycle","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmaui-app-lifecycle\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Flifecycle-api.md","REFERENCE","参考文档",5673,"https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fmaui-app-lifecycle\u002Freferences\u002Flifecycle-api.md",[52,59,68,76,83,90],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7CVRBFTXSTTQ7F5P6PJEFYA","rust-best-practices","Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Frust-skills\u002Fskills\u002Frust-best-practices\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":63,"licenseFileUrl":64,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7CVR0W7B8EGTNPSPA7FPC4Z","postgres-database-migration","Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases.\n\n**Trigger when user asks to:**\n- Test a schema migration before applying it to production\n- Add, remove, or rename columns safely on a live table\n- Change a column's data type without downtime\n- Add or drop indexes, constraints, or foreign keys on large tables\n- Understand which ALTER TABLE operations lock the table\n- Roll back a failed migration\n- Plan a zero-downtime migration strategy\n- Fork a database to test a migration safely\n\nCovers: lock-level reference for every common DDL operation, safe migration patterns, fork-based testing, zero-downtime column changes, index creation, constraint addition, backfill strategies, pre\u002Fpost-migration validation, and rollback planning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-database-migration\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":63,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7CVQWK20ASAZN5VETZC8J99","postgres-best-practices","Best practices and guidelines for working with Postgres. Covers schema design, indexing strategies, query optimization, migrations, and common pitfalls. Use when writing SQL, designing database schemas, optimizing queries, or setting up a Postgres database.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fpostgres\u002Fskills\u002Fpostgres-best-practices\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7CVQ5CY7AQHY7A2Y99RE6A7","writing-mstest-tests","ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7CVPWJZ63GB0810F0SCGZ1K","winforms-expert","Create, modify, debug, or review Windows Forms applications only when the request contains a concrete Windows Forms marker. USE FOR: WinForms, Windows Forms, System.Windows.Forms, WinForms Form or UserControl designer files (*.Designer.cs or *.Designer.vb), Visual Studio WinForms Designer, TableLayoutPanel, BindingSource, DataGridView, Control.InvokeAsync, component-tray ownership, or custom control serialization. DO NOT USE FOR: WPF or WPF XAML, including Window.InputBindings, KeyBinding, commands, or DataContext; .NET MAUI; Avalonia; or any request where none of the listed Windows Forms markers is present.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fwinforms-expert\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M7CVPR0QFZ1HMJ6GZRBQAQ7W","vectorization","Design, implement, optimize, and review SIMD code in .NET. USE FOR: vectorizing scalar loops with TensorPrimitives, Vector64\u002F128\u002F256\u002F512, or platform hardware intrinsics; reviewing existing SIMD code, including the generic Vector type, for contract equivalence, tail handling, memory safety, portability, fallbacks, and measured performance. DO NOT USE FOR: performance work unrelated to SIMD or vectorization.","https:\u002F\u002Fgithub.com\u002Fdeadmade\u002Fdead-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fopt-in\u002Fimplementation\u002Fcsharp-skills\u002Flibrary\u002Fvectorization\u002FSKILL.md",[],[]]