Install any skill in seconds. Free to start, no credit card required.
Get Started Free →avizmarlon/local-service-autostart
Auto-start offline local services — detect connection errors, daemon failures, and start services programmatically instead of reporting them as blockers.
Passed 14 of 22 test cases with the skill, and 7 of 22 without it.
and 12 more in the full report
10 fixed4 passed either way5 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
Run the database migration script on localhost. If PostgreSQL is offline, should you ask me for permission before attempting to launch the service via CLI?
| Checked | Without skill | With skill |
|---|---|---|
| Attempts service startup directly without waiting for user confirmation | Missed | Passed |
| Does not present startup as a user choice | Missed | Passed |
The instructions your model reads when the skill loads.
When an AI agent depends on a local service (Ollama, Docker, PostgreSQL, Redis, etc.) and the service is offline or unreachable, the agent should start the service programmatically and retry the operation. This is operational work (typically one command), not a blocking issue requiring human intervention.
Do not report offline services as blockers or ask the user to start them manually. That violates the agent-as-operator principle: the agent is responsible for keeping operational dependencies running, within scope of already-installed services.
Common error patterns indicating an offline service:
ConnectionError, Connection refused, Connection timeoutFailed to connect to <service>, Cannot connect to daemonPort <N> is not listening, Service unavailableDaemon not running, Service offlineECONNREFUSED, EHOSTUNREACH, ENETUNREACHStep 1: Detect — catch the connection error or verify service is offline via a health check (e.g., curl, nc, or language-specific client library).
Step 2: Start — invoke the service startup command appropriate to your OS and environment. Examples:
| Service | OS | Startup command | Health check |
|---|---|---|---|
| Ollama | macOS | open /Applications/Ollama.app | curl -s http://localhost:11434/api/tags |
| Ollama | Linux | systemctl start ollama or ollama serve (foreground) | curl -s http://localhost:11434/api/tags |
| Ollama | Windows | cmd.exe /c start "" "C:\Program Files\Ollama\ollama app.exe" | curl -s http://localhost:11434/api/tags |
| Docker Desktop | macOS | open /Applications/Docker.app | docker version |
| Docker Desktop | Windows | cmd.exe /c start "" "C:\Program Files\Docker\Docker\Docker Desktop.exe" | docker version |
| PostgreSQL (local) | Linux | systemctl start postgresql or pg_ctl start | pg_isready -h localhost |
| PostgreSQL (local) | macOS | brew services start postgresql | pg_isready -h localhost |
| Redis | Linux/macOS | redis-server (foreground) or systemctl start redis | redis-cli ping |
Step 3: Wait — allow the service time to initialize. Typical values:
Step 4: Verify — run the health check command and confirm the service is responding.
test cases passed, vs 7 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.