agentleFS
pvnarppvnarp/agent-skills/skills/deploy/SKILL.md

deploy

Skill1 starsChanged 9 months agoMITView on GitHub

Guides deployment processes including pre-deploy checks, deployment strategies, rollback procedures, and post-deploy verification. Use when deploying to staging or production, setting up deployment pipelines, or troubleshooting deployment issues.

100 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use azure-kusto-graph, azure-kusto-irql and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    azure-kusto-graph

    Build and query Kusto graphs from natural language. Covers transient graphs (make-graph), persistent graph models/snapshots, pattern matching (graph-match), shortest paths, connected components, and graph-to-table export. Generates the edges-first thinking: define edges, define node lookups, union, make-graph. WHEN: make-graph, graph-match, graph-shortest-paths, graph-to-table, graph-mark-components, persistent graph, graph model, graph snapshot, build a graph from data, find paths between nodes, pattern matching in graph, connected components, transient graph, Kusto graph, KQL graph.

    Also in 3 projects that use this

  • MicrosoftSkill

    azure-kusto-irql

    Compose IRQL (Incident Response Query Language) queries for Kusto cybersecurity investigations. Translates natural language hunting questions into composable IRQL pipelines using Get_*, Extract_*, and Enrich_* functions. WHEN: IRQL query, security hunt, threat hunting KQL, incident response query, compose hunting pipeline, failed logins, phishing investigation, lateral movement, process execution, file creation events.

    Also in 3 projects that use this

  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 3 projects that use this

  • +8 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 85 edited versions we read keep these.

  • 7

    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:

    Con: Must handle two versions running at once (API compatibility, DB schema)

    line 24
  2. Distinctive:

    Run two identical environments.

    line 28
  3. Distinctive:

    Stop old version, start new version.

    line 40
  4. Distinctive:

    Pro: No version compatibility issues, simple

    line 41
  5. Distinctive:

    If database migrations were applied: run the down migration FIRST, then rollback code

    line 80
  6. Distinctive:

    Verify service is healthy after rollback

    line 81
  7. Distinctive:

    If a migration can't be rolled back: mark this in the deploy plan and increase monitoring

    line 88

“Common” is measured: kept by at least 6 in 10 of the 85 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

Pre-Deploy Checklist

  • All tests pass on the branch being deployed
  • Code reviewed and approved
  • No known critical bugs in the diff
  • Database migrations tested (if any)
  • Environment variables / secrets configured for target environment
  • Monitoring and alerting in place
  • Rollback plan documented
  • Team notified of deployment

Deployment Strategies

Rolling Deploy

Replace instances one at a time. Old and new versions run simultaneously during rollout.

  • Pro: Zero downtime, simple
  • Con: Must handle two versions running at once (API compatibility, DB schema)
  • Use when: Changes are backward-compatible

Blue-Green Deploy

Run two identical environments. Switch traffic from blue (old) to green (new) all at once.

  • Pro: Instant rollback (switch back to blue), clean cut
  • Con: Requires double infrastructure during deploy
  • Use when: You need guaranteed instant rollback

Canary Deploy

Route a small percentage of traffic (1-5%) to the new version. Gradually increase if healthy.

  • Pro: Limits blast radius, real production validation
  • Con: More complex routing, must monitor per-version metrics
  • Use when: High-risk changes, large user base

Recreate

Stop old version, start new version. Simplest possible deploy.

  • Pro: No version compatibility issues, simple
  • Con: Downtime during switchover
  • Use when: Maintenance window is acceptable, internal tools

Deploy Steps

1. PREPARE
   - Build production artifact
   - Run smoke tests against artifact
   - Verify configuration for target environment

2. DEPLOY
   - Apply database migrations (if any, BEFORE new code)
   - Deploy new code using chosen strategy
   - Monitor for errors during rollout

3. VERIFY
   - Health check endpoints responding
   - Key user flows working (smoke test)
   - Error rate not elevated
   - Latency within normal range
   - No new error types in logs

4. CONFIRM or ROLLBACK
   - If healthy: mark deploy as successful
   - If unhealthy: execute rollback plan immediately

Rollback

When to Rollback

  • Error rate spikes above baseline
  • Health checks failing
  • Key user flows broken
  • Performance degradation beyond acceptable threshold

How to Rollback

  1. Deploy the previous known-good version (don't try to fix forward under pressure)
  2. If database migrations were applied: run the down migration FIRST, then rollback code
  3. Verify service is healthy after rollback
  4. Investigate root cause at leisure, not under incident pressure

Migrations and Rollback

  • Forward-compatible migrations: New columns nullable, old columns still present
  • Never drop columns in the same deploy as the code change
  • Backfill data in a separate step from schema change
  • If a migration can't be rolled back: mark this in the deploy plan and increase monitoring

Post-Deploy

  • Verify key flows working on production
  • Check error monitoring for new errors
  • Check performance metrics
  • Update deployment log / changelog
  • Close related tickets
  • Monitor for 15-30 min before moving on

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.