skills-manifest 0.1.0 → 0.2.1
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 +4 -4
- package/dist/cli/index.mjs +21 -1
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -24,14 +24,14 @@ pnpm add skills skills-manifest -D
|
|
|
24
24
|
|
|
25
25
|
```json
|
|
26
26
|
{
|
|
27
|
-
"
|
|
27
|
+
"$schema": "https://raw.githubusercontent.com/hairyf/skills-manifest/main/skills-manifest.schema.json",
|
|
28
|
+
"agents": ["cursor", "claude-code"],
|
|
28
29
|
"skills": {
|
|
29
30
|
"vercel-labs/agent-skills": {
|
|
30
31
|
"vercel-react-best-practices": true
|
|
31
32
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
33
|
+
// or array of skills
|
|
34
|
+
"https://github.com/vercel-labs": ["find-skills"]
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
```
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import process from "node:process";
|
|
1
4
|
import { loadConfig } from "c12";
|
|
2
5
|
import { defineCommand, runMain } from "citty";
|
|
3
6
|
import { x } from "tinyexec";
|
|
4
7
|
|
|
5
8
|
//#region package.json
|
|
6
|
-
var version = "0.1
|
|
9
|
+
var version = "0.2.1";
|
|
7
10
|
|
|
8
11
|
//#endregion
|
|
9
12
|
//#region src/cli/index.ts
|
|
@@ -38,6 +41,23 @@ runMain(defineCommand({
|
|
|
38
41
|
"--yes"
|
|
39
42
|
], { nodeOptions: { stdio: "inherit" } });
|
|
40
43
|
}
|
|
44
|
+
const TARGET_MAP = {
|
|
45
|
+
cursor: ".cursor",
|
|
46
|
+
opencode: ".opencode"
|
|
47
|
+
};
|
|
48
|
+
const agents = path.join(process.cwd(), ".agents");
|
|
49
|
+
const fixedAgents = config.agents.filter((a) => a in TARGET_MAP);
|
|
50
|
+
for (const agent of fixedAgents) {
|
|
51
|
+
const dest = path.join(process.cwd(), TARGET_MAP[agent]);
|
|
52
|
+
await fs.rm(dest, {
|
|
53
|
+
recursive: true,
|
|
54
|
+
force: true
|
|
55
|
+
});
|
|
56
|
+
await fs.cp(agents, dest, {
|
|
57
|
+
recursive: true,
|
|
58
|
+
verbatimSymlinks: false
|
|
59
|
+
});
|
|
60
|
+
}
|
|
41
61
|
}
|
|
42
62
|
}));
|
|
43
63
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skills-manifest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"description": "A lightweight manifest manager for skills, enabling project-level skill synchronization and collaborative configuration.",
|
|
6
6
|
"author": "Hairyf <wwu710632@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -12,7 +12,15 @@
|
|
|
12
12
|
"url": "git+https://github.com/hairyf/skills-manifest.git"
|
|
13
13
|
},
|
|
14
14
|
"bugs": "https://github.com/hairyf/skills-manifest/issues",
|
|
15
|
-
"keywords": [
|
|
15
|
+
"keywords": [
|
|
16
|
+
"skills",
|
|
17
|
+
".skills",
|
|
18
|
+
"lock",
|
|
19
|
+
"manifest",
|
|
20
|
+
"skills-manifest",
|
|
21
|
+
"skills-manifest.json",
|
|
22
|
+
"skills-manifest.schema.json"
|
|
23
|
+
],
|
|
16
24
|
"sideEffects": false,
|
|
17
25
|
"main": "./dist/index.mjs",
|
|
18
26
|
"bin": {
|
|
@@ -48,7 +56,7 @@
|
|
|
48
56
|
"vitest": "^4.0.15",
|
|
49
57
|
"vitest-package-exports": "^0.1.1",
|
|
50
58
|
"yaml": "^2.8.2",
|
|
51
|
-
"skills-manifest": "0.1
|
|
59
|
+
"skills-manifest": "0.2.1"
|
|
52
60
|
},
|
|
53
61
|
"simple-git-hooks": {
|
|
54
62
|
"pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
|