🧪 Skills
my skill demo showcase
Minimal TypeScript hello-world skill that demonstrates bundling TS code, a Node dependency, and package.json instructions for use and publication on Clawdhub.
v0.0.1
Description
name: ts-hello-world-demo description: Minimal TypeScript hello-world skill that demonstrates bundling TS code, a Node dependency, and package.json instructions for use and publication on Clawdhub.
TypeScript Hello World Demo Skill
This is a hello world skill that shows how to:
- Bundle TypeScript code in
scripts/ - Use an npm dependency from that code
- Document
package.jsonso others know how to install and run it
What this skill does
Use this skill when you want a minimal example of:
- A TypeScript function that returns a formatted greeting string
- Using a third-party dependency (here:
dayjsfor timestamps) - A
package.jsonthat documents how to install and run the code
Layout
skill-demo/
SKILL.md
package.json
scripts/
hello.ts
references/
README-usage.md
assets/
(optional files used by your skill)
How another agent / developer uses this 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.
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!