validating-production-readiness
Single source of truth for the lenne.tech fullstack production-readiness checklist. Defines the eight pillars (configuration & secrets, observability & logging, health & lifecycle, security hardening, data durability, resilience under load, deployment hygiene, runbook & rollback) with concrete file/line evidence requirements per pillar, severity classification (Critical / Major / Minor), and a canonical machine-parseable report block. Activates whenever an agent or command needs to gate a release on production-readiness — currently used by /lt-dev:production-ready, lt-dev:production-readiness-orchestrator, and the devops-reviewer (read-only). NOT for OWASP-style code-level security review (use security-reviewer). NOT for npm dependency audits (use maintaining-npm-packages).
What this skill does
# Validating Production Readiness This skill is the **single source of truth** for the production-readiness gate in the lt-stack. Every consumer applies the same eight pillars, the same severity classification, and produces the same report block — so multiple runs across time can be compared. > **Goal:** Decide, with evidence, whether the system is safe to deploy to production. Anything Critical is a hard blocker. Anything Major must be tracked. Minor findings are advisory. ## When to Use This Skill | Caller | Phase | Trigger | |--------|-------|---------| | `/lt-dev:production-ready` | Phase 4 | Hard release gate | | `lt-dev:production-readiness-orchestrator` | Phase 4 | Owns the audit + remediation loop | | `lt-dev:devops-reviewer` | (cross-reference) | Cites this checklist when flagging deployment-relevant gaps | | Manual user invocation | Pre-deploy | Final sign-off before tagging a release | ## Severity Classification | Severity | Meaning | Effect on the release | |----------|---------|------------------------| | **Critical** | Loss of data, security breach, or undetectable downtime is plausible | **BLOCK** the release until fixed | | **Major** | Operability is degraded; recovery requires manual intervention | Tracked finding; release may proceed only with explicit owner sign-off | | **Minor** | Cosmetic, missing nice-to-have, or hygienic gap with no operational impact | Advisory only | A pillar with even a single Critical finding makes the whole release **NOT READY**. ## The Eight Pillars Each pillar lists the concrete checks to perform, the file paths to inspect, and the typical fix when the check fails. ### Pillar 1 — Configuration & Secrets | Check | How | Severity if missing | |-------|-----|----------------------| | Env validation at boot | `projects/api/src/config.env.ts` (or equivalent) parses with class-validator / Valibot and crashes on missing required keys | Critical | | `.env*` excluded from VCS | `.gitignore` covers `.env`, `.env.*`, **except** `.env.example` | Critical | | `.env.example` exists & is current | All keys read by code are present with placeholder values | Major | | Secrets are runtime-injected (not baked) | Production Dockerfile does NOT `COPY .env`; secrets come from CI vault | Critical | | `NODE_ENV` taxonomy respected | `e2e` (local tests), `ci` (pipeline tests), `develop` (dev server), `test` (customer staging — NOT a test env), `production` (live) | Major | | Per-env DB URI / database name | `nsc.mongoose.uri` ends with the env-specific DB (no shared "test" DB across envs) | Critical | | Default-credentials guard | Production refuses to boot with `password === 'admin'` / `JWT_SECRET === 'change-me'` etc | Critical | ### Pillar 2 — Observability & Logging | Check | How | Severity if missing | |-------|-----|----------------------| | Structured logs (JSON) in production | `pino-http` or NestJS Logger configured with JSON transport when `NODE_ENV=production` | Major | | No `console.log` in shipped server code | `grep -nR "console\.log" projects/api/src` returns 0 (`console.error` for boot failures is acceptable) | Major | | Request ID / correlation ID | Middleware emits and propagates `x-request-id` to outgoing calls | Major | | Error tracking wired up | Sentry (or equivalent) initialised on both API and App when DSN is set | Major | | Metrics endpoint or APM | `/metrics` (Prometheus) OR APM agent (NewRelic/Datadog) instrumented | Minor | | Frontend error boundary | Nuxt `error.vue` renders a useful message and reports to Sentry | Major | | Log levels controlled by env | `LOG_LEVEL` env var read; defaults to `info` in prod, `debug` in dev | Minor | ### Pillar 3 — Health & Lifecycle | Check | How | Severity if missing | |-------|-----|----------------------| | Liveness endpoint | `GET /health` (or `/meta`) returns 200 without DB dependency, suitable for k8s liveness probe | Critical | | Readiness endpoint | `GET /ready` performs DB ping; returns 503 when DB is unreachable | Major | | Graceful shutdown | NestJS `app.enableShutdownHooks()` enabled; in-flight requests drain before process exit | Critical | | Frontend SSR health | `GET /` returns 200 in SSR with mocked-or-real backend; no unhandled rejections in server log | Major | | Docker `HEALTHCHECK` declared | Production Dockerfile includes `HEALTHCHECK` instruction calling `/health` | Major | | Process isolation | Container runs as non-root user (`USER node` or similar) | Major | ### Pillar 4 — Security Hardening | Check | How | Severity if missing | |-------|-----|----------------------| | Helmet (or equivalent) on API | `app.use(helmet())` for REST mode; CSP set explicitly | Major | | CORS allowlist | `cors.origin` is an explicit list, NOT `*` in production | Critical | | HTTPS enforced | Reverse proxy / Nuxt config redirects http → https in production | Critical | | Cookies secure | Better-Auth cookies have `secure: true`, `httpOnly: true`, `sameSite: 'lax'` (or stricter) in production | Critical | | Rate limiting on auth | `@nestjs/throttler` (or equivalent) on `/auth/*`, `/forgot-password`, etc | Major | | Restricted decorators on every controller | `@Restricted` / `@Roles` / `securityCheck()` present per backend-dev guidelines | Critical | | `pnpm audit` clean (or audit ladder exhausted) | Per `running-check-script` skill rules | Major | | No secrets in client bundle | `grep -nR "JWT_SECRET\|MONGO_URI\|API_KEY" projects/app/.output/` returns 0 after build | Critical | ### Pillar 5 — Data Durability | Check | How | Severity if missing | |-------|-----|----------------------| | Indexes for hot queries | All queries seen in load-test profiler (Pillar 6 / k6 phase) hit an index | Major | | Migrations / seed scripts deterministic | `pnpm run migrate` is idempotent; replaying it on production data does not corrupt | Critical | | Backup strategy documented | `README.md` or `docs/runbook.md` describes backup cadence + restore drill | Major | | No destructive migrations on boot | Server does NOT run `dropDatabase` / `dropCollection` on startup in production | Critical | | Soft-delete or audit trail where data loss matters | Models flagged as critical have `deletedAt` / version trail | Minor | | Connection retry / backoff | Mongoose connect uses exponential backoff, not infinite tight loop | Major | ### Pillar 6 — Resilience Under Load The k6 results from the `running-load-tests-with-k6` skill feed directly into this pillar. Don't re-run k6 here — read the report block. | Check | How | Severity if missing | |-------|-----|----------------------| | k6 load scenario PASSED | `tests/load/summary-load.json` thresholds all PASS | Critical | | k6 baseline regression < 15% | p95 delta vs `tests/load/baselines/` within bounds | Major | | No memory leak in soak (when run) | `summary-soak.json` shows flat memory at end | Major | | Connection pool not exhausted | Mongoose log shows < 80% of `maxPoolSize` at peak | Major | | Timeouts everywhere | All HTTP / DB calls have explicit timeouts (no infinite waits) | Major | | Idempotency keys on critical writes | Payment / email / external write endpoints have idempotency-key handling | Major | ### Pillar 7 — Deployment Hygiene | Check | How | Severity if missing | |-------|-----|----------------------| | Dockerfile multi-stage | Builder + runtime stages; runtime image contains only built artefacts + prod deps | Major | | Image base pinned | `FROM node:22.11.0-alpine` (concrete version), not `node:latest` | Major | | `.dockerignore` complete | `.git`, `node_modules`, `tests/`, `.env*` excluded | Major | | CI builds from main with tag | Tag-triggered pipeline builds the production image; never `latest`-only | Major | | Build is reproducible | Lockfiles (`pnpm-lock.yaml`) committed; CI uses `--frozen-lockfile` | Major | | Image scan in CI | `trivy` / `grype` / GitLab container scan stage exists | Major | | Image size reasonable | Final image < 500 MB (alpine) / < 1 GB (debian-slim) | Minor | ### Pillar 8 — Run
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.