@skill-tree/actions
v0.1.0
Published
skilltree operations as portable silkweave actions: one definition served as a CLI, a REST API and MCP tools.
Readme
@skill-tree/actions
Every skilltree operation defined once, as a portable silkweave action. One definition is served as a CLI command, an MCP tool and a REST endpoint - there is no second implementation to drift.
npm install @skill-tree/actionsWhat it does
Reading (tree, validate, link), progress (award-xp, level-node, respec-node) and
authoring (init, add-node, update-node, remove-node, add-branch, update-branch,
remove-branch, set-theme). The actions do no I/O beyond the tree file, never touch the process,
and throw instead of exiting - the host decides what a failure looks like.
import { silkweave } from '@silkweave/core'
import { skilltreeActions } from '@skill-tree/actions'
const app = silkweave({ actions: [...skilltreeActions] })Most people never import this directly - they use
@skill-tree/cli, which picks its adapter from
argv and serves exactly this set over all three transports. Import it when you are embedding
skilltree operations in your own host.
MIT (c) Tobias Strebitzer
