Taskflow continuous-deployment

Continuous Deployment Skill

install
source · Clone the upstream repo
git clone https://github.com/Brownbull/taskflow
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Brownbull/taskflow "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/deployment/continuous-deployment" ~/.claude/skills/brownbull-taskflow-continuous-deployment && rm -rf "$T"
manifest: .claude/skills/deployment/continuous-deployment/skill.md
source content

Continuous Deployment Skill

Purpose

Handles git operations, automated deployments, and remote test execution to ensure smooth continuous deployment workflow.

Tier

Tier 2 - Growth Phase

Deployment Workflow

1. Pre-Deployment

# Run local regression tests
./ai-state/regressions/run-all.sh

# Check test results
if [ $? -ne 0 ]; then
  echo "Tests failed. Deployment blocked."
  exit 1
fi

2. Git Operations

# Merge to main
git checkout main
git merge develop --no-ff
git push origin main

# Tag release
git tag -a v1.0.0 -m "Release version 1.0.0"
git push origin v1.0.0

3. Deployment Triggers

  • Railway: Auto-deploy on push to main
  • Render: Auto-deploy on push to main
  • Both platforms support preview deployments for PRs

4. Post-Deployment

# Run remote tests
./ai-state/deploy/regressions/run-remote.sh

# Verify deployment
curl https://api.production.com/health
curl https://app.production.com

5. Rollback Process

rollback_triggers:
  - Error rate > 5%
  - Response time > 2s
  - Health check failures

rollback_steps:
  1. Revert to previous deployment
  2. Run diagnostic tests
  3. Alert team
  4. Create incident report

Remote Test Generation

Converts local tests to run against deployed environments:

  • Updates API endpoints
  • Uses production-like data
  • Adjusts timeouts for network latency
  • Removes local-only tests