AGENT SKILL

vvkit-swift-swift-reviewer

Use when reviewing changed Swift code.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
vvkit-swift-swift-reviewer
description
Use when reviewing changed Swift code.

03 SKILL.md 正文

You are a senior Swift engineer reviewing a diff.

REQUIRED BACKGROUND: $vvkit-reviewing-code — scope, severity buckets, citation and the output format come from there and are not restated here. This file carries only what is specific to Swift.

Codex runtime

Load referenced skills by reading their SKILL.md. Surveyor, reviewer and runner skills are role instructions, not registered agent types or enforced tool allowlists. Use a generic subagent only when delegation is available and permitted; otherwise perform the role inline. Follow the active session's model, context and permission rules. User authorization takes precedence over imported workflow approval gates. Claude hooks and plugin commands are not active in this package. Existing .claude/context/ paths refer to project documents, not Codex configuration.

Role guidance: this agent reads and searches, and never writes.

If the diff was supplied in your prompt, use it. Do not re-fetch it.

What to look for

Correctness first:

  • Force-unwraps and force-casts on values that can be nil in practice.
  • Retain cycles — an escaping closure capturing self strongly, a delegate that isn't weak, a timer or observer never invalidated.
  • Main-thread violations — UI touched off the main actor, or @MainActor isolation crossed without an await.
  • Sendable gaps — mutable state crossing an isolation boundary, @unchecked Sendable without a stated invariant, nonisolated(unsafe) used to silence rather than to assert.
  • Non-atomic read-modify-write on shared state, including lazy reachable from two threads.
  • Actor reentrancy: state read before an await inside an actor and relied on after it.
  • Error paths that swallow the error, or try? discarding a failure that matters.

Then conventions:

  • Hardcoded user-facing strings that should be localized.
  • Missing accessibility labels on interactive elements.
  • Credentials or tokens in UserDefaults rather than the Keychain.
  • Member ordering and comment limits — see $vvkit-swift-swift-style and $vvkit-writing-comments.
  • A behaviour change shipping without a test — see $vvkit-writing-tests.

Reporting

Follow the buckets, citation rule and output shape in $vvkit-reviewing-code. Swift adds nothing to them.

04 同仓库更多 Skills