.claude/skills/self-review/SKILL.md
Agent self-reviews its own diff against TASTE_INVARIANTS.md before presenting to user. Catches mechanical violations early.
npx skillsauth add anyproto/anytype-swift self-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Verify your own code changes against TASTE_INVARIANTS.md before presenting them to the user. Catch mechanical violations before they reach human review.
simplify skill activates (complements it)Identify all files you modified or created in this session.
For each modified .swift file, check against TASTE_INVARIANTS.md:
# Check for deprecated APIs in changed files
rg '\.foregroundColor\(' <file>
rg '\.cornerRadius\(' <file>
rg 'NavigationView' <file>
# Check for plain Text (excluding AnytypeText)
rg '[^a-zA-Z]Text\(' <file> | grep -v AnytypeText | grep -v searchable | grep -v navigationTitle
# Check for hardcoded strings in UI
rg '(Text|AnytypeText)\("[^"]*"\)' <file> | grep -v 'Loc\.'
# Check for hardcoded colors
rg 'Color\(red:|UIColor\(red:|#[0-9a-fA-F]{6}' <file>
# Check for force unwraps (rough)
rg '!\.' <file> | grep -v '//' | grep -v 'test'
# Check for print statements
rg 'print\(' <file>
# Check for String(format: Loc.)
rg 'String\(format: Loc\.' <file>
# Check for Group with lifecycle modifiers
rg -A5 'Group\s*\{' <file> | rg '\.onAppear|\.task'
If you renamed anything:
rg "oldName" --type swift
Ensure 0 results outside generated files.
"When the agent struggles, the fix is never 'try harder' — it's 'what capability is missing?'"
If you keep violating the same invariant, add better tooling or documentation, not more willpower.
TASTE_INVARIANTS.md — the source of truth for mechanical rulescode-review-developer — for reviewing others' codesimplify — for code quality improvementsdevelopment
Smart router to testing patterns and practices. Use when writing unit tests, creating mocks, testing edge cases, or working with Swift Testing and XCTest frameworks.
development
Audit and improve SwiftUI runtime performance through code review and Instruments guidance. Use for diagnosing slow rendering, janky scrolling, excessive view updates, or layout thrash in SwiftUI apps.
development
SwiftUI view structure, composition, and best practices. Use when refactoring SwiftUI views, organizing view files, or extracting subviews.
development
Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, macOS-specific APIs, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns.