xiaohongshu
xiaohongshu
agent-automation-infrastructure
Current state of CI/CD automation infrastructure, pre-built Docker images, and performance optimization strategies. Use when dealing with slow builds, container timeouts, yarn install issues, or when you need to understand available pre-built images and automation tooling.
Full skill instructions
Agents can successfully test on local workstations where:
yarn install and docker compose upThree pre-built images are available via GitHub Container Registry:
ghcr.io/ynotradio/site/payload-dev:latest) - Next.js + Payload CMSghcr.io/ynotradio/site/phpfpm-dev:latest) - Legacy site backendghcr.io/ynotradio/site/postgres-seeded:latest) - PostgreSQL with Payload schema + sample dataInfrastructure: Complete and functional
Blocker: Performance (yarn install takes 5+ minutes in containers)
After adding domains to firewall allowlist:
registry.hub.docker.com - Docker Hub access workingregistry.npmjs.org - npm package downloads working| Operation | Current | With Pre-built | Status |
|---|---|---|---|
| Docker pull base images | ~2s | ~30s | ✅ |
| yarn install (Alpine) | 5+ min | N/A (pre-installed) | ✅ |
| Postgres startup (seeded) | ~3 min | ~10s | ✅ |
| Container startup | Blocked | ~20s | ✅ |
| Total time to ready | Timeout | ~1 min | ✅ |
Implementation:
Available images:
Benefits:
Status: ✅ Workflow ready in .github/workflows/build-agent-images.yml
Usage:
# Pull and run pre-built images
docker pull ghcr.io/ynotradio/site/payload-dev:latest
docker pull ghcr.io/ynotradio/site/phpfpm-dev:latest
docker pull ghcr.io/ynotradio/site/postgres-seeded:latest
# Or use docker-compose (configured to use pre-built images)
docker-compose up postgres # Pre-seeded Postgres ready in ~10s
Image details:
payload-dev: Node.js 22 + yarn dependencies (~800 MB)phpfpm-dev: PHP 8.3-FPM + extensions (~450 MB)postgres-seeded: PostgreSQL 16 + seeded data (~400 MB)See bin/docker/postgres/README.md for Postgres image details.
Implementation:
Benefits:
Drawbacks:
Improvements to current approach:
Use Debian instead of Alpine (faster yarn install)
FROM node:22 # Not -alpine
Layer caching
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
Use Yarn (faster than npm)
RUN yarn install --frozen-lockfile
Expected improvement: 5 min → 2-3 min (still slow for CI)
ghcr.io to firewall allowlist (if not already)Agents should:
# Pull pre-built images
docker pull ghcr.io/ynotradio/site/payload-dev:latest
docker pull ghcr.io/ynotradio/site/phpfpm-dev:latest
# Start services (uses pre-built images)
docker compose up -d
# Seed databases with data
yarn seed:legacy # Legacy site with production data
yarn seed:payload # Payload with sample data
# Ready in ~20 seconds (+ seed time)
# Build from scratch
docker compose up -d --build
# Seed databases
yarn seed:legacy # Legacy site
yarn seed:payload # Payload
# Takes 5+ minutes due to yarn install
Why seed:
Legacy site: yarn seed:legacy
Payload: yarn seed:payload
Track these metrics in agent PRs:
## Performance Report
- Image pull: [time]
- Container start: [time]
- Service ready: [time]
- Total: [time]
Target: < 3 minutes total
For immediate use: Pre-built images solve the CI/CD automation blocker.
For local development: Direct installation continues to work perfectly.
All agent infrastructure is production-ready and documented. The only remaining step is enabling the pre-built image workflow.
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