SYSU anything Apple
Use the published macOS Apple entrypoint instead of re-deriving EventKit flows. Prefer the installed sysu-anything-apple binary. If it is missing, install the compiled package with npm i -g sysu-anything. If the user is actively developing the local repo, the checked-out workspace build is also acceptable.
This skill is for macOS 12+ (Monterey+) only. The published Apple native bridge supports both Apple Silicon and Intel. On non-macOS or macOS 11 and below, keep using sysu-anything-cli; only the Apple Calendar / Apple Reminders layer is unavailable.
sysu-anything-apple
First step
- Confirm the runtime path:
- preferred:
sysu-anything-apple - install if missing:
npm i -g sysu-anything - local-dev fallback inside the repo:
npm run build - supported host: macOS 12+ only
- unsupported host fallback: use
sysu-anythingwithout Apple sync - if the user previously installed an older npm runtime, ask them to upgrade
sysu-anythingbefore retrying Apple sync
- preferred:
- Prefer targeted help before composing a command:
sysu-anything-apple --helpsysu-anything-apple <command> --helpsysu-anything-apple <command> <subcommand> --help
- Always verify the Mac-side bridge first:
sysu-anything-apple apple doctor
- Check the SYSU-side login state before the real action:
qg: no login check neededykt homework list/detail --reminders:sysu-anything ykt statustoday/jwxt timetable/jwxt leave apply:sysu-anything jwxt statuscareer teachin detail/jobfair detail --calendar --reminders: no SYSU login check neededcareer teachin signup/jobfair signup --confirm --calendar --reminders: if the command still needs to seedcareer-session.json, runsysu-anything auth workwechatfirstgym book:sysu-anything gym profilelibic reserve:sysu-anything libic whoamiusc classroom submit --confirm --calendar --reminders:sysu-anything usc whoami --jsonexplore seminar reserve:sysu-anything explore whoamixgxt workstudy apply --calendar:sysu-anything xgxt current-user
- If the check fails, restore login first, rerun the check, then run the Apple sync command.
The Apple entrypoint reuses the same state directory:
~/.sysu-anything/
Routing
- If you need the command map or examples, read
references/overview.md. - For Apple-specific career teachin/jobfair import and signup-sync behavior, read
references/career.md. - For Apple-specific libic reservation sync behavior, read
references/libic.md. - Prefer
--jsonwhen another agent or script needs structured output.
Closed Loops
today --calendarjwxt timetable --calendar [--calendar-scope week|term]qg link --calendar --reminderscareer teachin detail --calendar --reminderscareer teachin signup --confirm --calendar --reminderscareer jobfair detail --calendar --reminderscareer jobfair signup --confirm --calendar --remindersykt homework list --remindersykt homework detail --remindersgym book --confirm --calendar --reminderslibic reserve --confirm --calendar --remindersusc classroom submit --confirm --calendar --remindersusc classroom sync --calendar --remindersexplore seminar reserve --confirm --calendar --remindersjwxt leave apply --confirm --calendar-block --remindersxgxt workstudy apply --confirm --calendar [--calendar-start-date <YYYY-MM-DD>] [--calendar-weeks <n>]
Safety
qg link --calendar --reminderscreates a planned trip in Apple apps; it does not mean the ticket is confirmed.career teachin/jobfair detail --calendar --remindersis local import only; it does not touch the remote signup state.career teachin/jobfair signupwithout--confirmstays in preview mode and skips Apple sync; use the correspondingdetailcommand if the user only wants local Calendar / Reminders import.gym book,libic reserve,usc classroom submit,explore seminar reserve,jwxt leave apply, andxgxt workstudy applyonly perform real writes with--confirm.usc classroom submit --calendar --reminderswrites Apple items only after BPM/site/app/startreturns OK. The initial app_id=197 application usually has no concrete classroom yet; Apple notes should say the room is pending later allocation.usc classroom sync --calendar --remindersonly backfills local Apple items from an already-existing BPM session. It does not call/site/app/start.ykt homework list/detail --remindersdefaults to future deadlines only; add--include-pastwhen the user explicitly wants overdue items imported too.xgxt workstudy apply --calendarwrites the submitted work-study time template into Apple Calendar; because xgxt payloads only contain weekday + time, the Apple layer defaults to expanding 1 week unless--calendar-weeksis provided.- Run
apple doctorbefore the first sync on a new Mac or after macOS permission changes.