codebase-analysis
79分析代码库中的业务逻辑
现有系统常常将需求隐藏在代码、测试和配置中。此技能提供结构化分析指导,将代码观察结果转化为清晰的业务文档。
在 .NET 中应用 CQS 和 CQRS 模式
团队经常将状态变更和数据读取混在一起,这会让代码更难测试和理解。此技能指导你为 .NET 方法、处理程序和控制器设计清晰的 CQS 和 CQRS 方案。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "cqs-patterns" from https://skillstore.io/skills/doubleslashse-cqs-patterns.md and its manifest at https://skillstore.io/api/skills/doubleslashse-cqs-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“cqs-patterns”。 一个栈类有一个方法会移除并返回栈顶项。
预期结果:
正在使用“cqs-patterns”。 一个订单功能需要创建、取消、查找和客户订单列表操作。
预期结果:
正在使用“cqs-patterns”。 正在考虑为一个小型 CRUD 管理页面使用 CQRS。
预期结果:
All static findings appear to be false positives caused by Markdown code fences, ASCII diagrams, and C# examples in documentation. I found no prompt injection, data exfiltration intent, executable scripts, network behavior, or real system reconnaissance in SKILL.md.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/doubleslashse-cqs-patterns/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/doubleslashse-cqs-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/doubleslashse-cqs-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/doubleslashse-cqs-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/doubleslashse-cqs-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>DoubleslashSE. (2026). cqs-patterns security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/doubleslashse-cqs-patterns/audits/9@techreport{doubleslashse-doubleslashse-cqs-patterns-2026,
author = {DoubleslashSE},
title = {cqs-patterns security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/doubleslashse-cqs-patterns/audits/9},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "cqs-patterns security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "DoubleslashSE"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/doubleslashse-cqs-patterns/audits/9"
identifiers:
- type: other
value: "skillstore:doubleslashse-cqs-patterns:audit:9"
description: "Skillstore immutable audit report identifier"
审查既修改状态又返回领域数据的服务方法,然后将它们拆分为更清晰的命令和查询。
为 .NET 应用程序层创建命令和查询记录,并配套相应的处理程序。
判断某个功能是否需要 CQRS,或者更简单的 CRUD 模式是否更合适。
审查这个 .NET 类中的 CQS 违规。识别既改变状态又返回数据的方法,然后建议更简单的名称和职责。
将这个服务 API 重构为独立的命令和查询操作。保持行为等效,并解释每个新职责。
为这个功能设计一个 CQRS 应用程序层。包括命令记录、查询记录、处理程序职责和控制器流程。
评估 CQRS 是否适合这个系统。比较收益、增加的复杂度、测试影响、读取模型需求和替代方案。
许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
仓库
https://github.com/DoubleslashSE/claude-workflows/tree/main/Plugins/dotnet-tdd/skills/cqs-patterns引用
72d5025b022c77f7a51bdf5c1637c689c80e89d1
维护新鲜度
2026/7/26
使用量
5 次下载 · 194 次浏览
文件结构
📄 SKILL.md
分析代码库中的业务逻辑
现有系统常常将需求隐藏在代码、测试和配置中。此技能提供结构化分析指导,将代码观察结果转化为清晰的业务文档。
改进 TypeScript 整洁代码
当 TypeScript 代码变得重复、复杂且难以测试时,团队会浪费时间。此技能引导 Claude、Codex 和 Claude Code 编写更简单的函数、更清晰的命名和更安全的结构。
使用 TDD 构建 TypeScript 功能
团队在快速变更 TypeScript 时,经常难以让测试保持聚焦。此技能通过实用的 Node.js 模式指导 RED-GREEN-REFACTOR 工作。
将 SOLID 原则应用于 TypeScript 代码
团队通常了解 SOLID 术语,但难以在 TypeScript 中应用它们。此技能提供实用的重构模式、示例和评审提示。
创建 IEEE 830 SRS 文档
需求团队需要一致的 SRS 文档,确保其完整、可追溯且可测试。此技能提供 IEEE 830 结构、模板和验证检查清单。
获取清晰的软件需求
当利益相关者输入含糊或不完整时,需求工作往往会停滞。此技能提供访谈结构、提问提示和验证方法,用于形成可用的需求。
用实用模式重构 Python
由 wshobson
Python 项目常常会积累纠缠不清的类、混杂的职责和过早的抽象。此技能引导 Claude、Codex 和 Claude Code 走向更简单的结构、更清晰的边界和可测试的组件。
分析代码模式和架构
由 C0ntr0lledCha0s
大型代码库中隐藏着重复结构和不清晰的架构选择。此技能可发现模式、解释其意图,并突出实际的重构机会。
Audit NestJS Code with Evidence-Backed Findings
由 amirtaherkhani
NestJS repositories can hide boundary flaws and runtime risks that lint results alone cannot reveal. This skill combines local evidence collection and semantic review into one prioritized report.
使用高级工程模式构建全栈应用
由 davila7
团队常常会在技术栈选择、项目设置和质量检查的对齐上耗费时间。此技能为 Claude、Codex 和 Claude Code 提供可复用的全栈指导和辅助脚本。
规划 Next.js App Router 架构
由 89jobrien
Next.js 团队在选择路由、组件、数据加载和迁移步骤时可能会遇到困难。此技能为 App Router、Server Components 和性能提供结构化的架构指导。
分析项目架构
由 CloudAI-X
如果没有可重复的审查流程,新的代码库很难理解。此技能为 Claude、Codex 和 Claude Code 提供结构化工作流,用于梳理技术栈、架构、命令和约定。