skills-manifest 0.0.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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-PRESENT Anthony Fu <https://github.com/antfu>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # skills-manifest
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+ [![bundle][bundle-src]][bundle-href]
6
+ [![JSDocs][jsdocs-src]][jsdocs-href]
7
+ [![License][license-src]][license-href]
8
+
9
+ A standardized JSON schema and metadata specification for defining, versioning, and sharing professional skillsets.
10
+
11
+ > [!IMPORTANT]
12
+ > The `skills add <args>` will not automatically update the `skills-manifest.json` file.
13
+ > Currently, [skills](https://github.com/vercel-labs/skills) does not support project-level.lock file. This project is only intended as temporary solution for sharing skills during collaborative work.
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ pnpm add skills skills-manifest -D
19
+ ```
20
+
21
+ ## Config
22
+
23
+ `skills-manifest.json`:
24
+
25
+ ```json
26
+ {
27
+ "agents": ["cursor", "claude"],
28
+ "skills": {
29
+ "vercel-labs/agent-skills": {
30
+ "vercel-react-best-practices": true
31
+ },
32
+ "https://github.com/vercel-labs": {
33
+ "find-skills": true
34
+ }
35
+ }
36
+ }
37
+ ```
38
+
39
+ `.gitignore`:
40
+
41
+ ```
42
+ skills
43
+ ```
44
+
45
+ `package.json`:
46
+
47
+ ```json
48
+ {
49
+ "scripts": {
50
+ "prepare": "skills-manifest install"
51
+ }
52
+ }
53
+ ```
54
+
55
+ ## License
56
+
57
+ [MIT](./LICENSE) License © [Hairyf](https://github.com/hairyf)
58
+
59
+ <!-- Badges -->
60
+
61
+ [npm-version-src]: https://img.shields.io/npm/v/skills-manifest?style=flat&colorA=080f12&colorB=1fa669
62
+ [npm-version-href]: https://npmjs.com/package/skills-manifest
63
+ [npm-downloads-src]: https://img.shields.io/npm/dm/skills-manifest?style=flat&colorA=080f12&colorB=1fa669
64
+ [npm-downloads-href]: https://npmjs.com/package/skills-manifest
65
+ [bundle-src]: https://img.shields.io/bundlephobia/minzip/skills-manifest?style=flat&colorA=080f12&colorB=1fa669&label=minzip
66
+ [bundle-href]: https://bundlephobia.com/result?p=skills-manifest
67
+ [license-src]: https://img.shields.io/github/license/antfu/skills-manifest.svg?style=flat&colorA=080f12&colorB=1fa669
68
+ [license-href]: https://github.com/antfu/skills-manifest/blob/main/LICENSE
69
+ [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
70
+ [jsdocs-href]: https://www.jsdocs.io/package/skills-manifest
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ import { register } from 'tsx/esm/api'
5
+
6
+ // Register tsx enhancement
7
+ const unregister = register()
8
+
9
+ // eslint-disable-next-line antfu/no-top-level-await
10
+ await import('../src/cli/index.ts')
11
+
12
+ unregister()
package/bin/index.mjs ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ 'use strict'
3
+
4
+ import '../dist/cli/index.mjs'
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,45 @@
1
+ import { loadConfig } from "c12";
2
+ import { defineCommand, runMain } from "citty";
3
+ import { x } from "tinyexec";
4
+
5
+ //#region package.json
6
+ var version = "0.0.0";
7
+
8
+ //#endregion
9
+ //#region src/cli/index.ts
10
+ runMain(defineCommand({
11
+ meta: {
12
+ name: "install",
13
+ version,
14
+ description: "Install skills"
15
+ },
16
+ async run() {
17
+ const { config } = await loadConfig({ configFile: "skills-manifest" });
18
+ const repos = Object.keys(config.skills);
19
+ for (const repo of repos) {
20
+ if (typeof config.skills[repo] === "boolean") {
21
+ await x("skills", [
22
+ "add",
23
+ repo,
24
+ "--agent",
25
+ ...config.agents,
26
+ "--all",
27
+ "--yes"
28
+ ], { nodeOptions: { stdio: "inherit" } });
29
+ continue;
30
+ }
31
+ await x("skills", [
32
+ "add",
33
+ repo,
34
+ "--skill",
35
+ ...Array.isArray(config.skills[repo]) ? config.skills[repo] : Object.keys(config.skills[repo]).filter((skill) => config.skills[repo][skill] === true),
36
+ "--agent",
37
+ ...config.agents,
38
+ "--yes"
39
+ ], { nodeOptions: { stdio: "inherit" } });
40
+ }
41
+ }
42
+ }));
43
+
44
+ //#endregion
45
+ export { };
@@ -0,0 +1,13 @@
1
+ //#region src/types/index.d.ts
2
+ type Repo = boolean | {
3
+ [skill: string]: boolean;
4
+ } | string[];
5
+ interface Skills {
6
+ [repo: string]: Repo;
7
+ }
8
+ interface SkillsManifest {
9
+ skills: Skills;
10
+ agents: string[];
11
+ }
12
+ //#endregion
13
+ export { Skills as n, SkillsManifest as r, Repo as t };
@@ -0,0 +1,2 @@
1
+ import { n as Skills, r as SkillsManifest, t as Repo } from "./index-OGqMIJuf.mjs";
2
+ export { Repo, Skills, SkillsManifest };
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import "./types/index.mjs";
2
+
3
+ export { };
@@ -0,0 +1,2 @@
1
+ import { n as Skills, r as SkillsManifest, t as Repo } from "../index-OGqMIJuf.mjs";
2
+ export { Repo, Skills, SkillsManifest };
@@ -0,0 +1 @@
1
+ export { };
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "skills-manifest",
3
+ "type": "module",
4
+ "version": "0.0.0",
5
+ "description": "_description_",
6
+ "author": "Hairyf <wwu710632@gmail.com>",
7
+ "license": "MIT",
8
+ "funding": "https://github.com/sponsors/hairyf",
9
+ "homepage": "https://github.com/hairyf/skills-manifest#readme",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/hairyf/skills-manifest.git"
13
+ },
14
+ "bugs": "https://github.com/hairyf/skills-manifest/issues",
15
+ "keywords": [],
16
+ "sideEffects": false,
17
+ "main": "./dist/index.mjs",
18
+ "bin": {
19
+ "skills-manifest": "./bin/index.mjs"
20
+ },
21
+ "files": [
22
+ "bin",
23
+ "dist"
24
+ ],
25
+ "peerDependencies": {
26
+ "skills": "^1.2.0"
27
+ },
28
+ "dependencies": {
29
+ "c12": "^3.3.3",
30
+ "citty": "^0.2.0",
31
+ "tinyexec": "^1.0.2"
32
+ },
33
+ "devDependencies": {
34
+ "@antfu/eslint-config": "^6.6.1",
35
+ "@antfu/ni": "^28.0.0",
36
+ "@antfu/utils": "^9.3.0",
37
+ "@types/node": "^25.0.1",
38
+ "bumpp": "^10.3.2",
39
+ "eslint": "^9.39.2",
40
+ "lint-staged": "^16.2.7",
41
+ "publint": "^0.3.16",
42
+ "simple-git-hooks": "^2.13.1",
43
+ "skills": "^1.2.0",
44
+ "tsdown": "^0.17.3",
45
+ "tsx": "^4.21.0",
46
+ "typescript": "^5.9.3",
47
+ "vite": "^7.2.7",
48
+ "vitest": "^4.0.15",
49
+ "vitest-package-exports": "^0.1.1",
50
+ "yaml": "^2.8.2",
51
+ "skills-manifest": "0.0.0"
52
+ },
53
+ "simple-git-hooks": {
54
+ "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
55
+ },
56
+ "lint-staged": {
57
+ "*": "eslint --fix"
58
+ },
59
+ "scripts": {
60
+ "build": "tsdown",
61
+ "dev": "tsdown --watch",
62
+ "lint": "eslint",
63
+ "release": "bumpp",
64
+ "start": "tsx src/index.ts",
65
+ "test": "vitest",
66
+ "typecheck": "tsc"
67
+ },
68
+ "exports": {
69
+ ".": {
70
+ "types": "./dist/index.d.ts",
71
+ "import": "./dist/index.mjs"
72
+ },
73
+ "./package.json": "./package.json"
74
+ },
75
+ "module": "./dist/index.mjs",
76
+ "types": "./dist/index.d.ts"
77
+ }