# Lp

> Add, remove, or manage services in Launchpad — the local service management dashboard. Use when the user wants to register a new service, delete a service, or c

- Skill: `iluyza522/lp` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx get-skill add iluyza522/lp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/iluyza522/lp/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: iluyza522 (https://skillmd.com/u/iluyza522)
- Updated: 2026-11-26
- Page: https://skillmd.com/skills/iluyza522/lp

---

---
name: lp
description: Add, remove, or manage services in Launchpad — the local service management dashboard. Use when the user wants to register a new service, delete a service, or check service status. Run `chmod +x <launchpad-dir>/launch.sh` if not already executable.
---

# Launchpad Skill

Launchpad is a web dashboard for managing local services. Each service stores its scripts in a `.launchpad/` subdirectory (so they don't conflict with any existing scripts in the project). The start/stop scripts plus a registration entry in `services.json` are all that's needed.

## Quick Reference

| Command | What it does |
|---------|-------------|
| `lp start` | Start web panel |
| `lp stop` | Stop panel + all services |
| `lp list` | List all services (shows real status) |
| `lp run <id>` | Start a service |
| `lp kill <id>` | Stop a service |
| `lp remove <id>` | Delete a service from registry |
| `lp register <name> <path>` | Register a new service |

## Reference

- **Project dir**: `<launchpad-dir>/`
- **CLI command**: `lp` (installed via `bash launch.sh install`)
- **Config file**: `~/.launchpad/services.json`
- **Data dir**: `~/.launchpad/` (config, logs, PID file)
- **Server script**: `server.py`
- **Launch script**: `launch.sh` (CLI entry point)
- **Frontend**: `index.html`

## Workflow

### 1. Read the Project First

The user might say "add ~/workflow/xxx as a service". Before doing anything:

- Read key files: `README.md`, `package.json`, `Dockerfile`, `docker-compose.yml`, `main.py`, `index.js`, etc.
- Understand what the project actually is: a web service? a CLI tool? a library? a config?

If it's NOT a service (library, CLI tool, config files, etc.), tell the user:

> "This project looks like a [library/CLI/config], not a long-running service. It doesn't need start/stop scripts. Are you sure you want to add it?"

Only proceed if the user confirms or if it's clearly a long-running service (web server, API, worker, bot, etc.).

### 2. Detect Script Status

Check whether scripts exist in the `.launchpad/` subdirectory:

```
path/
├── .launchpad/
│   ├── start.sh     ✓ or ✗
│   └── stop.sh      ✓ or ✗
├── docker-compose.yml  (present or not)
└── ...other files
```

Report to the user what's in place and what's missing. If no scripts exist, ask what commands should go in them.

### 3. Gather Service Info

Ask the user (or use provided info) for:

| Field | Required | Description |
|-------|----------|-------------|
| `id` | ✅ | URL-safe slug, e.g. `my-service` |
| `label` | ✅ | Display name, e.g. `My Service` |
| `icon` | ✅ | Single emoji, e.g. `🚀` |
| `path` | ✅ | Absolute path to the project directory |
| `url` | ❌ | Direct link to open the service, e.g. `http://localhost:5678` |
| `description` | ❌ | Short description of what it does |

### 4. Create Scripts (if missing)

If `.launchpad/start.sh` or `.launchpad/stop.sh` don't exist, create them in the `.launchpad/` subdirectory and `chmod +x`.

Base the script template on what you detected:
- Has `docker-compose.yml` → use docker compose template
- Has no compose file → ask what command to run

**Important:** Scripts use `cd "$(dirname "$0")/.."` to reach the project root since they live in `.launchpad/`.

**Common patterns:**

- **Docker service** (`docker compose up -d` / `docker compose down`):
  ```bash
  # .launchpad/start.sh
  #!/usr/bin/env bash
  set -euo pipefail
  cd "$(dirname "$0")/.."
  docker compose up -d "$@"
  ```
  ```bash
  # .launchpad/stop.sh
  #!/usr/bin/env bash
  set -euo pipefail
  cd "$(dirname "$0")/.."
  docker compose down "$@"
  ```

- **Generic service** (direct process):
  ```bash
  # .launchpad/start.sh
  #!/usr/bin/env bash
  set -euo pipefail
  cd "$(dirname "$0")/.."
  nohup <command> >> service.log 2>&1 &
  disown $! 2>/dev/null || true
  ```
  ```bash
  # .launchpad/stop.sh
  #!/usr/bin/env bash
  set -euo pipefail
  cd "$(dirname "$0")/.."
  pkill -f "<process-marker>" 2>/dev/null || true
  ```

### 5. Register in services.json

Read and update `~/.launchpad/services.json`. Each entry:

```json
{
  "<service-id>": {
    "label": "Display Name",
    "icon": "🚀",
    "path": "/absolute/path/to/service",
    "url": "http://localhost:5678",
    "description": "What this service does"
  }
}
```

Use the Edit tool to modify services.json, or read and rewrite it.

### 6. Start Launchpad Server

If the Launchpad server isn't running, start it:

```bash
bash <launchpad-dir>/launch.sh start
# or if installed: lp start
```

### 7. Verify

- Confirm `.launchpad/start.sh` and `.launchpad/stop.sh` exist and are executable
- Confirm services.json registration is correct
- Open http://localhost:9999 to verify the service appears

## Removing a Service

When asked to remove/delete a service:
1. Check the service isn't still running — `lp remove` will refuse if it detects the service is active
2. Run `lp kill <id>` first if the service is running, then `lp remove <id>`
3. Ask if they want to keep the `.launchpad/` scripts or delete them too

