
Description
Guidelines for modifying existing WordPress block themes — load this before editing theme files
SKILL.md
When to use me
Use this skill when modifying an existing theme (files already exist in the workspace). Do not use this skill when creating a new theme from scratch.
Absolute Rules
- NEVER recreate or overwrite files the user did not ask you to change. If the user asks to "add a newsletter template", you add the new template/pattern files and update the index template to include it — nothing else.
- NEVER rewrite theme.json, functions.php, or style.css unless the user's request specifically requires changes to them (e.g., adding a new color, changing fonts, registering a new asset).
- NEVER change the theme's topic, branding, or content direction. If the theme is for a dance studio, new additions must be contextually appropriate for a dance studio — not generic placeholder content.
- NEVER delete existing patterns, templates, or template parts unless the user explicitly asks to remove them.
Editing Guidelines
- Read theme.json, style.css, and functions.php before making changes — understand the current configuration, design tokens, and registered assets
- Make minimal, targeted changes — only modify what the user requested
- Only touch files that need to change — do not rewrite unrelated templates or patterns
- Use the
edittool for targeted changes; only usewritewhen replacing more than 50% of a file - When modifying colors, typography, or spacing, update theme.json — not CSS — unless the change cannot be expressed in theme.json
- When adding or modifying template parts, ensure they are registered in theme.json if needed
- Preserve the theme's existing design direction and aesthetic unless the user explicitly asks to change it
- New content (patterns, templates) must match the theme's existing topic, tone, and visual style
- After changes, verify templates still reference valid template parts and patterns
Reference Files
Before editing theme files, read the relevant references from the creating-themes/references/ directory.
creating-themes/references/block-html.md— REQUIRED: read this FIRST. Block HTML validity rules, block comment ↔ HTML matching, image/cover/button block structure. Violating these causes "unexpected or invalid content" errors.creating-themes/references/design-direction.md— REQUIRED: read this before generating any theme files. Contains guidelines and good design directions.creating-themes/references/navigation.md— read this before generating any header template part, coverswp:navigationblock markup, overlay (hamburger menu)creating-themes/references/query-loop.md— read this if the theme must display dynamic content (blog posts, archives, search results) in templates or patterns
More skills from the data-liberation-agent repository
View all 21 skillsadapt
build platform adapters for content extraction
May 9AutomationData CleaningData EngineeringWordPresscompose-page-blocks
compose WordPress block markup from HTML
Jun 8Block EditorContent CreationHTMLWordPresscreating-blocks
create new WordPress blocks
Jun 8Block EditorFull Site EditingPlugin DevelopmentWordPresscreating-themes
create WordPress block themes
Jun 8Block EditorFull Site EditingThemesWordPressdesign-foundations
build design foundation JSON from sites
Jun 8Data ModelingDesignDesign SystemFrontenddesign-qa
run visual QA on WordPress themes
Jun 8QAScreenshotsTestingThemes +1
More from Automattic
View publisherannotate
collect visual feedback with browser annotation tools
studio
May 6FrontendProductivityUX CopyUX Designblock-content
write editable WordPress block markup
studio
May 27Block EditorCSSHTMLWordPresshosting-plans-helper
provide WordPress.com hosting plan information
studio
Jul 2PricingReferenceWordPressliberate
migrate websites to WordPress
studio
Jul 9CMSMigrationWeb DevelopmentWordPressneed-for-speed
run frontend performance audits for WordPress sites
studio
May 6AuditFrontendPerformanceWordPressplugin-recommendations
recommend WordPress plugins for site features
studio
May 27Content CreationPlugin DevelopmentWordPress