.claude/skills/deploy-app/SKILL.md
Deploy backend and/or frontend services. Use after npm run build completes, when restarting services, when user mentions deploy/build/restart, or when page shows Application error. Also trigger on 502/503 errors, service health check failures, or after code changes that need deployment.
npx skillsauth add dmitryprg-ai/cursor-develop-autorules deploy-appInstall 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.
Build, restart services, and verify the app is working.
Configuration: .cursor/config/project.config.json
Next.js serves the old build until the systemd service restarts. If you build but forget to restart, users see stale code. If you restart without building, the service may crash on missing files. The sequence build -> restart -> verify exists because each step depends on the previous one succeeding.
Run: bash ${CLAUDE_SKILL_DIR}/scripts/deploy-backend.sh
Or manually:
npm run build (from project root)sudo systemctl restart crmaicurl -s -u user:pass "https://site/api/health"systemctl status crmai | tail -10Run: bash ${CLAUDE_SKILL_DIR}/scripts/deploy-frontend.sh
Or manually:
cd apps/web && npm run buildsudo systemctl restart crmai-webcurl -s -u user:pass "https://site/" | grep "Application error"systemctl status crmai-web | tail -10Run: bash ${CLAUDE_SKILL_DIR}/scripts/deploy-all.sh
Run: bash ${CLAUDE_SKILL_DIR}/scripts/verify-pages.sh
Basic Auth credentials: read from .cursor/.secrets/ (path in config)
development
Scan codebase for technical debt and fix safely with TDD. Use to find oversized files, duplicated code, code smells, and refactor safely. Workflow - SCAN, TEST CASES, REFACTOR, VERIFY. Keywords - techdebt, tech debt, duplicates, code quality audit.
development
Test-Driven Development workflow with strict Red-Green-Refactor cycle. Use when developing features with TDD, writing tests before code, or when test-driven approach is needed. MANDATORY order - test cases table BEFORE code, failing tests BEFORE implementation.
testing
Review work session quality and capture improvements. Use at end of session, after large tasks, after series of errors, or when user asks for session review, retrospective, lessons learned. Records improvements to backlog.
data-ai
Analyze data, investigate datasets, work with CSV/parquet/pandas/dataframes. Use when analyzing data, exploring datasets, running experiments, or when user mentions data, analysis, parquet, csv, pandas, dataframe, statistics, investigation.