mirea-moodlelisted
Install: claude install-skill Sapar-hub/sapar-skills
# MIREA Moodle (online-edu.mirea.ru)
The site is Moodle behind Keycloak SSO with mandatory 2FA. The bundled
`scripts/mirea.sh` already implements the whole curl flow — use it instead of
re-deriving the OIDC dance. It keeps cookies and intermediate pages in
`$MIREA_DIR` (default `~/.mirea`).
## Before starting
- **Credentials come from the environment**: `KC_USER` and `KC_PASS`. Ask the
user for them if they are missing. Never write the password into a file, a
commit, or a command that will be echoed back.
- **2FA**: if `MAILRU_USER` and `MAILRU_APPPASS` (Mail.ru app password) are
set, `start` switches 2FA to email and reads the code over IMAP itself —
login is one command, no human needed. Otherwise the code goes to the
user's phone/MAX: ask for the 6 digits and pass them to `otp`. The code
lives ~2–5 minutes, so request it immediately. Never try to bypass or
guess it.
- **Network**: some sandboxes/containers route traffic through an egress proxy
that blocks `mirea.ru`, and IPv6 can hang. The script always uses
`curl --noproxy '*' -4`. If you write any raw curl yourself, keep both flags.
- Work in a user-visible output directory, e.g. `./downloads`, and report
absolute paths. Don't paste binary files into chat.
## Workflow
Paths below are relative to this skill's base directory, which the agent
(Claude Code / OpenCode) prints when the skill loads. Run the script from there (or use its absolute path):
```bash
bash scripts/mirea.sh check
```
1. **Veri