mirror of
https://github.com/jpeggdev/humanize-writing.git
synced 2026-09-19 06:05:56 +08:00
3f033af5ea
Skill that rewrites AI-generated content to sound human. Includes install/uninstall scripts that copy skill files to ~/.claude/skills/, ~/.cursor/skills/, and ~/.windsurf/skills/ for cross-agent support. Publishable via npm (@jpegg/humanize-writing) and skills.sh. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
961 B
JavaScript
32 lines
961 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
const os = require("os");
|
|
|
|
const SKILL_NAME = "humanize-writing";
|
|
const SKILL_DIRS = [
|
|
path.join(os.homedir(), ".claude", "skills", SKILL_NAME),
|
|
path.join(os.homedir(), ".cursor", "skills", SKILL_NAME),
|
|
path.join(os.homedir(), ".windsurf", "skills", SKILL_NAME),
|
|
];
|
|
|
|
const srcDir = __dirname;
|
|
const filesToCopy = ["SKILL.md", path.join("references", "ai-tells.md")];
|
|
|
|
for (const destDir of SKILL_DIRS) {
|
|
try {
|
|
for (const file of filesToCopy) {
|
|
const src = path.join(srcDir, file);
|
|
const dest = path.join(destDir, file);
|
|
|
|
if (!fs.existsSync(src)) continue;
|
|
|
|
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
fs.copyFileSync(src, dest);
|
|
}
|
|
console.log(`Installed ${SKILL_NAME} skill to ${destDir}`);
|
|
} catch (err) {
|
|
// Non-fatal — some agent directories may not exist or be writable
|
|
console.warn(`Skipped ${destDir}: ${err.message}`);
|
|
}
|
|
}
|