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!
๐ฆฅ 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-pilotThat's it. Seriously. Auto-Pilot will:
- ๐ Detect your project type automatically (TypeScript, React, Node, etc.)
- ๐ฆ Install git hooks to fix code before commits
- ๐ Watch files and fix issues as you type
- ๐งช Generate tests for untested code
- ๐ Fix security vulnerabilities
- ๐ Optimize code complexity
- ๐งน Clean console.logs, debugger statements, etc.
- โจ Format everything perfectly
๐ ๏ธ Installation
Global (Recommended for Maximum Laziness)
npm install -g @j0kz/auto-pilotThen just run auto-pilot in any project!
Per Project
npm install --save-dev @j0kz/auto-pilotAdd 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-pilotStarts 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.tsWatch Mode (Auto-fix on Save)
auto-pilot watchAnalyze Project
auto-pilot analyze
# or specific file
auto-pilot analyze src/index.ts
# or full scan
auto-pilot analyze --fullDetect Project Type
auto-pilot detectShows what Auto-Pilot detected about your project.
Install Git Hooks
auto-pilot hooks
# or use Husky
auto-pilot hooks --huskyHealth Check
auto-pilot doctorUltra 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.logremovalvarโ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:
- Scans your entire codebase
- Identifies all issues (bugs, security, complexity)
- Fixes everything it can safely fix
- Generates tests for untested code
- Installs git hooks for continuous quality
- Watches files for real-time fixes
- Blocks bad code from being committed
๐ฆ Exit Codes
0- Everything is perfect (or fixed)1- Critical issues that need manual intervention2- 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-pilotNow go take a nap. Auto-Pilot's got this. ๐ฆฅ