JSPM

@j0kz/auto-pilot

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

Zero-effort automation system for lazy developers - runs everything automatically

Package Exports

  • @j0kz/auto-pilot
  • @j0kz/auto-pilot/dist/index.js

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

Readme

๐Ÿš€ Auto-Pilot

Zero-effort automation for lazy developers - Just run it and forget about code quality forever!

npm version License: MIT

๐Ÿฆฅ For the Laziest Developers

Tired of:

  • Running linters? โœ… Auto-Pilot fixes everything automatically
  • Writing tests? โœ… Auto-Pilot generates them for you
  • Fixing security issues? โœ… Auto-Pilot patches them instantly
  • Setting up git hooks? โœ… Auto-Pilot installs everything
  • Reviewing code? โœ… Auto-Pilot does it before you commit
  • Thinking? โœ… Auto-Pilot thinks for you

๐ŸŽฏ One Command to Rule Them All

npx @j0kz/auto-pilot

That's it. Seriously. Auto-Pilot will:

  1. ๐Ÿ” Detect your project type automatically (TypeScript, React, Node, etc.)
  2. ๐Ÿ“ฆ Install git hooks to fix code before commits
  3. ๐Ÿ‘€ Watch files and fix issues as you type
  4. ๐Ÿงช Generate tests for untested code
  5. ๐Ÿ”’ Fix security vulnerabilities
  6. ๐Ÿ“Š Optimize code complexity
  7. ๐Ÿงน Clean console.logs, debugger statements, etc.
  8. โœจ Format everything perfectly

๐Ÿ› ๏ธ Installation

npm install -g @j0kz/auto-pilot

Then just run auto-pilot in any project!

Per Project

npm install --save-dev @j0kz/auto-pilot

Add to package.json:

{
  "scripts": {
    "dev": "auto-pilot watch",
    "fix": "auto-pilot fix",
    "postinstall": "auto-pilot hooks"
  }
}

๐Ÿ“š Commands (If You're Not Too Lazy to Read)

Start Everything (Default)

auto-pilot

Starts file watching, installs hooks, runs initial analysis and fixes.

Fix Everything

auto-pilot fix
# or specific files
auto-pilot fix src/index.ts src/utils.ts

Watch Mode (Auto-fix on Save)

auto-pilot watch

Analyze Project

auto-pilot analyze
# or specific file
auto-pilot analyze src/index.ts
# or full scan
auto-pilot analyze --full

Detect Project Type

auto-pilot detect

Shows what Auto-Pilot detected about your project.

Install Git Hooks

auto-pilot hooks
# or use Husky
auto-pilot hooks --husky

Health Check

auto-pilot doctor

Ultra Lazy Mode ๐Ÿฆฅ

auto-pilot lazy

๐ŸŽฃ Git Hooks

Auto-Pilot installs these hooks automatically:

Pre-commit

  • โœ… Auto-fixes all staged files
  • โœ… Removes console.log statements
  • โœ… Fixes linting issues
  • โœ… Applies prettier formatting
  • โœ… Runs security scans
  • โœ… Generates missing tests

Pre-push

  • โœ… Runs full test suite
  • โœ… Checks test coverage (>55%)
  • โœ… Security audit
  • โœ… Build verification
  • โœ… Architecture analysis

Commit-msg

  • โœ… Enforces conventional commits
  • โœ… Auto-fixes commit messages

๐Ÿง  Smart Features

Context Detection

Auto-Pilot automatically detects:

  • Programming language (TypeScript, JavaScript, Python, etc.)
  • Framework (React, Vue, Next.js, Express, etc.)
  • Package manager (npm, yarn, pnpm)
  • Test runner (Jest, Vitest, Mocha)
  • Build tools (Webpack, Vite, Rollup)
  • Linters (ESLint, Biome)
  • CI/CD setup

Intelligent Auto-Fix

Safe fixes applied automatically:

  • console.log removal
  • var โ†’ let/const
  • == โ†’ ===
  • Missing semicolons
  • Trailing whitespace
  • any โ†’ unknown
  • Optional chaining for null checks
  • And much more!

Smart File Watching

Watches your files and:

  • Fixes issues as you type
  • Generates tests for new functions
  • Adds JSDoc comments
  • Removes debug statements
  • Suggests refactoring for complex code

๐Ÿค Integration with MCP Tools

Auto-Pilot integrates with all @j0kz MCP tools:

  • @j0kz/smart-reviewer - Code review and auto-fix
  • @j0kz/test-generator - Automatic test generation
  • @j0kz/security-scanner - Security vulnerability detection
  • @j0kz/architecture-analyzer - Architecture analysis
  • @j0kz/refactor-assistant - Refactoring suggestions

โš™๏ธ Configuration

Auto-Pilot works with zero configuration, but you can customize it:

.autopilotrc.json

{
  "watch": true,
  "autoFix": true,
  "gitHooks": true,
  "testGeneration": true,
  "securityScan": true,
  "complexity": {
    "maxComplexity": 20,
    "maxFileLines": 300
  }
}

VS Code Integration

Auto-Pilot automatically creates VS Code tasks for you:

  • Cmd+Shift+F - Fix current file
  • Auto-fix on save

๐ŸŽฎ CLI Shortcuts

For the truly lazy:

# Short alias
ap

# Fix everything
ap fix

# Start watcher
ap watch

# Quick health check
ap doctor

๐Ÿ“Š What It Actually Does

When you run Auto-Pilot, here's what happens:

  1. Scans your entire codebase
  2. Identifies all issues (bugs, security, complexity)
  3. Fixes everything it can safely fix
  4. Generates tests for untested code
  5. Installs git hooks for continuous quality
  6. Watches files for real-time fixes
  7. Blocks bad code from being committed

๐Ÿšฆ Exit Codes

  • 0 - Everything is perfect (or fixed)
  • 1 - Critical issues that need manual intervention
  • 2 - Configuration or setup error

๐Ÿค” FAQ

Q: Is this really for lazy developers? A: Yes. The lazier, the better.

Q: Will it break my code? A: No. Only safe, non-breaking fixes are applied automatically.

Q: Can I trust it with production code? A: Auto-Pilot is smart enough to detect production projects and be extra careful.

Q: What if I don't want certain fixes? A: You can configure what to fix, but why would you?

Q: Does it actually work? A: Try it. Run npx @j0kz/auto-pilot and see your code transform.

๐Ÿ† The Laziness Scale

  • Level 1: You run tests manually โ†’ Amateur
  • Level 2: You have CI/CD โ†’ Getting there
  • Level 3: You use linters โ†’ Decent
  • Level 4: You have pre-commit hooks โ†’ Good
  • Level 5: You use Auto-Pilot โ†’ LEGENDARY LAZY ๐Ÿฆฅ

๐Ÿ“œ License

MIT - Because we're too lazy to write a custom license.

๐Ÿค Contributing

Just run Auto-Pilot on your contribution. It'll fix everything.

๐Ÿ› Bugs

If you find a bug, Auto-Pilot probably already fixed it. If not, it will.


Remember: The best code is code you don't have to think about. Let Auto-Pilot handle it.

npx @j0kz/auto-pilot

Now go take a nap. Auto-Pilot's got this. ๐Ÿฆฅ