[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D1TCJJMSDK62EXJXJT2KQ4":3,"skill-same:01M7D1TCJJMSDK62EXJXJT2KQ4":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7D1TCJJMSDK62EXJXJT2KQ4","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).","itsmejay18\u002FAI-Skills-for-My-Development-Stack","itsmejay18","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F167779943?v=4","01M7CZRFC6DDZA5V2CX8WDSZED","Jay Jemino Ababon ","01M7CZRFCVRNW1SFHSQXEJ3CQN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F10-Mobile-Development\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":15,"description":7},"main","30954af1dcd1a74b63f05deb2e2c41e5ecae4a82","10-Mobile-Development\u002Fmaui-app-lifecycle","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack","https:\u002F\u002Fgithub.com\u002Fitsmejay18","2026-09-18 16:06:36",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill maui-app-lifecycle",{"tool":36,"command":37},"bunx","bunx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill maui-app-lifecycle",{"tool":39,"command":40},"pnpm","pnpm dlx skills add itsmejay18\u002FAI-Skills-for-My-Development-Stack --skill maui-app-lifecycle","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F10-Mobile-Development\u002Fmaui-app-lifecycle\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Flifecycle-api.md","REFERENCE","参考文档",5673,"https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F10-Mobile-Development\u002Fmaui-app-lifecycle\u002Freferences\u002Flifecycle-api.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7D2RKBHPZ3E1RNN5DWHT550","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 Vector\u003CT>, 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\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fvectorization\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7D2RDJ7RN3QK8GJR0QTER1D","resolve-project-references","Guide for interpreting ResolveProjectReferences time in MSBuild performance summaries. Activate when ResolveProjectReferences appears as the most expensive target and developers are trying to optimize it directly. Explains that the reported time includes wait time for dependent project builds and is misleading. Guides users to focus on task self-time instead. Do not activate for general build performance -- use build-perf-diagnostics instead.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fresolve-project-references\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7D2R1H2GTNZYHG9YRX3JDQW","optimizing-ef-core-queries","Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips, and return results faster. Use whenever an EF Core or DbContext query or data-access path is slow or should be made faster — whether or not EF Core owns the database schema. For EF Core, not Dapper or raw ADO.NET.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Foptimizing-ef-core-queries\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7D2QREG04W1YT0NEBHEW5C9","microbenchmarking","Activate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks. Also activate when microbenchmarking .NET code would be useful and BenchmarkDotNet is the likely tool. Consider activating when answering a .NET performance question requires measurement and BenchmarkDotNet may be needed. Covers microbenchmark design, BDN configuration and project setup, how to run BDN microbenchmarks efficiently and effectively, and using BDN for side-by-side performance comparisons. Do NOT use for profiling\u002Ftracing .NET code (dotnet-trace, PerfView), production telemetry, or load\u002Fstress testing (Crank, k6).","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fmicrobenchmarking\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7D2QGE175XWPZVACVH2868Z","incremental-build","Guide for optimizing MSBuild incremental builds. USE FOR: builds slower than expected on subsequent runs, 'nothing changed but it rebuilds anyway', diagnosing why targets re-execute unnecessarily, fixing broken no-op builds. Covers 8 common causes: missing Inputs\u002FOutputs on custom targets, volatile properties in output paths (timestamps\u002FGUIDs), file writes outside tracked Outputs, missing FileWrites registration, glob changes, Visual Studio Fast Up-to-Date Check (FUTDC) issues. Key diagnostic: look for 'Building target completely' vs 'Skipping target' in binlog. DO NOT USE FOR: first-time build slowness (use build-perf-baseline), parallelism issues (use build-parallelism), evaluation-phase slowness (use eval-performance), non-MSBuild build systems.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Fincremental-build\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7D2Q1DQTC6K49R73WQTTPSB","eval-performance","Guide for diagnosing and improving MSBuild project evaluation performance. USE FOR: builds slow before any compilation starts, high evaluation time in binlog analysis, expensive glob patterns walking large directories (node_modules, .git, bin\u002Fobj), deep import chains (>20 levels), preprocessed output >10K lines indicating heavy evaluation, property functions with file I\u002FO ($([System.IO.File]::ReadAllText(...))), multiple evaluations per project. Covers the 5 MSBuild evaluation phases, glob optimization via DefaultItemExcludes, import chain analysis with \u002Fpp preprocessing. DO NOT USE FOR: compilation-time slowness (use build-perf-diagnostics), incremental build issues (use incremental-build), non-MSBuild build systems.","https:\u002F\u002Fgithub.com\u002Fitsmejay18\u002FAI-Skills-for-My-Development-Stack\u002Fblob\u002Fmain\u002F20-Performance-Optimization\u002Feval-performance\u002FSKILL.md",[],[]]