# Path Optimizer

> Optimize your shell PATH for faster command resolution. Clean up duplicates and prioritize frequently used directories. Use when: path cleanup, shell path, optimize path, slow commands

- Skill: `antgroup/path-optimizer` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add antgroup/path-optimizer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/antgroup/path-optimizer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: antgroup (https://skillmd.com/u/antgroup)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/antgroup/path-optimizer

---


# PATH Optimizer v2.0.0

Speed up command resolution with intelligent PATH management.

## Features

- Duplicate PATH entry removal
- Usage-based prioritization
- Dead path cleanup
- PATH analytics
- Safe path ordering
- Quick restore

## Installation

Analyzes and optimizes your PATH configuration.

## Configuration

```yaml
# config.yaml
optimization:
  remove_duplicates: true
  remove_dead: true
  prioritize_by_usage: true

analytics:
  track_usage: true
  report_frequency: daily

backup:
  enabled: true
  location: ~/.path-optimizer/backups/
```

## Architecture

```
path-optimizer/
├── SKILL.md
├── scripts/
│   ├── install.sh           # Main installer
│   ├── optimize.py          # PATH optimizer 
│   └── analytics.sh         # Usage tracking
├── hooks/
│   ├── path_wrapper.sh      # Command wrapper 
│   └── init.sh              # Shell initialization
└── bin/
    └── shims/               # Command shims 
```

## Usage

```bash
/path-optimizer analyze
/path-optimizer optimize
/path-optimizer report
/path-optimizer restore
```

---

*Faster shell, faster you*

