Skip to content

holocron-skill-util

Scaffolds a new utility package in utils/ of theholocron/holocron. The standalone theholocron/utils repo is archived.

Invoke as: /holocron-skill-util

Trigger: user asks to add a new utility package to the utils group.

A new utils/<name>-utils/ directory with package.json, tsconfig.json, one-line tsdown.config.ts, vitest.config.ts, README.md, and a starter src/index.ts with tests beside the source (src/<module>.test.ts).

  • The utils/ folder is one version group: set version to the group’s current version
  • MIT licence, repository.directory set, catalog:configs / catalog: dev dependencies
  • Run pnpm install, add a codecov component under # utils, then add the docs page, the utils/index.mdx row and the sidebar entry in astro.config.ts
  • Browser-API packages also add their path to the browser override in the root eslint.config.ts
  • Reference implementations: utils/array-utils (Node-only), utils/location-utils (browser)