abderrahimghazali/drupal-boost/workspaces

Claude Code and agent skill by abderrahimghazali/drupal-boost

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Drupal Workspaces module for content staging, parallel workspaces, and batch publishing. Use when setting up content staging workflows or implementing editorial workflows with Workspaces.

Install

npx vskill@latest install abderrahimghazali/drupal-boost/workspaces

SKILL.md

The same SKILL.md was published earlier as abderrahimghazali/drupal-boost/workspaces.

Drupal Workspaces

The Workspaces module provides content staging — make changes in a workspace without affecting the live site, then publish everything at once.

Enable Workspaces

bash
drush en workspaces -y

Core Concepts

  • Live workspace — The default workspace. Content here is visible on the live site.
  • Custom workspaces — Staging areas where content can be drafted, reviewed, and published as a batch.
  • Publishing — Moves all workspace changes to the Live workspace.

Setup

Create a Workspace
  1. Go to Admin > Content > Workspaces
  2. Click "Add workspace"
  3. Set name, parent (optional), and permissions
Via Drush
bash
drush ev "\Drupal::entityTypeManager()->getStorage('workspace')->create(['id' => 'staging', 'label' => 'Staging'])->save();"
Switch Workspaces

Use the workspace switcher toolbar or:

bash
drush ev "\Drupal::service('workspaces.manager')->setActiveWorkspace(\Drupal::entityTypeManager()->getStorage('workspace')->load('staging'));"

Publishing Workflow

  1. Switch to workspace (e.g., "Staging")
  2. Create/edit content — changes only visible in the workspace
  3. Review changes in the workspace
  4. Click "Publish" to push all changes to Live

Workspace-Aware Code

Check Active Workspace
php
$workspaceManager = \Drupal::service('workspaces.manager');
if ($workspaceManager->hasActiveWorkspace()) {
$workspace = $workspaceManager->getActiveWorkspace();
$workspace_id = $workspace->id();
}
Execute Outside Workspace Context
php
$workspaceManager->executeOutsideWorkspace(function () {
// Code here runs in the Live workspace context
});

Permissions

  • administer workspaces — Full workspace administration
  • create workspace — Create new workspaces
  • edit own workspace — Edit workspaces you created
  • edit any workspace — Edit all workspaces
  • delete own workspace — Delete workspaces you created
  • delete any workspace — Delete all workspaces
  • view own workspace — View workspaces you created
  • view any workspace — View all workspaces

Limitations

  • Not all entity types support workspaces (nodes, taxonomy terms, and menu links do)
  • Custom entity types need workspace entity key to support workspaces
  • Config changes are NOT workspace-aware — they apply globally
  • Some contrib modules may not be workspace-compatible

Key Rules

  • Use workspaces for content staging, not config changes
  • Always test workspace publishing on a staging environment first
  • Check workspace compatibility of contrib modules before relying on them
  • Use executeOutsideWorkspace() when you need to read/write live content from workspace context
  • Plan your editorial workflow before setting up workspaces (who creates, who reviews, who publishes)

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/abderrahimghazali/drupal-boost/workspaces/badge)](https://verified-skill.com/skills/abderrahimghazali/drupal-boost/workspaces)

Something wrong with this skill or its page? Tell us.