dedsi-native-coding
SKILL.md
DedsiNative 开发
Quick start
- 确认实体名、主键类型、路由资源名。
- 按层次顺序修改:Domain -> Infrastructure -> Operation -> HttpApi。
- 需要模板或路径细节时,打开
references/templates.md与references/architecture.md。
Project structure
- 仅在
content/src中增删改代码。 - 不要修改
content/frameworks。 - 需要项目结构或运行管线细节时,打开
references/architecture.md。
Workflow
- 创建领域实体与仓储接口。
- 添加 EF Core 实体配置与 DbContext 的 DbSet。
- 实现仓储。
- 编写 Operation(创建、更新、删除、查询、条件分页)。
- 添加 Minimal API 端点并在
DedsiNativeEndpoints中注册。 - 必要时补充数据库迁移或调整配置。
Conventions
- 保持实体属性
private set,通过Change*方法做校验与修改。 - 输入 DTO 使用
record,输出 DTO 使用class。 - 查询使用
WhereIf与PagedBy扩展方法。 - 让 Operation 实现
IDedsiNativeOperation,仓储类名以Repository结尾,依赖注入由 Scrutor 扫描完成。 - 路由使用 kebab-case,组内
.WithTags("{EntityName}")。 - 不要吞异常,让
GlobalExceptionHandlingMiddleware统一处理。
References
references/architecture.mdreferences/templates.md
Weekly Installs
2
Repository
dedsiteam/dedsi-skillsFirst Seen
13 days ago
Security Audits
Installed on
opencode2
gemini-cli2
codebuddy2
github-copilot2
codex2
kimi-cli2