This 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)
```bash
cd /home/ubuntu/skill-demo
npm install
```
```bash
npx ts-node scripts/hello.ts
```
```ts
import { buildGreeting } from "./scripts/hello";
console.log(buildGreeting("Alice"));
```
See references/README-usage.md for more details and extension ideas.
共 1 个版本