Package update check and plan

From Dirtytrii/codex-skills · View interactive version

Package update check and plan is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. Read-only workflow for discovering uploaded deployment artifacts, comparing them with current deployment state, and preparing a safe update and rollback plan.

How to use this skill

Skill file

Package Update Check and Plan

Purpose

Identify whether new deployment artifacts exist, compare them with the currently deployed components, and produce a safe update plan with backup, verification, and rollback steps. The default workflow stops before any deployment or file modification.

When to use

Safety rules

Read-only workflow

  1. Clarify the deployment target and artifact source location using placeholders if preparing a public report.
  2. List candidate artifacts in the upload/staging area by type, size, and timestamp. Do not unpack them.
  3. Identify currently deployed components: backend artifact, frontend bundle, service unit, reverse proxy config, config directory, data directory, and logs directory.
  4. Compare current vs candidate metadata: size, timestamp, version string if available, checksum if safe to compute, and component mapping.
  5. Check current service and port state without changing anything.
  6. Check whether the target machine differs from the current machine. If remote deployment is involved, plan source and target verification separately.
  7. Identify configuration compatibility risks: port changes, required environment variables, database migration expectations, reverse proxy upstreams, static asset layout, file ownership needs.
  8. Draft an update sequence with explicit approval gates: backup, artifact verification, frontend update, backend update, service restart, health checks, rollback.
  9. Draft rollback criteria and rollback steps, but do not execute them.

Evidence to collect

Stop conditions

Optional user-approved actions

Only after explicit user approval:

Final report format

Summary: <whether update appears possible>
Project: <PROJECT_NAME>
Candidate artifacts:
- <ARTIFACT_NAME>: <type/size/timestamp/checksum status>
Current deployment:
- Backend: <summary>
- Frontend: <summary>
- Service: <summary>
- Proxy: <summary>
Compatibility risks: <bullets>
Proposed update plan: <numbered approval-gated steps>
Rollback plan: <numbered approval-gated steps>
Read-only conclusion: <ready / blocked / needs more info>
Needs approval: <specific actions>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.