code-review-and-quality
78从五个质量维度审查代码
代码变更可能隐藏正确性、安全性、架构、可读性和性能问题。此技能采用结构化审查流程,并提供按优先级排列、可执行的反馈。
Simplify Code Without Changing Behavior
Complex code slows reviews, maintenance, and debugging. This skill guides focused refactoring that improves clarity while preserving behavior, errors, side effects, and tests.
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "code-simplification" from https://skillstore.io/skills/addyosmani-code-simplification.md and its manifest at https://skillstore.io/api/skills/addyosmani-code-simplification/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“code-simplification”。 A function uses four nested conditionals to validate input, permission, and state.
预期结果:
Recommend ordered guard clauses with one validation per step. Explain that the change should preserve exception types, messages, and successful results.
正在使用“code-simplification”。 A pull request mixes a new feature with a broad cleanup of nearby modules.
预期结果:
Recommend separating the feature and cleanup into independent changes. Identify unrelated files as scope expansion and request tests for each focused refactor.
正在使用“code-simplification”。 A helper appears redundant, but its callers and historical purpose are unclear.
预期结果:
Defer removal until callers, tests, project conventions, and history are understood. Record the missing evidence instead of guessing.
All 26 external-command findings are false positives caused by shell-like backticks in Markdown examples and inline code. The hardcoded URL is a documentation reference, and the five reconnaissance findings describe ordinary scope and verification practices; no malicious intent or prompt injection was found.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/addyosmani-code-simplification/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/addyosmani-code-simplification?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/addyosmani-code-simplification?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/addyosmani-code-simplification/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/addyosmani-code-simplification.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>addyosmani. (2026). code-simplification security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/addyosmani-code-simplification/audits/1@techreport{addyosmani-addyosmani-code-simplification-2026,
author = {addyosmani},
title = {code-simplification security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/addyosmani-code-simplification/audits/1},
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: "code-simplification security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "addyosmani"
date-released: "2026-09-19"
url: "https://skillstore.io/skills/addyosmani-code-simplification/audits/1"
identifiers:
- type: other
value: "skillstore:addyosmani-code-simplification:audit:1"
description: "Skillstore immutable audit report identifier"
Review recently changed code for unnecessary nesting, duplication, and unclear names while keeping the feature behavior unchanged.
Turn a broad readability concern into small refactoring steps, explicit checks, and a focused reviewable diff.
Understand an older module before simplifying it, preserving error paths, side effects, project conventions, and existing tests.
Review this function for readability issues. Identify the smallest behavior-preserving improvements and explain why each one helps.
Inspect this module and its tests. Propose one simplification at a time, describe the preserved behavior, and specify the test to run after each step.
Study the surrounding code and project conventions before reviewing this change. Suggest clarity improvements that match existing naming, error handling, and module patterns.
Analyze this refactoring candidate deeply. Trace callers, side effects, error paths, edge cases, tests, and historical constraints, then produce a staged plan with explicit stop conditions.
作者
addyosmani许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
5d5054f8a23586f9b500fece1cb613a9dffc787b
维护新鲜度
2026/9/19
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md
从五个质量维度审查代码
代码变更可能隐藏正确性、安全性、架构、可读性和性能问题。此技能采用结构化审查流程,并提供按优先级排列、可执行的反馈。
Clarify User Intent Before You Build
Underspecified requests cause teams to build the wrong outcome and discover misalignment late. This skill runs a focused, one-question interview that turns ambiguity into confirmed intent.
Plan Work Into Verifiable Tasks
Large or vague software work can hide dependencies, missing acceptance criteria, and verification gaps. This skill converts a specification into ordered task slices with checkpoints, scope guidance, and clear completion conditions.
Document Decisions and Architecture Clearly
Teams lose context when important technical decisions remain in chat, code comments, or individual memory. This skill turns architectural reasoning, API guidance, project instructions, and release changes into structured documentation.
Build Accessible, Production-Ready Frontends
Frontend work can become inconsistent, inaccessible, or difficult to maintain. This skill guides component architecture, responsive layouts, state handling, and polished user experiences.
Structure Better Context for Coding Agents
Coding agents lose accuracy when context is incomplete, stale, or excessive. This skill provides practical structures for focused sessions, durable rules, and reliable handoffs.
通过红-绿-重构指导 TDD
由 mattpocock
当团队测试内部实现或预先编写过多测试时,测试优先的工作方式往往会变得脆弱。此 skill 引导 Codex、Claude 和 Claude Code 完成以行为为重点的红-绿-重构循环。
分析代码模式和架构
由 C0ntr0lledCha0s
大型代码库中隐藏着重复结构和不清晰的架构选择。此技能可发现模式、解释其意图,并突出实际的重构机会。
按 AST 结构搜索代码
由 0xDarkMatter
文本搜索会遗漏语义关系并产生大量噪声匹配。此技能使用 ast-grep 模式定位代码结构,并为针对性重构做好准备。
构建可靠的测试自动化
由 89jobrien
薄弱的测试会拖慢发布并掩盖回归问题。此技能可指导测试策略、TDD、自动化、覆盖率审查以及 Playwright Web 检查。
更快查找代码上下文
由 89jobrien
开发者常常花时间追踪代码为何存在以及哪些内容依赖它。此技能会提示 Claude、Codex 或 Claude Code 在进行更改前收集相关图谱知识、调用方、imports 和测试。
在整个代码库中规划可靠测试
由 0xDarkMatter
此技能帮助团队选择测试策略、mocks、数据 fixtures、覆盖率门禁和 CI 模式,同时避免混淆测试范围。它为 Claude、Codex 和 Claude Code 提供针对单元、集成、端到端、TDD 和流水线测试的结构化指导。