JSPM

maestro-dev

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

AI-native project scaffolding CLI. Generates instruction files, session logs, brand voice docs, design systems, and security checklists for coherent AI-assisted development.

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 (maestro-dev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Maestro

    AI-native development fails without process. Not because the tools are bad, but because the tools are fast -- fast enough to produce a bigger pile of undirected output than any human can review.

    Maestro is a CLI that scaffolds the process. It generates the instruction files, session logs, brand voice documents, design systems, and security checklists that keep AI-assisted development coherent across sessions, repos, and teams.

    Built by @shainapauley, who shipped 10 products across 14 repositories using this methodology over 232 days of AI-native development. Read more about the approach.

    Install

    npm install -g maestro-dev

    Get Started

    cd your-project
    maestro scan

    That's it. Maestro reads your codebase and generates:

    • CLAUDE.md -- populated with real file paths, run commands, and project context
    • docs/sessions/ -- session log directory with first log and index
    • docs/SECURITY_CHECKLIST.md -- security checklist matched to your project type
    • .env.example -- generated from your existing .env with values redacted

    Then check your score:

    maestro audit
      Score: 92/100
    
      PASS  CLAUDE.md exists [15pts]
      PASS  CLAUDE.md has content [10pts]
      PASS  Session logs present [10pts] - 24 log(s)
      PASS  Session index maintained [5pts]
      PASS  .env safety [10pts]
      PASS  .gitignore comprehensive [5pts]
      PASS  Dependency pinning [10pts]
      PASS  README exists [5pts]
      PASS  Architecture documented [10pts]
      FAIL  Security checklist present [10pts] - No security checklist found.
      PASS  No tracked secrets [5pts]
      PASS  Tests present [5pts]
    
      Next: maestro audit --fix

    Starting fresh? Use maestro init instead of scan.

    Commands

    Setup (run once)

    Command What it does
    maestro scan Scan existing project, generate docs
    maestro init Scaffold a new project from scratch
    maestro hooks install Install Claude Code + git hooks

    Daily workflow

    Command What it does
    maestro session start Create a session log for today
    maestro check Verify context is loaded before AI work
    maestro review Review staged changes before committing
    maestro session end Close session, auto-detect git changes

    Project health

    Command What it does
    maestro audit Score project against 12 checks (0-100)
    maestro quality Code quality grade (A-F, 7 categories)
    maestro security Scan for secrets and vulnerabilities
    maestro deps Find unused and phantom dependencies

    Insights

    Command What it does
    maestro bugs Track issues across sessions
    maestro changelog Generate release notes from sessions + git
    maestro audit-all Score every repo in a directory

    Brand (optional)

    Command What it does
    maestro voice Generate brand voice document
    maestro design-system Generate design system with CSS vars

    Command Details

    maestro scan

    Detects your stack, maps key files, extracts run commands, identifies your AI provider and database, and generates populated docs.

      maestro scan
    
      Scanning floatless...
    
      Stack: node (api-node)
      Key files: 14 detected
      Run commands: 3 found
      AI provider: none
      Database: postgres
      Deploy target: local
      Dependencies: 22
    
      + CLAUDE.md (populated from codebase scan)
      + docs/sessions/README.md
      + docs/sessions/2026-02-21_session.md
      + docs/SECURITY_CHECKLIST.md
      + .env.example (generated from .env, values redacted)
    
      Scan complete.
    
      Next: maestro audit

    maestro audit

    Scores your project against 12 weighted checks. Auto-fix gaps with --fix. Generate a badge with --badge.

    maestro audit --badge
    # Output: ![Maestro Score](https://img.shields.io/badge/maestro-92%2F100-brightgreen)

    maestro quality

    Static code quality analysis across 7 categories. Zero external dependencies.

      Grade: B  (82/100)
    
      PASS  complexity         92% (3 findings)
      PASS  dead-code          100%
      PASS  structure          100%
      PASS  hygiene            87% (4 findings)
      PASS  consistency        100%
      WARN  testing            60% (5 findings)
      PASS  error-handling     100%
    
      Next: maestro security

    Categories: complexity (file size, function length, nesting depth), dead code, structure (circular deps, flat dirs), hygiene (debug statements, TODOs), consistency (file naming), testing (coverage gaps), error handling (empty catch blocks).

    maestro security

    Scans for hardcoded secrets (15 patterns), env vars not in .env.example, unsafe eval/exec usage, and Docker exposure issues. Not a replacement for a security audit -- catches common patterns only.

      CRITICAL (1)
    
      FAIL  Anthropic key found
         src/config.ts:12
         Move to .env file and add pattern to .gitignore if needed.

    maestro review

    Analyzes staged git changes before you commit. Checks for new deps, env vars, secrets, debug statements, test coverage, file size, TODOs, and large files.

      Reviewing 4 staged files...
    
      PASS  No new dependencies added
      WARN  Debug statement found in staged changes
      PASS  No hardcoded secrets
      PASS  All checks passed. Ready to commit.

    maestro bugs

    Parses session logs for Known Issues, cross-references with Accomplished sections, flags stale issues (unresolved 3+ sessions).

      STALE  Auth token expires after 24h (first seen: 2026-01-15, 5 sessions ago)
      OPEN   Mobile nav doesn't close on route change (first seen: 2026-02-20)
      PASS   Fixed login redirect loop on Safari (resolved: 2026-02-19)

    maestro changelog

    Generates release notes from session logs and git history. Categorizes as Features, Fixes, Breaking Changes, and Internal.

    maestro changelog --since 2026-02-01 --output CHANGELOG.md

    maestro deps

    Finds unused dependencies (declared but never imported), phantom dependencies (imported but not declared), and GPL license conflicts.

    maestro session start / session end

    start creates a new dated log. end auto-detects git changes, prompts for a summary, and updates the session index. Handles multiple sessions per day.

    maestro hooks install

    Installs Claude Code and git hooks for automatic enforcement:

    • Claude Code hook -- runs maestro check before AI tool use
    • Git post-checkout hook -- auto-creates session log on branch switch
    • Pre-commit hook (--pre-commit) -- runs security + review before each commit

    maestro audit-all

    Score every repo in a directory at once.

      Repository         Score
      ------------------  -----
      synestrology        92/100
      portfolio           85/100
      absurdity-index     78/100
      prompt2story        42/100
    
      Average             74/100

    CI Integration

    # .github/workflows/maestro.yml
    name: Maestro
    on: [push, pull_request]
    jobs:
      audit:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-node@v4
            with:
              node-version: '18'
          - run: npm install -g maestro-dev
          - run: maestro audit --ci 60
          - run: maestro quality --ci C
          - run: maestro security --ci

    Why this exists

    When you work with AI tools like Claude Code, every session starts fresh. The AI doesn't remember your naming conventions, your architecture decisions, your security requirements, or what you built yesterday.

    Maestro generates the documentation layer that keeps AI-assisted development coherent:

    • CLAUDE.md gives every session the same starting context
    • Session logs prevent duplicate work and preserve decisions
    • Quality and security checks catch issues before they ship
    • Bug tracking surfaces what fell through the cracks
    • Changelogs turn session history into release notes

    Read more: All the Notes, None of the Music | 232 Days of Cowboy Coding

    License

    MIT