$npx -y skills add managedcode/dotnet-skills --skill wcfWork on WCF services, clients, bindings, contracts, and migration decisions for SOAP and multi-transport service-oriented systems on .NET Framework or compatible stacks. USE FOR: working on WCF services, bindings, or clients; deciding whether a service should stay WCF or move to
| 1 | # Windows Communication Foundation |
| 2 | |
| 3 | ## Trigger On |
| 4 | |
| 5 | - working on WCF services, bindings, or clients |
| 6 | - deciding whether a service should stay WCF or move to modern HTTP APIs |
| 7 | - reviewing transport, security, or interoperability settings |
| 8 | |
| 9 | ## Workflow |
| 10 | |
| 11 | 1. Use WCF where SOAP, WS-* features, or multi-transport service requirements are real; do not rewrite those needs into HTTP-only guidance by accident. |
| 12 | 2. Keep contracts, bindings, behaviors, and hosting configuration explicit because WCF complexity compounds through configuration indirection. |
| 13 | 3. For new REST-style services, prefer modern ASP.NET Core APIs instead of extending WCF into a shape it is no longer best suited for. |
| 14 | 4. Plan migrations per endpoint and capability: transport, security model, transaction requirements, metadata, and client compatibility. |
| 15 | 5. Validate interoperability and deployment assumptions with the actual client ecosystem, not only local service startup. |
| 16 | 6. When WCF coexists with ASP.NET, be explicit about which runtime behaviors are shared and which are not. |
| 17 | |
| 18 | ## Deliver |
| 19 | |
| 20 | - stable WCF service or client configuration |
| 21 | - realistic migration guidance to newer stacks where appropriate |
| 22 | - clear contract and binding ownership |
| 23 | |
| 24 | ## Validate |
| 25 | |
| 26 | - WCF is used for a reason the modern stack does not replace directly |
| 27 | - binding and security behavior are explicit |
| 28 | - interop is verified with real consumers |
| 29 | |
| 30 | ## References |
| 31 | |
| 32 | - [migration.md](references/migration.md) - WCF to gRPC/REST/CoreWCF migration paths, decision framework, and endpoint-by-endpoint migration strategy |
| 33 | - [patterns.md](references/patterns.md) - WCF maintenance patterns for configuration, contracts, hosting, security, diagnostics, and client proxy management |