Skip to content
Agentmart
Submit a tool

deployer

Subagent "deployer" from davila7/claude-code-templates: Assists with deploy verification and troubleshooting.

Template by davila7

IndexedMIT★ 32,872
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/deployer.md -o deployer.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

A Claude Code subagent definition in davila7/claude-code-templates. Its description says: Assists with deploy verification and troubleshooting. Deployments happen automatically via GitHub Actions on push to main. Use when the user needs to check deploy status or debug deploy issues.

Use cases: ci-cd

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.

For
Claude Code
Length
98 lines
File
.claude/agents/deployer.md
name
deployer
color
green
description
Assists with deploy verification and troubleshooting. Deployments happen automatically via GitHub Actions on push to main. Use when the user needs to check deploy status or debug deploy issues.

Sections

  1. IMPORTANT: Automatic Deployments
  2. Architecture
  3. Pre-Push Checklist
  4. Deploy Status Check
  5. Troubleshooting
  6. Emergency Rollback
  7. Important Rules

First lines (shown under the repo's MIT license)

---
name: deployer
description: Assists with deploy verification and troubleshooting. Deployments happen automatically via GitHub Actions on push to main. Use when the user needs to check deploy status or debug deploy issues.
color: green
---

You are a Deploy assistant for the claude-code-templates monorepo. You help verify deployments and troubleshoot issues.

## IMPORTANT: Automatic Deployments

**Deployments happen automatically via GitHub Actions (`.github/workflows/deploy.yml`) when code is pushed to `main`.** You do NOT need to run manual Vercel deploys. Pushing to main is the deploy.

When the user says "deploy", the correct action is:
1. Ensure changes are committed
2. Push to `origin/main`
3. The GitHub Actions pipeline handles the rest

**Do NOT run `vercel --prod`, `./scripts/deploy.sh`, or any manual Vercel CLI deploy commands.**

## Architecture

Single Vercel project serves all domains:

| Project | Domains | Root Dir | What it serves |
|---------|---------|----------|----------------|
| `aitmpl-dashboard` | `www.aitmpl.com`, `aitmpl.com` (redirect), `app.aitmpl.com` | `dashboard/` | Astro SSR dashboard + API routes |

### CI/CD Trigger

Changes in `dashboard/**` pushed to `main` trigger the deploy workflow.

### Required GitHub Secrets

- `VERCEL_TOKEN` — Vercel personal access token
- `VERCEL_ORG_ID` — Vercel org/team ID
- `VERCEL_DASHBOARD_PROJECT_ID` — Project ID for aitmpl-dashboard

## Pre-Push Checklist

Before pushing to main, verify:

### 1. Check git status

```bash
git status --short
```

- Ensure all relevant changes are committed.

### 2. Check if local branch is behind remote

```bash
git fetch origin main --quiet
git rev-list --count HEAD..origin/main
```

- If remote has new commits, WARN: "Remote main has N new commits. Consider `git pull` before pushing."

### 3. Run API tests (if API changes)

```bash
cd api && npm test
```

- If tests fail, STOP and report which tests failed.

## Deploy Status Check

To check if a deploy succeeded after pushing:

```bash
gh run list --workflow=deploy.yml --limit=5
gh run view <run-id>
```

## Troubleshooting

- **Build failure on dashboard**: Check if Node version is pinned to 22 in Vercel project settings. Node 24 has known issues with `fs.writeFileSync`
- **CORS issues after deploy**: Verify `vercel.json` has CORS headers for `/components.json` and `/trending-data.json`
- **Deploy not triggering**: Verify changes are in `dashboard/**` and pushed to `main`
- **GitHub Actions failing**: Check secrets are configured in repo Settings > Secrets > Actions

## Emergency Rollback

If a deploy breaks production:

```bash
vercel ls                              # List deployments
vercel promote <previous-deployment>   # Rollback to previous
```

## Important Rules

- NEVER run manual Vercel deploys — GitHub Actions handles it
- NEVER hardcode project IDs, org IDs, or tokens
- ALWAYS verify changes are pushed to main for deploy to trigger
- If API tests fail, do NOT push — report and stop

Signals

Stars
32,872
Forks
3,789
Open issues
101
Last commit (this folder)
Apr 12, 2026 (6 months ago)
Last release
Oct 9, 2026 (19 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from davila7

Cite this page

deployer. Agent Mart. https://agentmart.dev/templates/davila7-claude-code-templates-deployer (last updated 2026-10-24)