Just html

From wpgaurav/WordPress-skills · View interactive version

Just html is an AI agent skill from the GitHub repository wpgaurav/WordPress-skills. Build self-contained, drop-in HTML components (hero, pricing, features, testimonials, footer, etc.) that work inside any existing page without conflicts. Outputs a single code block with scoped CSS, semantic HTML, and minimal JS.

How to use this skill

Skill file

Self-Contained HTML Component Builder

Build drop-in HTML sections that work inside any existing page without conflicts. One code block. No dependencies. No collisions.

When to Use This Skill

Step 1: Gather Requirements

Before writing any code, ask the user these questions (skip any already answered):

  1. What component? — e.g., hero, pricing table, feature grid, testimonial carousel, FAQ accordion, footer
  2. Namespace prefix — 2-4 letter prefix for all classes and CSS variables (e.g., gh, gl, ai). Default: first two letters of brand/project name
  3. Brand tokens — Ask for CSS variables or hex values for: primary color, secondary color, text color, background color, border color, shadow. If not provided, use sensible defaults and note them
  4. Content — Headings, body text, CTAs, card content, pricing tiers, testimonial quotes, etc. Ask for specifics based on the component type
  5. Design reference — Any URL, screenshot, or description of the desired look. If none, build a clean modern default
  6. Special behavior — Toggles, counters, text cycling, scroll animations, tabs? Default: static with hover states only

Once requirements are clear, proceed to build.

Build Rules

Structure

CSS Scoping

HTML

JavaScript

Responsive

What NOT to Include

Override Pattern

Because tokens are CSS custom properties on the section class, the user can override from their theme stylesheet without touching the component:

.brand-hero {
  --gh-primary: #2563EB;
}

Output Format

Return the complete component as a single fenced code block (```html). No file splitting. No build steps. Copy-paste ready.

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.