workbuddy-checkin

Automates daily WorkBuddy credit check-ins by reading local login tokens and calling official Tencent APIs.

636|91|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/cat-xierluo/legal-skills --skill workbuddy-checkin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workbuddy-checkin
Source: https://github.com/cat-xierluo/legal-skills/tree/main/skills/workbuddy-checkin
Command: npx skills add https://github.com/cat-xierluo/legal-skills --skill workbuddy-checkin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires electron, and includes scripts (resource) and references (resource) components.

What problem does it solve?

WorkBuddy awards daily credits (100/day, 1000 on a 7-day streak) that require manually claiming them every day; missing a day resets the streak. This Skill automates the claim by reading the local desktop login state and calling the official check-in API, with idempotent retries at multiple times of day.

Core Features & Use Cases

  • Automatic token retrieval: Reads the v5.3.8+ plaintext login file with plain Node.js, falling back to Electron safeStorage decryption of the legacy state.vscdb store.
  • Idempotent cross-platform scripts: Bash and PowerShell check-in scripts that query status first, treat code=10001 as already-checked-in, and use real HTTP status codes for 401 detection.
  • Scheduled multi-timepoint check-ins: Ready-made crontab, launchd, schtasks, and WorkBuddy recurring-task configurations with optional random jitter.
  • Use Case: A WorkBuddy user on macOS sets five daily cron entries so the script claims the daily credit whenever the machine is on, preserving the 7-day streak bonus without manual action.

Quick Start

Run the setup script and then the check-in script for my platform to claim today's WorkBuddy credits and show me how to schedule it daily.

Frequently Asked Questions about workbuddy-checkin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate the WorkBuddy daily credit check-in?

Run scripts/setup.sh (or setup.ps1 on Windows) to verify the token chain, then run scripts/checkin.sh once to claim today's credits. Add crontab, launchd, or schtasks entries at multiple hours for automatic daily claims.

How does the script read the WorkBuddy login token?

For WorkBuddy v5.3.8+, it reads the plaintext workbuddy-desktop.info JSON file with plain Node.js. For legacy versions, it falls back to Electron safeStorage decryption of the state.vscdb session database.

Does the check-in script work on Windows and Linux?

Yes. Windows uses checkin.ps1 in PowerShell (PS 5.1 compatible), while macOS and Linux use checkin.sh in Bash. Login-state paths are auto-detected per platform, including %LOCALAPPDATA% on Windows.

Why does the script report token expired or HTTP 401?

A 401 means the stored access token expired; open the WorkBuddy desktop app to refresh the login state and the next run recovers automatically. Versions before 1.0.3 could also misjudge random requestId strings containing '401' as auth failures.

Is the WorkBuddy access token sent anywhere besides Tencent?

No. The token stays in memory, is consumed immediately by requests to copilot.tencent.com only, and is never written to logs or disk. The logs directory records only check-in results like credits and streak days.

What are the limitations of automated daily check-in?

Check-ins settle by calendar day, so if the machine stays off all day that day cannot be recovered and the streak resets. It also only operates on the locally logged-in account and must not be used for other accounts or bulk credit farming.