@supatent/skills 0.2.2 → 0.3.0
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/.claude-plugin/plugin.json +5 -0
- package/README.md +1 -1
- package/bin/install.mjs +12 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Installs AI-powered content authoring skills into your Claude Code environment.
|
|
|
12
12
|
npx @supatent/skills
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
This
|
|
15
|
+
This installs skills as a Claude Code plugin to `.claude/plugins/supatent/` in your project. Then use `/supatent:core` in Claude Code to get started.
|
|
16
16
|
|
|
17
17
|
## Included skills
|
|
18
18
|
|
package/bin/install.mjs
CHANGED
|
@@ -17,7 +17,9 @@ import { createInterface } from 'node:readline/promises';
|
|
|
17
17
|
const __filename = fileURLToPath(import.meta.url);
|
|
18
18
|
const __dirname = dirname(__filename);
|
|
19
19
|
const SKILLS_SOURCE_DIR = join(__dirname, '..', 'skills');
|
|
20
|
-
const
|
|
20
|
+
const PLUGIN_JSON_SOURCE = join(__dirname, '..', '.claude-plugin', 'plugin.json');
|
|
21
|
+
const PLUGIN_ROOT_SUBDIR = join('.claude', 'plugins', 'supatent');
|
|
22
|
+
const TARGET_SUBDIR = join(PLUGIN_ROOT_SUBDIR, 'skills');
|
|
21
23
|
|
|
22
24
|
// ---------------------------------------------------------------------------
|
|
23
25
|
// Exported helpers (for testability)
|
|
@@ -262,6 +264,13 @@ async function main() {
|
|
|
262
264
|
console.log(` \x1b[90m-\x1b[0m Skipped ${relPath} (user modified)`);
|
|
263
265
|
}
|
|
264
266
|
|
|
267
|
+
// -----------------------------------------------------------------------
|
|
268
|
+
// Step f2: Copy plugin.json
|
|
269
|
+
// -----------------------------------------------------------------------
|
|
270
|
+
const pluginDir = join(cwd, PLUGIN_ROOT_SUBDIR, '.claude-plugin');
|
|
271
|
+
await mkdir(pluginDir, { recursive: true });
|
|
272
|
+
await copyFile(PLUGIN_JSON_SOURCE, join(pluginDir, 'plugin.json'));
|
|
273
|
+
|
|
265
274
|
// -----------------------------------------------------------------------
|
|
266
275
|
// Step g: Write manifest
|
|
267
276
|
// -----------------------------------------------------------------------
|
|
@@ -297,9 +306,9 @@ async function main() {
|
|
|
297
306
|
// -----------------------------------------------------------------------
|
|
298
307
|
console.log('');
|
|
299
308
|
if (isFreshInstall) {
|
|
300
|
-
console.log(`\x1b[32m\u2713\x1b[0m Installed ${filesToCopy.length} files to ${
|
|
309
|
+
console.log(`\x1b[32m\u2713\x1b[0m Installed ${filesToCopy.length} files to ${PLUGIN_ROOT_SUBDIR}/ (v${version})`);
|
|
301
310
|
} else {
|
|
302
|
-
console.log(`\x1b[32m\u2713\x1b[0m Updated ${filesToCopy.length} file${filesToCopy.length === 1 ? '' : 's'} in ${
|
|
311
|
+
console.log(`\x1b[32m\u2713\x1b[0m Updated ${filesToCopy.length} file${filesToCopy.length === 1 ? '' : 's'} in ${PLUGIN_ROOT_SUBDIR}/ (v${version})`);
|
|
303
312
|
}
|
|
304
313
|
console.log('');
|
|
305
314
|
console.log(' Run \x1b[36m/supatent:core\x1b[0m to get started');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supatent/skills",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Claude Code content authoring skills for Supatent CMS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
11
|
-
"skills"
|
|
11
|
+
"skills",
|
|
12
|
+
".claude-plugin"
|
|
12
13
|
],
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"eslint": "^9.16.0",
|