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