workspaces

A Drupal module for content staging, which means preparing website changes in a separate workspace before publishing them to the live site.

In plain words
What is it for?
Use it to create staging workspaces, support parallel editorial work, review drafts, and batch-publish approved content.
Why use it?
It keeps unfinished edits away from visitors and lets editors review and publish a group of changes together.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/abderrahimghazali/drupal-boost/workspaces
Any agent
npx skills add abderrahimghazali/drupal-boost --skill workspaces
Clone the repo
git clone --depth 1 https://github.com/abderrahimghazali/drupal-boost

Made for: Claude Code, Codex.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.00682
Opus 5 $0.00017 $0.00341
Sonnet 5 $0.00007 $0.00136
Haiku 4.5 $0.00003 $0.00068

Measured yesterday against content hash c97e892b72ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workspaces scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/workspaces/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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

drush ev "\Drupal::entityTypeManager()->getStorage('workspace')->create(['id' => 'staging', 'label' => 'Staging'])->save();"

Switch Workspaces

Use the workspace switcher toolbar or:

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

$workspaceManager = \Drupal::service('workspaces.manager');
if ($workspaceManager->hasActiveWorkspace()) {
  $workspace = $workspaceManager->getActiveWorkspace();
  $workspace_id = $workspace->id();
}

Execute Outside Workspace Context

$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

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 91 lines · 34 tokens per session scan A c97e892b72ef

Subscribe to this mod's changes

workspaces is a skill published in the GitHub repository abderrahimghazali/drupal-boost (1 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 682 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cms-detection

Identify CMS, frameworks, and server technology stacks on live hosts.

uphiago/recon-skills · 17 tokens

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or…

biaogebusy/web-builder · 68 tokens

drupal-htmx

HTMX in Drupal 11.3+ core — the Htmx PHP fluent builder, dynamic forms with swapOob, partial routes with htmxroute, response headers, and Drupal.behaviors integration. Use when building interactive UI without full-page reloads using Drupal's native HTMX support.

edutrul/drupal-ai · 67 tokens

drupal-search-api

Search API — index configuration, boost processors, field types, number field boosting, engagement metrics, and reindexing workflows.

edutrul/drupal-ai · 30 tokens

drupal-contrib-mgmt

Drupal contrib module upgrade triage — Drupal.org issue queue research, local patch creation (git diff), composer-patches workflows, Drupal 11 compatibility via coreversionrequirement, Drupal Lenient handling, and upgradestatus analysis. Not for generic Composer dependency management.

edutrul/drupal-ai · 58 tokens

drupal-ai

A production-tested collection of Claude Code skills, agents, commands, and rules for Drupal 11 development. Battle-tested on a platform powering 150+ sites.

edutrul/drupal-ai · 0 tokens