writing-editorials

Writes standalone HTML editorials for competitive programming problems with themed styling and KaTeX math.

1|Updated Sep 3, 2026
One-click install
npx skills add https://github.com/nudetiger/competitive-programming-problem-preparer --skill writing-editorials-nudetiger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-editorials
Source: https://github.com/nudetiger/competitive-programming-problem-preparer/tree/main/skills/writing-editorials
Command: npx skills add https://github.com/nudetiger/competitive-programming-problem-preparer --skill writing-editorials-nudetiger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing a clear, well-structured editorial for a competitive programming problem is time-consuming: the solution must be derived step by step, restated without story lore, formatted as a self-contained HTML page, and kept consistent with the official statement, subtasks, and limits. This Skill automates that authoring process while enforcing editorial quality standards. ## Core Features & Use Cases - Derivation-first tutorial writing: Builds the solution as a continuous reasoning flow (observation, consequence, state, transition, correctness, complexity) rather than a compressed summary, with Observation and Lemma cards reserved for pivotal claims. - Themed standalone HTML output: Produces a single browser-openable editorial.html using one of three verbatim themes (space-dark, polygon-light, fb-light) with KaTeX rendering, meta blocks, tags, and optional whole-contest pages. - Bilingual and style control: Supports English or natural Vietnamese prose guided by a glossary (references/vi-glossary.md), calibrates explanation depth to problem difficulty, and strips AI writing patterns. - Use Case: After finishing a Polygon-ready problem package, ask for an editorial and receive editorial/editorial.html with a lore-stripped restatement, derived solution, difficulty estimate, CF-style tags, and time complexity. ## Quick Start Write the editorial HTML for the problem in the current directory using the default theme.

Frequently Asked Questions about writing-editorials

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

FAQPage Schema
How do I generate an HTML editorial for a competitive programming problem?

Explicitly ask for an editorial, solution writeup, or editorial.html in the conversation. The Skill reads the statement, problem.json, and model solution, then writes a self-contained editorial/editorial.html that opens directly in a browser.

What themes are available for the editorial HTML page?

Three themes ship in references/themes: space-dark (dark JetBrains Mono, the default), polygon-light (light serif resembling Polygon statements), and fb-light (light feed-style with collapsible problem titles). The theme is set via preferences.yaml or named in the conversation.

Does the editorial skill run automatically after preparing a problem package?

No. It is strictly opt-in and detached from the creating-problems pipeline. It only runs when the conversation explicitly asks for an editorial, tutorial HTML, or solution writeup; finishing a package alone never triggers it.

Can I write the editorial in Vietnamese?

Yes. When Vietnamese is requested, the Skill reads references/vi-glossary.md first and writes natural Vietnamese prose while keeping labels like Time limit, Difficulty, Observation, and technique names such as DP or segment tree in English.

What are the limitations of the generated editorial page?

The output is a single static HTML file with CDN-loaded fonts and KaTeX, so math rendering needs internet access. It contains no pasted solution code or algorithm boxes, and it is not the vnolymp .tex statement, which belongs to a different skill.