多场景样板间体验馆
声明式元数据驱动与内生安全护栏(Safe by Construction)—— 专为 AI Agent 协同演进打造的现代 .NET 极简应用开发平台。
一键复制预设的宣传卡片文案,直接分享到技术社区、微信群、Twitter 或 Reddit。
🤖 Agent Studio (智能体自举演进工作台)
3 CLI 角色(Architect / Developer / Tester)闭环协作与自举演进工作台
NetYamlForge 阶段 2 核心落地的声明式 AI 协作引擎。基于 roles.yaml 动态元数据驱动与 Model Context Protocol (MCP) 端点,实现端到端的角色提示词装配、协同流水线调度与执行日志追踪。
“摒弃代码中生硬的 switch-case 角色分支,将角色职责与交互准则全面 YAML 元数据化。配合 MCP 开放接口与确定性租户数据隔离,让 AI 协作既具备无限扩展性,又绝对 Safe by Construction。”
- ✓ roles.yaml 声明式角色驱动:元数据配置化定义职责、准则与三阶段协同流水线
- ✓ 动态 CRUD 任务管理:通过 agent_task 与 agent_task_log 实时跟踪演进任务与执行步骤
- ✓ MCP 标准协议端点:内置 EntityToolService 与 JSON-RPC 2.0,无缝对接外部分析器
- ✓ Fail-Closed 租户熔断隔离:多租户会话与上下文强绑定,杜绝数据串话穿透
roles:
Architect:
description: "System Architect"
system_prompt: |
You are the project architect. Focus on high-level structure and design patterns.
NetYamlForge is a lightweight .NET 10 Web framework driven by YAML configurations and C# hooks.
responsibilities:
- "Analyze the business and technical requirements thoroughly."
- "Define architectural boundaries, interfaces, and component interactions."
- "Produce a clear Specification/RFC with concrete file paths and contract signatures."
Developer:
description: "Senior Software Developer"
responsibilities:
- "Implement the feature or fix according to the Architect's specification."
- "Write clean, robust, and idiomatic C# code targeting .NET 10."
Tester:
description: "QA & Test Engineer"
responsibilities:
- "Design and write comprehensive xUnit unit and integration tests."
- "Verify test cases against edge cases, failure modes, and regression risks."
🏛️ 架构哲学:为什么 NetYamlForge 能支撑从 AI 沙箱到 ERP 核心?
传统架构在「开发速度」与「业务复杂性/安全性」之间往往非此即彼。NetYamlForge 通过独创的三位一体架构,破解了这一困境:
1. 声明式 YAML 元数据驱动
实体、字段、校验、看板、导航与权限完全配置化。页面秒级生成,代码量减少 80%,AI Agent 可直接理解并安全生成结构定义。
2. 编译期与运行期硬安全护栏
SqlSafetyGuard、PathSafetyGuard 与 Default-Deny 实体管道,在底层熔断注入与越权行为,为 AI 编程与开放互联提供确定性保护。
3. 原生 C# 业务 Hooks 无限扩展
拒绝“黑盒无代码”的灵活性死胡同。通过清晰的 IEntityHook 接口与 Dapper/EF Core 事务注入,深水区的复杂 ERP 状态机与审批流游刃有余。
| 对比维度 | 传统纯手写开发 (ASP.NET / Spring) | 通用商用无代码 (Directus / Strapi) | NetYamlForge (声明式 + 护栏 + C# Hooks) |
|---|---|---|---|
| 交付速度 | 慢(大量重复样板代码) | 快(图形化操作) | 极快(YAML 驱动,秒级生成) |
| AI Agent 代码友好度 | 中(需生成复杂 C# 代码,易出错) | 差(强依赖 GUI,Agent 难操作) | 极高(纯结构化 YAML,自然对齐 LLM) |
| AI 生成安全防护 | 无(依赖人工 Code Review 兜底) | 弱(依赖通用鉴权) | 极强(编译期 AST 阻断 + Path 隔离) |
| 复杂 ERP 业务上限 | 极高(代码随心所欲) | 受限(遇到复杂外键/审批流触顶) | 无上限(原生 C# 事务 Hooks 随需挂载) |