deploy

A deployment command that checks a project before releasing it. It validates TypeScript compilation, tests, security, git status, and the production build, then can run the project's deployment script after confirmation.

In plain words
What is it for?
Use it to validate a release, perform a dry run, deploy after the checks pass, or create a rollback checkpoint and review the deployed version details.
Why use it?
It catches common release problems before deployment and blocks the release when a required check fails, with guidance on what needs fixing.

Command

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.

agentmods
npx agentmods add commands/nxtg-ai/forge-plugin/deploy
Clone the repo
git clone --depth 1 https://github.com/nxtg-ai/forge-plugin
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,202 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01202
Opus 5 $0.00000 $0.00601
Sonnet 5 $0.00000 $0.00240
Haiku 4.5 $0.00000 $0.00120

Measured yesterday against content hash 313535e9fda3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy 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 yesterday.

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.

docs/commands/deploy.md · 136 lines

How it starts

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

/forge:deploy

Deploy with comprehensive pre-flight validation -- type checking, tests, security audit, build verification, and git cleanliness -- before executing the deployment.

Level L1 Vibe Coder
Category Quality & Testing
Syntax /forge:deploy [--validate-only] [--dry-run] [--skip-tests]

What It Does

/forge:deploy is the safety-first deployment command. Before any deployment action occurs, it runs a five-point pre-flight validation: TypeScript compilation, full test suite, security audit, git cleanliness check, and production build. Each check produces a PASS or FAIL result, and the overall verdict is READY or NOT READY. If any check fails, deployment is blocked with specific guidance on what to fix.

When all checks pass and you confirm, the command creates a pre-deployment checkpoint (so you can roll back), executes the build, and runs your project's deploy script. If no deploy script exists in package.json, it suggests common deployment targets: Vercel, Netlify, Docker, or custom SCP. After deployment, it shows the version, commit hash, branch, and checkpoint ID for rollback.

Without this command, deployment is a manual checklist: run tests, check types, audit dependencies, verify git is clean, build, deploy, hope nothing was missed. /forge:deploy enforces the checklist programmatically and creates an automatic rollback point.

Syntax & Options

/forge:deploy [--validate-only] [--dry-run] [--skip-tests]
Option Description
--validate-only Run all pre-deployment checks without deploying. Useful as a CI gate.
--dry-run Show what would happen at each step without executing any actions
--skip-tests Skip the test suite execution (not recommended; the command warns you)

When to Use It

  • Before any production deployment: Run the full pipeline to catch issues before they reach users.
  • As a CI validation gate: Use --validate-only to run all checks without deploying, suitable for pull request checks.
  • After a sprint of changes: When you have accumulated multiple commits and want to deploy with confidence.

Read the full file on GitHub · 136 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. yesterday First seen · 136 lines · 0 tokens per session scan A 313535e9fda3

Subscribe to this mod's changes

deploy is a command published in the GitHub repository nxtg-ai/forge-plugin (5 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,202 tokens. 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-08-31.