ts-skill

Runs a TypeScript file directly with Bun

$ 安裝

git clone https://github.com/darrenhinde/Opencode-skills-example /tmp/Opencode-skills-example && cp -r /tmp/Opencode-skills-example/.opencode/skill/ts-skill ~/.claude/skills/Opencode-skills-example

// tip: Run this command in your terminal to install the skill


name: ts-skill description: Runs a TypeScript file directly with Bun

What I do

I demonstrate how to run TypeScript files directly as skills using Bun.

How to use me

Run the TypeScript file from my base directory:

cd {base_directory}
bun run example.ts

This demonstrates:

  • ✅ Skills can use any language (TypeScript, Python, Bash, etc.)
  • ✅ Bun can execute TypeScript directly without compilation
  • ✅ TypeScript skills are fast and simple
  • ✅ Full type safety with TypeScript