This file covers how to build, test, and land changes to the plugin. For install and usage, see the README.
bun is the package manager, build tool, and test runner.
git clone https://github.com/a1exk-dev/opencode-skills-autocomplete.git
cd opencode-skills-autocomplete
bun install| Script | What it does |
|---|---|
bun run check |
Biome lint and format check over the repo |
bun run typecheck |
TypeScript check over the source and test |
bun run test |
Vitest unit and integration tests |
bun run spell |
cspell over all Markdown files |
bun run build |
Builds dist/, the plugin entry plus types |
src/tui.tsis the single plugin entry. It registers skill commands, handles a standalone/in the prompt, and binds the shortcut. Its helpers stay private to the file.test/tui.test.tsexercises skill selection through the plugin entry with a simulatedTuiPluginApi.test/prepare-release.test.tsruns release preparation against a temporary git repository and checks both resulting files.dist/is the build output;bun run buildwrites the plugin entry and the declaration files that npm ships.
Vitest checks skill ordering, origin tags, hotkey errors, dialog selection, and prompt text through the exported TUI entry. Release tests run the command in a temporary git repository, including rejected entries and failed writes.
CI runs no real opencode. The live TUI behaviors are covered by the manual smoke checklist in the README.
- Branch from
develop, open a pull request todevelop, and let CI pass. CI runs the four gates (check, typecheck, test, spell) on every pull request and on pushes tomain. - Follow Conventional Commits; the commit type decides the next version bump.
- Merges to
mainhappen only through release and hotfix branches. Releases are automated, see releasing.md.