npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

documentation-skills

v1.0.0

Published

Claude Code skill for technical documentation with Mermaid diagrams

Readme

Technical Documentation with Mermaid Diagrams - Claude Code Skill

A Claude Code skill that enables you to create excellent technical documentation enhanced with Mermaid diagrams. Transform complex systems into clear, visual documentation that anyone can understand.

What is This?

This is a Claude Code skill - a reusable set of instructions that teaches Claude how to create outstanding technical documentation using Mermaid diagrams. When you install this skill, Claude gains expertise in:

  • Choosing the right diagram type for any documentation need
  • Creating clear, well-structured technical documentation
  • Using Mermaid syntax correctly for 15+ diagram types
  • Following documentation best practices

Features

  • 15+ Mermaid Diagram Types: Flowcharts, sequence diagrams, class diagrams, ER diagrams, state machines, C4 architecture diagrams, and more
  • Documentation Templates: Pre-built patterns for READMEs, API docs, architecture docs, and onboarding guides
  • Best Practices: Guidelines for creating maintainable, readable documentation
  • Comprehensive Reference: Complete Mermaid syntax guide included
  • Practical Examples: Real-world documentation examples you can adapt

Quick Start

Installation

Option 1: npx (Recommended)

npx documentation-skills

This will prompt you to install the skill either globally or locally:

  • Global (~/.claude/skills/) - Available in all your projects
  • Local (./.claude/skills/) - Available only in the current project

Option 2: Manual Installation

# Clone the repository
git clone https://github.com/pranavred/claude-code-documentation-skill.git

# Copy to global skills directory
cp -r claude-code-documentation-skill/skills/docs-with-mermaid ~/.claude/skills/

# OR copy to a specific project
cp -r claude-code-documentation-skill/skills/docs-with-mermaid /your/project/.claude/skills/

Usage

Once installed, you can:

Invoke directly:

/docs-with-mermaid my authentication system

Or just ask Claude naturally:

"Document the API flow for user registration"
"Create a README for this repository"
"Explain the architecture of this codebase"
"Draw a diagram showing how the order service works"

What's Included

skills/docs-with-mermaid/
├── SKILL.md              # Main skill instructions
├── mermaid-reference.md  # Complete Mermaid syntax reference
└── examples.md           # Practical documentation examples

SKILL.md

The core skill file that teaches Claude:

  • When to use each diagram type
  • Documentation structure templates
  • Diagram creation guidelines
  • Quality checklist for documentation

mermaid-reference.md

Comprehensive reference covering:

  • All 15+ Mermaid diagram types
  • Complete syntax for each diagram
  • Styling and customization options
  • Troubleshooting tips

examples.md

15 practical examples including:

  • API request flow documentation
  • System architecture overviews
  • Database schema documentation
  • CI/CD pipeline documentation
  • Authentication flow diagrams
  • And much more...

Supported Diagram Types

| Diagram | Best For | |---------|----------| | Flowchart | Processes, decisions, algorithms | | Sequence | API calls, service interactions | | Class | Object-oriented design | | State | Lifecycle, state machines | | ER | Database schemas | | C4 Context | High-level architecture | | C4 Container | Application architecture | | C4 Component | Component internals | | User Journey | UX documentation | | Gantt | Project timelines | | Pie Chart | Proportions | | Mindmap | Hierarchical concepts | | Timeline | Historical events | | Git Graph | Branching strategies | | Quadrant | Prioritization matrices |

Example Output

When you ask Claude to document an authentication flow, you might get:

## Authentication Flow

The authentication system uses JWT tokens with OAuth2 for secure access.

```mermaid
sequenceDiagram
    autonumber
    participant User
    participant App
    participant Auth
    participant API

    User->>App: Login Request
    App->>Auth: Authenticate

    alt Valid Credentials
        Auth-->>App: JWT Token
        App-->>User: Success
        User->>App: API Request
        App->>API: Request + JWT
        API-->>App: Protected Data
    else Invalid
        Auth-->>App: Error
        App-->>User: Login Failed
    end
```

The flow begins when a user submits credentials...

Platform Compatibility

Mermaid diagrams render natively in:

| Platform | Support | |----------|---------| | GitHub | Markdown files, comments, READMEs | | GitLab | Markdown files, wikis | | Notion | Code blocks (mermaid language) | | Obsidian | Native support | | VS Code | Markdown Preview Enhanced extension | | Confluence | Mermaid plugin | | Docusaurus | Native support | | MkDocs | mermaid2 plugin |

Customization

Adjusting the Skill

You can modify SKILL.md to:

  • Add company-specific documentation standards
  • Include custom diagram templates
  • Adjust the documentation structure

Adding Examples

Add your own examples to examples.md for domain-specific patterns.

Contributing

Contributions are welcome! Feel free to:

  • Add new diagram examples
  • Improve documentation templates
  • Fix syntax errors
  • Add support for new Mermaid features

Resources

License

MIT License - See LICENSE for details.


Transform your documentation from walls of text into clear, visual guides that everyone can understand.