Agent skill

Pre Commit Quality Review

by nuwax-ai in nuwax-ai/nuwax

大量代码合并主干分支前的质量自查:功能逻辑内聚、代码分层、可维护性三问走查整个待合并批次;当用户要求合并主干前查质量、提测/发版/特性分支大批量合入前走查、自查内聚/分层/可维护性时使用。

Apache-2.0Auto-check passed

Install Pre Commit Quality Review

skills CLI
$ npx skills add nuwax-ai/nuwax --skill pre-commit-quality-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nuwax-ai/nuwax pre-commit-quality-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nuwax-ai/nuwax.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pre-commit-quality-review .claude/skills/pre-commit-quality-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pre-commit-quality-review
GitHub stars
892
Token cost
~393 tokens
SKILL.md length
79 words
Files
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

大量代码合并主干分支前的质量自查:功能逻辑内聚、代码分层、可维护性三问走查整个待合并批次;当用户要求合并主干前查质量、提测/发版/特性分支大批量合入前走查、自查内聚/分层/可维护性时使用。

  • Works in 3 steps: 功能逻辑是否内聚? → 代码分层是否正确? → 后续是否便于维护?
  • SKILL.md covers 目标, 工作方式, 三问清单 and 判定口径, plus 1 more section
  • Calls git and pnpm

What it does

Pre Commit Quality Review is an agent skill from nuwax-ai/nuwax. 大量代码合并主干分支前的质量自查:功能逻辑内聚、代码分层、可维护性三问走查整个待合并批次;当用户要求合并主干前查质量、提测/发版/特性分支大批量合入前走查、自查内聚/分层/可维护性时使用。

Its SKILL.md is about 390 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Model Context Protocol. The repository describes itself as: Nuwax Agent OS - An enterprise-grade AI Agent Development and Operation Platform - Providing a complete solution for agent creation and distribution, knowledge base management… The licence is Apache-2.0.

Example prompts

  • “/pre-commit-quality-review”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 功能逻辑是否内聚?
  2. 代码分层是否正确?
  3. 后续是否便于维护?

What it can do on your machine

Read from SKILL.md and the folder at commit 4eff84f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pre Commit Quality Review loads about 393 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 79 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~393

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nuwax-ai/nuwax at commit 4eff84f, republished under its Apache-2.0 licence (© nuwax-ai). 79 words, ~393 tokens.

Download SKILL.mdSave it as .claude/skills/pre-commit-quality-review/SKILL.md (or your agent's skills folder).
name
pre-commit-quality-review
description
大量代码合并主干分支前的质量自查:功能逻辑内聚、代码分层、可维护性三问走查整个待合并批次;当用户要求合并主干前查质量、提测/发版/特性分支大批量合入前走查、自查内聚/分层/可维护性时使用。
<!-- nuwa-sdlc-kit v1.3.1 · content — 播种一次,本地所有(升级不覆盖)
SDLC Stage 3.5 · 大量代码合并主干分支前质量自查(writer 侧)。三问清单安装后按仓库实际维护:
分层文档路径、质量门命令登记在本节,检查项可增删。 -->

合并主干前质量自查(Pre-Merge Quality Review)

适用时机:大量代码合并主干分支前必做(提测、发版、特性分支大批量合入等场景)——对整个待合并批次做一轮实现质量走查; 日常小 commit(样式微调、文案、单点修复)可跳过。本自查是 writer 侧质量门, 不替代 PR 评审(REVIEW.md 五遍清单;writer 不自批)。

承接「先功能后重构」的开发节奏:功能先跑通 → 重构收敛(内聚/分层/可维护)→ 本自查作重构完成后的验收门——三问发现的问题当场修复、修完复查,全过 + 质量门绿才可合并交付。

目标

回答三个问题,每个结论都带证据(文件:行号):

  1. 功能逻辑是否内聚?
  2. 代码分层是否正确?
  3. 后续是否便于维护?

工作方式

  1. 以待合并批次为单位走查:git diff <主干分支>...HEAD 加工作区未提交改动圈定改动面(新增文件读全文),不逐行复读未改代码。
  2. 逐问检查,发现问题当场修复(属重构收敛的一部分),修完复查该问,不带着已知问题进主干。
  3. 走查后跑质量门:有分域快速门先跑分域,再按需跑全量(pnpm exec vitest run),贴结论数字。
  4. 回报结论:可合并 / 需修改(列问题清单与位置)。

三问清单

一、功能逻辑内聚
  • 该功能的知识(状态、缓存失效、副作用与清理)是否收在属主模块内,还是散落在多个调用方?
  • 同一不变量是否只有一处维护点?兜底/防御逻辑是否跟着属主走?
  • 组件或函数是否只服务一类使用者?混入的无关职责是否拆出去了?
二、代码分层
  • 依赖方向是否单向(页面 → 组件 → hooks/services → utils)?有无越层 import?
  • 对外契约(props/参数/接口)是否最小?调用方是否无须了解实现细节即可正确使用?
  • 新代码落点是否符合本仓分层约定?(本仓:docs/engineering-conventions.md,含分层依赖禁令与命名/I18n 规范)
三、便于维护
  • 注释是否解释「为什么」(约束、坑、边界),而非复述代码?
  • 命名是否与既有代码同族?魔法数字是否收敛为具名常量?
  • 后续接手者能否凭接入注释独立使用/扩展?易错点是否有防呆(防御 guard、cleanup 配对)?

判定口径

  • 三问全过 + 质量门绿 → 可合并。
  • Important(会错、会泄漏、破坏分层约束)→ 必须先修再合并。
  • Nit(风格/更优雅写法)≤ 5 条,记录不阻塞;格式化工具已覆盖的不算。

参考

  • slash command:/quality-review 可直接点名本流程。
  • PR 评审清单:根目录 REVIEW.md(评审侧五遍清单)。
  • 「错两次进规则」:同类问题第二次被抓,纠正写入 AGENTS.md。

© nuwax-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/pre-commit-quality-review of nuwax-ai/nuwax.

Open the folder on GitHubat commit 4eff84f

Compare with similar skills

Pre Commit Quality Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pre Commit Quality Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pre Commit Quality Review this skillnuwax-ai/nuwax892—~393Automated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
Stitch to Remotion Walkthrough Videosgoogle-labs-code/stitch-skills8.5k6 repos~3.2kAutomated safety check: NotesApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Stitch to Remotion Walkthrough Videos

    google-labs-code/stitch-skills

    Official

    Builds walkthrough videos from Stitch design projects using Remotion, with transitions, zoom effects and text overlays on each screen.

    8.5k GitHub starsUsed in 6 repos~3.2k tokens
    Media & CreativeAuto-check: notes
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed

More from nuwax-ai/nuwax

  • Requirement Analysis

    nuwax-ai/nuwax

    把零散想法、口头需求、工单、告警浮出的问题整理成可执行的需求说明(intent);当用户提到需求分析、梳理需求、写需求文档、补全场景、功能规划,或要求开始一个新功能时使用。仅适用于新功能/大需求(跨模块、新契约、需拍板);BUG 修复与小调整不走此链,直接改+跑测试。

    892 GitHub stars~269 tokensUpdated yesterday
    Auto-check passed
  • Grill With Docs

    nuwax-ai/nuwax

    拷问需求、方案和文档,逐步确认术语、边界、异常、风险和待确认问题;当用户要求拷问需求、挑战方案、检查边界、基于文档追问细节,或要把 intent 细化成规格时使用。仅新功能/大需求的规格收敛适用;小修/BUG 修复不适用,直接改+跑测试。

    892 GitHub stars~252 tokensUpdated yesterday
    Auto-check passed

Questions about Pre Commit Quality Review

What does Pre Commit Quality Review do?

大量代码合并主干分支前的质量自查:功能逻辑内聚、代码分层、可维护性三问走查整个待合并批次;当用户要求合并主干前查质量、提测/发版/特性分支大批量合入前走查、自查内聚/分层/可维护性时使用。. Pre Commit Quality Review is an agent skill from nuwax-ai/nuwax.

How do I install Pre Commit Quality Review in Claude Code?

Run `npx skills add nuwax-ai/nuwax --skill pre-commit-quality-review -a claude-code`. Or copy the skill folder (.agents/skills/pre-commit-quality-review in nuwax-ai/nuwax) into .claude/skills/pre-commit-quality-review in your project. Claude Code loads it when a task matches its description.

How do I install Pre Commit Quality Review in Codex?

Run `npx skills add nuwax-ai/nuwax --skill pre-commit-quality-review -a codex`. Or copy the skill folder (.agents/skills/pre-commit-quality-review in nuwax-ai/nuwax) into .agents/skills/pre-commit-quality-review in your project. Codex loads it when a task matches its description.

Can I use Pre Commit Quality Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nuwax-ai/nuwax --skill pre-commit-quality-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pre-commit-quality-review, .gemini/skills/pre-commit-quality-review, .github/skills/pre-commit-quality-review and .opencode/skills/pre-commit-quality-review in your project.

What does Pre Commit Quality Review need to run?

Going by SKILL.md and its folder, Pre Commit Quality Review needs the command-line tools its instructions call (git and pnpm).

Does Pre Commit Quality Review access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Pre Commit Quality Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pre Commit Quality Review use?

Pre Commit Quality Review is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pre Commit Quality Review use?

About 393 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pre Commit Quality Review?

Skills that share tags, products or a category with Pre Commit Quality Review: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pre Commit Quality Review?

nuwax-ai (a GitHub organization) maintains it in nuwax-ai/nuwax, which has 892 GitHub stars. The repository was last updated on October 10, 2026.

Source: nuwax-ai/nuwax on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.