Skip to content

Commit 2f1ce8e

Browse files
quickbeardclaude
andauthored
Point the office skills at ~/.claude/skills via the setup-script default (#247)
The bundled setup scripts now default their skills root to ~/.claude/skills so Claude Code (not just CoDev Code) reads the office skills. codevhub still passes no -SkillsRoot, so it inherits that default and preserves the script's console-user detection under a different-account Windows elevation. Documents the destination in the office.ts header and updates the manual-command example path. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent edce853 commit 2f1ce8e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/lib/office.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import { legacyOfficeDownloadsDir, officeDownloadsDir } from "@/lib/paths.js";
1515

1616
// `codevhub skill office`: fetch the CoDev Office offline bundle (published by
1717
// the codev-storage MinIO backend) for this OS and run the bundled setup
18-
// script, which installs the Office skills (DOCX, XLSX, PPTX and PDF).
18+
// script, which installs the Office skills (DOCX, XLSX, PPTX and PDF) into the
19+
// global ~/.claude/skills dir (read by Claude Code and CoDev Code). codevhub
20+
// passes no skills-root — the destination is the setup script's own default,
21+
// which also detects the signed-in user under a different-account Windows
22+
// elevation, so codevhub must not pin a path that would defeat that.
1923
// File names are deterministic per platform — no manifest fetch — and each
2024
// bundle carries its own SHA256SUMS.txt that the setup flow can verify.
2125
// Non-interactive on purpose — the second half hands the terminal to an

tests/lib/download.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,14 @@ describe("runSkillOffice", () => {
429429
const line = officeManualWindowsCommand("codev-office-windows-setup.ps1", [
430430
"-SkipVerify",
431431
"-SkillsRoot",
432-
"C:\\Users\\Van Phong\\.config\\codev\\skills",
432+
"C:\\Users\\Van Phong\\.claude\\skills",
433433
]);
434434
expect(line).toContain(
435435
"powershell -ExecutionPolicy Bypass -File .\\codev-office-windows-setup.ps1 -SkipVerify",
436436
);
437437
// Space-containing paths are quoted so copy-paste survives them.
438438
expect(line).toContain(
439-
'-SkillsRoot "C:\\Users\\Van Phong\\.config\\codev\\skills"',
439+
'-SkillsRoot "C:\\Users\\Van Phong\\.claude\\skills"',
440440
);
441441
});
442442

0 commit comments

Comments
 (0)