Mac Dev Staging for Openclaw

A specialized toolset for converting macOS into a repeatable, local PHP and MariaDB staging environment using native services and Homebrew.

matthewxmurphy
v1.1.0
Mar 5, 2026
0
872
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mac-dev-staging

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mac-dev-staging using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Mac Dev Staging?

The Mac Dev Staging skill provides a structured framework to turn any Apple Silicon Mac into a predictable development node. Instead of manually improvising stacks, this skill leverages stock macOS Apache, Homebrew-managed PHP 8.5, and MariaDB to create a professional-grade staging environment. By using Openclaw Skills, developers can ensure their local setup matches the requirements of modern PHP applications like Joomla, WordPress, CodeIgniter, or Laravel without the overhead of heavy virtualization.

This skill is designed to solve the complexity of macOS Apache configuration. It follows a safety-first approach by detecting current system states, rendering non-destructive configuration snippets, and maintaining an auditable trail of all changes. It allows for a local development gateway to coexist with primary production gateways, making it an essential component of a distributed Openclaw Skills workflow.

Mac Dev Staging Use Cases

  • Deploying local PHP staging environments for Joomla, WordPress, and Laravel apps.
  • Enabling modern PHP 8.5 support within the default macOS Apache installation.
  • Automating the generation of vhost files and local database configurations.
  • Configuring built-in SFTP for secure local deployment and file synchronization.
  • Running a local development gateway on a specific loopback port to avoid production collisions.
  • Standardizing JS tooling with npm-managed services like Vite and BrowserSync.

How Mac Dev Staging Works

  1. Stack Detection: The skill runs diagnostic scripts to identify existing Apache, PHP, and MariaDB versions and port availability.
  2. Dependency Bootstrapping: It installs core packages via Homebrew and necessary JS tooling through npm.
  3. Configuration Rendering: It generates optimized Apache snippets and vhost blocks tailored to the specific project needs.
  4. Manual Application: Following a security-first model, it provides the exact commands needed for sudo-authorized configuration updates.
  5. Service Activation: Homebrew services and stock Apache are initialized and verified for connectivity.
  6. Auditable Logging: Every action is recorded via a receipt system to ensure all staging changes are traceable and repeatable.

Mac Dev Staging Setup

To begin using this skill for your local environment, follow these steps:

# Initialize the stack detection
scripts/detect-stack.sh

# Install core dependencies via Homebrew
scripts/bootstrap-brew.sh

# Generate your Apache configuration snippets
scripts/render-apache-php-snippet.sh

# Start the services
brew services start php
brew services start mariadb

# Verify the final installation
scripts/verify-stack.sh

Mac Dev Staging Data Schema & Taxonomy

The skill maintains a structured organization of scripts and references to manage the staging lifecycle:

Component Function
scripts/ Contains bash scripts for detection, rendering, and verification.
references/ Documentation for SFTP setup, Apache layouts, and gateway coexistence.
receipts/ Auditable logs generated by Openclaw Skills during bootstrap and verification actions.
vhosts/ Generated configuration blocks for project-specific virtual hosts.

Mac Dev Staging Advanced Features

  • Loopback-only gateway surfaces for testing local orchestration without LAN exposure.
  • Integration with the lightweight Mac-side controller for one-click status and verification checks.
  • Support for nginx as an optional reverse-proxy sidecar for complex networking tests.
  • Automated SFTP state inspection to ensure secure file synchronization paths.
  • Detailed audit trails for every service modification using Openclaw Skills receipt patterns.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*