Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

quality-common品质共性

Agent Skill

quality-common 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

753

周安装

32

GitHub Stars

12

下载量

264
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:quality-common(品质共性)
来源仓库:https://github.com/claude-dev-suite/claude-dev-suite
仓库路径:skills/quality-common
安装命令:
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill quality-common
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill quality-common

简介

quality-common 用于查找、检索和筛选相关信息,适合根据关键词或任务线索快速定位候选结果。

  • 适用于研究、调研或信息收集类场景,可提升外部资源发现效率。
  • 通过指定查询条件调用搜索接口,返回结构化候选列表供进一步处理。
  • 使用前建议确认是否允许联网及数据抓取边界,避免违反平台策略。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Universal Code Quality Principles

When NOT to Use This Skill

  • Language-specific rules - Use TypeScript/Java/Python skills for syntax/idioms
  • Security issues - Use owasp-top-10 for vulnerabilities
  • Testing strategies - Use Vitest/Playwright skills for test quality
  • Linting configuration - Use ESLint/Biome skills for tool setup
Deep Knowledge: Use mcp__documentation__fetch_docs with technology: clean-code for comprehensive documentation.

Authoritative References

PrincipleSourceLink
Clean CodeRobert C. MartinClean Code Book
SOLIDRobert C. MartinSOLID Principles
RefactoringMartin FowlerRefactoring Catalog
Cognitive ComplexitySonarSourceWhitepaper (PDF)

Clean Code Principles

Naming

  • Intention-revealing: Names should explain purpose
  • Pronounceable: Avoid abbreviations
  • Searchable: Avoid single letters except loops

Functions

  • Small: 20 lines max, ideally < 10
  • Single purpose: Do one thing well
  • Few arguments: 0-2 ideal, 3 max

Comments

  • Code should be self-documenting
  • Comments explain "why", not "what"
  • Avoid redundant comments

SOLID Principles

PrincipleDescriptionViolation Sign
Single ResponsibilityOne reason to changeClass does too much
Open/ClosedOpen for extension, closed for modificationSwitch statements on type
Liskov SubstitutionSubtypes must be substitutableOverride throws exception
Interface SegregationMany specific interfacesUnused interface methods
Dependency InversionDepend on abstractionsnew in business logic

Code Metrics & Thresholds

Complexity Metrics

MetricDescriptionThresholdTool
Cyclomatic ComplexityNumber of independent paths< 10SonarQube, ESLint
Cognitive ComplexityHow hard to understand< 15SonarQube
Lines per FunctionFunction length< 30All linters
ParametersFunction arguments< 4All linters
Nesting DepthIf/loop nesting< 4SonarQube

Quality Gates (SonarQube Standard)

MetricConditionTarget
Coverageon new code> 80%
Duplicationson new code< 3%
Maintainability RatingoverallA
Reliability RatingoverallA
Security RatingoverallA

Code Smells Categories

Bloaters

  • Long Method
  • Large Class
  • Long Parameter List
  • Data Clumps

Object-Orientation Abusers

  • Switch Statements
  • Refused Bequest
  • Alternative Classes with Different Interfaces

Change Preventers

  • Divergent Change
  • Shotgun Surgery
  • Parallel Inheritance Hierarchies

Dispensables

  • Dead Code
  • Duplicate Code
  • Lazy Class
  • Speculative Generality

Couplers

  • Feature Envy
  • Inappropriate Intimacy
  • Message Chains

Refactoring Patterns

SmellRefactoringDescription
Long MethodExtract MethodBreak into smaller functions
Duplicate CodeExtract Method/ClassCreate reusable unit
Long Parameter ListIntroduce Parameter ObjectGroup related params
Switch on TypeReplace with PolymorphismUse strategy pattern
Feature EnvyMove MethodPut behavior with data
God ClassExtract ClassSplit responsibilities

Full Catalog: https://refactoring.com/catalog/


Quick Checklist

## Code Review Checklist

### Readability
- [ ] Clear, intention-revealing names
- [ ] Functions are small and focused
- [ ] No magic numbers/strings
- [ ] Appropriate abstraction level

### Maintainability
- [ ] Single Responsibility followed
- [ ] No code duplication (DRY)
- [ ] Dependencies injected, not created
- [ ] Easy to test in isolation

### Reliability
- [ ] Edge cases handled
- [ ] Errors handled appropriately
- [ ] No null pointer risks
- [ ] Resources properly closed

### Performance
- [ ] No N+1 queries
- [ ] Appropriate data structures
- [ ] No premature optimization
- [ ] Caching where appropriate

Anti-Patterns

Anti-PatternWhy It's BadCorrect Approach
God Class (1000+ lines)Violates SRP, hard to testSplit into focused classes
Magic numbers everywhereUnclear meaning, hard to changeUse named constants
Deep nesting (5+ levels)Hard to understandExtract methods, early returns
Long parameter lists (6+ params)Hard to remember orderUse parameter objects/builders
Copy-paste programmingDuplication, maintenance nightmareExtract shared logic to functions
No error handlingSilent failuresExplicit error handling with logging

Quick Troubleshooting

IssueLikely CauseSolution
Function has complexity > 20Too many branches/loopsExtract sub-functions, use strategy pattern
Class over 500 linesMultiple responsibilitiesApply SRP, split into multiple classes
Tests hard to writeTight coupling, no DIUse dependency injection
Same code in 3+ placesNo abstractionExtract to shared function/class
Function takes 10+ parametersPoor abstractionCreate parameter object or builder
Code hard to understandPoor naming, no abstractionRefactor with intention-revealing names

Related Skills

  • Language-specific rules: languages/typescript, languages/java, languages/python
  • Security: security/owasp-top-10
  • Design Patterns: best-practices/design-patterns

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.49%
按下载量换算94

Claude

29.92%
按下载量换算79

Cursor

19.47%
按下载量换算51

Gemini CLI

9.61%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills