Skip to Content

Authoring

Six pages that take you from npm init to a publishable plugin.

  1. Getting started β€” write the smallest Hello plugin: bootstrap, descriptor, printer round-trip, no AST mutation.
  2. End-to-end transform β€” the same shape with a real AST mutation (debugger removal) and the table-driven flag parser.
  3. Editor setup β€” go.work, gopls, go test, pnpm notes. Set up before you import a shim.
  4. Recipes β€” focused patterns you can copy (auto-discovery, lint diagnostics, leaf-text mutation invariant, re-spawning ttsx / tsgo).
  5. Testing β€” Go unit tests + end-to-end ttsc fixtures (one case per file, AGENTS.md Β§2.2 shape).
  6. Publishing β€” npm package shape, peerDependencies, Pre-Publish Check CI recipe.

First-pass readers may skip Testing and Publishing; come back after your first plugin runs end-to-end. Before you start, skim Concepts. After you ship, see Reference.

Last updated on