tdd
79练习测试驱动开发
团队通常会在明确行为测试之前就编写实现代码。此技能引导 Claude、Codex 和 Claude Code 遵循严格的红-绿-重构循环。
应用 SOLID 设计原则
面向对象代码可能会变得难以修改和测试。此技能通过 TypeScript 示例和实用的重构提示来解释 SOLID 原则。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "solid-principles" from https://skillstore.io/skills/benny9193-solid-principles.md and its manifest at https://skillstore.io/api/skills/benny9193-solid-principles/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“solid-principles”。 审查一个负责创建用户、发送电子邮件、验证输入和生成报告的用户服务。
预期结果:
正在使用“solid-principles”。 评估一个针对每种支付类型都使用条件判断的支付处理器。
预期结果:
正在使用“solid-principles”。 检查仓库是否过于直接依赖数据库实现。
预期结果:
All 16 static findings are false positives caused by Markdown fences or TypeScript template literals, with no external command execution, database file access, or reconnaissance. However, the recommended dependency inversion example directly interpolates an identifier into SQL. This pattern can enable SQL injection when adapted to executable code.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/benny9193-solid-principles/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/benny9193-solid-principles?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/benny9193-solid-principles?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/benny9193-solid-principles/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/benny9193-solid-principles.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Benny9193. (2026). solid-principles security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/benny9193-solid-principles/audits/9@techreport{benny9193-benny9193-solid-principles-2026,
author = {Benny9193},
title = {solid-principles security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/benny9193-solid-principles/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: "solid-principles security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "Benny9193"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/benny9193-solid-principles/audits/9"
identifiers:
- type: other
value: "skillstore:benny9193-solid-principles:audit:9"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
doubleslashse-solid-principles
2026-09-09
将混杂的职责拆分为聚焦的服务、验证器、仓库和报告生成器。
使用 SOLID 检查清单识别紧耦合、宽泛接口和脆弱继承。
用简单的 TypeScript 示例和实用的警示信号解释每个原则。
用简单的语言解释单一职责原则。给出一个小示例,以及一个类违反该原则的迹象。
审查这个类设计中的 SOLID 违规点。识别可能涉及的原则,解释风险,并建议一个聚焦的重构方案。
帮助我使用 SOLID 原则重构这个面向对象模块。保持设计简单,并解释每个权衡。
根据 SOLID 原则比较两个拟议设计。突出扩展点、替换风险、依赖方向和过度工程化风险。
作者
Benny9193许可证
MIT
Skillstore 修订
r2
版本提示
作者未声明版本。
引用
8c3e20bba512c392d9b02ee748b18e0b09d4982c
维护新鲜度
2026/7/26
使用量
7 次下载 · 181 次浏览
文件结构
📄 SKILL.md
练习测试驱动开发
团队通常会在明确行为测试之前就编写实现代码。此技能引导 Claude、Codex 和 Claude Code 遵循严格的红-绿-重构循环。
用整洁代码提升代码可读性
当代码审查缺少共同标准时,可读代码很难持续保持。此技能为 Claude、Codex 和 Claude Code 提供清晰的整洁代码检查项,涵盖命名、函数、注释、错误和格式。
设计一致的 REST API
不一致的 API 会拖慢集成并造成客户端错误。此技能为资源、方法、响应、错误、分页、版本控制、身份验证和文档提供实用的 REST 指导。
快速查找 TypeScript 代码模式
开发者经常需要对常见实现模式进行简明回顾。此技能提供紧凑的 TypeScript 示例,用于选择和改造经过验证的结构。
Review Defects and Verify Root-Cause Repairs
由 aakashh242
Reviews can miss failure conditions or accept fixes without reliable evidence. Gauntlet guides scoped adversarial reviews, authorized repairs, and revision-bound verification within a finite budget.
分析代码模式和架构
由 C0ntr0lledCha0s
大型代码库中隐藏着重复结构和不清晰的架构选择。此技能可发现模式、解释其意图,并突出实际的重构机会。
按 AST 结构搜索代码
由 0xDarkMatter
文本搜索会遗漏语义关系并产生大量噪声匹配。此技能使用 ast-grep 模式定位代码结构,并为针对性重构做好准备。
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.
使用结构化质量检查审查代码
由 alirezarezvani
代码审查可能会漏掉质量、安全性和可维护性问题。此技能通过脚本、检查清单和报告生成来指导结构化审查。
更快查找代码上下文
由 89jobrien
开发者常常花时间追踪代码为何存在以及哪些内容依赖它。此技能会提示 Claude、Codex 或 Claude Code 在进行更改前收集相关图谱知识、调用方、imports 和测试。