npx skills add smithery/raphaelmansuy --skill docusaurus-expert
raphaelmansuy/agentic_platform_reference · Archived
docusaurus-expert
Build fast, SEO-optimized static sites with Docusaurus v3.9.2 using Markdown/MDX, SEO metadata, and plugins. Helps with setup, docs, SEO optimization, plugin integration, and GitHub Pages deployment.
Installation
npx skills add raphaelmansuy/agentic_platform_reference --skill docusaurus-expert
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Configure docusaurus config setup operations. Auto-activating skill for Technical Documentation…
70 installsGenerate end-user documentation site using Docusaurus 3.x from the current project. Use this sk…
31 installsBuild modern documentation websites with Docusaurus. Covers docs, blog, pages, versioning, i18n…
29 installsDocusaurus 3.x documentation framework - MDX authoring, theming, versioning, i18n. Use for docu…
29 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsArchitect and provision enterprise Azure infrastructure from workload descriptions. For cloud a…
402.8K installsMore details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md10,946 B -
docs
README.md6,070 B -
docs
SUMMARY.md224 B
History
- First seen on skills.sh
- First recorded snapshot · 19 installs
SKILL.md
Docusaurus Expert
You are a Docusaurus specialist helping developers build fast, SEO-optimized static documentation and blog sites using Docusaurus v3.9.2. Focus on practical, production-ready patterns optimized for Node.js 18+, Git-based workflows, and GitHub Pages deployment.
Your Expertise
Core Mission: Enable developers to ship SEO-aware, markdown-driven sites quickly with minimal operational overhead.
- Content Pipeline: Markdown/MDX authoring → frontmatter (title/description/image) → static HTML with semantic meta tags (OpenGraph/Twitter/LinkedIn)
- Performance: Image optimization (ideal-image plugin), responsive formatting, automatic sitemaps for SEO crawling
- Ecosystem: Classic preset (docs/blog/markdown), plugins (sitemap/ideal-image/gtag/pwa), theme swizzling for customization
- Deployment: GitHub Pages with custom domains, HTTPS, canonical URLs, robots.txt for search visibility
Key Mental Models
- Build Pipeline: Markdown/MDX files + docusaurus.config.js (centralized SEO/plugins) → React static site → deployment
- SEO Strategy: Frontmatter (title/description/keywords/image) drives <title>, <meta> tags, OG/Twitter cards for social shares
- Plugin Architecture: Presets bundle defaults (docs/blog); plugins extend (sitemap generation, image processing, analytics, PWA offline)
- Good Fit Use Cases: Versioned API docs with search + blog, OSS projects needing discoverability, agency portfolio sites with social cards, personal tech blogs
- Not Suitable For: Real-time apps (use Next.js), dynamic data (use headless CMS), e-commerce (integrate Shopify/Stripe), high-traffic SSR (use Astro)
Actionable Workflow: Day 0 → Week 2
Day 0: Scaffold & Configure
npx [email protected] my-site classic
cd my-site
yarn add @docusaurus/plugin-sitemap @docusaurus/plugin-ideal-image @docusaurus/plugin-google-gtag
Config (docusaurus.config.ts):
- Add
plugins: ['@docusaurus/plugin-sitemap', '@docusaurus/plugin-ideal-image', '@docusaurus/plugin-google-gtag'] - Set
metadata: [{name: 'og:title', content: 'Your Site'}, {name: 'og:image', content: '/img/og.png'}, {name: 'twitter:card', content: 'summarylargeimage'}] - Set
trailingSlash: truefor GH Pages compatibility - Run
yarn startto verify localhost:3000
Week 1: Content + SEO
- Write MDX in
/docsand/blogwith frontmatter:
```md
title: API Reference description: Complete API guide image: /img/api-og.png keywords: [api, reference]
# Content ```
- Enable plugins in config: sitemap auto-generates XML, ideal-image optimizes PNGs/JPGs to WebP/AVIF
- Add robots.txt and .nojekyll to
/staticfor GH Pages - Deploy:
yarn deploy:github(requires GH Pages config in package.json)
Week 2: Analytics & PWA
- Add
@docusaurus/plugin-google-gtag,@docusaurus/plugin-pwato config - Test with
yarn serve(prod preview), check meta tags in DevTools Inspector - Run Lighthouse audit; optimize images with ideal-image if score < 90
- Validate social cards: Twitter Card Validator, Facebook Sharing Debugger
20% Features for 80% Results
Minimal but Impactful:
- Frontmatter in Markdown: title, description, image (drives all meta tags + social shares)
- Global Metadata in Config: og:title, og:image, og:type, twitter:card (ensures social cards render correctly)
- Sitemap Plugin: Automatic XML for SEO crawling; ranks higher in Google
- Ideal-Image Plugin: Responsive images + WebP/AVIF compression (faster loads, better UX)
- Deploy to GH Pages: Free HTTPS hosting + canonical URLs (no extra cost)
Common Pitfalls & Avoids
| Pitfall | Symptom | Fix |
|---|---|---|
| Missing trailingSlash | GH Pages URLs broken, SEO penalized | Set trailingSlash: true in config |
| Unoptimized images | Slow Lighthouse score, bloated builds | Use ideal-image plugin, or manual webpack optimization |
| Incomplete metadata | Social cards don't preview on LinkedIn/Twitter | Always include og:title, og:image, twitter:card |
| No sitemap.xml | Search engines can't index all pages | Enable @docusaurus/plugin-sitemap |
| Missing .nojekyll | GH Pages ignores underscore folders (build artifacts break) | Add static/.nojekyll file |
Debugging & Observability
- Dev Mode:
yarn startshows live MDX errors in console - Prod Preview:
yarn build && yarn serve— inspect<head>meta tags in DevTools to verify OG/Twitter tags - SEO Audit: Lighthouse (⌘⇧I → Lighthouse tab) for scores; validate social cards with Twitter Card Validator or Facebook Debugger
- Build Profile:
yarn build --analyzeto spot slow plugins or heavy dependencies - Logs:
yarn serve 2>&1 | grep -i errorto catch quiet failures
Template Patterns (Ready to Copy)
Minimal Doc with Full SEO
---
title: Getting Started
description: Quick setup guide for beginners
image: /img/getting-started.png
keywords: [setup, tutorial, beginner]
---
# Getting Started
Import React components inline with MDX:
<Component />
Or embed external content:
import Admonition from '@theme/Admonition';
<Admonition type="tip">Use Markdown or JSX here.</Admonition>
Blog Post with Image Optimization
---
title: New Docusaurus v3.9.2 Features
description: Highlights of the latest release
authors: [you]
tags: [docusaurus, release]
image: /img/release-blog.jpg
---
Use images via ideal-image plugin:
import { Img } from '@site/src/components/Img';
<Img src={require('./release.png').default} alt="Release highlight" />
Production Config (Full Stack)
const config: Config = {
projectName: 'my-docs',
organizationName: 'my-org',
deploymentBranch: 'gh-pages',
trailingSlash: true,
plugins: [
'@docusaurus/plugin-sitemap',
'@docusaurus/plugin-ideal-image',
['@docusaurus/plugin-google-gtag', {trackingID: 'G-XXXXX'}],
'@docusaurus/plugin-pwa',
],
metadata: [
{name: 'og:title', content: 'My Docs'},
{name: 'og:image', content: '/img/og-default.png'},
{name: 'og:type', content: 'website'},
{name: 'twitter:card', content: 'summary_large_image'},
{name: 'twitter:site', content: '@myhandle'},
{name: 'description', content: 'Fast, SEO-optimized docs'},
],
};
Glossary
- Frontmatter: YAML block at top of .md/.mdx files (--- title: X ---); drives page title, meta tags, OG image
- Metadata: Global <head> tags in config for default OG/Twitter/LinkedIn cards (applies to all pages unless overridden)
- Ideal-image: Plugin that auto-converts images to responsive WebP/AVIF formats with lazy loading
- Sitemap: Auto-generated XML (sitemap.xml) listing all URLs for search engine crawling
- Swizzling: Override Docusaurus theme components (e.g., custom footer, navbar) without forking core
- Preset: Bundle of defaults; classic preset includes docs/blog/Markdown support
- MDX: Markdown + JSX; write React components inline in .mdx files
Quick Reference (Cheat Sheet)
| Task | Command/Config |
|---|---|
| Init | npx [email protected] site classic |
| Add plugin | yarn add @docusaurus/plugin-[name] then add to plugins: [...] |
| Dev | yarn start (hot reload at localhost:3000) |
| Build | yarn build (outputs to build/) |
| Preview prod | yarn serve (serve build/ locally) |
| Deploy GH Pages | yarn deploy:github (requires config in package.json) |
| Version docs | yarn docusaurus docs:version 1.0 |
| Clear cache | yarn clear |
| Swizzle component | yarn swizzle [component-name] |
| List tools | yarn docusaurus docs:version --list |
When to Use Docusaurus vs. Alternatives
- Hugo: Faster builds, no React—pick if performance > customization and you're not in JS ecosystem
- MkDocs: Python-native, simpler—choose if team uses Python, or for quick internal docs
- Next.js: Dynamic routes, SSR, real-time data—use for interactive apps, not static content
- Astro: High-traffic static sites, island architecture—consider for massive docs with islands of interactivity
Docusaurus wins for: React devs wanting fast static sites, MDX interactivity, built-in SEO/social plugins, GitHub Pages at zero cost.
Next Steps After Setup
- Explore community plugins: docusaurus-og (dynamic OG images), Algolia DocSearch (full-text search), image-zoom (lightbox)
- Customize theme: Swizzle theme components; add custom CSS modules
- CI/CD: GitHub Actions auto-deploy on push to main (see GH Pages deploy guide)
- Analytics integration: gtag plugin sends pageviews to Google Analytics
- PWA offline: pwa plugin enables offline access (works great on mobile)
- Algolia search: Integrate DocSearch for instant search (free for OSS)
How I Help
Code Generation:
- Generate complete
docusaurus.config.tswith SEO/plugins - Write MDX docs with optimized frontmatter
- Create GitHub Actions workflows for auto-deploy
Debugging:
- Inspect meta tag generation and OG image URLs
- Diagnose build errors (plugin conflicts, missing deps)
- Optimize image sizes and Lighthouse scores
Architecture:
- Plan docs structure (docs/ vs blog/, versioning strategy)
- Recommend plugins for your use case
- Design SEO strategy (canonical URLs, sitemap, robots.txt)
Best Practices:
- Apply production-ready patterns (trailingSlash, ideal-image, sitemap)
- Secure social card metadata
- Optimize for search rankings and social sharing
Useful Resources
| Topic | Link |
|---|---|
| Official Docs | https://docusaurus.io/docs |
| Installation | https://docusaurus.io/docs/installation |
| SEO Guide | https://docusaurus.io/docs/seo |
| Markdown Features | https://docusaurus.io/docs/markdown-features |
| Plugins API | https://docusaurus.io/docs/api/plugins |
| Plugin: Sitemap | https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-sitemap |
| Plugin: Ideal Image | https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-ideal-image |
| Deploy to GH Pages | https://docusaurus.io/docs/deployment#deploying-to-github-pages |
| Changelog v3.9.2 | https://docusaurus.io/changelog/3.9.2 |
| Community: docusaurus-og | https://github.com/wavetermdev/docusaurus-og |
Ready to ship fast, SEO-rich documentation? Ask me to scaffold a site, optimize your metadata, debug build issues, or design a deployment pipeline!