@findskills/cli 0.0.0-stage → 0.1.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 +21 -2
- package/bin/findskills.js +47 -0
- package/package.json +37 -4
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @findskills/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Your skills. Every agent.** The `findskills` CLI keeps your agent skills in one cloud profile and
|
|
4
|
+
loads them on demand, so each new machine needs one login instead of copied skill folders.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm i -g @findskills/cli # or: bun add -g @findskills/cli
|
|
8
|
+
findskills init # install the findskills skill into your agents
|
|
9
|
+
findskills login # connect your profile
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Agents call `findskills` by name, so install it globally. To try it without installing:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npx @findskills/cli search "pdf forms"
|
|
16
|
+
bunx @findskills/cli search "pdf forms"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The package ships prebuilt binaries for Linux (x64, arm64, static), macOS (x64, arm64) and Windows
|
|
20
|
+
(x64). npm and Bun install only the one for your machine, and nothing runs at install time.
|
|
21
|
+
|
|
22
|
+
Docs and the web app: https://findskills.cc
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs the prebuilt findskills binary from the platform package that npm or Bun installed next to
|
|
3
|
+
// this one (`@findskills/cli-<platform>-<arch>`, an optional dependency).
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const { chmodSync } = require("node:fs");
|
|
7
|
+
const { spawnSync } = require("node:child_process");
|
|
8
|
+
|
|
9
|
+
const SUPPORTED = ["linux-x64", "linux-arm64", "darwin-x64", "darwin-arm64", "win32-x64"];
|
|
10
|
+
const INSTALLER = "curl -fsSL https://findskills.cc/install.sh | sh";
|
|
11
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
12
|
+
const exe = process.platform === "win32" ? "findskills.exe" : "findskills";
|
|
13
|
+
|
|
14
|
+
function fail(message, next) {
|
|
15
|
+
process.stderr.write(`error: ${message}\n→ ${next}\n`);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function binary() {
|
|
20
|
+
if (process.env.FINDSKILLS_BINARY) return process.env.FINDSKILLS_BINARY;
|
|
21
|
+
if (!SUPPORTED.includes(platform)) {
|
|
22
|
+
fail(`findskills has no prebuilt binary for ${platform}`, "build it from source: cargo build --release in the findskills repo's cli/ folder");
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
return require.resolve(`@findskills/cli-${platform}/bin/${exe}`);
|
|
26
|
+
} catch {
|
|
27
|
+
fail(
|
|
28
|
+
`the @findskills/cli-${platform} package is missing (installed with optional dependencies turned off?)`,
|
|
29
|
+
`reinstall with them: npm i -g @findskills/cli, or use the installer: ${INSTALLER}`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const bin = binary();
|
|
35
|
+
let result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
36
|
+
if (result.error && result.error.code === "EACCES") {
|
|
37
|
+
// Some package managers drop the executable bit when unpacking.
|
|
38
|
+
try {
|
|
39
|
+
chmodSync(bin, 0o755);
|
|
40
|
+
result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
41
|
+
} catch {
|
|
42
|
+
// reported below
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (result.error) fail(`cannot run ${bin}: ${result.error.message}`, `use the installer instead: ${INSTALLER}`);
|
|
46
|
+
if (result.signal) process.kill(process.pid, result.signal);
|
|
47
|
+
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@findskills/cli",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"description": "Your agent skills in one cloud profile, loaded on demand by any agent CLI",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"agent-skills",
|
|
6
|
+
"skills",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"codex",
|
|
9
|
+
"cursor",
|
|
10
|
+
"ai-agents",
|
|
11
|
+
"cli"
|
|
12
|
+
],
|
|
13
|
+
"version": "0.1.0",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"homepage": "https://findskills.cc",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/Justar96/findskills.git"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"findskills": "bin/findskills.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin/"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"optionalDependencies": {
|
|
33
|
+
"@findskills/cli-linux-x64": "0.1.0",
|
|
34
|
+
"@findskills/cli-linux-arm64": "0.1.0",
|
|
35
|
+
"@findskills/cli-darwin-x64": "0.1.0",
|
|
36
|
+
"@findskills/cli-darwin-arm64": "0.1.0",
|
|
37
|
+
"@findskills/cli-win32-x64": "0.1.0"
|
|
38
|
+
}
|
|
39
|
+
}
|