Plugin templates

Scaffold new plugins with create-contractspec-plugin.

Create a new plugin

Generate a plugin scaffold with tests, documentation, and CI wiring.

create-plugin
bunx create-contractspec-plugin create \
  --name markdown-generator \
  --description "Markdown docs generator" \
  --author "Your name"

Template outputs

  • src/generator.ts, src/types.ts, src/config.ts
  • tests/ with sample fixtures
  • .github/workflows/ci.yml
  • README.md with usage instructions

Publish and install

publish-plugin
bun run build
bun publish

# install in a ContractSpec workspace
bun add @contractspec/integration.markdown-generator

Need managed plugin distribution?

Studio can host private plugin registries, approvals, and policy gates for teams.

Join Studio waitlist