Skip to content

f5xc-docs-tools

The f5xc-docs-tools plugin validates MDX content files for the f5xc-salesdemos documentation pipeline. It catches common build-breaking issues before they reach CI, including bare JSX characters, invalid imports, broken image references, and incomplete frontmatter.

v1.1.2 Productivity
/plugin install f5xc-docs-tools@f5xc-salesdemos-marketplace

This skill activates automatically when Claude detects you are working with MDX files in an f5xc-salesdemos content repository. It performs seven validation checks:

Frontmatter validation

Checks required fields like title and sidebar.order. Splash pages must include hero fields and template: splash.

MDX syntax pitfalls

Detects bare < characters and unescaped \{ \} braces that break MDX parsing.

Import validation

Validates imports against an allowlist of Starlight built-in and f5xc-salesdemos theme components.

Component attributes

Checks required props for components like Screenshot, Aside, Code, LinkCard, Card, and Badge.

Image references

Verifies that referenced images exist in the docs/images/ directory.

Structure checks

Ensures docs/index.mdx exists and image directories contain no stray MDX files.

Export and code blocks

Verifies that variables used in Code component code props have matching exports.

The skill intelligently scopes its review:

  • If there are uncommitted or staged changes to docs/**/*.mdx files, only those files are reviewed
  • Otherwise, all docs/**/*.mdx files are reviewed

Findings are grouped by severity:

  • ERROR — will break the build; must fix before merging
  • WARNING — likely problems that should be addressed
  • INFO — suggestions and best practices

Each finding includes the file path, line number, and a description of the issue.

/f5xc-docs-tools:review-mdx [path-or-glob]

Runs the mdx-content-reviewer skill on demand.

Arguments:

ArgumentRequiredDescription
path-or-globNoFile path or glob pattern to scope the review. Defaults to all docs/**/*.mdx files.

Examples:

# Review all MDX files in docs/
/f5xc-docs-tools:review-mdx
# Review a specific file
/f5xc-docs-tools:review-mdx docs/getting-started.mdx
# Review files matching a glob
/f5xc-docs-tools:review-mdx docs/guides/*.mdx

Output: A summary line at the end reports total files reviewed and finding counts by severity.

The plugin validates imports against these sources:

Starlight built-in components (@astrojs/starlight/components):

Aside Badge Card CardGrid Code FileTree Icon LinkCard Steps TabItem Tabs

f5xc-salesdemos theme components (@f5xc-salesdemos/docs-theme/components/):

Banner Icon LinkCard Screenshot

ComponentRequired PropsOptional Props
Screenshotalt + at least one of light or dark
Asidetypetitle
Codecode, langtitle, frame, mark, ins, del
LinkCard (theme)title, hrefdescription, icon
Cardtitleicon
Badgetextvariant
Steps
Tabs / TabItemTabItem: label
CardGrid
FileTree

Common issues the plugin catches:

PitfallProblemFix
Bare <MDX interprets as JSX tagUse <, inline code, or rephrase
Unescaped \{ \}MDX treats as JSX expressionUse inline code, escape with \, or use code block
Braces in filenamesAstro cannot process the fileNever use \{ or \} in .mdx filenames