@supatent/skills 0.3.0 → 0.4.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/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 installs skills as a Claude Code plugin to `.claude/plugins/supatent/` in your project. Then use `/supatent:core` in Claude Code to get started.
15
+ This installs skill files to `.claude/skills/` 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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // bin/install.mjs - Self-contained zero-dependency installer for @supatent/skills
4
- // Copies bundled skill files to .claude/skills/supatent/ with manifest tracking.
4
+ // Copies bundled skill files to .claude/skills/ with manifest tracking.
5
5
 
6
6
  import { readFile, writeFile, mkdir, copyFile, readdir, stat } from 'node:fs/promises';
7
7
  import { realpathSync } from 'node:fs';
@@ -17,9 +17,7 @@ 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 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');
20
+ const TARGET_SUBDIR = join('.claude', 'skills');
23
21
 
24
22
  // ---------------------------------------------------------------------------
25
23
  // Exported helpers (for testability)
@@ -175,7 +173,7 @@ async function main() {
175
173
  const cwd = process.cwd();
176
174
  const claudeDir = join(cwd, '.claude');
177
175
  const targetDir = join(cwd, TARGET_SUBDIR);
178
- const manifestPath = join(targetDir, '.manifest.json');
176
+ const manifestPath = join(targetDir, 'supatent-core', '.manifest.json');
179
177
 
180
178
  // -----------------------------------------------------------------------
181
179
  // Step a: Check .claude/ directory
@@ -264,13 +262,6 @@ async function main() {
264
262
  console.log(` \x1b[90m-\x1b[0m Skipped ${relPath} (user modified)`);
265
263
  }
266
264
 
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
-
274
265
  // -----------------------------------------------------------------------
275
266
  // Step g: Write manifest
276
267
  // -----------------------------------------------------------------------
@@ -306,9 +297,9 @@ async function main() {
306
297
  // -----------------------------------------------------------------------
307
298
  console.log('');
308
299
  if (isFreshInstall) {
309
- console.log(`\x1b[32m\u2713\x1b[0m Installed ${filesToCopy.length} files to ${PLUGIN_ROOT_SUBDIR}/ (v${version})`);
300
+ console.log(`\x1b[32m\u2713\x1b[0m Installed ${filesToCopy.length} files to ${TARGET_SUBDIR}/ (v${version})`);
310
301
  } else {
311
- console.log(`\x1b[32m\u2713\x1b[0m Updated ${filesToCopy.length} file${filesToCopy.length === 1 ? '' : 's'} in ${PLUGIN_ROOT_SUBDIR}/ (v${version})`);
302
+ console.log(`\x1b[32m\u2713\x1b[0m Updated ${filesToCopy.length} file${filesToCopy.length === 1 ? '' : 's'} in ${TARGET_SUBDIR}/ (v${version})`);
312
303
  }
313
304
  console.log('');
314
305
  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.0",
3
+ "version": "0.4.0",
4
4
  "description": "Claude Code content authoring skills for Supatent CMS",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,8 +8,7 @@
8
8
  },
9
9
  "files": [
10
10
  "bin",
11
- "skills",
12
- ".claude-plugin"
11
+ "skills"
13
12
  ],
14
13
  "devDependencies": {
15
14
  "eslint": "^9.16.0",
@@ -18,8 +18,8 @@ Load these files on-demand, not upfront. Read each file only when the situation
18
18
  | File | When to Read |
19
19
  |------|-------------|
20
20
  | `./blog-sections.md` | Creating or modifying blog schemas -- contains full JSON definitions for blog-post, blog-author, and blog-settings |
21
- | `../references/schema-reference.md` | Troubleshooting validation errors, checking field types, or looking up JSON-LD type details |
22
- | `../references/workflow-reference.md` | Running CLI operations (init, dev, push, pull, validate), fixing errors, or understanding dev mode behavior |
21
+ | `../supatent-references/schema-reference.md` | Troubleshooting validation errors, checking field types, or looking up JSON-LD type details |
22
+ | `../supatent-references/workflow-reference.md` | Running CLI operations (init, dev, push, pull, validate), fixing errors, or understanding dev mode behavior |
23
23
 
24
24
  ## Intent Detection
25
25
 
@@ -155,7 +155,7 @@ Read `./blog-sections.md` to get the schema definitions.
155
155
 
156
156
  If schemas already exist, skip this section entirely.
157
157
 
158
- After writing schema files, check `.supatent/.validation-status.json` to confirm validation passes. If errors appear, read `../references/workflow-reference.md` for fix instructions.
158
+ After writing schema files, check `.supatent/.validation-status.json` to confirm validation passes. If errors appear, read `../supatent-references/workflow-reference.md` for fix instructions.
159
159
 
160
160
  ## Content Generation
161
161
 
@@ -18,8 +18,8 @@ Load these files on-demand, not upfront. Read each file only when the situation
18
18
  | File | When to Read |
19
19
  |------|-------------|
20
20
  | `./landing-sections.md` | Creating or modifying landing page schemas -- contains all 12 section definitions with field schemas and image guidance |
21
- | `../references/schema-reference.md` | Troubleshooting validation errors, checking field types, or looking up JSON-LD type details |
22
- | `../references/workflow-reference.md` | Running CLI operations (init, dev, push, pull, validate), fixing errors, or understanding dev mode behavior |
21
+ | `../supatent-references/schema-reference.md` | Troubleshooting validation errors, checking field types, or looking up JSON-LD type details |
22
+ | `../supatent-references/workflow-reference.md` | Running CLI operations (init, dev, push, pull, validate), fixing errors, or understanding dev mode behavior |
23
23
 
24
24
  ## Intent Detection
25
25
 
@@ -209,7 +209,7 @@ For the `landing-metadata` schema, add conditional JSON-LD fields based on secti
209
209
 
210
210
  Singleton content files use slug `default` (e.g., `default.en.json`).
211
211
 
212
- After writing schema files, check `.supatent/.validation-status.json` to confirm validation passes. If errors appear, read `../references/workflow-reference.md` for fix instructions.
212
+ After writing schema files, check `.supatent/.validation-status.json` to confirm validation passes. If errors appear, read `../supatent-references/workflow-reference.md` for fix instructions.
213
213
 
214
214
  ## Content Generation
215
215
 
@@ -42,7 +42,7 @@ Dev mode provides automatic validation on file save and real-time sync with the
42
42
 
43
43
  ### 3. Check installed skill version
44
44
 
45
- Read the version from `.claude/skills/supatent/.manifest.json` (the `version` field).
45
+ Read the version from `.claude/skills/supatent-core/.manifest.json` (the `version` field). If that file does not exist, check `.claude/skills/supatent/.manifest.json` (legacy path).
46
46
 
47
47
  Then check the latest published version:
48
48
  ```bash
@@ -70,7 +70,7 @@ npm view @supatent/skills version 2>/dev/null
70
70
 
71
71
  **Interface determines the UI editor**, not the storage format. For example, `text` with `textInput` gives a single-line input; `text` with `textarea` gives a multi-line editor.
72
72
 
73
- For full details on field validation rules, constraints, and JSON-LD structured data types, read `../references/schema-reference.md`.
73
+ For full details on field validation rules, constraints, and JSON-LD structured data types, read `../supatent-references/schema-reference.md`.
74
74
 
75
75
  ## Quick Reference: File Locations
76
76
 
@@ -98,7 +98,7 @@ Load these files when you need detailed information beyond the quick references
98
98
 
99
99
  ### Schema details
100
100
 
101
- **File:** `../references/schema-reference.md`
101
+ **File:** `../supatent-references/schema-reference.md`
102
102
 
103
103
  **Read when:** Creating or modifying schemas, adding fields, choosing field types and interfaces, working with JSON-LD structured data, or checking naming conventions.
104
104
 
@@ -106,7 +106,7 @@ Load these files when you need detailed information beyond the quick references
106
106
 
107
107
  ### Workflow details
108
108
 
109
- **File:** `../references/workflow-reference.md`
109
+ **File:** `../supatent-references/workflow-reference.md`
110
110
 
111
111
  **Read when:** Running CLI commands (init, dev, pull, push, validate, status, merge), troubleshooting validation errors, resolving sync conflicts, or understanding the content authoring flow.
112
112
 
@@ -1,5 +0,0 @@
1
- {
2
- "name": "supatent",
3
- "description": "Content authoring skills for Supatent CMS",
4
- "version": "0.2.2"
5
- }