aoc-daily-solver

Fetch Advent of Code puzzles, generate Python scaffolds, test, and submit answers.

1|Updated Dec 8, 2021
One-click install
npx skills add https://github.com/ejfn/advent-of-code --skill aoc-daily-solver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aoc-daily-solver
Source: https://github.com/ejfn/advent-of-code/tree/main/.claude/skills/aoc-daily-solver
Command: npx skills add https://github.com/ejfn/advent-of-code --skill aoc-daily-solver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, beautifulsoup4, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the repetitive manual steps involved in solving Advent of Code puzzles, from fetching the problem and input to implementing, testing, and submitting solutions. It allows you to focus on the core algorithmic challenge or simply get solutions without the workflow overhead, ensuring "AI works, you rest."

Core Features & Use Cases

  • Full Workflow Automation: Automatically fetches puzzle descriptions and personalized input, creates the necessary file structure, and guides the solution implementation, testing, and submission process.
  • Part 2 Revelation: Ensures the correct workflow by mandatorily re-fetching the puzzle description after Part 1 is solved, guaranteeing you always work with the complete problem statement.
  • Performance Guidance: Includes built-in tips and a timeout mechanism to encourage efficient algorithm design, helping you develop robust solutions.
  • Use Case: Ask the AI to "Solve today's Advent of Code puzzle," and it will autonomously manage the entire process, from setting up the environment to delivering and submitting the final, tested solution.

Quick Start

Solve today's Advent of Code puzzle.

Frequently Asked Questions about aoc-daily-solver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Advent of Code puzzle solving?

Automate Advent of Code puzzle solving by using this Skill to fetch daily puzzles, generate solution scaffolds, run tests against example inputs, and submit answers automatically. It handles the entire workflow from puzzle retrieval to submission, letting you focus on the algorithm.

What setup do I need to run Advent of Code automation?

You need a Python environment with requests and BeautifulSoup4 installed, an AOC_SESSION credential, and a repository structured as YYYY/N/dayN.py with input.txt files. The Skill generates the file structure and provides scripts to run tests and submit solutions.

Can I solve Advent of Code puzzles for specific days and years?

Yes, the Skill supports solving both today's puzzle and specific-day puzzles across multiple years. It works with local runs and GitHub Actions workflows, automatically fetching the correct puzzle and input for the day and year you specify.

How does the Skill handle Part 2 of Advent of Code puzzles?

The Skill mandatorily re-fetches the puzzle description after Part 1 is solved, ensuring you always have the complete problem statement for Part 2 before implementing that solution.

What happens if my Advent of Code solution runs too slowly?

The Skill includes built-in performance guidance and a timeout mechanism to flag inefficient algorithms, encouraging you to optimize your solution design for robust and timely execution.

Does this work with GitHub Actions for Advent of Code automation?

Yes, the Skill supports GitHub Actions workflows alongside local runs, enabling you to automate puzzle fetching, solution generation, testing, and submission through CI/CD pipelines.