Operate and validate the waba-agent CLI and gateway stack. Use when asked to continue builds, run production-readiness checks, wire onboarding, verify safety gating, troubleshoot chat/gateway/resale flows, or configure local-first AI with Ollama fallback.
Install
npx skillscat add vishalgojha/waba-agent Install via the SkillsCat registry.
SKILL.md
WABA Agent Operator
Use this skill to
- Run regression and smoke checks for
waba-agent. - Diagnose CLI command mismatches and runtime errors.
- Patch onboarding for Meta + AI + staging verification.
- Validate safety rules: no shell/eval action flow; approval for high-risk actions.
- Configure or verify local AI defaults with Ollama.
Standard workflow
- Confirm repo state before edits.
git status --porcelain=v1 -b - Run tests using
npm.cmdon PowerShell systems.npm.cmd run test:ainpm.cmd run test:chatnpm.cmd run test:gatewaynpm.cmd run test:resalenpm.cmd test - Run command-surface smoke checks.
node bin/waba.js --no-banner --helpnode bin/waba.js --no-banner chat --helpnode bin/waba.js --no-banner gateway --helpnode bin/waba.js --no-banner resale --help - Verify gateway root headers to avoid stale UI.
Expect:
Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidatePragma: no-cacheExpires: 0
- Verify high-risk gating behavior.
allowHighRisk=falsemust blockmessage.send_text,template.send, and schedule send tools.allowHighRisk=truemay proceed but must still fail safely when auth/config is missing.
- For multi-client checks, prefer explicit
--clientwhere supported.
Onboarding requirements
Capture in wizard whenever possible:
- Meta auth: token, phone-id, business-id
- AI setup: provider, key, model, base URL
- Staging verification profile: test recipient, template name/language/params
Persist:
- Global AI config in
~/.waba/config.json - Client verification profile in
~/.waba/context/<client>/client.jsonunderverification.staging
Local AI defaults
If hosted keys are absent, runtime should use local Ollama:
- Base URL:
http://127.0.0.1:11434/v1 - Primary model:
deepseek-coder-v2:16b - Fallback model:
qwen2.5:7b
Quick local prep:ollama pull deepseek-coder-v2:16bollama pull qwen2.5:7bollama serve
Non-negotiable safety rules
- Keep approval gating for high-risk actions.
- Do not introduce
eval, shell execution, or dynamic code execution in action flow. - Do not remove existing user-facing commands unless explicitly requested.
Output contract for takeover and validation tasks
Return:
- Exact issues found
- Code changes made
- Commands run
- Demo checklist with pass/fail and explicit blockers