Development and release
Prerequisites
Section titled “Prerequisites”Use Node.js 22 or 24 and the npm version declared by the root packageManager field. CI validates both supported Node lines on Linux, macOS, and Windows.
npm ciCommon workspace commands
Section titled “Common workspace commands”npm run checknpm run release:checknpm run check verifies formatting, linting, type checking, CLI tests and package smoke behavior, and a production wiki build. release:check repeats the repository checks and dry-runs the staged CLI package.
Work on the CLI
Section titled “Work on the CLI”Stable root scripts keep their CLI-oriented meaning:
npm run buildnpm run testnpm run test:unitnpm run test:integrationnpm run test:e2enpm run smoke:packRun individual Nx targets when you need a focused operation:
npx nx show project clinpx nx build clinpx nx test clinpx nx run cli:typecheckThe build compiles TypeScript and stages a publishable package at dist/libs/cli. The staged manifest exposes dist/cli.js as the skill-sync executable and includes only the package’s expected runtime output, README, and license.
Work on the wiki
Section titled “Work on the wiki”npm run wiki:devnpm run wiki:buildnpm run wiki:previewDocumentation source lives at apps/wiki/src/content/docs. Astro writes the production site to dist/apps/wiki; it must never write into dist/libs/cli.
Before submitting wiki changes, run:
npx nx run wiki:lintnpx nx run wiki:typechecknpx nx run wiki:buildCheck navigation, search, code samples, tables, keyboard focus, both themes, and narrow viewports in the production preview.
Keep command documentation current
Section titled “Keep command documentation current”Any public command, argument, option, safety rule, output contract, or exit-status change must update all relevant documentation surfaces in the same change:
- the root/package README;
- the detailed page under
apps/wiki/src/content/docs/reference; apps/wiki/src/data/commands.tswhen the searchable command index changes;- guides or troubleshooting pages whose workflow is affected.
Compare the rendered reference against skill-sync --help and nested command help before marking the change complete.
Release inspection
Section titled “Release inspection”npm run release:checknpm run publish:dry-runThe package job in CI installs from the lockfile, runs release validation, inspects dist/libs/cli, and uploads the packed tarball. The wiki remains a separate static build artifact and is not included in the CLI package.