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

@sandrinio/vdoc

v3.8.0

Published

Documentation skills for AI coding agents

Readme

vdoc

Documentation skills for AI coding agents.

One install command. Your AI handles the rest.


What is vdoc?

vdoc gives your AI coding agent the ability to create and maintain feature-centric documentation for your codebase. It's not a CLI you run — it's a skill file that gets installed into your AI platform. After install, you just talk to your AI.

/vdoc-init              →  AI explores codebase → proposes plan → you approve → generates docs
/vdoc-update            →  AI detects stale, missing, dead docs → reports → patches
/vdoc-create <feature>  →  AI documents one specific feature on demand

Quick Start

npx @sandrinio/vdoc install claude

Then type: /vdoc-init


The Process

Step 1 — Run /vdoc-init

vdoc explores your codebase and produces a documentation plan.

Step 2 — Review the plan

Open _DOCUMENTATION_PLAN.md and make any changes — add, remove, rename, or reorder docs.

Step 3 — Tell the AI to proceed

The AI takes your approved plan and generates documentation one by one, saving each to the vdocs/ folder.

That's it. Three steps: init → review → approve.


Supported Platforms

| Platform | Install Command | /vdoc Command | Invocation | |----------|----------------|----------------|------------| | Claude Code | npx @sandrinio/vdoc install claude | /vdoc-init /vdoc-update /vdoc-create | Skills | | Cursor | npx @sandrinio/vdoc install cursor | /vdoc init /vdoc audit | Command + Rule | | Windsurf | npx @sandrinio/vdoc install windsurf | /vdoc | Workflow + Skill | | VS Code (Copilot) | npx @sandrinio/vdoc install vscode | /vdoc | Prompt + Instructions | | Continue | npx @sandrinio/vdoc install continue | /vdoc init /vdoc audit | Invokable Prompt + Rule | | Cline | npx @sandrinio/vdoc install cline | /vdoc | Workflow + Rule | | Gemini CLI | npx @sandrinio/vdoc install gemini | /vdoc init /vdoc audit | TOML Command + GEMINI.md | | JetBrains AI | npx @sandrinio/vdoc install jetbrains | Natural language | Rule only | | JetBrains Junie | npx @sandrinio/vdoc install junie | Natural language | Guidelines only | | Universal | npx @sandrinio/vdoc install agents | Natural language | AGENTS.md |


How It Works

vdoc is plan-first. The AI proposes — you decide. Nothing gets generated until you approve.

1. Install (~5 seconds)

npx @sandrinio/vdoc install claude

Copies skill files to your AI platform's config. No dependencies, no build step.

2. Init — /vdoc-init

This is the main workflow. Type /vdoc-init (or say "document this project") and the AI runs through four phases:

Phase 1: Explore — The AI reads your project's config files and directory structure to identify the language, framework, and architecture. It uses archetype-based strategies (Web API, SPA, Full-Stack, CLI, Library, etc.) to know exactly which files to scan. The result is an exploration log documenting every file read and every feature signal detected.

Phase 2: Plan — Based on what it found, the AI creates a documentation plan — a list of proposed docs, each covering one logical feature (not one file). The plan is saved as a file you can review.

Phase 3: You review — The AI presents the plan and asks for your input:

  • "Should I merge API routes and middleware into one doc?"
  • "I found a websocket system — want that documented separately?"
  • "Any legacy systems I should skip?"

You can add, remove, rename, or restructure docs before approving. Nothing is generated until you say go.

Phase 4: Generate — For each approved doc, the AI reads all relevant source files, follows a consistent template, and writes feature-centric documentation with mermaid diagrams, real code references, and a semantic manifest for future AI queries.

3. Update — /vdoc-update

Type /vdoc-update (or /vdoc-audit) when your code has changed. The AI:

  1. Checks git history to find which source files changed since docs were last updated
  2. Cross-references changes against each doc's "Key Files" to identify stale docs
  3. Scans for new features not covered by any doc
  4. Flags dead docs whose source files were deleted
  5. Verifies cross-references between docs

It presents a report and waits for your direction before patching anything.

4. Create — /vdoc-create <feature>

Type /vdoc-create authentication system to document a single feature on demand. The AI locates the relevant source files, generates one doc following the same template, and updates the manifest. Useful for adding docs incrementally without re-running the full init.


What Gets Created

your-project/
├── vdocs/
│   ├── _manifest.json                ← Semantic index (AI reads first)
│   ├── PROJECT_OVERVIEW_DOC.md
│   ├── AUTHENTICATION_DOC.md
│   ├── API_REFERENCE_DOC.md
│   ├── DATABASE_SCHEMA_DOC.md
│   └── ...
└── .claude/skills/vdoc-config/       ← Planning artifacts (Claude example)
    ├── _exploration_log.md           ← What was scanned and why
    ├── _DOCUMENTATION_PLAN.md        ← Approved plan
    └── references/
        ├── doc-template.md           ← Shared doc template
        └── manifest-schema.json      ← Shared manifest schema

Docs are feature-centric — organized by what your system does, not by file paths.


The Workflow

┌─────────────────────────────────────────────────────────┐
│                      /vdoc-init                         │
│                                                         │
│   Explore ──→ Plan ──→ You Review ──→ Generate          │
│   (auto)      (auto)   (you decide)   (auto)            │
│                             │                           │
│                    add / remove / rename                 │
│                    merge / split docs                    │
│                    skip features                        │
└─────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────┐
│               /vdoc-update  or  /vdoc-audit             │
│                                                         │
│   Git Diff ──→ Detect Stale ──→ Report ──→ You Approve  │
│                Detect Gaps       (auto)    ──→ Patch     │
│                Detect Dead                              │
└─────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────┐
│              /vdoc-create <feature>                      │
│                                                         │
│   Locate Source ──→ Generate Doc ──→ Update Manifest    │
│   (auto)            (auto)           (auto)             │
└─────────────────────────────────────────────────────────┘

Documentation Template

Every generated doc follows a consistent structure:

  • Overview — what it does, why it exists
  • How It Works — core logic with mermaid diagrams (max 7-9 nodes per diagram)
  • Data Model — entities and relationships
  • Key Files — source files that implement this feature
  • Dependencies & Integrations — external services, internal features
  • Configuration — env vars, feature flags, secrets
  • Error Handling — failure modes and user-facing behavior
  • Constraints & Decisions — why it's built this way, what you can't change
  • Related Features — cross-references and blast radius

Manifest

The _manifest.json is a map for your AI. Instead of reading every doc to find the right one, the AI reads the manifest first and picks the relevant doc based on rich descriptions and tags.

When you ask "how does authentication work?", the AI matches your question against manifest descriptions and goes straight to AUTHENTICATION_DOC.md — no scanning, no guessing.

{
  "documentation": [
    {
      "filepath": "AUTHENTICATION_DOC.md",
      "title": "Authentication - OAuth2 & JWT",
      "version": "1.0.0",
      "description": "OAuth2 flow with Google/GitHub providers, JWT lifecycle, session management via NextAuth.js, route protection middleware, and role-based access control.",
      "tags": ["oauth2", "jwt", "session-management", "rbac"]
    }
  ]
}

Uninstall

npx @sandrinio/vdoc uninstall

Removes all vdoc skill and rule files from every supported platform in one command. No platform argument needed — it scans for and deletes everything vdoc may have created:

| Platform | Files Removed | |----------|--------------| | Claude Code | .claude/skills/vdoc-init/, vdoc-update/, vdoc-create/, vdoc-config/ | | Cursor | .cursor/rules/vdoc.mdc, .cursor/commands/vdoc.md | | Windsurf | .windsurf/rules/vdoc.md, .windsurf/workflows/vdoc.md | | VS Code (Copilot) | .github/instructions/vdoc.instructions.md, .github/prompts/vdoc.prompt.md | | Continue | .continue/rules/vdoc.md, .continue/prompts/vdoc-command.md | | Cline | .clinerules/vdoc.md, .clinerules/workflows/vdoc.md | | Gemini CLI | .gemini/commands/vdoc.toml | | JetBrains AI | .aiassistant/rules/vdoc.md | | Universal | AGENTS.md (vdoc section only) |

For files shared with other tools (GEMINI.md, .junie/guidelines.md, .github/copilot-instructions.md), only the vdoc-injected section is removed.

Your vdocs/ documentation folder is always kept intact.


Requirements

None. Your AI coding agent is the runtime.


License

MIT


vdoc v3.5.2 — Documentation skills for AI coding agents