WorkBuddy Daily Check-In
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_7d7df2fb/workbuddy-checkin.
About this skill
Problem it solves
Manually opening WorkBuddy and clicking the daily check-in button is repetitive and easy to forget. This skill reduces the routine to a local command: no GUI, no browser automation, no manual clicks. It reads local login material, calls the check-in API, and supports manual runs, scheduled automation, optional window cleanup, and result reporting.
How it works
The core workflow decrypts the locally stored access token and then performs the API call:
- Reads the key from Local State under %APPDATA%\WorkBuddy and decrypts it with DPAPI;
- Decrypts the accessToken from the token database using AES-GCM;
- Calls the WorkBuddy check-in endpoint and interprets status such as today_checked_in, code = 0, or non-zero failure codes;
- Optionally closes all WorkBuddy windows with --close using Win32 API.
It can also be wired into WorkBuddy automation by scheduling a daily script run, and path behavior can be adjusted with WORKBUDDY_LOCAL_STATE, WORKBUDDY_TOKEN_DB, or WORKBUDDY_OUT_DIR.
Boundaries and notes
This skill is Windows-only, requires Python 3.7+, the cryptography package, and at least one successful WorkBuddy login so a local token exists. Errors such as missing accessToken, HTTP 4xx responses, or DPAPI failures usually mean the user is not logged in, the token expired, or the OS is unsupported. It fits personal automation on a trusted machine, not cross-platform setups, shared credential workflows, or environments without local login state.
Use Cases
- A Windows developer completes the day's WorkBuddy check-in with a local command instead of opening the app.
- A user schedules a WorkBuddy automation to run the check-in script daily and close WorkBuddy windows after the run.
- When the user asks an AI assistant to perform the daily check-in, it decrypts the local token, calls the API, and reports status.
- A local-script maintainer writes check-in logs to a configured directory and overrides the token database path via environment variables.
Best For
- Windows users who log in to WorkBuddy and want a local command to complete daily check-in without GUI clicks.
- Automation script maintainers who want to schedule WorkBuddy check-in daily and close windows after the run.
- AI-assisted local users who want the assistant to handle check-in requests and return status or failure reason.
- Local tool maintainers who want check-in logs and token database paths to be configurable via environment variables.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
Publish HTML, static assets, or build output as a public link, with account management, update, deletion, and AI safety review.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.