This policy covers the support scripts in this repository: files under scripts/, CI helpers, generators and checkers. It applies the libtmux decision in libtmux/docs#323.

Keep a script only for a current use

A script stays when this project runs it today: a CI job, a release step, a code generator, a documentation check, or a maintainer task named in CONTRIBUTING.md.

  • Parity with Python libtmux or tmuxp is not a use. Delete comparison harnesses, oracles, ledgers and generated fixtures, and the CI steps that install them.
  • A shell step that creates, prepares or stops tmux for an example or test means the library lacks an operation. File an issue for the operation and remove the step when it lands.
  • Delete scripts nothing calls.
  • Tooling several ports share lives once, as a shared workflow or action, not as a vendored copy.

Language

Scripts are Elixir, run with mix run or elixir, the same interpreter CI uses for the library. Do not add shell or Python script files.

Layout and checks

  • A script with tests lives in scripts/<name>/, with a README.md (what it does, who runs it, how) and tests/. A short single-purpose script may be one file with a usage header.
  • Scripts pass the same formatter, linter, type checker and test runner as the library, in CI.
  • Use current language and tool idioms; no shims below the project's floor.
  • Before a new or rewritten script merges, a reviewer who did not write it checks it against WRITING.md and no-ai-slop.

What stays

  • GitHub Actions run: lines that call one command.
  • A capability Elixir lacks comes from a test-only Elixir dependency, not from a second language.
  • Test data that is not a comparison, such as workspace files a loader reads.