AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Drupal Update

skill-trebormc-drupal-ai-agents-drupal-update · by trebormc

>-

No reviews yet
0 installs
33 views
0.0% view→install

Install

$ agentstack add skill-trebormc-drupal-ai-agents-drupal-update

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-trebormc-drupal-ai-agents-drupal-update)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Drupal Update? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Drupal Update Workflow

Execute updates following this EXACT sequence.

Phase 1: Pre-flight Checks

# Verify DDEV and Drupal version
ssh web drush status --field=drupal-version

# Check for uncommitted changes (STOP if dirty)
git status --porcelain

# Check available updates
ssh web composer outdated --direct --format=json

# Check for pending database updates (should be clean)
ssh web drush updatedb:status

STOP if: Git working directory is dirty, DDEV not responding, or pending DB updates exist.

Phase 2: Backup

ssh web drush sql:dump --result-file=/tmp/pre-update-backup.sql --gzip
git rev-parse HEAD  # Note for rollback

# VERIFY the backup before continuing (file exists and is non-empty):
ssh web test -s /tmp/pre-update-backup.sql.gz && echo "BACKUP OK" || echo "STOP: backup failed"

If the output is not "BACKUP OK": STOP. Tell the user the backup failed. Do NOT continue the update.

Phase 3: Composer Updates

Pick ONE variant:

# Update everything — routine maintenance window, full regression test planned
ssh web composer update --with-all-dependencies

# Core only — when you only want the Drupal core release (safest scope)
ssh web composer update "drupal/core-*" --with-all-dependencies

# Specific package — targeted fix or single contrib update
ssh web composer update drupal/package_name --with-all-dependencies

# Security only — when the goal is just to patch advisories
ssh web composer audit
ssh web composer update --with-all-dependencies $(ssh web composer audit --format=json | jq -r '.advisories | keys | .[]')

Phase 4: Database Updates

ssh web drush updatedb -y
ssh web drush cache:rebuild

Phase 5: Configuration Sync

ssh web drush config:status
ssh web drush config:export -y

Phase 6: Verification

ssh web drush core:status
ssh web drush watchdog:show --severity=error --count=10
ssh web drush core:requirements

# Run custom module tests if any exist (Form ROOT shown; if no project phpunit.xml,
# use the canonical Form CORE pattern from the drupal-testing skill):
ssh web ./vendor/bin/phpunit $DDEV_DOCROOT/modules/custom --testdox 2>/dev/null || echo "No tests"

Phase 7: Present Summary

DO NOT commit automatically. Present changes for user review with:

  • List of updated packages (from → to)
  • Database updates executed
  • Config changes exported
  • Suggested commit message

Rollback Procedure

Git restore commands must be run BY THE USER (agents cannot run git checkout — see git-workflow rule). Give the user step 1, then run steps 2-4 yourself:

# 1. ASK THE USER to run on the host:
#    git checkout composer.json composer.lock config/sync/

# 2. Restore composer packages
ssh web composer install

# 3. Restore database (if needed)
ssh web bash -c 'gunzip -c /tmp/pre-update-backup.sql.gz | drush sql:cli'

# 4. Clear caches
ssh web drush cache:rebuild

Error Handling

Composer Conflicts

# Find what blocks the update:
ssh web composer why-not drupal/package_name:^X.Y

Then either update the blocking package FIRST (ssh web composer update --with-all-dependencies) or report the conflict to the user. NEVER use --ignore-platform-reqs or --force as a workaround.

Database Update Failures

Run the Rollback Procedure above (restore DB from the verified backup, then have the user reset composer files).

Command Reference

| Task | Command | |------|---------| | Check outdated | ssh web composer outdated --direct | | Security audit | ssh web composer audit | | Update all | ssh web composer update --with-all-dependencies | | Update core | ssh web composer update "drupal/core-*" --with-all-dependencies | | Backup DB | ssh web drush sql:dump --result-file=/tmp/backup.sql --gzip | | Check requirements | ssh web drush core:requirements |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.