JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62
  • Score
    100M100P100Q97816F
  • License MIT

Claude Code command generator for intelligent documentation focusing on custom functionality over framework boilerplate. Reduces information overload with 70/20/10 content rule and prevents duplicate content.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@batch/claude-docs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @batch/claude-docs

    Complete documentation toolkit for Claude Code with specialized commands that focus on custom functionality over framework boilerplate.

    🎯 What This Does

    This package provides three specialized documentation commands that:

    • βœ… Focuses on custom business logic and unique features
    • βœ… Skips standard framework patterns that developers already know
    • βœ… Reduces information overload with 3-4 focused files max
    • βœ… Maintains universality across any project type

    πŸš€ Quick Start

    # Run in any project directory
    npx @batch/claude-docs

    This installs a complete command suite in .claude/commands/ for use with Claude Code.

    πŸ“‹ Usage

    1. Install the commands in your project directory: npx @batch/claude-docs
    2. Open Claude Code with your project
    3. Choose your workflow:
      • /docs-generate - Create comprehensive project documentation
      • /docs-update - Update existing docs selectively
      • /onboard - Generate developer onboarding guides
    4. Get focused documentation that highlights what makes your project unique

    🧭 CLAUDE.md vs Claude's /init

    /docs-generate creates a comprehensive CLAUDE.md

    • Multiple files: Creates README.md, DEVELOPMENT.md, ARCHITECTURE.md, AND a sophisticated CLAUDE.md
    • Rich content: The CLAUDE.md includes project-specific commands, 70/20/10 documentation structure, implementation details
    • Integration: References and connects to the other documentation files

    Claude's built-in /init creates basic CLAUDE.md

    • Single file: Just creates a basic CLAUDE.md
    • Basic content: Simple project overview and context
    • Quick setup: Minimal starter file

    Key Difference

    /docs-generate gives you a supercharged CLAUDE.md as part of a complete documentation ecosystem, while /init just creates a basic starter file.

    What the generated CLAUDE.md does:

    • Steers documentation outputs towards custom functionality (aligns with the 70/20/10 rule)
    • Signals the PR reminder workflow when documentation is updated (the workflow checks CLAUDE.md casing)
    • Provides context that helps Claude produce more accurate, consistent docs
    • Remains owner‑maintained (subsequent installs won't overwrite it)

    🎨 What You Get

    The generated documentation emphasizes:

    • 70% Custom Business Logic - Your unique algorithms, workflows, integrations
    • 20% Modified Framework Patterns - How you've customized standard patterns
    • 10% Essential Setup - Only what's needed to get started

    πŸ“ What You Get

    /docs-generate - Comprehensive Documentation

    • README.md - Project overview with custom feature highlights
    • docs/DEVELOPMENT.md - Essential setup and custom workflows
    • docs/ARCHITECTURE.md - Unique architectural decisions and WHY
    • docs/BACKEND.md - Backend integration patterns (when applicable)
    • CLAUDE.md - Comprehensive project guide for Claude and developers

    /docs-update - Selective Updates

    • Intelligent analysis of what actually needs updating
    • Avoids documentation churn for minor changes
    • Focuses on developer-impacting changes only

    /onboard - Developer Onboarding

    • Step-by-step setup guide with verification steps
    • Common issues and solutions for new team members
    • Success criteria for completed onboarding

    πŸ”„ Updating

    Updating the Package

    # Re-run to get latest version and update commands + workflow
    npx @batch/claude-docs@latest

    What gets updated:

    • βœ… Commands - Latest versions replace existing commands in .claude/commands/
    • βœ… GitHub Actions workflow - Updated workflow replaces existing one
    • βœ… No action needed - Your existing documentation stays untouched

    Updating Documentation in Your Project

    After updating the package, no additional steps are required. Your documentation remains as-is.

    When you want to refresh documentation:

    • Use /docs-update command in Claude Code for selective updates
    • Use /docs-generate for comprehensive regeneration (overwrites existing docs)

    πŸ€– GitHub Actions Workflow

    When you run npx @batch/claude-docs, it automatically creates .github/workflows/docs-update.yml that:

    What It Does

    • Monitors PRs for significant changes (dependencies, API routes, config files)
    • Comments automatically when documentation updates may be needed
    • Skips reminders if docs were already updated in the PR
    • Detects project type (Next.js, Gatsby, Craft CMS, PHP, Sanity) for relevant suggestions

    When It Triggers

    • Dependencies changed (package.json, composer.json)
    • API routes modified (src/app/api/, functions/, etc.)
    • Configuration files updated (next.config.js, middleware, etc.)
    • Environment variables changed (.env.example)
    • Schema or data structure changes (src/queries/, schemas/)

    Smart Behavior

    • βœ… Already Updated: "Documentation files were updated in this PR"
    • πŸ“š Needs Update: Specific suggestions based on what changed
    • 🎯 Project-Aware: Tailored advice for your tech stack

    This helps maintain documentation quality without being annoying - it only reminds when genuinely needed.

    πŸ’‘ Philosophy

    Traditional documentation generators create comprehensive but overwhelming docs. This toolkit provides workflow-specific commands that help developers understand what makes your project special, not how to use React.

    Three specialized workflows:

    • Generate - Comprehensive docs for new projects or major overhauls
    • Update - Selective updates that maintain quality without churn
    • Onboard - Focused guides that get new developers productive quickly

    🀝 Contributing

    Issues and PRs welcome at batchnz/claude-docs

    πŸ“„ License

    MIT License - See LICENSE file for details