Agent skill
docusaurus-config
Use when working with docusaurus.config.js/ts files to validate or modify Docusaurus configuration
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/docusaurus-config-mcclowes-lea
SKILL.md
Docusaurus Config
Quick Start
Configuration lives in docusaurus.config.js or docusaurus.config.ts at project root.
import { Config } from '@docusaurus/types';
const config: Config = {
title: 'My Site', // Required
url: 'https://example.com', // Required, no trailing /
baseUrl: '/', // Required, must start and end with /
favicon: 'img/favicon.ico',
organizationName: 'my-org',
projectName: 'my-project',
presets: [
[
'@docusaurus/preset-classic',
{
/* options */
},
],
],
themeConfig: {
/* theme config */
},
customFields: {
/* unknown fields go here */
},
};
export default config;
Core Principles
- Required:
title,url,baseUrlare mandatory - Custom fields: Unknown fields must use
customFieldsobject - Validation:
urlno trailing slash,baseUrlmust be/path/ - Plugins/themes: Use string or
[name, options]array format
Common Tasks
Before editing: Read current config to preserve format (JS/TS, ESM/CommonJS)
After editing: Verify required fields, URL formats, and restart dev server
Reference Files
See references/detailed-guide.md for comprehensive examples
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?