agentleFS
harnessharness/harness-skills/skills/observability-governance/deployment-readiness/SKILL.md

deployment-readiness

Skill127 starsChanged 31 days agoApache-2.0View on GitHub

Assess deployment readiness via Harness MCP. Run pre-deployment readiness checks with go/no-go recommendations, analyze environment drift between source and target environments, and provide data-driven canary rollout decisions. Use when asked to check if a service is ready to deploy, compare environments before deployment, or decide whether to promote a canary. Do NOT use for running pipelines (use run-pipeline instead) or debugging failures (use debug-pipeline instead). Trigger phrases: deployment readiness, ready to deploy, pre-deploy check, environment drift, canary decision, promote canary, rollback canary, go no-go, deployment checklist, production readiness, canary analysis.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All required stages passed (build, test, security scan)

    line 66
  2. Distinctive:

    All referenced connectors, secrets, and infrastructure are accessible

    line 69
  3. Distinctive:

    No active incidents on the target cluster

    line 79
  4. Distinctive:

    No critical or high CVEs above threshold

    line 83
  5. Distinctive:

    Check for drift in:

    line 105
  6. Distinctive:

    Verify connectors and secrets are accessible from the readiness check runner

    line 163
  7. Distinctive:

    Check that security scan results are available for the specific image tag being deployed

    line 164
  8. Distinctive:

    Ensure environment freeze status is up to date

    line 165
  9. Distinctive:

    Use environment overrides in Harness to manage expected per-environment configuration

    line 170
  10. Distinctive:

    Check that metric collection is working correctly for the canary pods

    line 175

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Deployment Readiness

Assess deployment readiness, analyze environment drift, and make data-driven canary rollout decisions using Harness MCP.

Instructions

Step 1: Establish Scope

Confirm the service, target environment, and deployment type.

Call MCP tool: harness_list
Parameters:
  resource_type: "service"
  org_id: "<organization>"
  project_id: "<project>"

Step 2: Identify the Readiness Task

Determine which assessment the user needs:

  1. Deployment Readiness Check -- Comprehensive pre-deploy validation with go/no-go
  2. Environment Drift Analysis -- Differences between source and target environments
  3. Canary Rollout Decision -- Data-driven promote, pause, or rollback recommendation

Step 3: Run Deployment Readiness Check

Gather from the user:

  • Service name and target environment
  • Deployment type (rolling, blue-green, canary)
  • Change summary (what is being deployed)

Execute readiness checks:

Pipeline Health:

Call MCP tool: harness_list
Parameters:
  resource_type: "execution"
  org_id: "<organization>"
  project_id: "<project>"
  pipeline_id: "<pipeline_identifier>"
  • Last N pipeline executions: pass rate and failure patterns
  • All required stages passed (build, test, security scan)

Dependency Verification:

  • All referenced connectors, secrets, and infrastructure are accessible
  • Required approvals are configured for the target environment

Artifact Readiness:

  • Container image exists and has passed security scanning
  • SBOM is generated and signed (if required)
  • Image tag matches the expected version

Environment Health:

  • Target environment is not frozen or in maintenance
  • No active incidents on the target cluster
  • Resource capacity is sufficient for the deployment

Security Gates:

  • No critical or high CVEs above threshold
  • OPA policies pass for the target environment
  • Required compliance attestations are present

Present a structured report with PASS/FAIL/WARNING for each check and a final GO/NO-GO recommendation.

Step 4: Analyze Environment Drift

Gather from the user:

  • Service name, source environment, and target environment

Compare environments using harness_get for each:

Call MCP tool: harness_get
Parameters:
  resource_type: "environment"
  resource_id: "<source_env>"
  org_id: "<organization>"
  project_id: "<project>"

Check for drift in:

  • Configuration: Environment variables, feature flags, config maps
  • Infrastructure: Resource limits, replica counts, node pools
  • Secrets: Secret versions and rotation status
  • Manifests: Kubernetes manifest differences
  • Dependencies: External service versions and endpoints

Classify each difference by risk:

  • CRITICAL: Could cause outage (missing secrets, wrong endpoints)
  • WARNING: May cause behavioral differences (different resource limits)
  • INFO: Cosmetic or expected differences (environment-specific values)

Step 5: Canary Rollout Decision

Gather from the user:

  • Service name, canary traffic percentage, and duration
  • Canary version vs. baseline version
  • Key metrics to evaluate (error rate, latency, throughput)

Analyze canary health:

Call MCP tool: harness_list
Parameters:
  resource_type: "execution"
  org_id: "<organization>"
  project_id: "<project>"

Evaluate:

  • Error rate: Canary vs. baseline (threshold: no more than 1.1x baseline)
  • Latency: P50, P95, P99 comparison
  • Throughput: Requests handled without errors
  • Resource usage: CPU and memory vs. baseline
  • Business metrics: Conversion rate, transaction success rate

Provide a recommendation:

  • PROMOTE -- All metrics within thresholds, recommend increasing traffic or full rollout
  • HOLD -- Some metrics borderline, recommend extending observation window
  • ROLLBACK -- Metrics degraded beyond thresholds, recommend immediate rollback

Examples

  • "Is our payment-service ready to deploy to production?" -- Run full readiness check with go/no-go recommendation
  • "Compare staging and production environments before deploying" -- Analyze configuration, infrastructure, and secret drift
  • "Should we promote the canary or roll back?" -- Evaluate canary metrics and recommend promote/hold/rollback
  • "Run a pre-deploy checklist for the checkout service" -- Validate pipeline health, artifacts, security gates, and environment

Performance Notes

  • Readiness checks should run against the actual target environment, not a cached state -- environments change between checks.
  • Environment drift analysis is most valuable right before deployment -- running it hours early may miss recent changes.
  • Canary decisions need sufficient traffic volume to be statistically meaningful -- low-traffic services may need longer observation windows.
  • Include business metrics in canary analysis when available -- technical metrics alone may miss user-facing issues.

Troubleshooting

Readiness Check Returns False Negatives

  • Verify connectors and secrets are accessible from the readiness check runner
  • Check that security scan results are available for the specific image tag being deployed
  • Ensure environment freeze status is up to date

Drift Analysis Shows Too Many Differences

  • Filter out expected differences (environment-specific variables like URLs, credentials)
  • Focus on infrastructure and manifest drift first -- these are most likely to cause issues
  • Use environment overrides in Harness to manage expected per-environment configuration

Canary Metrics Inconclusive

  • Increase traffic percentage to get more data points
  • Extend the observation window to capture more traffic patterns
  • Check that metric collection is working correctly for the canary pods

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.