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
selfstrongly, a delegate that isn'tweak, a timer or observer never invalidated. - Main-thread violations — UI touched off the main actor, or
@MainActorisolation crossed without anawait. Sendablegaps — mutable state crossing an isolation boundary,@unchecked Sendablewithout a stated invariant,nonisolated(unsafe)used to silence rather than to assert.- Non-atomic read-modify-write on shared state, including
lazyreachable from two threads. - Actor reentrancy: state read before an
awaitinside 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
UserDefaultsrather than the Keychain. - Member ordering and comment limits — see
$vvkit-swift-swift-styleand$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
no-heading
Use when proving that the validator rejects a body with no H1 and a force-loading @-link.
wrong-name-does-not-match-dir
Dispatches a subagent per task and reviews between each one.
writing-tests
Use when adding or changing behavior, fixing a bug, or judging whether an existing or generated test earns its place.
writing-skills
Use when authoring or editing a skill, agent, command or hook for this kit, or when deciding whether a piece of guidance belongs in a skill at all.
writing-project-instructions
Use when creating or editing a CLAUDE.md or AGENTS.md, when it has grown long, or when a rule in it also exists in an installed skill.
writing-logs
Use when adding or reviewing log statements, or when deciding what level a message belongs at.