Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

local-environment

Skill by polarsource

Manages the Polar local development environment through the dev docker CLI. It is for developers who run Polar locally with Docker and need to start, stop, debug or inspect the stack.

  • Score 87
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install local-environment

Built from the published package, never by AI.

git clone --depth 1 https://github.com/polarsource/polar /tmp/polar && mkdir -p ~/.claude/skills && cp -r /tmp/polar/.agents/skills/local-environment ~/.claude/skills/local-environment

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install local-environment in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The local-environment skill helps an AI assistant manage the Polar local development environment through the dev docker CLI. It covers starting, stopping, restarting and debugging the stack, viewing logs, and finding the real ports for a service.

The stack is split in two. Shared infrastructure (postgres, redis, minio, tinybird, and optional prometheus and grafana) runs once per machine. Each worktree gets its own app stack (api, worker, web), and only api and web publish host ports, offset per instance. The skill also covers common errors, shell access, and payment testing steps such as login codes and Stripe webhooks. It is aimed at developers who work on Polar with Docker and run several worktree instances in parallel.

Written from the project's SKILL.md and checked against it.

What it can do

  • Start and stop the stackStarts, stops, restarts and rebuilds the local environment with dev docker commands.
  • View logs and statusFollows or prints service logs and shows the status of running containers.
  • Resolve instance portsShows the resolved instance and its api and web URLs, with optional JSON output.
  • Manage parallel worktreesRuns isolated instances per worktree and lists every instance on the machine.
  • Generate Claude Code preview configWrites a per-instance .claude/launch.json with the correct ports for preview.
  • Shell into servicesOpens a shell or runs a one-off command inside a service container.
  • Reset instancesCleans up one instance or wipes all shared data with the cleanup command.
  • Troubleshoot startup errorsExplains service architecture and common container or first-boot error fixes.

What you need

  • Docker
  • A Polar repository with the dev docker CLI

Try asking

  • Start the Polar local stack in the background and wait until it is healthy.
  • Show the ports and URLs for my current Polar worktree instance.
  • Follow the logs for the api service in my local Polar stack.

Good to know

  • Covers the dev docker CLI for local development only.
  • The database has no host port and must be reached with dev docker exec.
  • Only api and web publish host ports, for instances 1 to 99 with offsets.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/local-environment/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • AGENTS.md1 KB
  • SKILL.md5 KB
  • rules/manage-instances.md3 KB
  • rules/payment-testing.md6 KB
  • rules/service-architecture.md3 KB
Show all 10 files
  • rules/shell-and-workflows.md3 KB
  • rules/start-environment.md3 KB
  • rules/stop-environment.md2 KB
  • rules/troubleshooting.md6 KB
  • rules/view-logs.md2 KB

Alternatives to local-environment

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

local-environment: common questions

How do I connect to the Polar database on localhost?

There is no localhost port for the database. Postgres runs in the shared stack and is reached with dev docker exec db.

How are ports assigned when I run several worktrees?

Only api and web get host ports, calculated as the base plus the instance number. Instance 0 uses 8000 for api and 3000 for web.

What is the difference between dev docker down and down --all?

dev docker down stops the app stack for the current instance. dev docker down --all also stops the shared infrastructure.

How do I install local-environment?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is local-environment free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is local-environment safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to local-environment?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

local-environment Install

Add to stack

Loading.