AGENT SKILL

competitive-programming-solver

Solves algorithmic and competitive programming problems by producing fast, correct solutions in C, C++, and Python. Use this skill whenever the user mentions a problem from Codeforces, AtCoder, LeetCode, Infoarena, pbinfo, Kattis, SPOJ, USACO, ICPC, IOI, or any online judge / olympiad / contest. Also use for any problem statement with input/output specs, time/memory limits, or wording like "given N elements... output the answer", "TLE", "AC", "passes the time limit", "1-indexed array", or "competitive programming". Trigger even if the user only shares an input file, a buggy submission, or asks "why is my solution slow / wrong / failing test X". Default to producing all three languages unless the user specifies one.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
competitive-programming-solver
description
Solves algorithmic and competitive programming problems by producing fast, correct solutions in C, C++, and Python. Use this skill whenever the user mentions a problem from Codeforces, AtCoder, LeetCode, Infoarena, pbinfo, Kattis, SPOJ, USACO, ICPC, IOI, or any online judge / olympiad / contest. Also use for any problem statement with input/output specs, time/memory limits, or wording like "given N elements... output the answer", "TLE", "AC", "passes the time limit", "1-indexed array", or "competitive programming". Trigger even if the user only shares an input file, a buggy submission, or asks "why is my solution slow / wrong / failing test X". Default to producing all three languages unless the user specifies one.

03 SKILL.md 正文

Competitive Programming Solver

A skill for producing correct and fast solutions to algorithmic problems, in C, C++, and Python, across all major online judges.

The goal is not just to write code — it's to write code that passes within the time limit on the judge's machine, which is the only success criterion that actually matters in competitive programming.

When to use this skill

Use whenever the user is solving a problem from an online judge or competition. Concrete triggers:

  • Names a judge: Codeforces, AtCoder, LeetCode, Infoarena, pbinfo, Kattis, SPOJ, USACO, HackerEarth, HackerRank, CSES, oj.uz, ICPC, IOI, etc.
  • Pastes a problem statement (input format, output format, constraints, time/memory limits)
  • Shares an existing solution that gets TLE, WA, MLE, RE, or partial score
  • Asks for "the fastest way to compute X" with constraints like N ≤ 10^6
  • Talks about contests, olympiads, ranked rounds, or training

If the user is on pbinfo.ro specifically and needs Python to pass within tight limits, also load the companion skill pbinfo-python-jit — it adds shellcode JIT techniques specific to the pbinfo sandbox.

The five-phase workflow

Every problem follows the same phases. Do them in order, but don't skip ahead.

Phase 1: Understand the problem

Read the statement carefully. Identify:

  • What is asked: one output, multiple queries, optimization, counting, decision?
  • Input/output format: stdin/stdout, named files, special separators, multiple test cases?

Phase 2: Pick the algorithm

Phase 3: Implement (C++ first)

Phase 4: Implement C (if needed)

Phase 5: Implement Python

Verification before submission

Common pitfalls

Output expectations

References

04 同仓库更多 Skills

Prekzursil
Prekzursil/agent-skills-toolchain

clarify-requirements

Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

openmm-md

Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

visual-review

Take screenshots of web pages and UI using Playwright for visual review and iteration

演示文稿测试与质量
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

status

Diagnostic status report — shows metaswarm installation state, project setup, and potential issues

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

start

Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

setup

Interactive project setup — detects your project, configures metaswarm, writes project-local files

★ 0