agentleFS
evolplusevolplus/talos/skills/staging-deployment/SKILL.md

staging-deployment

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

Deploy and verify software in a staging or testing environment. Use when DevOps must promote a build beyond local deployment, run staging smoke checks, coordinate SSH/Docker/Kubernetes staging rollout, preserve rollback evidence, and produce a deploy report without exposing environment credentials or secrets.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when a DevOps task targets staging, testing, UAT, pre-prod, or any shared non-local environment.

    line 14
  2. Very specific:

    Confirm target and approval: Verify the task explicitly names the staging environment and version/build to deploy.

    line 23
  3. Very specific:

    Select execution path: Use ssh-remote-operations, docker-deployment, or kubernetes-deployment depending on the target.

    line 25
  4. Distinctive:

    Run staging smoke checks: Verify health endpoints, required background workers, migrations, critical user flows, and external dependency …

    line 28
  5. Distinctive:

    Never deploy to staging without an explicit target environment and build/version.

    line 34
  6. Distinctive:

    Never bypass release-readiness, rollback-readiness, migration-safety, secrets-config-audit, or observability-readiness gates when they …

    line 35
  7. Very specific:

    Never read or print environment secrets, SSH config contents, kubeconfigs, .env* values, registry tokens, or cloud credentials.

    line 36
  8. Distinctive:

    Never mark staging deployment successful until smoke checks pass against the deployed environment.

    line 37
  9. Distinctive:

    Never proceed to production from this skill.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Staging Deployment

When to use

Use this skill when a DevOps task targets staging, testing, UAT, pre-prod, or any shared non-local environment. Local QA deploys still use local-deployment; this skill governs promotion into an environment other people depend on.

Inputs and outputs

  • Inputs: task ID, target environment, approved build/image/version, deployment mechanism, release-readiness evidence, rollback plan, environment config contract, and access method.
  • Outputs: staging deploy report, smoke-test evidence, target URLs, rollout/rollback command references, and follow-up issues for failed gates.

Procedure

  1. Confirm target and approval. Verify the task explicitly names the staging environment and version/build to deploy. If the target is ambiguous, halt with NEEDS_CONTEXT.
  2. Run release gates first. Consult release-readiness; do not deploy if release readiness, migration safety, rollback readiness, secrets/config audit, or observability readiness is incomplete.
  3. Select execution path. Use ssh-remote-operations, docker-deployment, or kubernetes-deployment depending on the target. Reference credential files only as command inputs.
  4. Freeze the deploy input. Record commit SHA, image tag/digest, migration version, config version, and artifact checksum where available. Do not deploy mutable latest unless the task has an approved exception.
  5. Deploy in a bounded scope. Touch only the named environment, namespace, host alias, compose project, or service set. Avoid broad cluster/host operations.
  6. Run staging smoke checks. Verify health endpoints, required background workers, migrations, critical user flows, and external dependency connectivity using non-production fixtures.
  7. Capture rollback evidence. Record previous version, rollback command, rollback owner, expected data constraints, and whether rollback was tested or only prepared.
  8. Write the deploy report. Include environment, version, deploy mechanism, validation results, smoke checks, URLs, known limitations, and redacted config status.

Hard rules

  • Never deploy to staging without an explicit target environment and build/version.
  • Never bypass release-readiness, rollback-readiness, migration-safety, secrets-config-audit, or observability-readiness gates when they apply.
  • Never read or print environment secrets, SSH config contents, kubeconfigs, .env* values, registry tokens, or cloud credentials.
  • Never mark staging deployment successful until smoke checks pass against the deployed environment.
  • Never proceed to production from this skill; production promotion requires a separate approved task/change record.

References

  • ../release-readiness/SKILL.md - pre-deploy gate checklist.
  • ../rollback-readiness/SKILL.md - rollback gate.
  • ../migration-safety/SKILL.md - migration gate.
  • ../secrets-config-audit/SKILL.md - secret/config handling.
  • ../observability-readiness/SKILL.md - monitoring/alerting readiness.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.