agentsclimarketplace

Koha build

Skill mrenvoize/koha-contributor/skills/koha-build

Build Koha frontend assets (CSS, JS, OpenAPI spec) inside the KTD container. Use after editing SCSS, Vue components, or api/v1/swagger/*.yaml. After swagger changes you must also run restart_all to reload services — yarn build alone is not enough.From its SKILL.md

Install
npx -y skills add mrenvoize/koha-contributor --skill koha-build

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.0 KB, as published. Nobody here has run it

Build Koha assets inside KTD.

Arguments: $ARGUMENTS (optional — css, js, prod, or omit for full build)

Decide which build to run

ChangedCommand
*.scss onlyyarn css:build (faster)
*.vue / *.js onlyyarn js:build (faster)
api/v1/swagger/*.yaml (OpenAPI)yarn build then restart_all (mandatory — see below)
Mixed or unsureyarn build
Production / packagingyarn build:prod

If the user didn't specify and edited several file types, default to yarn build.

Run

ktd --name "${KTD_INSTANCE:-kohadev}" --shell --run 'yarn build'

Substitute yarn css:build, yarn js:build, or yarn build:prod as needed.

After Swagger / OpenAPI changes — REQUIRED

Edits to api/v1/swagger/*.yaml are not picked up by yarn build alone — the running Mojolicious workers cache the compiled spec. Restart services after the build:

ktd --name "${KTD_INSTANCE:-kohadev}" --shell --run 'yarn build && restart_all'

Without restart_all the API will still serve the old spec and your tests will fail with confusing schema-mismatch errors. This is the single most common "build looks fine but tests fail" trap.

Watch mode (during iteration)

For tight feedback loops while editing SCSS or JS, run in the background:

ktd --name "${KTD_INSTANCE:-kohadev}" --shell --run 'yarn css:watch'   # or yarn js:watch

The user should run watch mode in a separate terminal — don't background it from a skill invocation.

Output

Report: which target ran, build duration if surfaced, and whether restart_all was triggered. If the build failed, surface the first error (usually a missing import, syntax error, or YAML parse error in swagger).

Keep looking

Skills are one crate of 609,689. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.