Index of every page on this site: llms.txt
All skills
grasmash avatar

/drupal-config-mgmt

@19514f4
Run it yourself

Guides Drupal configuration management safely - single-config export/set/delete, config:import and config:export (cim/cex) with preview-first --no --diff, config:status checks, Config Split (complete vs partial splits, csex/csim, activation), and syncing config from remote environments through Terminus, acli, platform/upsun, lagoon or drush aliases. Use when exporting or importing Drupal config, inspecting or changing a single config object, merging production config into a feature branch, working with config_split, or diagnosing config that will not import or vanishes from config/default on export.

Use this Skill: https://skilld.dev/gh/grasmash/drupal-claude-skills/drupal-config-mgmt

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesconfig-splits.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Config Splits: Overview and Complete vs Partial

What config splits are for and how to choose between Complete and Partial splits, moved from SKILL.md.

Config Splits Overview

Config splits allow you to have environment-specific configuration that doesn't get deployed to all environments.

Common Use Cases

  • Local development: Enable devel, kint, stage_file_proxy
  • Staging/Test: Enable similar modules but different API keys
  • Production: Disable development modules, enable caching

How Splits Work

  1. Base config (config/default/) - Shared across all environments
  2. Split config (config/{split-name}/) - Environment-specific overrides
  3. Split definition (config/default/config_split.config_split.{name}.yml) - Defines which config goes in split

When a split is active, its config takes precedence over base config.

Split Activation

Splits are activated based on conditions in their config:

  • Status: status: true in split config
  • Environment variable: Can use conditions based on env vars
  • Manual activation: Via admin UI or drush

Complete vs Partial Splits

CRITICAL: Understanding the difference between Complete and Partial splits is essential.

Complete Splits (Recommended for most cases)

How it works:

  • Config in the split is ONLY active when split is enabled
  • When split is disabled, config is completely removed from active config
  • Think: "This config exists ONLY in this environment"

Use cases:

  • Development modules (devel, kint, webprofiler)
  • Environment-specific modules (stage_file_proxy for local)
  • Testing modules (simpletest, phpunit)

Example: Local split with devel module

# config/default/config_split.config_split.local.yml
status: true
module:
  devel: 0
  kint: 0
complete_list:
  - 'core.extension'

When split is active: devel and kint are enabled When split is inactive: devel and kint are completely removed

Reference: See admin form at /admin/config/development/configuration/config-split/{split-name}:

"Complete Split: Remove the selected configuration entirely when the split is inactive. When this split is inactive, the configuration listed here will be removed from the system completely."

Partial Splits (Conditional Overrides)

How it works:

  • Base config exists in config/default/
  • Split contains overrides in config/{split-name}/
  • When split is active, overrides are merged with base config
  • When split is inactive, base config is used
  • Think: "This config exists everywhere, but with different values per environment"

Use cases:

  • API keys that differ per environment
  • Email settings (different SMTP per environment)
  • Cache settings (aggressive in prod, disabled in local)
  • Search server URLs (local Solr vs Pantheon Search)

Example: Different search servers per environment

Base config (config/default/search_api.server.main.yml):

backend_config:
  connector: pantheon_search
  # Production settings

Local override (config/local/config_split.patch.search_api.server.main.yml):

backend_config:
  connector: solr
  connector_config:
    host: solr
    # Local Solr settings

When local split is active: Uses local Solr When local split is inactive: Uses Pantheon Search

Reference: See admin form at /admin/config/development/configuration/config-split/{split-name}:

"Partial Split (Conditional Override): Keep the selected configuration, but override it when the split is active. The configuration will exist in the sync directory, but the version from this split will be used instead when the split is active."

Choosing Complete vs Partial

Use Complete when:

  • ✅ Config should NOT exist in other environments (modules, views, blocks)
  • ✅ It's an on/off decision (enable/disable)
  • ✅ Different environments need different features

Use Partial when:

  • ✅ Config exists everywhere but with different VALUES
  • ✅ Same feature, different settings (API URLs, credentials)
  • ✅ You need the base config to be importable without the split active

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo5 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides comprehensive instructions for Drupal configuration management using industry-standard tools like Drush, Git, and various hosting CLIs. While it executes shell commands and uses dynamic PHP evaluation to update configuration, these actions are essential for its purpose and are implemented using established developer workflows.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

  • Runlayer8mo

    2/2 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 19514f4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for grasmash/drupal-claude-skills/drupal-config-mgmt