# Portready: localhost up and answering before you look

> Checks the port, starts the container runtime and database, then waits until the dev server answers before opening the browser. A pasted error gets an environment check before any code change.

Portready: localhost up and answering before you look is a paid AI agent skill on Agensi by MAJI, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [MAJI](https://www.agensi.io/creators/maji)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/portready-localhost-up-and-answering-before-you-look
- Tags: devops, testing

## About this skill

You asked your agent to start the app, the browser opened on a blank page, and the server was not even listening yet. Or port 3000 was already taken by another project, the local database was down, and an hour went into chasing a code bug that was really an environment fault.

Portready brings a project up on localhost in a fixed order and only opens the browser once the app has answered a real request.

### What it does
- **Port check first** runs `lsof` on the target port and kills only the specific stale PID, never a broad kill that hits other projects. Ports come from one registry file so two projects never share 3000.
- **Dependencies before the app** starts the container runtime, then local Supabase or a Postgres/MySQL container, fills `.env.local` from CLI output, and keeps DB URLs and keys out of chat.
- **Wait, then open** loops `curl` until the port answers, then opens the browser.
- **Environment before code** probes paused hosted databases, refused DB ports, auth gates, stale service workers and port clashes before forming any code hypothesis.
- **Slow machine cleanup** measures memory, swap and listening ports, asks what to keep, stops the rest, then reports before and after with re-enable notes.

### How it works
1. **Check the port** and the registry.
2. **Sync a receive-only repo** with a fast-forward merge, no edits or push.
3. **Start dependencies**, then the app by stack, passing the port by `PORT` env.
4. **Wait for an answer**, open the browser, record URL, port and stop command in notes.
5. **Down** at session end: stop everything the session started.

### Frameworks & tools
Uses `lsof`, `curl`, `git`, the Supabase CLI and a container runtime (OrbStack, Docker Desktop or Colima). Covers `pnpm dev`, `npm run dev`, `php artisan serve` and `vite`. Optional `cloudflared` quick tunnel for demos.

### Why this beats prompting it yourself
A plain prompt starts the server and opens the browser in one breath. Portready gates the browser on a live response, and treats a pasted error as an environment question first, so you stop fixing code that was never broken.

### Use cases
- **Start of session** "start it on localhost" or "run it on port 3020".
- **Pasted console error** such as `Failed to fetch`.
- **Laptop running hot** during dev or before an e2e run.
- **Pull latest and run** an upstream repo for a demo.

### Known limitations
Not for production deploys. A bug already isolated to one function should go straight to debugging. Migrations and seeds on a receive-only repo run only when you say so.

## Requires

- lsof
- curl
- Git
- Supabase CLI
- OrbStack, Docker Desktop or Colima
- cloudflared

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Portready: localhost up and answering before you look skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does it need to run?

A local project with its README or package manifest, a shell with `lsof` and `curl`, and the container runtime and database CLI your stack uses. It asks once for anything it cannot find, such as the port.

### Will it change my code when I paste an error?

Not first. It probes the environment (paused DB, refused DB port, auth gate, stale service worker, port clash) and only then forms a code hypothesis, applies a minimum fix and verifies it itself.

### Will it kill processes from my other projects?

No. It kills only the specific PID on the target port and asks for scope before stopping anything during a slow-machine cleanup.

### What is in the zip?

SKILL.md, the instructions your agent follows, and LICENSE.md.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
