diff --git a/plugins/dotnet-maui/plugin.json b/plugins/dotnet-maui/plugin.json index c50869fac8..d79bf8aa3f 100644 --- a/plugins/dotnet-maui/plugin.json +++ b/plugins/dotnet-maui/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-maui", "version": "0.1.0", - "description": "Skills for .NET MAUI development: environment setup, diagnostics, and troubleshooting.", + "description": "Skills for .NET MAUI development: environment setup, diagnostics, coding guardrails, and API currency.", "skills": ["./skills/"] } diff --git a/plugins/dotnet-maui/skills/maui-coding-guardrails/SKILL.md b/plugins/dotnet-maui/skills/maui-coding-guardrails/SKILL.md new file mode 100644 index 0000000000..246448529f --- /dev/null +++ b/plugins/dotnet-maui/skills/maui-coding-guardrails/SKILL.md @@ -0,0 +1,101 @@ +--- +name: maui-coding-guardrails +description: >- + Guardrails for .NET MAUI layouts, controls, and handlers. USE FOR: any MAUI + code generation/review. NOT FOR: API deprecations (maui-current-apis) or + environment setup (dotnet-maui-doctor). +--- + +# .NET MAUI Coding Guardrails + +Apply to all MAUI code generation and editing. For API replacements, use `maui-current-apis`. + +## Layout Rules + +**Don't put ScrollView/CollectionView inside StackLayout.** +StackLayout gives children infinite height — ScrollView won't scroll, CollectionView loses virtualization. Use Grid. + +```xml + + + ... + + + + +