Task Router Skill
Task Router
Solve competitive programming problems on NCCUOJ (https://nccuoj.ebg.tw). Use when: solving OJ problems, reading problem statements, writing solutions in C/C++/Python, submitting code, checking submission results.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install andyjjrt/nccuoj打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Solve competitive programming problems on NCCUOJ, a QDU-based Online Judge for NCCU CS.
All generated files are organized under .nccuoj/ at the workspace root:
.nccuoj/
├── cookies.txt # Session cookies (auto-managed)
└── solution/
├── public/<problem_id>/ # Public problem solutions
│ ├── problem.md # Problem statement
│ └── solution.cpp / solution.py / ... # Solution code
└── contest/<contest_id>/<problem_id>/ # Contest problem solutions
├── problem.md
└── solution.cpp / solution.py / ...
When writing solution code, always place files in the correct directory. The scripts' --save flag and get_solution_dir() helper handle directory creation automatically.
All NCCUOJ API requests require a CSRF token. The provided scripts handle this automatically (via GET /api/profile on init). If making manual requests, see ./references/api.md for details.
Use these scripts to interact with NCCUOJ. They handle CSRF tokens and session management automatically.
| Script | Purpose |
|---|---|
| get_problem.py | Fetch problem statement as Markdown (supports --username/--password, --contest, --raw) |
| submit.py | Submit code (requires --username / --password CLI args) |
| check_result.py | Check submission result, with optional --poll |
All scripts use only Python stdlib (no pip install needed).
Scripts are located in this skill's ./scripts/ directory. In the examples below, $SCRIPTS refers to...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# NCCUOJ Problem Solving
Solve competitive programming problems on [NCCUOJ](https://nccuoj.ebg.tw), a QDU-based Online Judge for NCCU CS.
## When to Use
- Read a problem statement from NCCUOJ
- Write a solution for a specific problem
- Submit code and check results
- Debug a wrong answer or time limit exceeded
- Solve contest problems
## Directory Structure
All generated files are organized under `.nccuoj/` at the workspace root:
```
.nccuoj/
├── cookies.txt # Session cookies (auto-managed)
└── solution/
├── public/<problem_id>/ # Public problem solutions
│ ├── problem.md # Problem statement
│ └── solution.cpp / solution.py / ... # Solution code
└── contest/<contest_id>/<problem_id>/ # Contest problem solutions
├── problem.md
└── solution.cpp / solution.py / ...
```
**When writing solution code, always place files in the correct directory.** The scripts' `--save` flag and `get_solution_dir()` helper handle directory creation automatically.
## CSRF Token (Important)
All NCCUOJ API requests require a CSRF token. The provided scripts handle this automatically (via `GET /api/profile` on init). If making manual requests, see [./references/api.md](./references/api.md) for details.
## Scripts
Use these scripts to interact with NCCUOJ. They handle CSRF tokens and session management automatically.
| Script | Purpose |
|--------|--------|
| [get_problem.py](./scripts/get_problem.py) | Fetch problem statement as Markdown (supports `--username`/`--password`, `--contest`, `--raw`) |
| [submit.py](./scripts/submit.py) | Submit code (requires `--username` / `--password` CLI args) |
| [check_result.py](./scripts/check_result.py) | Check submission result, with optional `--poll` |
All scripts use only Python stdlib (no pip install needed).
Scripts are located in this skill's `./scripts/` directory. In the examples below, `$SCRIPTS` refers to...Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.