Agent Skillssupercheck-io/supercheck › supercheck-code-review

supercheck-code-review

GitHub

用于对代码变更进行多维度审查,涵盖正确性、回归、安全、架构及发布就绪状态。通过追踪行为链路和检查关键领域(如认证、数据迁移、部署)来发现潜在缺陷。

.agents/skills/code-review/SKILL.md supercheck-io/supercheck

Trigger Scenarios

需要审查代码提交或拉取请求 评估变更的安全性和回归风险 确认发布前的代码质量

Install

npx skills add supercheck-io/supercheck --skill supercheck-code-review -g -y
More Options

Non-standard path

npx skills add https://github.com/supercheck-io/supercheck/tree/main/.agents/skills/code-review -g -y

Use without installing

npx skills use supercheck-io/supercheck@supercheck-code-review

指定 Agent (Claude Code)

npx skills add supercheck-io/supercheck --skill supercheck-code-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add supercheck-io/supercheck --all -g -y

预览 repo 内 skill

npx skills add supercheck-io/supercheck --list

SKILL.md

Frontmatter
{
    "name": "supercheck-code-review",
    "description": "Review Supercheck staged, unstaged, commit, branch, or pull-request changes for correctness, regressions, security, tenancy, architecture, tests, docs, licensing, and commit\/merge\/release readiness."
}

Supercheck code review

Use every domain skill touched by the diff. Review is read-only unless the user also asks to fix findings.

Establish scope

  • Identify repositories, branch/base, commits, staged/unstaged/untracked files, submodules, generated outputs, and existing unrelated changes.
  • Review the effective combined change, not only staged or unstaged fragments when both exist.
  • Classify each file as architecture/data, auth/security, API/action, UI/hooks, execution/worker, monitoring, storage, SRE, deployment, testing/docs, CLI, recorder, billing, or another integration.

Trace behavior

For each changed contract, follow:

flowchart LR
  CALLER[Caller/user input] --> TRUST[Auth and validation]
  TRUST --> LOGIC[Business logic]
  LOGIC --> STATE[DB, cache, queue, object, provider]
  STATE --> CONSUMER[Worker/UI/CLI/integration]
  CONSUMER --> TEST[Tests and docs]
  • A diff that looks correct locally can still break a caller, worker, old deployment, CLI, extension, migration, or retry path.
  • Treat reported findings as hypotheses. Confirm through current source, call paths, tests, and runtime contracts before recommending changes.
  • Do not convert intentional hardening into a finding merely because it is stricter than generic guidance.

Critical review areas

  • Authentication mechanism and exact RBAC resource/action for cookie, bearer, trigger, admin, and public routes.
  • Organization/project ownership on reads, writes, joins, cache keys, streams, objects, queue jobs, and provider identities.
  • Zod/input bounds, uploads, HTML/browser messages, SSRF/redirect/DNS behavior, webhook signatures, and output allowlists.
  • Secret encryption/redaction and absence from client data, config, queues, logs, errors, model prompts, and artifacts.
  • Migration existing-data safety, constraints/indexes, lock duration, destructive operations, rollback/recovery, and version skew.
  • Queue payload parity, atomic capacity, retries/idempotency, duplicate delivery, cancellation, terminal cleanup, and worker loss.
  • React server/client boundary, query-key/invalidation parity, stale data, accessibility, error/loading/empty behavior.
  • External effects: timeout, retry safety, idempotency, cancellation, billing/usage exactly-once behavior, and provider reconciliation.
  • Deployment: immutable versions, secret handling, gVisor/network/namespace isolation, resource ceilings, autoscaling, health, and destructive blast radius.
  • CLI/recorder public compatibility and AGPL versus Apache/third-party NOTICE obligations.

Findings format

  • Order by severity: critical/security/data loss, functional regression, reliability/performance, maintainability, suggestion.
  • Give exact file/line, concrete failure scenario, affected users/system, and smallest safe correction.
  • Avoid style-only noise unless repository tooling enforces it or it materially obscures correctness.
  • Record important investigated claims that are not defects so reviewers understand intentional behavior.

Verification and decision

flowchart TD
  REVIEW[Source/call paths reviewed] --> CHECK{Relevant checks pass?}
  CHECK -->|no| BLOCK[Not commit-ready]
  CHECK -->|yes| CLEAN{State and docs clean?}
  CLEAN -->|no| BLOCK
  CLEAN -->|yes| COMMIT[Commit-ready]
  COMMIT --> CI[Required CI/review]
  CI --> ACCEPT[Browser/provider/deployment acceptance]
  ACCEPT --> RELEASE[Release-ready]
  • Run proportionate focused checks and broaden for shared/high-risk contracts.
  • Confirm whitespace/diff checks, package contents, ignored/generated files, migrations, and docs/skills parity.
  • Separate commit readiness from merge and release readiness.
  • An unavailable browser/provider/production check is a disclosed acceptance boundary, never a pass.

Version History

  • 974a753 Current 2026-09-22 16:21

Same Skill Collection

.agents/skills/architecture/SKILL.md
.agents/skills/data-storage/SKILL.md
.agents/skills/execution-engine/SKILL.md
.agents/skills/feature-implementation/SKILL.md
.agents/skills/infrastructure-deployment/SKILL.md
.agents/skills/integrations-extensions/SKILL.md
.agents/skills/monitoring-alerts/SKILL.md
.agents/skills/platform-features/SKILL.md
.agents/skills/security-auth/SKILL.md
.agents/skills/sre-operations/SKILL.md
.agents/skills/testing-qa/SKILL.md
.github/skills/code-review/SKILL.md
.github/skills/docker-compose-deployment/SKILL.md
.github/skills/feature-implementation/SKILL.md

Metadata

Files
0
Version
974a753
Hash
4fe18b64
Indexed
2026-09-22 16:21

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 14:08
浙ICP备14020137号-1