agent-ops-critical-review
БесплатноБез исполняемых скриптовНе проверенDeep, excruciating code review. Use anytime to analyze code for correctness, edge cases, security, performance, and design issues. Not tied to baseline—this…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Critical Code Review
Purpose
Perform a deep, thorough, excruciating review of code. This skill is about analyzing code quality, correctness, and design—NOT about running tests or comparing to baseline. Use it anytime you need to scrutinize code.
API Detection
Before starting review, check if project contains APIs:
api_indicators:
- OpenAPI/Swagger spec (openapi.yaml, swagger.json, openapi.json)
- API framework patterns (FastAPI, Flask, Express, ASP.NET controllers)
- Route decorators (@app.route, @router.get, [HttpGet], etc.)
- API test files (test_api_*, *_api_test.*, api.spec.*)
If API detected:
- Note in review scope: "API endpoints detected"
- After general review, invoke
agent-ops-api-reviewfor API-specific audit - Merge API review findings into final report
When to Use
- During planning: Review existing code before modifying
- During implementation: Review your own changes
- Before completion: Final quality check
- On demand: User requests a code review
- After recovery: Verify recovery didn't introduce issues
Review Dimensions
1) Correctness
Logic Analysis:
- Does the code do what it claims to do?
- Are all code paths reachable and correct?
- Are conditionals exhaustive (all cases handled)?
- Are loop invariants maintained?
- Are recursive functions guaranteed to terminate?
Boundary Conditions:
- Empty inputs (null, undefined, empty string, empty array)
- Single element cases
- Maximum values / overflow potential
- Off-by-one errors
- Unicode / special characters
State Management:
- Is state modified predictably?
- Are there race conditions?
- Is cleanup always performed (finally blocks, defer, etc.)?
2) Error Handling
Questions to Ask:
- What can fail here?
- Is every failure case handled?
- Are errors propagated appropriately?
- Are error messages informative?
- Is there silent failure hiding bugs?
Checklist:
- All external calls wrapped in try/catch or equivalent
- Errors logged with context
- User-facing errors are actionable
- No swallowed exceptions
- Cleanup happens even on error
3) Security
Input Validation:
- Are all external inputs validated?
- Is there SQL injection potential?
- Is there XSS potential?
- Is there command injection potential?
- Are paths sanitized (no traversal)?
Authentication/Authorization:
- Is auth checked before sensitive operations?
- Are tokens/secrets handled securely?
- Is sensitive data logged? (it shouldn't be)
Data Handling:
- Is PII protected?
- Are passwords hashed, not encrypted?
- Is data sanitized before display?
4) Performance
Algorithmic:
- What's the time complexity?
- What's the space complexity?
- Are there N+1 query problems?
- Are there unnecessary iterations?
Resource Management:
- Are connections/handles closed?
- Are large objects released?
- Is there potential for memory leaks?
- Are there blocking calls that should be async?
Caching/Optimization:
- Is expensive computation cached when appropriate?
- Are there premature optimizations obscuring clarity?
5) Design & Maintainability
Single Responsibility:
- Does each function do one thing?
- Are there functions that are too long?
- Is there duplicated logic that should be extracted?
Naming & Clarity:
- Do names accurately describe purpose?
- Are abbreviations clear or confusing?
- Would a new team member understand this?
Dependencies:
- Are dependencies appropriate?
- Is there tight coupling that could be loosened?
- Are there circular dependencies?
Testability:
- Can this code be unit tested?
- Are dependencies injectable?
- Is there global state that complicates testing?
6) Consistency
- Does it follow project conventions?
- Does it match surrounding code style?
- Are patterns used consistently?
7) SOLID Principles (for OO/class-based code)
When to apply: Review SOLID for class-based code, services, and complex modules. Skip for simple scripts, utilities, or purely functional code.
Single Responsibility (SRP):
- Does each class have one clear purpose?
- Would changes to one feature require modifying this class for unrelated reasons?
- Could this class be split into smaller, focused classes?
Open/Closed (OCP):
- Can new features be added by extension rather than modification?
- Are there long if/elif/switch chains that should use polymorphism?
- Is the Strategy, Factory, or Template pattern appropriate?
Liskov Substitution (LSP):
- Do subclasses honor the contracts of their parent classes?
- Are there overridden methods that change expected behavior?
- Does substituting a subclass for its parent break anything?
Interface Segregation (ISP):
- Are interfaces/ABCs focused and cohesive?
- Do implementations need all me
Установить agent-ops-critical-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-ops-critical-review?
Deep, excruciating code review. Use anytime to analyze code for correctness, edge cases, security, performance, and design issues. Not tied to baseline—this is pure code analysis.
Как установить скилл agent-ops-critical-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-ops-critical-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic