mirror of
https://github.com/rendercv/rendercv.git
synced 2026-04-19 06:22:56 -04:00
The skill file lived in the main repo, which meant `npx skills add` had to clone the entire RenderCV codebase and exposed internal dev skills. A dedicated lightweight repo solves both problems. - Create rendercv/rendercv-skill repo as a read-only distribution channel - Add it as a submodule at .claude/skills/rendercv-skill/ - Update generation script and tests to write to the submodule path - Add submodules: true to test workflow checkout steps - Update docs, README, and install commands to use rendercv/rendercv-skill - Add --recursive clone instruction to developer guide - Delete the old skills/ directory at repo root
28 lines
525 B
JavaScript
28 lines
525 B
JavaScript
import fs from "fs";
|
|
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
const skillPath = path.resolve(
|
|
__dirname,
|
|
"..",
|
|
"..",
|
|
"..",
|
|
"..",
|
|
".claude",
|
|
"skills",
|
|
"rendercv-skill",
|
|
"skills",
|
|
"rendercv",
|
|
"SKILL.md",
|
|
);
|
|
const skillContent = fs.readFileSync(skillPath, "utf-8");
|
|
|
|
export default function (context) {
|
|
return [
|
|
{ role: "system", content: skillContent },
|
|
{ role: "user", content: context.vars.query },
|
|
];
|
|
}
|