deploy-setup

deploy-setup is a command for Claude Code from KhaledSaeed18/dotclaude. It costs 44 tokens per session (824 once invoked), scanned A, original, MIT.

A setup command that adds container packaging and an automated GitHub Actions-to-Coolify deployment pipeline to a repository. Coolify is a tool that runs applications on a server, while GHCR is GitHub's container-image registry.

In plain words
What is it for?
Use it when deploying a Next.js app or an Express and Prisma API to a VPS. It prepares the Docker files, CI pipeline, registry image, and Coolify configuration.
Why use it?
It turns a project that only contains source code into one that can build a container, publish it, and deploy it to a VPS, while stopping for secrets or owner approvals it cannot handle itself.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the deploy plugin — 9 skills, 3 commands, 1 agent shipped together

Good fit Use it when deploying a Next.js app or an Express and Prisma API to a VPS. It prepares the Docker files, CI pipeline, registry image, and Coolify configuration.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/khaledsaeed18/dotclaude/deploy-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaude

Made for: Claude Code.

Or install deploy, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deploy-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/deploy-setup/github.svg)](https://agentmods.dev/commands/khaledsaeed18/dotclaude/deploy-setup)
Your own site
<a href="https://agentmods.dev/commands/khaledsaeed18/dotclaude/deploy-setup"><img src="https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/deploy-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deploy-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/khaledsaeed18/dotclaude/deploy-setup"><img src="https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/deploy-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00824
Opus 5.5 $0.00018 $0.00330
Sonnet 5.5 $0.00009 $0.00165
Haiku 4.5 $0.00004 $0.00082

Measured 11d ago against content hash 0645b394f473, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deploy-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-plugin/plugins/deploy/commands/deploy-setup.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

Request: $ARGUMENTS

Repository:

!git branch --show-current 2>/dev/null; git status --short 2>/dev/null | head -5; cat package.json 2>/dev/null | head -40

Existing deployment files:

!ls Dockerfile .dockerignore healthcheck.js shutdown.cjs docker-entrypoint.sh .nvmrc .github/workflows 2>/dev/null; grep -n "output\|rewrites" next.config.* 2>/dev/null; ls prisma 2>/dev/null

Task

Take the repository from code to automatic deploys through GHCR and Coolify, in phases. Each phase ends with a short status; stop for the owner only where a secret, a Coolify resource or a merge is needed.

Phase 0: Branch and detect

Create ci/coolify-pipeline from the default branch. Detect the stack: a next dependency means Next.js; express with prisma means the API. If both or neither, ask. Pin packageManager in package.json and the Node major in .nvmrc if missing; run the install with --frozen-lockfile to prove the lockfile still matches.

Phase 1: Package the image

Apply the nextjs-coolify-image skill or the express-prisma-coolify-image skill: Dockerfile, ignore allowlist, probe, shutdown or entrypoint, health route, config changes. Build locally with the production inputs, build the image, and run the smoke checks the skill lists. Do not continue until they pass locally.

Phase 2: Pipeline

Apply the ghcr-coolify-pipeline skill: write .github/workflows/pipeline.yml from the matching template, keep every existing quality gate, delete the old CI workflow, adapt the change classifier, run actionlint. Set the repository variables you own (SITE_URL, the API origin, COOLIFY_URL, COOLIFY_APP_UUID once known).

Phase 3: Documentation

Write docs/engineering/DEPLOYMENT.md (or the repository's equivalent place): where it runs, the pipeline table, build-time versus runtime inputs, the health probe, the Coolify settings, rollback, the rollover check command, the local image check. Add a pointer from the repository's agent instructions file.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 56 lines · 44 tokens per session scan A 0645b394f473

Subscribe to this mod's changes

deploy-setup is a command published in the GitHub repository KhaledSaeed18/dotclaude (5 stars, last pushed 2d ago), licensed MIT. It adds 44 tokens to every session and 824 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.