truestack-deploy-and-runtime

truestack-deploy-and-runtime is a skill for Claude Code from adtn0810/truestack. It costs 231 tokens per session (2,184 once invoked), scanned D, original, MIT.

A guide for packaging, deploying, and running a self-hosted application on one virtual private server, or VPS. It covers the application image, server startup, certificates, reboots, and deployments that keep serving requests.

In plain words
What is it for?
Use it when writing production Docker files or Docker Compose settings, reducing image contents, deploying releases, rotating certificates, or making sure the service restarts safely after a reboot.
Why use it?
It helps avoid dropped requests during releases and provides a quick rollback path if a deployment goes wrong. It is designed for a fixed single-server setup rather than automatic scaling across many servers.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions CLAUDE.md.

Part of the truestack plugin — 23 skills, 8 commands, 2 hooks shipped together

Good fit Use it when writing production Docker files or Docker Compose settings, reducing image contents, deploying releases, rotating certificates, or making sure the service restarts safely after a reboot.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adtn0810/truestack/truestack-deploy-and-runtime
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.

Any agent
npx skills add adtn0810/truestack --skill truestack-deploy-and-runtime
Clone the repo
git clone --depth 1 https://github.com/adtn0810/truestack

Made for: Claude Code.

Or install truestack, the plugin that ships this one along with the rest of its 23 skills, 8 commands, 2 hooks.

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 truestack-deploy-and-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/adtn0810/truestack/truestack-deploy-and-runtime/github.svg)](https://agentmods.dev/skills/adtn0810/truestack/truestack-deploy-and-runtime)
Your own site
<a href="https://agentmods.dev/skills/adtn0810/truestack/truestack-deploy-and-runtime"><img src="https://agentmods.dev/badge/skills/adtn0810/truestack/truestack-deploy-and-runtime/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 truestack-deploy-and-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/adtn0810/truestack/truestack-deploy-and-runtime"><img src="https://agentmods.dev/badge/skills/adtn0810/truestack/truestack-deploy-and-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 231 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00231 $0.02184
Opus 5 $0.00115 $0.01092
Sonnet 5 $0.00046 $0.00437
Haiku 4.5 $0.00023 $0.00218

Measured 10d ago against content hash 593405369af5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

truestack-deploy-and-runtime scanned grade D with 2 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 10d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Keep the real secret file **outside the repo, `chmod 600`, owned by the deploy user, `.gitignore`d**.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

destructive shell/MCP ops it classifies (`docker volume rm`, `rm -rf`, `git reset --hard`, a DB
skills/truestack-deploy-and-runtime/SKILL.md · 111 lines

How it starts

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

truestack-deploy-and-runtime

Get the app onto one box and keep it serving through every deploy, cert rotation, and reboot. One server, fixed resources, no autoscale — so "low-downtime" is a connection-draining reload, never a restart, and every change has a sub-second rollback ready before it ships. Stability over cleverness; a deploy that can't roll back isn't done.

Read project memory first — CLAUDE.md is auto-loaded (Principles + Boundaries); consult .ai/memory/ for the deploy commands, ports, domains, and ops decisions already recorded. If none exists, run truestack-project-memory. A deploy, image, or cert change is high-risk and irreversible-shaped — route the plan through truestack-architecture-planning's approval gate before touching the live box, and know the enforced PreToolUse gate in hooks/ asks before the destructive shell/MCP ops it classifies (docker volume rm, rm -rf, git reset --hard, a DB migration) until a human approves.

Where this skill sits: the app/server logic is truestack-backend-development; this skill packages and runs that app on the box. The CI workflow that triggers this deploy is truestack-ci-and-delivery; the migration DDL it runs is truestack-database-migrations; the app's instrumentation/SLO signal is truestack-observability (this skill owns the container/compose healthcheck and the cutover readiness gate).

1. Make SIGTERM reach the app, then handle it

The #1 silent failure: shell-form CMD node server.js makes /bin/sh PID 1, which swallows SIGTERM — Docker waits the full grace period then SIGKILLs mid-request. Fixes:

  • Exec form CMD ["node","server.js"] (or init: true / tini if you need an entrypoint wrapper) so the app is PID 1 and actually receives the signal.
  • Trap SIGTERM and drain in order: (1) flip readiness to failing so the proxy stops routing, (2) server.close() to finish in-flight requests, (3) close DB pools, (4) hard-exit on a bounded timeout.
  • Set stop_grace_period LONGER than that timeout — the 10s default is almost always too short and truncates a clean drain into a kill.

Read the full file on GitHub · 111 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. 10d ago First seen · 111 lines · 231 tokens per session scan D 593405369af5

Subscribe to this mod's changes

truestack-deploy-and-runtime is a skill published in the GitHub repository adtn0810/truestack (2 stars, last pushed 2mo ago), licensed MIT. It adds 231 tokens to every session and 2,184 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories