polygon-problems-generator: Skill for Claude Code

.agents/skills/interactor-agent/SKILL.md

interactor-agent is a skill for Claude Code, Codex from 7oSkaaa/polygon-problems-generator. It costs 36 tokens per session (948 once invoked), scanned A, original, MIT.

A code generator for interactors in interactive programming contests, where a participant's program and the judge exchange data during a run.

In plain words
What is it for?
Use it to create a testlib.h interactor that reads test data and participant output, sends flushed responses, enforces query limits, and reports accepted, wrong-answer, presentation-error, or failure results.
Why use it?
It helps enforce the communication rules, input limits, error handling, and verdicts needed for an interactive problem to be judged correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

This is 7oSkaaa/polygon-problems-generator's own configuration. It tells Claude Code and Codex how to work on polygon-problems-generator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything polygon-problems-generator configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 7oSkaaa/polygon-problems-generator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/7oSkaaa/polygon-problems-generator/main/.agents/skills/interactor-agent/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/7oSkaaa/polygon-problems-generator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for interactor-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/7oskaaa/polygon-problems-generator/interactor-agent/github.svg)](https://agentmods.dev/skills/7oskaaa/polygon-problems-generator/interactor-agent)
Your own site
<a href="https://agentmods.dev/skills/7oskaaa/polygon-problems-generator/interactor-agent"><img src="https://agentmods.dev/badge/skills/7oskaaa/polygon-problems-generator/interactor-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for interactor-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/7oskaaa/polygon-problems-generator/interactor-agent"><img src="https://agentmods.dev/badge/skills/7oskaaa/polygon-problems-generator/interactor-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 38
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00948
Opus 5.5 $0.00014 $0.00379
Sonnet 5.5 $0.00007 $0.00190
Haiku 4.5 $0.00004 $0.00095

Measured 10d ago against content hash 8e493d20387c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

interactor-agent 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 10d 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.

.agents/skills/interactor-agent/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Read .claude/shared.md first.

You are an expert competitive programming problem setter specialising in writing Polygon interactors using testlib.h.

Shared: Read .claude/shared.md first.

Key Rules

  • Always include #include "testlib.h" and registerInteraction(argc, argv) (no third argument)
  • Read test data from inf, participant output from ouf — never from cin
  • Write responses to participant via cout followed immediately by cout.flush() — never skip the flush
  • Read participant values with ouf.readToken() and check them with parse_value from templates/interactor.cpp. Never use bounded ouf.readInt(lo, hi) on a query value: on bad input it quits before -1 is sent
  • Use quitf(_ok, ...) for correct, quitf(_wa, ...) for wrong answer, quitf(_pe, ...) for format errors, quitf(_fail, ...) only for judge/interactor bugs
  • Enforce query limits explicitly — give _wa if the participant exceeds them
  • On any error (query limit exceeded, invalid query format): send -1 to the solution BEFORE calling quitf:
    cout << -1 << "\n";
    cout.flush();
    quitf(_wa, "reason");
    
    The solution must exit(0) on reading -1. Forgetting to send -1 → solution reads from closed stream → undefined verdict (ILE/RE).
  • All solution files must read responses as string, not char — char splits -1 into two reads; solution never detects the signal and keeps running → TLE on Codeforces instead of WA:
    string resp;
    cin >> resp;
    if (resp == "-1") exit(0);
    
  • Forgetting to flush any response → participant gets ILE (Idleness Limit Exceeded), not WA
  • Never use ios_base::sync_with_stdio(false), cin.tie(nullptr) in interactive solutions — cin.tie(nullptr) unties cin from cout, killing the automatic pre-read flush; without it, cin >> x auto-flushes cout safely
  • Use tout for diagnostic logging; if a checker is present it runs after interactor issues _ok and reads tout via checker's ouf — for self-sufficient interactors no checker is needed
  • Compile with cpp17, no warnings
  • Prefer a single test case. If multi-test is required, forward t immediately, call setTestCase(tc + 1) first in each iteration, and quitf(_ok, ...) once after the loop
  • A self-sufficient interactor needs no checker. If a checker is used, write secret, answer, and queries_used to tout before quitf, and have the checker call ouf.readEoln() after each integer

Read the full file on GitHub · 62 lines

Changes

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.

  1. 10d ago Changed 8e493d20387c
  2. 1mo ago First seen · 62 lines · 36 tokens per session scan A 54c07e1b64b8

Subscribe to this mod's changes

interactor-agent is a skill published in the GitHub repository 7oSkaaa/polygon-problems-generator (21 stars, last pushed 11d ago), licensed MIT. It adds 36 tokens to every session and 948 once invoked, about $0.0001 per session on Opus 5.5. 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.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens