跳到正文
cccskills
免费在 GitHub 公开

wasp-review

Review code changes for correctness, readable names, clear interfaces, and design problems. Examine duplication, hidden assumptions, and unnecessary abstractions, then report actionable findings with file locations, explanations, and concrete suggestions for fixes.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Review code changes for correctness, clarity, and potential issues. Use when the user asks for a review, code review, PR review, or wants feedback on a diff or file.

查看安装方法

适用场景

  • Review pull request changes
  • Check names and function interfaces
  • Find duplication and unclear responsibilities
  • Get concrete fixes with file and line references

包含的文件(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Rules

Naming And Vocabulary

  • Demand precise, informative names. Names must not misdirect, omit relevant behavior, or assume unavailable context.
  • Make names accurately reflect what their declarations represent.
  • Context is king: evaluate names within their scope and surrounding vocabulary.
  • Use established codebase terminology consistently.
  • Follow established naming conventions e.g. is... for booleans and ensure... for idempotent setup operations.
  • Treat awkward names as evidence of design problems. If an accurate name becomes excessively long or complicated, inspect whether the declaration has too many responsibilities.
  • Avoid vague names such as data, info, or unexplained single letters.

Contracts And Interfaces

  • Review names before implementation details. Poor names often expose deeper problems in decomposition and architecture.
  • Declaration should be enough to understand, without the implementation. A function’s name, arguments, types, and contract should explain its behavior.

Readability And Context

  • Demand code to be easy to read. Understanding one section should not require reading the entire file.
  • Review from the perspective of a developer with minimal reasonable context.

Design And Architecture

  • Treat and or then in a function name as a possible responsibility smell.
  • Treat groups of similarly prefixed parameters as possible missing abstractions.
  • Make sure the code is DRY. Introduce helpers for commonly repeated concepts.
  • Identify hidden assumptions. Require assumptions to be enforced through types, runtime checks, or comments, in that order.
  • Check for Effective TypeScript defined problems.
  • Avoid NIH: check existing code and dependencies before introducing abstractions or helpers, share code once it has multiple consumers.

Comments And Writing

  • Prefer improving design or naming; use comments only when code cannot communicate enough.
  • Remove comments that preserve session-specific context unnecessary to a fresh reader.
  • Use comments only for information that names, arguments, and types cannot express.
  • Remove comments that merely narrate obvious code or exhibit generated filler.
  • Suggest pruning fluff and no-op sentences from prose.

Code Smells

  • Primitive Obsession: identify strings and primitives representing domain concepts that need dedicated types.
  • Shotgun Surgery: flag one logical change scattered across unrelated files.
  • Divergent Change: flag modules carrying several unrelated responsibilities.
  • Repeated Switches: flag code that repeatedly handles the same cases in different places.
  • Speculative Generality: reject abstractions and configuration without a current requirement.
  • Middle Man: flag layers that only forward calls without enforcing a boundary or adding meaning.

Other

  • Check whether requested improvements justify their implementation cost.

Findings And Reporting

  • Make every finding actionable. Include the file and line, explain the problem, and suggest a concrete fix.
  • Use code snippets when they make the problem or proposed fix clearer.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Convert Wasp blog articles from MDX, a Markdown format with components, into files for DEV.to and Medium. Create or update DEV.to drafts, prepare Medium content, and optionally upload local videos to YouTube.

中文简介正在准备中。当前显示英语简介。

  • Prepare Wasp blog articles for DEV.to and Medium
  • Create DEV.to drafts or update existing articles
  • Prepare article sections and images for Medium
wasp-lang/wasp1.9万2026年10月22日 更新

Review content for citation in AI search answers. Use checklists covering clear definitions, sourced data, author information, FAQs, and structured data, then plan how to monitor citations, brand mentions, and AI-referred traffic.

中文简介正在准备中。当前显示英语简介。

  • Reviewing articles for citation in AI search answers
  • Organizing definitions, sources, and FAQs in content
  • Checking author details and structured data
wasp-lang/wasp1.9万2026年10月22日 更新

Transfer a Notion blog draft into an MDX file, a Markdown format with components, for the Wasp website. Preserve text formatting, download and optimize images, and prepare metadata and links according to blog conventions.

中文简介正在准备中。当前显示英语简介。

  • Move a Notion draft into the Wasp blog
  • Convert article images to WebP
  • Preserve headings, code blocks, and text formatting
wasp-lang/wasp1.9万2026年10月22日 更新

Create social posts and weekly content calendars tailored to each platform and audience. Repurpose existing articles, plan interactions with readers, and use performance metrics to refine topics, opening lines, formats, and posting times.

中文简介正在准备中。当前显示英语简介。

  • Plan a weekly social content calendar
  • Adapt blog articles into posts for multiple platforms
  • Write opening lines and post drafts
wasp-lang/wasp1.9万2026年10月22日 更新

查看 wasp-lang 的全部技能

报告此技能的问题