agentsclimarketplace

Fw docusaurus

Skill xiaolai/docs-guardian-for-claude/skills/docs-guardian/frameworks/fw-docusaurus

Use when generating or auditing documentation in Docusaurus format — covers config, directory structure, frontmatter conventions, and build commands.From its SKILL.md

Install
npx -y skills add xiaolai/docs-guardian-for-claude --skill fw-docusaurus

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.5 KB, as published. Nobody here has run it

Docusaurus Framework Adapter

Detection

Detected when docusaurus.config.js or docusaurus.config.ts exists in project root.

Configuration Parsing

Key fields to extract:

// docusaurus.config.js
module.exports = {
  title: 'My Project',
  presets: [
    ['@docusaurus/preset-classic', {
      docs: {
        sidebarPath: require.resolve('./sidebars.js'),
        routeBasePath: 'docs',
      },
    }],
  ],
};
// sidebars.js
module.exports = {
  docs: [
    'intro',
    {
      type: 'category',
      label: 'API Reference',
      items: ['api/auth', 'api/users'],
    },
  ],
};
  • docs.sidebarPath: path to sidebar configuration
  • Sidebar items are doc IDs (filename without .md, relative to docs/)
  • docs.routeBasePath: URL prefix (default docs)

Doc Root

docs/ directory (or configured via docs.path in presets).

Code-to-Doc Mapping

From Sidebars

Parse sidebars.js entries. Each string item maps to docs/<item>.md. Categories organize items hierarchically.

Convention-Based

SourceDoc Candidate
src/auth/login.tsdocs/api/auth.md or docs/api/auth/login.md
src/hooks/useAuth.tsdocs/api/hooks/useAuth.md

Document Template

Docusaurus supports Markdown and MDX with YAML frontmatter:

---
id: auth
title: Auth Module
sidebar_label: Authentication
sidebar_position: 1
---

# Auth Module

Brief description.

## API Reference

### `login(username, password)`

Authenticates a user and returns a session token.

| Name | Type | Description |
|------|------|-------------|
| `username` | `string` | The user's login name |
| `password` | `string` | The user's password |

**Returns:** `Session` — An authenticated session object.

:::tip
Use environment variables for credentials in production.
:::

```tsx
const session = await login("admin", "secret");

## Docusaurus-Specific Content

Valid Docusaurus content — do not flag as quality issues:
- `:::note/tip/info/caution/danger` admonitions
- MDX components and JSX in markdown (e.g., `<Tabs>`, `<CodeBlock>`)
- `import` statements at the top of `.mdx` files
- YAML frontmatter with Docusaurus fields (`id`, `sidebar_label`, `sidebar_position`, `slug`)
- `{@link}` and `{@see}` JSDoc references in MDX

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.