Files
Sina Atalay 9b83f07ac9 Move distributable skill to rendercv/rendercv-skill submodule
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
2026-03-20 20:41:53 +03:00

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 },
];
}