Imported from Joeyeahyeah/SYSU-Anything (
skills/sysu-anything-cli/SKILL.md). Install upstream withnpx skills add Joeyeahyeah/SYSU-Anything --skill sysu-anything-cli. Copyright stays with the author.
SYSU anything CLI
Use the published sysu-anything CLI instead of re-deriving campus APIs. Prefer the installed binary. If sysu-anything is missing, install the compiled package with npm i -g sysu-anything or use one-off calls via npx -y sysu-anything@latest .... If the user is actively developing the local repo, the checked-out workspace build is also acceptable.
If the user explicitly wants Apple Calendar / Apple Reminders integration on macOS, switch to the separate Apple entrypoint described in references/apple.md.
First step
- Confirm the runtime path:
- preferred:
sysu-anything - one-off fallback:
npx -y sysu-anything@latest - local-dev fallback inside the repo:
npm run build
- preferred:
- Prefer targeted help before composing a command:
sysu-anything --helpsysu-anything <command> --helpsysu-anything <command> <subcommand> --help
- Before any login-dependent feature, read
references/auth-and-state.mdand identify what session or token is required. - Check login state before the real action:
bus: no login check neededqg: no login check needed; prefersysu-anything qg --helporsysu-anything qg list --today --availableykt:sysu-anything ykt statustoday/jwxt:sysu-anything jwxt statuschat:sysu-anything chat sourcesgym:sysu-anything gym profilelibic:sysu-anything libic whoamiexplore:sysu-anything explore whoamicareerlist/detail: no login check neededcareerteachin/jobfair signup orcareer job apply: no dedicated status endpoint; if the career write path may be stale, runsysu-anything auth workwechatfirst so the command can seedcareer-session.jsonxgxt:sysu-anything xgxt current-user
- If the check fails, restore login first, then rerun the check, and only after that run the user’s actual command.
- If the user wants Apple Calendar / Reminders integration, read
references/apple.mdand runsysu-anything-apple apple doctorbefore the real sync command. - For
chat send, prefer the campus-news scope first:- run
sysu-anything chat sources - if the list contains
校园资讯or校内资讯, prefer that exact returned title by default - only switch to another scope when the user explicitly asks for it or the source list shows a better match
- run
Routing
- If you are unsure where a capability lives, read
references/overview.md. - For login state and cached files, read
references/auth-and-state.md. - For career teachin/jobfair/job list/detail/signup/apply flows, read
references/career.md. - For offline Guangzhou shuttle lookup, read
references/bus.md. - For Qiguan rides between Zhuhai and Guangzhou, read
references/qiguan.md. - For Apple Calendar / Reminders integration, read
references/apple.md. - For Rain Classroom login, courses, classroom/check-in/homework flows, read
references/ykt.md. - For course timetable or leave flows, read
references/jwxt.md. - For campus chat login, scopes, or messaging, read
references/chat.md. - For gym availability or booking, read
references/gym.md. - For libic seminar-room refresh / availability / reservation flows, read
references/libic.md. - For explore seminar or research flows, read
references/explore.md. - For xgxt work-study or holiday leave/return-school flows, read
references/xgxt.md.
Safety
- Login-dependent features must not skip the login check step.
- Read
references/safety-and-confirm.mdbefore any write operation. - Prefer preview/query commands before mutation commands.
- Do not add
--confirmunless the user clearly wants the real submission. - Prefer the existing CLI over browser automation unless the user explicitly asks for a lower-level path.