coco-cli
2
总安装量
1
周安装量
#66355
全站排名
安装命令
npx skills add https://github.com/yongsun-park/coco-cli-releases --skill coco-cli
Agent 安装分布
codex
1
claude-code
1
antigravity
1
Skill 文档
coco CLI
Command-line tool for analyzing ODB++ PCB design files.
When to Use
Use coco CLI in these situations:
- ODB++ folder detected – Directory containing
matrix/,steps/,misc/folders - PCB-related queries – Layer, net, component, feature, distance measurement requests
- DFM verification – Clearance checks, short detection, design rule validation
- Keywords present – ODB++, PCB, Gerber, layer, netlist, DRC
Installation
# Check installation
coco --help
# If not installed
# Linux/macOS:
./scripts/install.sh
# Windows:
./scripts/install.ps1
ODB++ Folder Identification
ODB++ folders are identified by internal structure (folder name is irrelevant):
<any_name>/ <- path for --input
âââ matrix/
âââ steps/
âââ misc/
If matrix/, steps/, misc/ folders are all present, it’s an ODB++ root.
Command Usage
Always check --help for current options:
# List all commands
coco --help
# Get command-specific options
coco <command> --help
Key Commands
| Command | Purpose |
|---|---|
list-layers |
List layers |
list-nets |
List nets |
list-components |
List components |
list-features |
List features |
measure |
Measure distance between features |
net-distance |
Minimum distance between nets |
net-length |
Calculate net total length |
render |
Render layer as PNG |
Common Options
| Option | Description |
|---|---|
--input <path> |
ODB++ root directory (required) |
--layer <name> |
Layer name |
--step <name> |
Step name (usually auto-detected) |
--format json |
JSON output |
Basic Workflow
# 1. When ODB++ folder found, first check layers
coco list-layers --input <odb_path>
# 2. Analyze based on user request
coco <command> --help # Check options before running
Use Cases
Troubleshooting
| Symptom | Solution |
|---|---|
| command not found | Run scripts/install.sh |
| step not found | Specify --step <name> option |