Design md format enforcer

From lightspeedwp/.github · View interactive version

Design md format enforcer is an AI agent skill from the GitHub repository lightspeedwp/.github. Use when the task requires enforcing or restoring consistent output structure, section order, heading conventions, evidence labeling, and file-to-file formatting consistency across DESIGN.md, design-md-source-map.md, and design-md-validation-report.md.

How to use this skill

Skill file

DESIGN.md Format Enforcer

Use this skill when the agent is drafting, updating, normalizing, or cleaning the structure of DESIGN.md, design-md-source-map.md, or design-md-validation-report.md.

This skill is for formatting discipline and document-shape consistency. It does not decide whether the underlying evidence is sufficient. When the task depends on reconciling evidence first, use the existing evidence-gathering workflow before applying this skill.

When to Use

Use this skill when the user asks to:

Skip this skill when the request is only about evidence gathering or when the user wants raw notes rather than standardized project artifacts.

Core Responsibilities

  1. Enforce stable section order and heading hierarchy.
  2. Keep naming and labels consistent across all three documents.
  3. Distinguish verified, inferred, missing, and conflicted information using clear repeated conventions.
  4. Preserve project-specific sections while bringing the overall document back into a standard shape.

Global Formatting Rules

Apply these rules across all three files unless the user explicitly overrides them:

File-Specific Structure

1. `DESIGN.md`

Default target shape:

  1. title and project identity
  2. summary or description
  3. version or status when available
  4. visual-system and token sections
  5. component guidance
  6. WordPress or implementation mapping guidance when relevant
  7. accessibility or usage constraints
  8. open questions, gaps, or follow-up items when needed

Formatting expectations:

2. `design-md-source-map.md`

Default target shape:

  1. evidence summary
  2. source coverage by system
  3. normalized token and component mappings
  4. conflicts and resolutions
  5. missing evidence or weak coverage
  6. drafting readiness or next-step notes

Formatting expectations:

3. `design-md-validation-report.md`

Default target shape:

  1. validation summary
  2. pass/fail or severity overview
  3. findings by standards area
  4. unsupported assumptions and evidence gaps
  5. risks and follow-up actions
  6. release readiness or confidence statement

Formatting expectations:

Cross-File Consistency Rules

When multiple files are produced together:

Repair Rules

When fixing a messy or inconsistent draft:

  1. preserve meaning before improving presentation
  2. restore heading hierarchy
  3. normalize repeated section labels
  4. merge duplicate sections only when their content is genuinely redundant
  5. isolate mixed content so evidence, design rules, and validation results are not blended together
  6. keep project-specific content, but move it into the most appropriate standardized section

Output Contract

When this skill is active, prefer outputs that are:

If the source material is too incomplete to fully populate a section, keep the section and label the gap clearly rather than deleting the structure entirely.

Example Triggers

_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.