@enteros/skill-core (0.1.3)
Installation
@enteros:registry=https://git.moleculesai.app/api/packages/molecule-ai/npm/npm install @enteros/skill-core@0.1.3"@enteros/skill-core": "0.1.3"About this package
@enteros/skill-core
Core runtime for authoring EnterOS skills — the building blocks a skill
author uses to declare a skill module (its tools, CLIs, config slice, and skill
doc), validate it at definition time, and compose and load skill families. Wire
naming, reserved-name guards, and write-discipline rules are enforced from the
@enteros/contracts SSOT.
Install
npm install @enteros/skill-core
Build a skill module
defineModule() validates the module shape at definition time and returns a
frozen module. Each tool declares an inputSchema and outputSchema (JSON
Schema 2020-12) and a handler.
import { defineModule } from "@enteros/skill-core";
export default defineModule({
id: "hello",
version: "0.1.0",
contractVersion: 1,
skillDoc: "./SKILL.md",
configSlice: "./config.slice.json",
tools: [
{
id: "greet",
description: "Return a friendly greeting for the given name.",
inputSchema: {
type: "object",
properties: { name: { type: "string" } },
required: ["name"],
additionalProperties: false,
},
outputSchema: {
type: "object",
properties: { message: { type: "string" } },
required: ["message"],
additionalProperties: false,
},
async handler({ name }: { name: string }) {
return { message: `Hello, ${name}!` };
},
},
],
clis: [],
});
Check a skill against the full framework contract with the ./conformance
export:
import { assertConformant } from "@enteros/skill-core/conformance";
import mod from "./index.ts";
await assertConformant(mod, { dir: import.meta.dirname });
Serve your skills over MCP with @enteros/skill-mcp
and persist work with @enteros/skill-ledger.
License
MIT © Molecule AI
Dependencies
Dependencies
| ID | Version |
|---|---|
| @enteros/contracts | 0.3.2 |
| ajv | ^8.17.1 |
Development Dependencies
| ID | Version |
|---|---|
| @types/node | ^22.10.0 |
| tsup | ^8.3.0 |
| typescript | ^5.7.0 |
| vitest | ^3.0.0 |
Keywords
enteros
skill
skill-framework
agent
mcp
molecule
Details
2026-07-23 22:51:44 +00:00
Assets (1)
Versions (4)
View all
npm
6
Molecule AI
MIT
latest
72 KiB
skill-core-0.1.3.tgz
72 KiB