Files
jpeggdev__humanize-writing/uninstall-skill.js
T
Jeff Pegg 3f033af5ea Add humanize-writing skill with npm packaging
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>
2026-02-12 17:08:42 -06:00

22 lines
586 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),
];
for (const dir of SKILL_DIRS) {
try {
if (fs.existsSync(dir)) {
fs.rmSync(dir, { recursive: true });
console.log(`Removed ${SKILL_NAME} skill from ${dir}`);
}
} catch (err) {
console.warn(`Skipped ${dir}: ${err.message}`);
}
}