Install
openclaw skills install skill-demoMinimal TypeScript hello-world skill that demonstrates bundling TS code, a Node dependency, and package.json instructions for use and publication on Clawdhub.
openclaw skills install skill-demoThis is a hello world skill that shows how to:
scripts/package.json so others know how to install and run itUse this skill when you want a minimal example of:
dayjs for timestamps)package.json that documents how to install and run the codeskill-demo/
SKILL.md
package.json
scripts/
hello.ts
references/
README-usage.md
assets/
(optional files used by your skill)
Install dependencies in the skill folder:
cd /home/ubuntu/skill-demo
npm install
Run the demo script (via ts-node):
npx ts-node scripts/hello.ts
In other TypeScript/JavaScript code, import and use the function:
import { buildGreeting } from "./scripts/hello";
console.log(buildGreeting("Alice"));
See references/README-usage.md for more details and extension ideas.