Use when swizzling Docusaurus theme components and editing theme elements — wrap or eject components from @docusaurus/theme-classic, override navbar/footer/sidebar/TOC/DocItem, place customised components under src/theme/, and choose safe (--wrap) vs full (--eject) swizzles. Triggers on tasks involving Docusaurus swizzling, theme component customization, navbar, footer, sidebar, or layout modifications.
77
96%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
The canonical home for this skill is mcclowes/docusaurus-themes
Swizzle components to customize Docusaurus theme behavior:
npm run swizzle @docusaurus/theme-classic ComponentName -- --wrapnpm run swizzle to browse available componentssrc/theme/ComponentName/List available components:
npm run swizzle @docusaurus/theme-classic -- --listCommonly swizzled: Footer, Navbar, DocItem, DocSidebar, TOC
Swizzling copies internal theme code into your project, so a wrong choice or a broken edit can fail the build. Work through it in order:
npm run swizzle @docusaurus/theme-classic -- --list--wrap unless you need to change the component's internals.npm run swizzle @docusaurus/theme-classic <Component> -- --wrapsrc/theme/<Component>/, then make your edits there.npm run build; if it errors, fix the swizzled component and re-run before moving on.For detailed documentation, see:
--wrap for minor changes to maintain upgrade compatibility6b52554
Canonical home
since Jun 17, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.