Skip to content
Back to skills

Code Quality Sample

ASecurity

Checks common code quality and maintainability risks.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
code-qualitygo

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add s977043/river-review --skill code-quality-sample --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality Sample?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Quality Sample
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s977043-code-quality-sample/badge)](https://www.skillsdirectory.com/skills/s977043-code-quality-sample)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: 'code-quality-sample'
name: 'Sample Code Quality Pass'
description: 'Checks common code quality and maintainability risks.'
version: 0.1.0
category: midstream
phase: midstream
applyTo:
  - 'src/**/*.ts'
  - 'src/**/*.js'
  - 'src/**/*.py'
inputContext:
  - diff
outputKind:
  - findings
  - actions
modelHint: balanced
dependencies:
  - code_search
tags:
  - sample
  - style
  - maintainability
  - midstream
severity: 'minor'
---

## Goal / 目的

- 差分に対して、可読性・保守性・エラー処理のリスクを “薄く” 拾うサンプルです。

## Non-goals / 扱わないこと

- 重要度の低いスタイル指摘を大量に出さない。
- 差分外のリファクタ方針を断定して押し付けない。

## False-positive guards / 抑制条件

- 変更がコメント/整形のみで、実質的な挙動変更がない場合は深入りしない。

## Rule / ルール

- 命名、責務、重複、不要コード、例外処理の不足など、保守性を落とす要因を優先する。
- 指摘は差分に紐づけ、必要なら “次の一手” を 1 つだけ添える。

## Output / 出力

- `<file>:<line>: <message>` 形式で 1 行ずつ(日本語、短く)。

## 評価指標(Evaluation)

- 合格基準: 指摘が差分に紐づき、根拠と次アクションが説明されている。
- 不合格基準: 差分と無関係な指摘、根拠のない断定、抑制条件の無視。

## 人間に返す条件(Human Handoff)

- 仕様や意図が不明確で解釈が分かれる場合は質問として返す。
- 影響範囲が広い設計判断やトレードオフは人間レビューへ返す。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.