twoslash

Installation
SKILL.md

Twoslash

Use for docs examples powered by Twoslash.

Scope and defaults

  • Prefer the smallest rendered snippet that still teaches the point.
  • Keep setup imports, helper declarations, and fake files type-visible but reader-hidden with cut directives.
  • Prefer // @errors: ... when the error itself is part of the lesson.
  • Prefer // @noErrors only when the snippet is intentionally incomplete for some other reason, such as completion demos.
  • Prefer // @filename: for multi-file context instead of explaining missing imports in prose.
  • Prefer // @showEmit only when the emitted JS, .d.ts, or map file is the teaching target.
  • Do not reach for this skill for plain TypeScript snippets that do not rely on Twoslash behavior.

Gotchas

Installs
1
Repository
kjanat/skills
First Seen
3 days ago
twoslash — kjanat/skills