Introduction¶
WorkBuddy and many other desktop applications store core data in the user directory, such as C:\Users\username\.workbuddy, or various caches and state files under AppData. These directories often contain a large number of small files whose total size gradually eats into C: drive space. When it’s time to relocate them, the application may still be running, the directory may be held open by file handles, and a simple cut or rename often fails. Changing the installation path or config files is also impractical for most users.
Below is an overview of an Agent Skill on SkillHub: WorkBuddy Data Directory Junction Migration. It organizes the workflow of “full copy to a new drive → back up the original directory → use a Windows directory junction to transparently redirect the original path to the new location” into a followable procedure. It also covers loop prevention during the copy phase, handling of lock failures, and a post-migration smoke-testing approach.
What Is This¶
One-line summary: On Windows, migrate a .workbuddy directory or similar data directory containing “many small files + frequently held open in real time” to another drive, create a junction with mklink /J, so the application still accesses the original path—no configuration changes needed.
| Item | Details |
|---|---|
| Name | WorkBuddy Data Directory Junction Migration |
| Identifier | @user_b063d563/workbuddy-junction-migration |
| Version | 1.0.0 |
| Source | community (SkillHub) |
| Category | it-ops-security |
| Publisher | user_b063d563 |
| Tag | requires_api_key=false |
Official page: SkillHub - WorkBuddy Data Directory Junction Migration
API entry: https://api.skillhub.cn/user_b063d563/workbuddy-junction-migration
Core Capabilities¶
All of the following capabilities are drawn from the SkillHub official description and page documentation. The Skill itself follows the standard SKILL.md format for Agent execution.
-
Target directory types
- Default scenario:C:\Users\username\.workbuddy
- Generalized scenario: any core data directory with “a large number of small files + real-time access by a running application” (including portions ofAppDataand other application data root directories) -
Migration method
- Uses robocopy full copy with emphasis on/XJto avoid creating loops by following existing junctions during the copy process.
- Once the new drive is in place, usesmklink /J(directory junction) to redirect the original path to the new location. This is transparent to the application—the original path, environment variables, and configuration remain unchanged. -
Workflow and safety
- The order is back up first, then create the junction, reducing the risk of accidental deletion or pointing to the wrong directory.
- Provides remediation steps for the case where the source directory is locked by a running application and renaming fails (typically involves stopping the relevant process or following the Skill’s guidance to investigate handle usage). -
Verification
- Provides a post-migration smoke test template to confirm that the application can still read and write data on the new drive normally while “still using the original path.”
Installation & Activation¶
The SkillHub page states: see skillhub.cn/install/skillhub.md for installation docs; the skill identifier is @user_b063d563/workbuddy-junction-migration.
1. Install SkillHub CLI (if not already installed)¶
First check whether the CLI is already present:
command -v skillhub && skillhub --version
If not installed, run the official one-click installer (includes CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install This Skill to the Current Agent’s Skills Directory¶
When installing, you must use --dir to point to the skills directory the current Agent actually reads from; the default ./skills/ is often not recognized. Common paths listed in the official docs include:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - WorkBuddy:
~/.workbuddy/skills/
Example in a Cursor environment (replace the path with the directory you’ve confirmed on your machine):
skillhub install @user_b063d563/workbuddy-junction-migration --dir ~/.cursor/skills/
After installation, refresh or restart the session per your Agent’s instructions so the Skill is loaded. This Skill does not require an API Key (requires_api_key=false).
Typical Usage¶
This Skill is designed for conversational operations: you tell the Agent the source path, the target drive/path, and whether WorkBuddy or other processes that lock the directory are still running, and the Skill guides you through each step. The technical highlights from the page description can be summarized in the following order (specific commands and check items are governed by the SKILL.md inside the Skill).
-
Confirm scope
Identify the directory to migrate (e.g.,.workbuddy) and the target location (e.g.,D:\Data\.workbuddy), and assess whether processes holding that directory need to be exited or terminated first. -
Full copy
Use robocopy to copy data to the target drive. The copy phase should include/XJto avoid loop-following through junctions. -
Backup and switch
Back up the original directory (rename or move to a backup name), then create a junction at the original path pointing to the actual directory on the new drive:
mklink /J "C:\Users\username\.workbuddy" "D:\Data\.workbuddy"
The above is only an illustration of the junction mechanism; the real paths, whether an elevated CMD is required, and the order of “back up first, then remove the empty shell directory” must follow the Skill’s output.
-
Lock and failure handling
If the old directory cannot be renamed or deleted because the application still holds it, follow the “source directory locked by a running application” section in the Skill (common approaches: kill the process, check for open handles, perform a staged switch). -
Smoke test
Follow the smoke test template provided by the Skill: launch WorkBuddy or the target application, confirm that read/write, caching, and key features work normally, and that disk usage has shifted to the new drive.
Applicable Scenarios & Caveats¶
Who it’s for
- Users who want to move
.workbuddy, a specific application’s data underAppData, or other “small-file-dense” directories from C: to D:/F:. - Ops or dev personnel who need to relocate a currently in-use data directory without modifying application configuration.
- Environments on Windows where you’re comfortable using junctions (
mklink /J) for path redirection and can work with CMD for copy and junction operations.
Limitations & cautions
- The description and workflow target Windows directory junctions (junction,
mklink /J); non-Windows environments are outside the scope of the official Skill description. - Before creating the junction at the original path, you must ensure the copy is complete and the backup is rollback-capable. Misuse of robocopy and
mklinkcould cause the application to read an empty directory or stale data. - The migration involves user data; it is recommended to keep an independent backup before proceeding. The Skill emphasizes process safety but does not replace your own backup strategy.
- SkillHub statistics (based on the retrieved data): rating 100000, 1039 downloads, 0 install count. Exact numbers are subject to the backend; install behavior is governed by your local CLI.
Closing¶
WorkBuddy Data Directory Junction Migration consolidates “robocopy full copy (with /XJ) + backup + mklink /J + lock handling + smoke test” into a single Skill that can be delegated to an Agent, addressing the common pain points of freeing up C: drive space and performing transparent path migration.
For installation and details, refer to the official source:
https://www.skillhub.cn/skills/user_b063d563/workbuddy-junction-migration