aoc-solution-review

Reviews Advent of Code TypeScript solutions for code quality, TypeScript idioms, and performance. Use when asked to review a day's solution, critique AoC code, or get feedback on puzzle implementations.

16 stars

Best use case

aoc-solution-review is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Reviews Advent of Code TypeScript solutions for code quality, TypeScript idioms, and performance. Use when asked to review a day's solution, critique AoC code, or get feedback on puzzle implementations.

Teams using aoc-solution-review should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/aoc-solution-review/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/aoc-solution-review/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/aoc-solution-review/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How aoc-solution-review Compares

Feature / Agentaoc-solution-reviewStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Reviews Advent of Code TypeScript solutions for code quality, TypeScript idioms, and performance. Use when asked to review a day's solution, critique AoC code, or get feedback on puzzle implementations.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# AoC Solution Review

Reviews Advent of Code solutions with focus on learning TypeScript through practical feedback.

## When to Use

- User asks to "review day N"
- User wants feedback on their AoC solution
- User asks for code quality or performance analysis

## Review Process

1. **Run checks**: Execute automated validation first
   ```bash
   bun test src/days/dayNN.test.ts   # Verify tests pass
   bunx eslint src/days/dayNN.ts     # Check for lint errors (no --fix)
   bunx prettier --check src/days/dayNN.ts  # Check formatting
   ```
2. **Read the solution**: Load `src/days/dayNN.ts` and `src/days/dayNN.test.ts`
3. **Consult the oracle**: Ask for a thorough review covering all sections below
4. **Research algorithms**: If the solution uses a notable algorithm (BFS, dynamic programming, etc.), do a brief web search for relevant Wikipedia or reference articles to mention
5. **Present findings**: Organize feedback into the standard sections

## Review Sections

### 1. TypeScript Quality
- **Type safety**: Identify `any`, unnecessary `!` assertions, weak unions
- **Idiomatic patterns**: Suggest modern TS/JS idioms (destructuring, optional chaining, nullish coalescing)
- **Naming**: Flag unclear variable names, suggest improvements
- **Organization**: Comment on function size, separation of concerns

### 2. Code Readability
- **Parsing vs logic**: Is input parsing cleanly separated from solution logic?
- **Comments**: Are complex algorithms explained? (But don't over-comment obvious code)
- **Magic numbers**: Flag unexplained constants
- **Control flow**: Identify overly nested or confusing logic

### 3. Performance Analysis
- **Complexity**: State time/space complexity (e.g., O(n²))
- **Hot loops**: Identify operations in tight loops that could be optimized
- **Data structures**: Suggest better structures if applicable (Map vs object, Set vs array)
- **Practical balance**: Note when optimization isn't worth the complexity

### 4. Potential Bugs & Edge Cases
- **Off-by-one errors**: Check loop bounds
- **Undefined access**: Identify risky array/object accesses
- **Empty input**: Would the solution handle empty or malformed input?

### 5. Automated Checks
Report results from the automated checks run in step 1:
- **Tests**: Pass/fail status
- **ESLint**: Any errors or warnings
- **Prettier**: Formatting issues (if any)

### 6. Algorithm Notes
If a notable algorithm is used, briefly mention:
- What algorithm/technique is being used
- Link to Wikipedia or other reference for further reading
- Whether there's a more efficient approach worth knowing about

### 7. Suggestions (Prioritized)
List 3-5 concrete improvements, ordered by impact:
1. **Must fix**: Bugs or serious issues
2. **Should improve**: Clear wins for readability or performance
3. **Consider**: Nice-to-haves or learning opportunities

## Output Format

```markdown
## Day N Review

### Automated Checks
- Tests: ✓ passed / ✗ failed
- ESLint: ✓ clean / [errors]
- Prettier: ✓ formatted / [issues]

### TypeScript Quality
[findings]

### Readability
[findings]

### Performance
[findings]

### Edge Cases
[findings]

### Algorithm Notes
[technique used, reference link, alternatives]

### Suggestions
1. [highest priority]
2. [next priority]
...
```

## Guidelines

- Be direct and matter-of-fact — skip praise and filler
- Explain *why* something is better, not just *what* to change
- Reference specific line numbers when pointing out issues
- Never offer to apply fixes — this skill is pedagogic only, not for writing code
- Keep suggestions practical for AoC context (not production-grade over-engineering)

## Examples

See `reference/examples.md` for calibration examples showing:
- Good vs bad patterns for common issues
- Appropriate feedback tone and specificity
- How to phrase constructive criticism

Related Skills

aposd-reviewing-module-design

16
from diegosouzapw/awesome-omni-skill

Evaluate module design using APOSD principles with 40-item checklist. Detect complexity symptoms (change amplification, cognitive load, unknown unknowns), shallow modules, information leakage, pass-through methods, and structural anti-patterns. Produce categorized design review (Critical/Moderate/Observations/Positive). Use when reviewing code, assessing interfaces, during PR review, or evaluating 'is this too complex?' Triggers on: code review, design review, module complexity, interface assessment, PR review, structural analysis.

android-code-review

16
from diegosouzapw/awesome-omni-skill

Critical Android code review for Payoo Android app. Focuses on high-impact issues - naming conventions, memory leaks, UIState patterns, business logic placement, lifecycle management, and MVI/MVVM pattern violations. Use when reviewing Kotlin files, pull requests, or checking ViewModels, Activities, Fragments, UseCases, and Repositories.

analyzer-architecture-review

16
from diegosouzapw/awesome-omni-skill

analyzerアプリケーションのアーキテクチャレビュー。Port&Adapterアーキテクチャ(ヘキサゴナルアーキテクチャ)のルールに従っているかをチェックします。新しいPort/Adapter/Usecase/Model追加時、PRレビュー時、またはアーキテクチャ違反の検出が必要な時に使用します。Port層の関数型定義、依存関係の方向、New*関数パターン、レイヤー分離などを検証します。

ad-review

16
from diegosouzapw/awesome-omni-skill

Quality review ads before launch by verifying hook strength, checking proof elements, evaluating CTA effectiveness, and assessing visual quality and authenticity. Use as final check before launching creative or when reviewing team submissions.

actionable-review-format-standards

16
from diegosouzapw/awesome-omni-skill

Standardized output format for code reviews with severity labels, file:line references, and fix code snippets. Use when generating review reports that need consistent, actionable feedback structure.

accessibility-review

16
from diegosouzapw/awesome-omni-skill

Reviews UI for accessibility issues against WCAG 2.1/2.2 AA. Triggers on "is this accessible?", "check accessibility", or contrast/a11y review requests.

academic-review

16
from diegosouzapw/awesome-omni-skill

Interactive review sessions with academic PDFs (lectures, research papers, book chapters). Extract concepts, run Q&A sessions, generate quizzes with scoring. Preserves mathematical formulas in LaTeX format. Privacy-preserving local processing - PDFs never uploaded. Use when studying academic materials, reviewing research, or preparing for exams.

ac-qa-reviewer

16
from diegosouzapw/awesome-omni-skill

Quality assurance review for implementations. Use when reviewing code quality, checking implementation standards, performing QA cycles, or validating feature quality.

a11y-review

16
from diegosouzapw/awesome-omni-skill

Controleer toegankelijkheid conform WCAG 2.1 AA. Gebruik bij het reviewen van templates, CSS of HTML, of wanneer de gebruiker vraagt om toegankelijkheid te checken.

scaffold-bulk-review-prototypes

16
from diegosouzapw/awesome-omni-skill

Review all prototypes at once for cross-prototype consistency, coverage gaps, ADR follow-through, and scope discipline. Use for a full audit of all prototypes.

review:ux

16
from diegosouzapw/awesome-omni-skill

UX Review - analyzes feature for efficiency-first UX patterns, keyboard navigation, and pro-tool experience

review-model-guidance

16
from diegosouzapw/awesome-omni-skill

Guidance for selecting models when performing code review with subtasks. Load this skill to enable intelligent model selection for review analysis — choosing faster models for simple tasks and deeper reasoning models for complex analysis.