format-euler-code
Enforce the Euler repository C++ formatting and style rules from AGENTS.md. Use when writing, editing, or reviewing Euler solution code so it matches required includes, types, layout, namespaces, and I/O conventions.
Best use case
format-euler-code is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Enforce the Euler repository C++ formatting and style rules from AGENTS.md. Use when writing, editing, or reviewing Euler solution code so it matches required includes, types, layout, namespaces, and I/O conventions.
Teams using format-euler-code 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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/format-euler-code/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How format-euler-code Compares
| Feature / Agent | format-euler-code | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Enforce the Euler repository C++ formatting and style rules from AGENTS.md. Use when writing, editing, or reviewing Euler solution code so it matches required includes, types, layout, namespaces, and I/O conventions.
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
# Format Euler Code ## Overview Apply the Euler C++ code-style rules so solutions are consistent, readable, and compliant. Focus on formatting, structure, and required conventions while preserving correctness. ## Guidelines - Keep helper functions and structs above `main()`; keep `main()` short and focused on orchestration and output. - Use a single translation unit; avoid extra headers unless the problem demands it. - List only required standard headers explicitly; avoid mega-headers. - Qualify all standard library usage with `std::`; do not use `using namespace std;`. - Use `static_cast<...>` for conversions; avoid C-style casts. - Prefer fixed-width integers (`std::uint64_t`, `std::int64_t`) and keep constants `const` or `constexpr` near use. - Mark file-scope helpers as `static` (or `static inline` for small helpers). - Prefer `std::vector`/`std::array`; `reserve()` or pre-size when size is known; use `std::size_t` for indexing by size. - Use clear loops with early-continue/early-return; avoid unnecessary recursion. - Use `std::ios::sync_with_stdio(false); std::cin.tie(nullptr);` when reading input. - End final output with `std::endl`. - Keep comments short and only for non-obvious math or logic; use ASCII only; never reference AGENTS instructions. - Use `<primesieve.hpp>` for prime generation when needed; use Boost multiprecision only when bounds require it. ## Quick Workflow 1. Scan the file for style violations: includes, namespaces, helper placement, types, casts, and I/O setup. 2. Apply the minimal edits needed to conform to guidelines without changing logic. 3. Re-check for unnecessary headers, incorrect types, or missing `static` helpers. 4. Confirm the final output line ends with `std::endl`. 5. Confirm that the program output remains unchanged compared to prior to the code updates.
Related Skills
format-figure
Reformats a figure component file to conform to the standard section order and naming conventions defined in the figure guidelines.
Fixed Video Format (9:16)
Fixed 1080x1920 pixel video format with percentage-based positioning. Use this when laying out video compositions, positioning elements on the canvas, or calculating dimensions. All videos render at exactly 9:16 aspect ratio for TikTok/Instagram Reels.
code_formatter
Otomatik kod formatlama, Prettier/ESLint entegrasyonu ve kod stil tutarlılığı rehberi.
architecture-format-extended
Extended architecture templates with full examples. Imports architecture-format-core for base structure.
actionable-review-format-standards
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.
1k-date-formatting
Date and time formatting for OneKey applications. Use when displaying dates, timestamps, or formatting time in UI components. Always use OneKey utilities instead of native JS date methods. Triggers on date, time, timestamp, formatDate, formatTime, toLocaleDateString, toLocaleString, dateUtils, locale, format, display date, show time, datetime, calendar.
dbt-transformation-patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or ...
verify-information-rule
This rule ensures that the AI always verifies information before presenting it, avoiding assumptions and speculation.
lint-and-format
Runs linting and formatting checks before committing. Use this skill after writing or modifying code to ensure it passes all linters and formatters before creating a commit.
aws-cloudformation-rds
AWS CloudFormation patterns for Amazon RDS databases. Use when creating RDS instances (MySQL, PostgreSQL, Aurora), DB clusters, multi-AZ deployments, parameter groups, subnet groups, and implementing template structure with Parameters, Outputs, Mappings, Conditions, and cross-stack references.
adf-format-json-schema
Query Atlassian Document Format (ADF) JSON schema definitions to understand ADF node and mark types. Use this skill when implementing ADF dataclass nodes/marks, or when user asks about ADF structure, ADF nodes, ADF marks, or Atlassian Document Format implementation.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.