holocron-skill-client
Scaffolds a complete HTTP client package in clients/ of theholocron/holocron, following the current patterns. The standalone theholocron/clients repo is archived.
Invoke as: /holocron-skill-client
Trigger: user asks to add a new HTTP client package to the clients group.
What it produces
Section titled “What it produces”A new clients/<slug>-client/ directory with:
package.json— MIT,repository.directoryset, version matching theclients/group,workspace:^on@theholocron/http-client,catalog:configs/catalog:dev dependenciestsconfig.json, plus one-linetsdown.config.tsandvitest.config.tsre-exporting the shared presetssrc/utils.ts—create<Vendor>RestClient()usingcreateRestClientfrom@theholocron/http-clientsrc/<resource>/<resource>.ts— one file per API resourcesrc/index.ts— public API surfacesrc/index.test.ts— tests beside the source, usingstubFetch(DI fetch pattern)
Post-scaffold checklist
Section titled “Post-scaffold checklist”The workspace glob (clients/*) and release config already cover the new folder. By hand:
- Run
pnpm installand commit the updated lockfile. - Add a component under the
# clientsheading ofcodecov.yml(generated byholocron setup; add the block in the same format). - Add the docs page
docs/src/content/docs/clients/<slug>.mdx, a row inclients/index.mdxand the sidebar entry in the rootastro.config.ts. - Run
holocron run ci.
Key conventions
Section titled “Key conventions”- The
clients/folder is one version group: setversionto the group’s current version - Use
createRestClientfrom@theholocron/http-client— no rawfetchcalls in the client factory - Use
stubFetchin tests — DI pattern, novi.stubGlobal; no__tests__directories - Reference implementation:
clients/axiom-client