Install
$ agentstack add skill-siva01c-claude-plugins-deploy-workflow ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Deploy Workflow
Deployment of a Drupal site has a fixed order of operations. Skipping a step or reordering it produces failures that only surface at runtime. This skill enforces the sequence and its preconditions.
When this activates
- Deploying a Drupal codebase to staging or production
- Running a release on a multisite platform
- Applying core or contrib updates on a server
- The user asks to push changes live or update an environment
Phase 0 — Pre-flight (before touching the target)
- Confirm the target: which environment, which drush alias or SSH host. Never assume production.
- Verify the working tree being deployed is clean and on the intended tag/branch.
- Check config status on the target:
drush config:status. Unexpected overrides on the target mean someone changed config in the UI — resolve before deploying, or the import will silently destroy their changes. - Maintenance window: for schema-changing releases, ask whether maintenance mode is required (
drush state:set system.maintenance_mode 1).
Exit condition: target confirmed by the user, config status reviewed.
Phase 1 — Backup
drush @TARGET sql:dump --result-file=auto --gzip
Also snapshot the current codebase reference (deployed tag/commit) so rollback is a known state, not a guess.
Exit condition: a restorable database dump exists and its location is recorded.
Phase 2 — Deploy sequence
The canonical order:
git fetch && git checkout TAG # or the platform's deploy mechanism
composer install --no-dev --optimize-autoloader
drush deploy # = updb + cim + cr + deploy:hook (Drush 10.3+)
If drush deploy is not available or the project needs explicit control:
drush updb -y # database updates first — update hooks may rely on old config
drush cim -y # import configuration
drush cr # rebuild caches
drush deploy:hook -y # post-deploy hooks, if used
Notes:
- If an update hook depends on new config being present, that is a design smell — prefer
hook_post_updateorhook_deploy_NAME(); do not hand-reorder cim before updb as a workaround without understanding why. - Multisite: run the update sequence per site:
drush -l SITE updb -y && drush -l SITE cim -y && drush -l SITE crfor every site sharing the codebase. A release is not done until every site has been updated.
Exit condition: every command exited 0. A non-zero exit stops the workflow — do not continue past a failed updb or cim.
Phase 3 — Verify
drush config:status— must report no differences.drush core:requirements --severity=2— no new errors.drush watchdog:show --severity=Error --count=20— no new runtime errors.- Load the front page and one or two critical paths (login, key form) — HTTP 200 and visually sane.
- Disable maintenance mode if it was enabled.
Exit condition: all checks pass. If any fails, go to Phase 4 instead of debugging live under pressure — unless the fix is obvious and low-risk.
Phase 4 — Rollback (only when verification fails)
- Restore the codebase to the previous tag/commit.
- Restore the Phase 1 database dump.
drush cr, re-verify, and communicate the failed release.
Hard rules
- No deployment without a Phase 1 backup. No exceptions, including "small" releases.
- Never run
drush sql:drop,sql:synctoward production, or destructive commands against the production alias as part of a deploy. - Never mark a multisite release complete while any site is un-updated.
- If the DDEV-based local flow is what the user needs (local update, not a server deploy), prefer the
drupal-ddev-operationsskill (ddev-tools plugin) when available.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: siva01c
- Source: siva01c/claude-plugins
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.