.github/skills/build-and-deploy/SKILL.md
Build, deploy, and verify changes for Clarin CRM. Use this skill after making any code change to compile, deploy, and validate that everything works correctly. Covers Docker-based builds for Go backend and Next.js frontend.
npx skillsauth add ricardoalejandro/clarin build-and-deployInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
cd /root/proyect/clarin && docker compose build backend
cd /root/proyect/clarin && docker compose build frontend
cd /root/proyect/clarin && docker compose build backend frontend
After a successful build:
cd /root/proyect/clarin && docker compose up -d
Always check logs after deploy:
# Backend logs
docker compose logs --tail=30 backend
# Frontend logs
docker compose logs --tail=30 frontend
# All services
docker compose logs --tail=30
After EVERY code change, follow this exact sequence:
docker compose build backend and/or docker compose build frontenddocker compose up -ddocker compose logs --tail=30 backend or frontendbackend/go.mod and ensure all imports match actual package paths.@/lib/api.ts.frontend/package.json.golang:1.24-alpine with CGO_ENABLED=1 (required for whatsmeow/sqlite)node:20-alpine with standalone Next.js outputdeploy/Dockerfile.backend and deploy/Dockerfile.frontenddevelopment
Enforce code quality, self-testing, and verification standards for Clarin CRM. Use this skill to ensure every change is compiled, deployed, and validated before presenting to the user. Acts as a senior engineer code review checklist.
tools
Work with Kommo CRM integration in Clarin. Use when modifying the sync worker, API client, lead/contact/tag synchronization, or phone normalization. Covers the one-way Kommo to Clarin sync flow.
development
Create beautiful, polished, and highly usable Next.js/React/TypeScript interfaces for Clarin CRM. Use when creating or modifying dashboard pages, components, API calls, WebSocket listeners, or UI styling. Enforces visual excellence, micro-interactions, accessibility, and the emerald/slate design system.
development
Make database schema changes for Clarin CRM. Use when adding tables, columns, indexes, or modifying the PostgreSQL schema. Migrations live in database.go InitDB() function.