Wordpress section style generator

From lightspeedwp/.github · View interactive version

Wordpress section style generator is an AI agent skill from the GitHub repository lightspeedwp/.github. create wordpress section styles, layout-zone styling guidance and reusable css or theme.json strategies for larger page sections in block themes. use when the user asks to define styling for hero areas, content bands, footers, feature sections or other reusable layout sections that span beyond a sin

How to use this skill

Skill file

WordPress Section Style Generator

Purpose

Generate reusable styling strategies for larger layout sections in a WordPress block theme.

This skill creates:

It is for page bands and layout zones that extend beyond a single block style, while still staying more focused than full template generation.

Trigger Conditions

Use this skill when the request is about:

Do not use this skill for:

Those belong to the relevant specialist skills.

Inputs

Accept any mix of:

If naming or implementation direction is unclear, use wordpress-asset-parameter-generator behavior first and state assumptions.

Fast Decision Flow

  1. Identify the section type and reuse scope.
  2. Decide the lightest fitting implementation:
  1. Normalize the section style name and related class naming if needed.
  2. Generate the styling output.
  3. Mark anything that should be reviewed by wordpress-block-asset-validator.

Workflow

  1. Inspect the request and capture confirmed facts.
  2. Identify the section role:
  1. Normalize:
  1. Prefer native theme settings and presets before hardcoded values.
  2. Generate:
  1. Return assumptions and validation notes.

Section Style Rules

Output Format

By default, return:

  1. the section target
  2. the section style name
  3. CSS or theme.json guidance
  4. usage notes
  5. assumptions
  6. validation notes

Example output shape:

## Section target
Hero band

## Style definition
- Name: Soft Contrast Hero
- Class: section-hero--soft-contrast

## CSS guidance

.section-hero--soft-contrast {

padding-block: var(--wp--preset--spacing--xl);

background: var(--wp--preset--color--base-2);

color: var(--wp--preset--color--contrast);

}


## Usage notes
- Apply to reusable hero container patterns or section wrappers.

## Assumptions
- The theme already exposes the referenced spacing and color presets.

## Validation notes
- Confirm preset names and section wrapper usage.
- Run validator review before commit.

Safe Defaults

Failure Modes And Escalation

Escalate briefly when:

In those cases, ask at most one focused question or return a safe scaffold with explicit assumptions.

Test Prompts

Test prompt: hero section treatment

Prompt:

Create a reusable Warm Editorial Hero section style for a block theme. Prefer theme presets over hardcoded values and assume it will be used by multiple hero patterns.

Expected behaviour:

Test prompt: footer zone style

Prompt:

Build a quiet footer zone styling treatment with tighter spacing and lower visual contrast for a block theme.

Expected behaviour:

Test prompt: boundary case

Prompt:

Register a button outline variation for core/button.

Expected behaviour:

References

_This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP._

Automation Docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.