agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Scaffold a minimal Docusaurus documentation site with TypeScript and diagram support
How it fires
How this command gets triggered: by you, by Claude, or both.
/scaffold-docusaurus-setupContext preview
What this command does when you run it.
Scaffold a minimal Docusaurus documentation site with TypeScript and diagram support
allowed-tools: Bash(pwd:*), Bash(basename:*), Bash(git config:*), Bash(npx create-docusaurus:*), Bash(npm install:*), Bash(npm run:*), Write, MultiEdit, Read name: "Scaffold Docusaurus Setup" description: "Scaffold a minimal Docusaurus documentation site with TypeScript and diagram support" author: "wcygan" tags: ["scaffold"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Create a minimal Docusaurus documentation site in `/docs/` folder with TypeScript support and diagram capabilities.
Check that Node.js and npm are installed. If not, inform the user they need to install Node.js first.
Use npx to create a new Docusaurus project with TypeScript:
npx create-docusaurus@latest docs classic --typescript
Note: Use "docs" as the directory name to match the dotfiles convention.
After project creation, update the key configuration files to match the minimal setup:
1. **Update docusaurus.config.ts** with:
additionalLanguages: [
"bash",
"typescript",
"rust",
"go",
"java",
"python",
"yaml",
"docker", // Note: use "docker" not "dockerfile"
];**Important:** Only include languages that aren't already built-in. The following are included by default: javascript, css, json, markdown, markup (HTML/XML)
2. **Simplify sidebars.ts** to have a basic structure:
3. **Update package.json** scripts to include standard commands:
Install the Mermaid diagram plugin:
cd docs && npm install --save @docusaurus/theme-mermaid
Then update docusaurus.config.ts to include:
Example configuration snippet for docusaurus.config.ts:
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
const config: Config = {
// ... other config ...
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
themeConfig: {
// ... other theme config ...
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
"bash",
"typescript",
"rust",
"go",
"java",
"python",
"yaml",
"docker",
],
},
colorMode: {
defaultMode: "light",
disableSwitch: false,
respectPrefersColorScheme: true,
},
} satisfies Preset.ThemeConfig,
};Create the basic documentation structure:
1. **docs/getting-started/installation.md** - Basic installation guide 2. **docs/getting-started/quick-start.md** - Quick start guide 3. **docs/configuration/index.md** - Configuration overview 4. **docs/reference/index.md** - Reference documentation
Each file should have proper frontmatter with sidebar_position.
1. Update src/pages/index.tsx with a simple hero section 2. Create src/components/HomepageFeatures.tsx with project-specific features 3. Update src/css/custom.css with minimal styling
Replace the default HomepageFeatures.tsx with a project-specific version. Here's a template:
import React from "react";
import clsx from "clsx";
import styles from "./HomepageFeatures.module.css";
type FeatureItem = {
title: string;
description: JSX.Element;
};
// Customize these features based on your project
const FeatureList: FeatureItem[] = [
{
title: "Easy to Use",
description: (
<>
Describe how your project simplifies a complex task or provides an intuitive interface for
users.
</>
),
},
{
title: "Built for Developers",
description: (
<>
Highlight developer-friendly features like CLI tools, APIs, extensibility, or integration
capabilities.
</>
),
},
{
title: "Production Ready",
description: (
<>
Emphasize reliability, performance, security features, or battle-tested nature of your
project.
</>
),
},
];
function Feature({ title, description }: FeatureItem) {
return (
<div className={clsx("col col--4")}>
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<p>{description}</p>
</div>
</div>
);
}
export default function HomepageFeatures(): JSX.Element {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => <Feature key={idx} {...props} />)}
</div>
</div>
</section>
);
}Example project-specific features to consider:
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies