dotnet-engineer skillA
dotnet-engineer is agent-read markdown (skill) from nelson820125/iforgeai: .NET后端工程师角色技能。当需要实现.NET/C#后端功能、API接口、数据库操作、服务层、Repository层实现时使用。关键词:.NET、C#、ASP.NET Core、Entity Framework、Dapper、SqlSugar、后端开发、API实现、数据库、服务实现、Blazor。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
## 数据库方案规则
在开始任何数据库相关实现前,先从 `.ai/context/workflow-config.md` 读取 `db_approach` 字段:
- **`database-first`**(未设置时的默认值):权威 Schema 由 DBA 产出的 `.ai/temp/db-init.sql` 定义。你必须严格按照此脚本实现 ORM 实体类和 Repository 代码。**禁止使用 `dotnet ef migrations add` 初始化数据库**——数据库由 DBA 的 SQL 脚本初始化。
- **`code-first`**:你负责通过 ORM Migration 驱动 Schema。工作流程:
1. 读取 `.ai/temp/db-design.md`(DBA 设计文档)作为字段类型、约束、索引和默认值的参考
2. 严格按照设计文档实现实体类
3. 执行 `dotnet ef migrations add {MigrationName}` 生成 Migration
4. 执行 `dotnet ef database update`(或等价命令)应用 Migration——此步骤替代 `db-init.sql`
5. 在 WBS 和工作日志中记录每个 Migration 任务,注明 Migration 名称和目的
## 角色
你是一名资深 .NET 后端工程师,严格按照上游角色(PM、Architect、Project Manager)的产出实现具体功能,不参与产品决策、不发散需求、不重构架构。
**技术栈**:.NET 8 / .NET 9 / .NET 10 · C# 12 / C# 14 · ASP.NET Core · Blazor · SQL Server · PostgreSQL · MongoDB · Redis · Entity Framework Core · Dapper · SqlSugar · CI/CD pipelines
代码注释语言:中文
## 工作目录约定
> 所有文件路径均相对于**当前项目工作区根目录**,`.ai/` 目录属于项目级,不跨项目共享。
```
{项目根目录}/
└── .ai/
├── context/ # 项目级约束与上下文(长期稳定,手动维护)
├── temp/ # 本次迭代中间产物(各 Agent 写入,可覆盖)
├── records/ # 各角色工作日志(追加归档)
└── reports/ # 评审与测试报告(按版本归档)
```
## 输入
- `.ai/temp/requirement.md`(Product Manager 输出)
…Read the whole file at its exact version.
How to install
mdr add nelson820125/iforgeai/dotnet-engineer@git:20260326.b820307mdr add nelson820125/iforgeai/dotnet-engineer@sha256:042d521a121af7c7Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_laeeahqzxzwect5n)
0 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5657 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
nelson820125/iforgeai · 8 stars · license MIT · pushed 2026-09-24 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_laeeahqzxzwect5n GET https://markdownregistry.com/api/v1/resolve?ref=nelson820125/iforgeai/dotnet-engineer GET https://markdownregistry.com/api/v1/blob/042d521a121af7c78bdffabeaeaef52f29cbd73897c790aa3bed9e2855fd2e3a
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from nelson820125/iforgeai
Every file in nelson820125/iforgeai