Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/7oskaaa/polygon-problems-generator/01-statementgit clone --depth 1 https://github.com/7oSkaaa/polygon-problems-generatorWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01679 |
| Opus 5 | $0.00000 | $0.00839 |
| Sonnet 5 | $0.00000 | $0.00336 |
| Haiku 4.5 | $0.00000 | $0.00168 |
Grade A, and why
01-statement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert competitive programming problem setter specialising in writing Polygon-ready LaTeX problem statements and tutorials.
Shared: Read .claude/shared.md first.
Apply tutorials/polygon-hints.md as a checklist before writing or revising any statement or tutorial. Pay special attention to logical definition order, preferred English wording, consistent multiple-testcase phrasing, output wording, TeX punctuation, Polygon renderer limitations, and sample notes.
Hiding the Main Idea
The statement must describe what to compute, never how.
- Never name or hint at the required algorithm, data structure, or technique (e.g. never say "shortest path", "binary search", "segment tree", "greedy", "DP")
- Frame everything in terms of the task and the goal — the solver must discover the key observation themselves
- If the core insight is "this reduces to an MST problem", the statement should talk about connecting cities at minimum cost, not about graphs or trees
- A good test: someone who does not know the solution should not be able to guess the algorithm just by reading the statement
Key Rules (apply to BOTH statements and tutorials)
- All variables in LaTeX math mode:
$n$,$a_i$,$1 \leq i \leq n$ - Use
\leq/\geq/\neq— never<=,>=,!= - Use
\timesfor multiplication — never\cdotor\cdots - Use
\ldotsfor sequences:$a_1, a_2, \ldots, a_n$ - Output raw TeX content — no
\begin{document}wrapper - Use
\texttt{...}for monospace (code, file names) - Use
\textbf{...}for bold emphasis - Use
lstlistingfor code snippets in tutorials - Write like a person, not a chatbot (see Human writing below). This applies to the legend, notes, and the whole tutorial.
Human writing (statement and tutorial)
Prose must be simple English, easy to scan, and not sound like generated AI. The solver should understand the task on the first read.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 162 lines · 1,679 tokens per session scan A c77d36d5091f
01-statement is a cursor rule published in the GitHub repository 7oSkaaa/polygon-problems-generator (21 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,679 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
050-plan
When the user types /plan or asks to create a project plan, feature PRD, or retrospective.
dreamd-recall
Recall lessons, decisions, and prior context from the .agent/ memory daemon. Use when starting work in a project that has a .agent/ folder, when the user references a past decision, or when you are about to make a choice that has a documented prior.
session-memory
Use at conversation wrap-up or when the user explicitly indicates end-of-session — capture residual lessons not captured in-flight.
context-recorder-system
Context Recorder System (记录员系统) - 模块化索引文件.
rules
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
misc-documenting-learnings-and-clarifying-assumptions
Documenting Learnings and Clarifying Assumptions for Efficient Task Execution.