一键导入
docker-workflow
Docker commands and rules for materials-kg. Use when running the app, testing in containers, or rebuilding after code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Docker commands and rules for materials-kg. Use when running the app, testing in containers, or rebuilding after code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Python code style and knowledge graph conventions for materials-kg. Use when writing or reviewing Python code.
Reusable MiMo CLI orchestration skill for delegating work to MiMo across any project. Use this skill whenever the user asks to use mimo, MiMo CLI, mimo run, mimo-auto, MiMo as a subagent, an external autonomous agent, or wants a task delegated to MiMo for research, coding, or summarization. Prefer this skill even when the user does not explicitly mention a skill but clearly wants work routed through MiMo.
Anti-yes-man rules. Use before writing code, reviewing proposals, or responding to user suggestions.
Team workflow rules. Use at conversation start to check TEAM_STATUS.md, ask user role, and prevent duplicate work.
Use for materials science knowledge graph tasks — extracting entities, building graph, querying by material/mode/property, finding data gaps, or any task involving the kg_engine/ module. Triggers on materials science queries, alloy/property extraction, graph construction, gap analysis, or hybrid search.
| name | docker-workflow |
| description | Docker commands and rules for materials-kg. Use when running the app, testing in containers, or rebuilding after code changes. |
# Start everything (Neo4j + API)
docker compose up -d
# Check status
docker compose ps
# View logs
docker compose logs -f materials-api
# Stop
docker compose down
docker compose up -d --build
| Service | URL | Container |
|---|---|---|
| API | http://localhost:8090 | materials-kg-api |
| Neo4j Browser | http://localhost:7474 | materials-kg-neo4j |
# Run tests in container
docker compose exec materials-api python -m pytest kg_engine/tests/ -v
# Run linter in container
docker compose exec materials-api ruff check kg_engine/
# Open Python shell
docker compose exec materials-api python
# Copy and edit .env
cp .env.example .env
# Required vars:
# NEO4J_USER=neo4j
# NEO4J_PASSWORD=changeme
# OPENROUTER_API_KEY=your_key
docker compose up -d --build