Typescript inline scripts

From jahands/prompts · View interactive version

Typescript inline scripts is an AI agent skill from the GitHub repository jahands/prompts. Guide for running inline TypeScript scripts with Bun. This should be used when the user says "use inline typescript

How to use this skill

Skill file

Run inline scripts with Bun; --install=fallback installs imported npm packages automatically. Prefer Bun APIs (Bun.file, Bun.write, $ from bun) over Node equivalents.

bun run --install=fallback - < <(cat <<'EOF'
import * as z from 'zod'
console.log(z.coerce.number().parse('5'))
EOF
)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.