Deploy

From fdhhhdjd/Class-AI-Agent · View interactive version

Deploy is an AI agent skill from the GitHub repository fdhhhdjd/Class-AI-Agent. Skill to automate the full deployment process including build, test, and release steps

How to use this skill

Skill file

Deploy Skill

Purpose

Automate the deployment pipeline: build → test → deploy → verify.

Prerequisites

Steps

1. Verify Clean State

git status
git pull origin main

2. Run Tests

npm test

If tests fail → STOP. Report failures.

3. Build

npm run build

4. Deploy by Environment

Development:

docker-compose -f docker-compose.dev.yml up -d --build

Production:

docker-compose -f docker-compose.prod.yml pull
docker-compose -f docker-compose.prod.yml up -d

5. Health Check

curl -f http://localhost:3000/health || echo "Health check failed"

6. Tail Logs (first 30 seconds)

docker-compose logs --tail=50 -f app

Rollback

git revert HEAD --no-edit
git push origin main
# Redeploy previous version

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.