/webda:webda-servicesfrom webda
Guides adding or modifying Webda services, their parameters, lifecycle, and wiring in webda.config.json.
Ships in webda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Behaviour that is not about a single model: integrations, scheduled work, computations across models. Model-specific behaviour belongs on the model.
A service lives in src/services/<name>.service.ts, has a parameters class (the file must be named *.service.ts: the build fails on a service file without that suffix), and the @WebdaModda JSDoc tag so the compiler registers it. It is enabled in webda.config.json under services, where its parameters are set.
import { Service, useLog } from "@webda/core";
export class ReminderServiceParameters extends Service.Parameters {
/**
* Hours before a reminder is sent
* @minimum 1
*/
delayHours: number = 24;
}
/**
* Sends reminders for open tasks
*
* @WebdaModda
*/
export class ReminderService<T extends ReminderServiceParameters = ReminderServiceParameters> extends Service<T> {
static Parameters = ReminderServiceParameters;
/**
* Validate configuration; synchronous, called before init
*/
resolve(): this {
super.resolve();
useLog("INFO", "Reminder delay", this.parameters.delayHours);
return this;
}
/**
* Open connections or start timers
*/
async init(): Promise<this> {
await super.init();
return this;
}
/**
* Release what init created
*/
async stop(): Promise<void> {
await super.stop();
}
}
{
"services": {
"ReminderService": { "type": "ReminderService", "delayHours": 12 }
}
}
Lifecycle: constructor → resolve() (configuration, dependencies) → init() (connections) → running → stop().
Another service is reached with useService("ReminderService"). Expose a method to clients with @Operation() (see webda-operations).
new ReminderService(...) → never instantiate services; declare them in webda.config.json
Hardcoded URLs, credentials, delays → parameters in webda.config.json
console.log → useLog("INFO", ...)
Forgetting @WebdaModda → the type is unknown in webda.config.json
npm run build, then npm run debug and check the service starts in the logs; add a test (see webda-testing).
Written for Webda 4.0.0-beta.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/webda-configurationUse when changing webda.config.json, application parameters, the parameters of a service or the per-environment deployments of a Webda app/webda-deployUse when deploying a Webda app, adding a deployment environment or building a container image or Lambda package/webda-modelsUse when adding or changing a Webda model, its fields, validation, primary key or relations to other models/webda-operationsUse when exposing behaviour to clients as an operation, or enabling REST, GraphQL, gRPC or MCP in a Webda appnpx claudepluginhub loopingz/webda.io --plugin webdaOther plugins' skills for the same job