Ring:Reviewing Code 标志

Ring:Reviewing Code

组织
LerianStudio
ring:reviewing-code

Reviewing code by dispatching the default reviewer subagents in parallel (plus conditional specialists for lib-observability, lib-systemplane, or lib-streaming when the diff triggers them), then aggregating findings by severity into a report. Use as Gate 8 of ring:running-dev-cycle at epic cadence over the cumulative diff, or before merging. Report-only. Skip for a single-command Go pre-merge verdict (use ring:verifying-code).

Add to TypingMind

概览

发布者LerianStudio
代码仓库ring
技能名称ring:reviewing-code
星标数
215
复刻数
28
附带文件
1
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 LerianStudio 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Ring:Reviewing Code AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/LerianStudio/ring/tree/main/default/skills/reviewing-code
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LerianStudio/ring.git /tmp/ring
mkdir -p .claude/skills
cp -r /tmp/ring/default/skills/reviewing-code .claude/skills/lerianstudio-ring-reviewing-code
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Ring:Reviewing Code,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Ring:Reviewing Code。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Ring:Reviewing Code 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Code Review (Gate 8)

When to use

  • Gate 8 of development cycle
  • After completing major feature implementation
  • Before merge to main branch
  • After completing complex bug work

Skip when

  • Task is purely conversational or informational with no code changes
  • Changes are limited to documentation or comments with zero logic modifications
  • Code has not been modified since the last completed review cycle

Sequence

Runs after: ring:implementing-tasks Runs before: ring:validating-acceptance-criteria

Related

Complementary: ring:running-dev-cycle, ring:implementing-tasks

Dispatch the 9 default reviewer subagents in parallel, plus any triggered conditional specialists. Dispatch count is dynamic: 9 + triggered specialists, max 12. Do not say or imply all 12 always dispatch.

Announce at start: "Using ring:reviewing-code to dispatch 9 default reviewers plus triggered conditional specialists."

Report-only boundary: This skill does not remediate findings, dispatch implementation work, write comments into source files, generate external artifacts, invoke secondary review tools, or re-run reviewers automatically. It only dispatches the selected reviewers once and reports their findings in the current session.

Default Reviewers (Hard Gate)

#AgentFocus
1ring:code-reviewerArchitecture, design patterns, code quality
2ring:logic-reviewerDomain correctness, business rules, edge cases
3ring:security-reviewerVulnerabilities, authentication, OWASP risks
4ring:test-reviewerTest quality, coverage, edge cases, anti-patterns
5ring:nil-reviewerNil/null pointer safety for Go and TypeScript
6ring:dead-code-reviewerOrphaned code detection, reachability analysis
7ring:perf-reviewerPerformance hotspots, allocations, goroutine leaks, N+1
8ring:tenancy-reviewerMulti-tenant patterns, tenantId propagation, DB isolation
9ring:commons-reviewerlib-commons package usage and reinvented-wheel opportunities

Base hard gate: all 9 default reviewers must PASS.

Conditional Specialist Reviewers

Run these only when the diff matches their trigger. If triggered, include the specialist in aggregation and require PASS for overall PASS.

AgentTrigger
ring:obs-reviewerDiff touches tracing, metrics, logging, runtime recovery/panic safety, redaction, observability constants, or goroutines with recover/SafeGo implications.
ring:systemplane-reviewerDiff touches runtime config, hot-reload knobs, admin config surface, tenant-scoped settings, or systemplane imports/config.
ring:streaming-reviewerDiff touches business events, outbox, event producers, broker publishing, CloudEvents, or event manifests/catalogs.

Role Clarification

WhoResponsibility
This SkillSelect triggered specialists, dispatch reviewers once, aggregate findings, report all severities in-session
Reviewer AgentsAnalyze code, report issues with severity

Step 1: Gather Context (Auto-Detect if Not Provided)

Auto-detect: unit_id (generate if missing), base_sha (git merge-base HEAD main), head_sha (git rev-parse HEAD), implementation_files (git diff --name-only), implementation_summary (git log --oneline).

Display context banner before dispatching.

Step 2: Select Reviewers and Initialize Review State

Start with the 9 default reviewers. Inspect changed files and diff content to decide which conditional specialists are triggered. Track unit_id, base/head SHA, selected reviewer list, reviewer verdicts, and aggregated issues by severity: Critical, High, Medium, Low.

Step 3: Dispatch Selected Reviewers in Parallel

STOP-CHECK BEFORE DISPATCH

Before emitting any Task call, count the reviewers you intend to launch in this turn.

  • Count MUST equal 9 + triggered_specialists.
  • Count MUST be at least 9 and at most 12.
  • If count < 9 or count does not include every triggered specialist -> STOP. Reconcile against the default reviewer table and trigger table above.

MUST NOT trickle-dispatch

All selected reviewers leave in the SAME TURN, before reading any reviewer output.

Forbidden sequences:

  • Dispatch reviewer 1 -> read result -> dispatch reviewer 2
  • Dispatch a subset -> wait -> dispatch the rest
  • Dispatch conditional specialists after partial reviewer output
  • Loop sequentially over the reviewer list

If you find yourself about to dispatch a reviewer in a turn AFTER any reviewer has already returned a result -> STOP. You violated parallel dispatch. Report the violation to the user and mark the gate INCOMPLETE rather than completing the trickle.

Self-verify after dispatch

After the dispatch turn, verify all selected Task calls were emitted in that single turn. If fewer than selected reviewers went out, the gate did NOT execute correctly. Mark the run INCOMPLETE and surface the dispatch failure.

Parallel dispatch — atomic batch

Emit all selected Task calls in a SINGLE TURN, as one atomic batch.

If your runtime exposes a multi_tool_use.parallel wrapper, use it to dispatch the complete selected pool in one wrapped invocation. The STOP-CHECK, anti-trickle, and self-verify guards remain binding regardless of runtime.

Read reviewers/dispatch-prompts.md for the prompt templates. Inject:

  • Epic-level scope header (when scope=epic)
  • base_sha / head_sha from cumulative_diff_range when epic-level
  • Ring standards slice (cache-first per shared-patterns/standards-cache-protocol.md)
  • Explicit instruction that reviewers must report findings only and must not modify files

Step 4: Wait and Parse Output

Parse VERDICT and Issues for all selected reviewers. Normalize every issue into one of four severity buckets: Critical, High, Medium, Low.

For each issue, preserve:

  • Severity
  • Title or short description
  • File:line when provided
  • Reviewer
  • Evidence or reasoning
  • Recommendation

If a reviewer returns COSMETIC, map it to Low.

Step 5: Report Results In Session

Produce a detailed Markdown report in the current session. The report must include all Critical, High, Medium, and Low issues.

Do not dispatch any follow-up agent to remediate findings. Do not edit files. Do not create reports on disk. Do not open a browser. Report back only.

Completion Rules

  • Complete after all selected reviewer outputs are collected and summarized.
  • PASS means all 9 default reviewers completed with zero issues, and every triggered specialist also completed with zero issues.
  • ISSUES_FOUND means at least one Critical, High, Medium, or Low issue was reported by any selected reviewer.
  • INCOMPLETE means one or more selected reviewers did not return a parseable result.
  • Low issues are still reported; never omit them from the session report.
  • No automatic remediation, source-file changes, reviewer reruns, external artifacts, or secondary validation tools are part of this skill.

Red Flags — STOP

  • You are about to dispatch any non-reviewer agent.
  • You are about to edit source files.
  • You are about to create or open a separate report artifact.
  • You are about to invoke a secondary review or validation tool.
  • You are about to re-run reviewers without an explicit new user request.

All of these mean: stop and produce the session report instead.

Output Format

markdown
## Review Summary
**Status:** [PASS|ISSUES_FOUND|INCOMPLETE]
**Unit ID:** [unit_id]
**Base:** [base_sha]
**Head:** [head_sha]
**Scope:** [epic|branch|provided]
**Reviewers Dispatched:** [9-12]
**Conditional Specialists Triggered:** [none|list]

## Issues by Severity
| Severity | Count |
|----------|-------|
| Critical | N |
| High     | N |
| Medium   | N |
| Low      | N |

## Critical Issues
[List every Critical issue. If none: None.]

| Issue | File:Line | Reviewer | Evidence | Recommendation |
|-------|-----------|----------|----------|----------------|
| [actual issue description] | [file:line] | [ring:xxx-reviewer] | [why it matters] | [recommended action] |

## High Issues
[List every High issue. If none: None.]

## Medium Issues
[List every Medium issue. If none: None.]

## Low Issues
[List every Low issue. If none: None.]

## Reviewer Verdicts
| Reviewer | Verdict | Issues |
|----------|---------|--------|
| ring:code-reviewer | PASS/FAIL/INCOMPLETE | N |
[...selected reviewer rows]

## Report Boundary
No files were changed. No remediation agents were dispatched. No external report artifacts were generated.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Ring:Reviewing Code AI 技能有什么作用?

Reviewing code by dispatching the default reviewer subagents in parallel (plus conditional specialists for lib-observability, lib-systemplane, or lib-streaming when the diff triggers them), then aggregating findings by severity into a report. Use as Gate 8 of ring:running-dev-cycle at epic cadence over the cumulative diff, or before merging. Report-only. Skip for a single-command Go pre-merge verdict (use ring:verifying-code).

为什么在 TypingMind 中使用 Ring:Reviewing Code?

因为您只需安装一次,就能搭配任何模型使用。Ring:Reviewing Code 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Ring:Reviewing Code?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/LerianStudio/ring/tree/main/default/skills/reviewing-code。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ring:Reviewing Code?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Ring:Reviewing Code 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Ring:Reviewing Code 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Ring:Reviewing Code AI 技能免费吗?

是的。LerianStudio 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇