clawskills 2026.3.2

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.
Files changed (4) hide show
  1. package/README.md +59 -0
  2. package/index.d.ts +28 -0
  3. package/index.js +48 -0
  4. package/package.json +28 -0
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # ClawSkills — AI Agent Skill Toolkit & Runner for Node.js
2
+
3
+ [![npm](https://img.shields.io/npm/v/clawskills.svg)](https://www.npmjs.com/package/clawskills) [![license](https://img.shields.io/npm/l/clawskills.svg)](https://github.com/commandoperator/cmdop-sdk-js/blob/main/LICENSE)
4
+
5
+ ![CMDOP Architecture](https://cmdop.com/images/architecture/vs-personal-agent.png)
6
+
7
+ ClawSkills delivers a robust agent skill runner for Node.js. Build agent task pipelines using AI skill chaining from the OpenClaw skill toolkit. Execute MCP tools with our runner. A streamlined alternative to OpenClaw, ClawHub, MCP, LangChain Tools, and AutoGPT Plugins, it simplifies agent development.
8
+
9
+ ## Features
10
+
11
+ - Orchestrate complex agent task pipelines with AI skill chaining.
12
+ - Execute OpenClaw skill toolkit components directly within Node.js.
13
+ - Integrate MCP tool runner functionality for enhanced agent capabilities.
14
+ - Manage agent skill execution with a dedicated agent skill runner.
15
+ - Construct advanced workflows using the agent task pipeline feature.
16
+
17
+ ## Use Cases
18
+
19
+ - Run agent skills on remote machines with a single API call
20
+ - Chain multiple skills into sequential pipelines with context passing
21
+ - Load and execute MCP-compatible tools inside agent workflows
22
+
23
+ ## Get Started
24
+
25
+ ```bash
26
+ npm install clawskills
27
+ ```
28
+
29
+ ## Quick Start
30
+
31
+ ```typescript
32
+ import { ClawSkills } from 'clawskills';
33
+
34
+ const client = ClawSkills.remote({ apiKey: 'cmdop_live_xxx' });
35
+
36
+ // Run a single skill
37
+ const output = await client.runSkill('code-review', {
38
+ input: 'Check src/ for security issues',
39
+ });
40
+ console.log(output);
41
+
42
+ // Chain skills into a pipeline
43
+ const results = await client.chain([
44
+ 'lint-code',
45
+ 'run-tests',
46
+ 'generate-report',
47
+ ]);
48
+ console.log(results.at(-1));
49
+
50
+ // Load a local skill
51
+ client.load('./skills/my-analyzer');
52
+ ```
53
+
54
+ ## Links
55
+
56
+ - [CMDOP Homepage](https://cmdop.com)
57
+ - [Documentation](https://cmdop.com/docs/sdk/node/)
58
+ - [clawskills on npm](https://www.npmjs.com/package/clawskills)
59
+ - [GitHub](https://github.com/commandoperator/cmdop-sdk-js)
package/index.d.ts ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * clawskills — ClawSkills — agent skill toolkit and runner plugin for CMDOP
3
+ *
4
+ * Themed wrapper around @cmdop/node.
5
+ * Docs: https://cmdop.com/docs/sdk/node/
6
+ */
7
+
8
+ // Re-export all types from the real SDK
9
+ export * from '@cmdop/node';
10
+
11
+ /** Pre-configured ClawSkills defaults */
12
+ export declare const defaultConfig: {
13
+ botName: "ClawSkills";
14
+ welcomeMessage: "ClawSkills ready. Try /run, /chain, /skills";
15
+ };
16
+
17
+ /**
18
+ * Create a pre-configured ClawSkills instance with themed defaults.
19
+ * @param options - Override any default option
20
+ */
21
+ export declare function createClawSkills(options?: Partial<import("@cmdop/node").CMDOPClientOptions>): Promise<import("@cmdop/node").CMDOPClient>;
22
+
23
+ import type { z } from 'zod';
24
+
25
+ export declare const SkillRunResultSchema: z.ZodObject<any>;
26
+ export type SkillRunResult = z.infer<typeof SkillRunResultSchema>;
27
+ export declare const ChainResultSchema: z.ZodObject<any>;
28
+ export type ChainResult = z.infer<typeof ChainResultSchema>;
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+ /**
2
+ * clawskills — ClawSkills — agent skill toolkit and runner plugin for CMDOP
3
+ *
4
+ * Themed wrapper around @cmdop/node.
5
+ * Docs: https://cmdop.com/docs/sdk/node/
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ const sdk = require('@cmdop/node');
11
+
12
+ // Re-export everything from the real SDK
13
+ Object.assign(module.exports, sdk);
14
+
15
+ /**
16
+ * Create a pre-configured ClawSkills instance.
17
+ * Equivalent to CMDOPClient.remote() with ClawSkills defaults applied.
18
+ *
19
+ * @param {object} options - Override any default option
20
+ */
21
+ function createClawSkills(options) {
22
+ return sdk.CMDOPClient.remote(Object.assign({}, options));
23
+ }
24
+
25
+ module.exports.createClawSkills = createClawSkills;
26
+ module.exports.defaultConfig = {
27
+ botName: "ClawSkills",
28
+ welcomeMessage: "ClawSkills ready. Try /run, /chain, /skills",
29
+ };
30
+
31
+ // Zod schemas for structured output validation
32
+ const { z } = require('zod');
33
+
34
+ const SkillRunResultSchema = z.object({
35
+ skill: z.string(),
36
+ output: z.string(),
37
+ exitCode: z.number().int().optional(),
38
+ durationMs: z.number().int().optional(),
39
+ });
40
+
41
+ const ChainResultSchema = z.object({
42
+ steps: z.number().int(),
43
+ results: z.array(z.string()),
44
+ totalMs: z.number().int().optional(),
45
+ });
46
+
47
+ module.exports.SkillRunResultSchema = SkillRunResultSchema;
48
+ module.exports.ChainResultSchema = ChainResultSchema;
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "clawskills",
3
+ "version": "2026.3.2",
4
+ "description": "ClawSkills \u2014 agent skill toolkit and runner plugin for CMDOP",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "clawskills",
10
+ "cmdop",
11
+ "openclaw",
12
+ "skills",
13
+ "agent",
14
+ "toolkit",
15
+ "mcp",
16
+ "runner"
17
+ ],
18
+ "homepage": "https://cmdop.com/sdk/node/",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/commandoperator/cmdop-sdk-js.git"
22
+ },
23
+ "author": "CMDOP Team",
24
+ "dependencies": {
25
+ "@cmdop/node": "*",
26
+ "zod": "^4"
27
+ }
28
+ }