xiaohongshu
xiaohongshu
local-environment
Local development environment management for Polar using Docker
Full skill instructions
This skill enables Claude to help manage the Polar local development environment using Docker. Use this when the user needs to start, stop, debug, or understand the local development stack.
CRITICAL: When running in Conductor, always check CONDUCTOR_PORT first to determine the instance number:
echo $CONDUCTOR_PORT
CONDUCTOR_PORT is not set → Not running in Conductor, use instance 0CONDUCTOR_PORT is set → Calculate instance: INSTANCE=$((CONDUCTOR_PORT - 55090))| CONDUCTOR_PORT | Instance |
|---|---|
| 55090 | 0 |
| 55091 | 1 |
| 55092 | 2 |
| 55093 | 3 |
Always use -i $INSTANCE flag with all docker-dev commands when running in Conductor.
| Task | Command |
|---|---|
| Start full stack | ./dev/docker-dev -i $INSTANCE -d |
| Stop services | ./dev/docker-dev -i $INSTANCE down |
| View all logs | ./dev/docker-dev -i $INSTANCE logs |
| View service logs | ./dev/docker-dev -i $INSTANCE logs {service} |
| Follow logs | ./dev/docker-dev -i $INSTANCE logs -f |
| Check status | ./dev/docker-dev -i $INSTANCE ps |
| Restart service | ./dev/docker-dev -i $INSTANCE restart {service} |
| Shell access | ./dev/docker-dev -i $INSTANCE shell {service} |
| Fresh start | ./dev/docker-dev -i $INSTANCE cleanup && ./dev/docker-dev -i $INSTANCE -d |
| With monitoring | ./dev/docker-dev -i $INSTANCE --monitoring -d |
| Force rebuild | ./dev/docker-dev -i $INSTANCE -b -d |
| Service | Default Port | Description |
|---|---|---|
| api | 8000 | FastAPI backend |
| worker | - | Background job processor |
| web | 3000 | Next.js frontend |
| db | 5432 | PostgreSQL database |
| redis | 6379 | Redis cache |
| minio | 9000/9001 | S3-compatible storage |
| prometheus | 9090 | Metrics (optional) |
| grafana | 3001 | Dashboards (optional) |
Port = Base Port + (Instance × 100)
| Instance | API | Web | DB | Redis | MinIO |
|---|---|---|---|---|---|
| 0 | 8000 | 3000 | 5432 | 6379 | 9000 |
| 1 | 8100 | 3100 | 5532 | 6479 | 9100 |
| 2 | 8200 | 3200 | 5632 | 6579 | 9200 |
| Rule | Category | Description |
|---|---|---|
| service-architecture | Reference | Service details |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience