@findskills/cli 0.0.0-stage → 0.1.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 CHANGED
@@ -1,3 +1,22 @@
1
- # Temporary Holding Version
1
+ # @findskills/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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,35 @@
1
1
  {
2
2
  "name": "@findskills/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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.1",
14
+ "license": "MIT",
15
+ "homepage": "https://findskills.cc",
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "bin": {
20
+ "findskills": "bin/findskills.js"
21
+ },
22
+ "files": [
23
+ "bin/"
24
+ ],
25
+ "engines": {
26
+ "node": ">=18"
27
+ },
28
+ "optionalDependencies": {
29
+ "@findskills/cli-linux-x64": "0.1.1",
30
+ "@findskills/cli-linux-arm64": "0.1.1",
31
+ "@findskills/cli-darwin-x64": "0.1.1",
32
+ "@findskills/cli-darwin-arm64": "0.1.1",
33
+ "@findskills/cli-win32-x64": "0.1.1"
34
+ }
35
+ }