agentleFS
LockeZeRoLockeZeRo/site-builder/.claude/skills/deploy/SKILL.md

deploy

Skill0 starsChanged 3 months agoMITView on GitHub

Getting the theme and plugin onto a WordPress host, plus the maintenance-mode page and catalogue import. Triggers on "deploy", "upload the theme", "push to staging", "maintenance mode", "import listings".

155 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pm-discovery, qa-phase and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    pm-discovery

    PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.

    Also in 3 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • +10 more from ww-w-ai

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 139 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create the pages whose slugs match page-<slug>.php.

    line 31
  2. Distinctive:

    Run it against staging first.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 139 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deploy

Layout on the server

wp-content/
  themes/site-builder-theme/      <- theme/
  plugins/site-builder-listings/  <- plugin-listings/
  mu-plugins/site-maintenance.php <- deploy/site-maintenance.php (optional)
site.config.php                    <- one level above the theme; NOT in the repo

functions.php looks for site.config.php beside the theme directory and falls back to site.config.example.php. Keeping the real config outside the theme means a theme update cannot overwrite the business details.

Order of operations

  1. Upload the theme and activate it.
  2. Upload and activate the listings plugin. Activation seeds taxonomy terms from SB_LISTING_TYPES / SB_LISTING_BRANDS.
  3. Upload site.config.php.
  4. Flush permalinks — Settings → Permalinks → Save. Without this the listing archive and single pages 404, and it looks like a broken deploy when it is only unregistered rewrite rules.
  5. Create the pages whose slugs match page-<slug>.php.
  6. Upload images to theme/assets/images/.

Maintenance mode

deploy/site-maintenance.php is a must-use plugin that shows a holding page to logged-out visitors while leaving the site fully usable for administrators. Drop it in mu-plugins/ to enable, remove it to disable. There is no setting — that is deliberate, so it cannot be left on by accident.

Importing a catalogue

deploy/import-home-models.php takes a JSON array and creates listings idempotently, matching on slug so a re-run updates rather than duplicates.

wp eval-file deploy/import-home-models.php path/to/listings.json

Run it against staging first. The schema is documented in the file header.

Before every deploy

find . -name "*.php" -exec php -l {} \; | grep -v "No syntax errors"
grep -rn "\[[A-Z][A-Za-z ]*\]" theme/
git status --short

Placeholder copy reaching production is the most common failure here, and it is silent — the page renders perfectly, it just says [Your positioning line].

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.