builderbot-code-skill
Installation
SKILL.md
BuilderBot Code Skill
Operate
- Identify the stack — confirm provider package, database adapter, and flow entrypoints before writing code.
- Type the callback signature correctly:
ctx: BotContext→{ body, from, name, host, ...platform fields }methods: BotMethods→{ flowDynamic, gotoFlow, endFlow, fallBack, state, globalState, blacklist, provider, database, extensions }
- Enforce flow-control semantics — these three MUST be
returned:return gotoFlow(flow)·return endFlow('msg')·return fallBack('msg')- These MUST be
awaited:await flowDynamic(...)·await state.update(...)·await globalState.update(...)
- Prefer small, composable flows — one responsibility per flow file.
- Keep secrets in env vars — never hardcode tokens, keys, or credentials.
- After writing any flow, run through the UX Review Checklist below — simulate the conversation as the end-user and verify every item before considering the flow done.
- Always validate lint before finishing — run
eslint . --no-ignoreand fix every error before delivering code.