按用户明确指令,在得到大脑(Get笔记)中保存、搜索并管理笔记与知识库。
编程
aspnet-core
选用合适的 ASP.NET Core 应用模型,按微软现行文档规范实现功能。
它能做什么
基于微软 Learn 当前文档提供 ASP.NET Core 编写指引。工作流从技术栈选型与 Program.cs / 宿主管线结构开始,再按需加载恰好一份主应用模型参考(Blazor、Razor Pages、MVC 或 Minimal API / 控制器)。数据、安全、SignalR、gRPC、测试、性能与升级等横切关注点参考仅在需要时引入。生成代码优先使用 WebApplicationBuilder、内建 DI、配置、ProblemDetails、OpenAPI、健康检查、限流、输出缓存与 Identity 等框架内置能力,避免引入第三方替代方案,同时尊重既有代码库的应用模型。
什么时候用它
- 为新项目选择 ASP.NET Core 应用模型
- 梳理现有应用的 Program.cs、中间件与依赖注入结构
- 在不引入第三方依赖的情况下接入身份认证与授权
- 在不同 ASP.NET Core 大版本之间迁移或升级
技能文档
ASP.NET Core
Overview
Choose the right ASP.NET Core application model, compose the host and request pipeline correctly, and implement features in the framework style Microsoft documents today.
Load the smallest set of references that fits the task. Do not load every reference by default.
Workflow
- Confirm the target framework, SDK, and current app model.
- Open references/stack-selection.md first for new apps or major refactors.
- Open references/program-and-pipeline.md next for
Program.cs, DI, configuration, middleware, routing, logging, and static assets. - Open exactly one primary app-model reference:
- references/ui-blazor.md
- references/ui-razor-pages.md
- references/ui-mvc.md
- references/apis-minimal-and-controllers.md
- Add cross-cutting references only as needed:
- references/data-state-and-services.md
- references/security-and-identity.md
- references/realtime-grpc-and-background-work.md
- references/testing-performance-and-operations.md
- Open references/versioning-and-upgrades.md before introducing new platform APIs into an older solution or when migrating between major versions.
- Use references/source-map.md when you need the Microsoft Learn section that corresponds to a task not already covered by the focused references.
Default Operating Assumptions
- Prefer the latest stable ASP.NET Core and .NET unless the repository or user request pins an older target.
- As of March 2026, prefer .NET 10 / ASP.NET Core 10 for new production work. Treat ASP.NET Core 11 as preview unless the user explicitly asks for preview features.
- Prefer
WebApplicationBuilderandWebApplication. Avoid olderStartupandWebHostpatterns unless the codebase already uses them or the task is migration. - Prefer built-in DI, options/configuration, logging, ProblemDetails, OpenAPI, health checks, rate limiting, output caching, and Identity before adding third-party infrastructure.
- Keep feature slices cohesive so the page, component, endpoint, controller, validation, service, data access, and tests are easy to trace.
- Respect the existing app model. Do not rewrite Razor Pages to MVC or controllers to Minimal APIs without a clear reason.
Reference Guide
- references/_sections.md: Quick index and reading order.
- references/stack-selection.md: Choose the right ASP.NET Core application model and template.
- references/program-and-pipeline.md: Structure
Program.cs, services, middleware, routing, configuration, logging, and static assets. - references/ui-blazor.md: Build Blazor Web Apps, choose render modes, and use components, forms, and JS interop correctly.
- references/ui-razor-pages.md: Build page-focused server-rendered apps with handlers, model binding, and conventions.
- references/ui-mvc.md: Build controller/view applications with clear separation of concerns.
- references/apis-minimal-and-controllers.md: Build HTTP APIs with Minimal APIs or controllers, including validation and response patterns.
- references/data-state-and-services.md: Use EF Core,
DbContext, options,IHttpClientFactory, session, temp data, and app state responsibly. - references/security-and-identity.md: Apply authentication, authorization, Identity, secrets, data protection, CORS, CSRF, and HTTPS guidance.
- references/realtime-grpc-and-background-work.md: Use SignalR, gRPC, and hosted services.
- references/testing-performance-and-operations.md: Add integration tests, browser tests, caching, compression, health checks, rate limits, and deployment concerns.
- references/versioning-and-upgrades.md: Handle target frameworks, breaking changes, obsolete APIs, and migrations.
- references/source-map.md: Map the official ASP.NET Core documentation tree to the references in this skill.
Execution Notes
- When generating new code, start from the correct
dotnet newtemplate and keep the generated structure recognizable. - When editing an existing solution, follow the solution's conventions first and use these references to avoid framework misuse or outdated patterns.
- When a task mentions "latest", verify the feature on Microsoft Learn or the ASP.NET Core docs repo before relying on memory.
相关技能
以系统方式规划并执行自学:从出口测试倒推课程,加入间隔复习与刻意练习,产出可验证的迁移证据。
自适应教学:先探测基础再讲解,每次只讲一个概念,讲完立刻检查记忆。
用 Binance 价格动量作为信号,通过 Simmer SDK 在 Polymarket 上交易 5 分钟/15 分钟 BTC 闪盘。
从 Gmail 邮件中提取日程事件,经过你确认后写入 Google Calendar。
产出可正确运行的 Bash 脚本:引用、严格模式、trap 清理与跨平台兼容默认就位。
OpenAI 的更多技能
浏览全部技能通过复用已发布的设计系统组件、变量和样式,在 Figma 中新建或更新整页屏幕。
从品牌名、角色立绘或文字描述生成 Codex 兼容的动画宠物,含图谱组装、校验与 QA。
imagegen
官方通过内置图像工具生成或编辑项目所需的位图素材,仅在用户明确要求时切换到 CLI 回退路径。
为 Codex 脚手架插件目录,生成必需清单、可选子目录与 marketplace 条目。
通过 Figma Code Connect 把已发布的组件关联到代码实现。
获取基于代码仓库证据的应用安全威胁模型,列出攻击路径并给出优先级与缓解建议。