agentleFS
pgnzbl-uxpgnzbl-ux/crucible/.claude/skills/deploy/SKILL.md

deploy

Skill4 starsChanged 3 months agoMITView on GitHub

启动基础设施 + 后端 API + Celery worker + 前端 dev server 一条龙

  • Reads credentials
  • Installs packages

161 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pm-discovery, qa-phase and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    pm-discovery

    PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.

    Also in 3 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • +10 more from ww-w-ai

The file

Files
SKILL.md

Deploy (development)

按仓库根目录 README.md「快速开始」。宿主 Linux(含 WSL)。虚拟环境在仓库根 .venv/,不要用系统 python。

首次(新机器 / 新克隆)

  1. Docker 可用(WSL 先开 Docker Desktop,docker ps 能通)。
  2. 基础设施(postgres 5433 / redis 6380 / minio 9000)
    cd infrastructure && docker compose up -d
    docker compose ps   # 等 healthy
  3. Agent 镜像(首次,或改了 infrastructure/agent-runner/ / node-skills 之后)
    # 必须在仓库根构建
    docker build -f infrastructure/agent-runner/Dockerfile -t crucible-agent-runner:base .
  4. Python 环境
    python3.12 -m venv .venv && source .venv/bin/activate
    cd backend
    cp .env.example .env
    pip install -e ".[dev]"
    pip install -r requirements.txt
  5. 三个进程(各开一个终端,均 source .venv/bin/activate)
    # API
    cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port 8010 --reload
    
    # Worker(缺 gitleaks / osv-scanner / 本地 semgrep 规则树时写入当前 .venv)
    cd backend && python run_worker.py
    
    # 前端
    cd frontend && npm install && npm run dev

WSL / 机器重启后

数据卷、.env、.venv、Agent 镜像都还在。不要重装依赖、不要重建镜像。

# Docker 起来之后
cd infrastructure && docker compose up -d

source .venv/bin/activate
# 终端 1
cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port 8010 --reload
# 终端 2
cd backend && python run_worker.py
# 终端 3
cd frontend && npm run dev

验证

curl http://localhost:8010/health
# 控制台 http://localhost:5173

只开 API、不开 Worker 时,任务会停在队列里。

端口冲突

  • 5433 / 6380 / 9000 / 8010 / 5173 已被占用则改 docker-compose / .env / vite.config
  • 不要改回 5432 / 6379(与宿主机默认端口冲突)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.