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.
Confirm the runtime path:
sysu-anythingnpx -y sysu-anything@latestnpm run buildPrefer targeted help before composing a command:
sysu-anything --helpsysu-anything <command> --helpsysu-anything <command> <subcommand> --helpBefore any login-dependent feature, read references/auth-and-state.md and identify what session or token is required.
Check login state before the real action:
bus: no login check neededqg: no login check needed; prefer sysu-anything qg --help or sysu-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 whoamiusc: sysu-anything usc whoami --jsoncareer list/detail: no login check neededcareer teachin/jobfair signup or career job apply: no dedicated status endpoint; if the career write path may be stale, run sysu-anything auth workwechat first so the command can seed career-session.jsonxgxt: sysu-anything xgxt current-userIf 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.md and run sysu-anything-apple apple doctor before the real sync command.
For chat send, prefer the campus-news scope first:
sysu-anything chat sources校园资讯 or 校内资讯, prefer that exact returned title by defaultreferences/overview.md.references/auth-and-state.md.references/career.md.references/bus.md.references/qiguan.md.references/apple.md.references/ykt.md.references/jwxt.md.references/chat.md.references/gym.md.references/libic.md.references/usc.md.references/explore.md.references/xgxt.md.references/safety-and-confirm.md before any write operation.--confirm unless the user clearly wants the real submission.