@petersobhy/ai-toolkit 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const os = require('os');
|
|
|
8
8
|
const REPO = 'Petersobhy/ai-toolkit';
|
|
9
9
|
const BRANCH = 'main';
|
|
10
10
|
const SKILLS_PATH = 'skills';
|
|
11
|
-
const INSTALL_DIR = path.join(os.homedir(), '.claude', '
|
|
11
|
+
const INSTALL_DIR = path.join(os.homedir(), '.claude', 'commands');
|
|
12
12
|
const SCRIPTS_DIR = path.join(os.homedir(), '.ai-toolkit', 'scripts');
|
|
13
13
|
|
|
14
14
|
const RAW_BASE = `https://raw.githubusercontent.com/${REPO}/${BRANCH}`;
|
|
@@ -75,7 +75,7 @@ async function installSkill(name, manifest = {}) {
|
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
// Install SKILL.md → ~/.claude/
|
|
78
|
+
// Install SKILL.md → ~/.claude/commands/<name>.md
|
|
79
79
|
const skillContent = await get(`${RAW_BASE}/${SKILLS_PATH}/${name}/SKILL.md`);
|
|
80
80
|
fs.mkdirSync(INSTALL_DIR, { recursive: true });
|
|
81
81
|
fs.writeFileSync(path.join(INSTALL_DIR, `${name}.md`), skillContent);
|