一键导入
servicestack-project-structure
Understands ServiceStack’s AppHost, service registration, modular layout, and plugin-based architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Understands ServiceStack’s AppHost, service registration, modular layout, and plugin-based architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Designs stable, discoverable APIs using routes, metadata, and versioning conventions.
Implements authentication using ServiceStack Auth Providers and session handling.
Applies role-, permission-, and ownership-based authorization using ServiceStack idioms.
Implements AutoQuery services, custom filters, and permission-aware querying.
Designs request/response DTOs using DTO-first, message-based ServiceStack conventions.
Controls OpenAPI / metadata exposure without compromising ServiceStack-first design.
| name | servicestack-project-structure |
| description | Understands ServiceStack’s AppHost, service registration, modular layout, and plugin-based architecture. |
Follow these conventions when working with or refactoring ServiceStack project layouts.
ServiceStack recommends a 4-project structure to ensure a clean separation of concerns:
ServiceModel (DTOs):
ServiceInterface (Implementation):
ServiceModel and other logic/dependency projects.AppHost (Web/Host):
AppHost, plugins, and dependencies in the IoC container.ServiceInterface.Tests (Testing):
ServiceInterface and AppHost.AppHost class, which inherits from AppHostBase (for Framework) or AppHost (for .NET Core/6+).Configure(Container container) method to register dependencies and plugins.Plugins.Add(new OpenApiFeature()) or similar for modular functionality.AppHost constructor.IService or inheriting from Service in those assemblies will be registered.AppHost -> ServiceInterface -> ServiceModel.ServiceInterface into multiple projects based on functional areas.