协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
transformerlab-app【开发与工程】Operate on the Transformer Lab application monorepo: React web UI, FastAPI backend, task/job compute providers, Typer CLI, and Python SDK workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for work on the Transformer Lab application repository: the React web UI, FastAPI API, task/job execution system, compute providers, lab CLI, and transformerlab Python SDK. The skill is self-contained; read the bundled references instead of reopening the source docs that were used to create it.
python <this-skill>/scripts/check_transformerlab_dev_readiness.py --repo-root <checkout>
The helper is read-only by default. It checks expected repo files, Node/Python/tool versions, known ports, and optional server reachability without starting the app or mutating environments.
| User request or code area | Read next |
|---|---|
| React/TypeScript UI, Joy UI components, routes, authenticated fetches, SWR, task/job screens, visual checks, Playwright selectors | frontend-web-app |
| FastAPI routers, service layer, Pydantic schemas, auth/team context, DB/Alembic, backend tests/lint, API curl auth | backend-api-services |
task.yaml, task import, job launch, local/remote queues, compute providers, sweeps, interactive sessions, logs, quotas, storage probes, multi-node behavior | task-execution-compute |
lab CLI commands, profiles/config/auth, JSON/pretty output, Textual monitor, task/job CLI flows, Python SDK APIs, tfl-remote-trap | cli-sdk-workflows |
main; create a branch for code work.src/renderer/. The app is a browser web app; do not add Electron, IPC, or main-process patterns.@mui/joy) and lucide-react, not MUI Material or MUI icons.api/transformerlab/services/; routers should validate HTTP input/output and call services.api/transformerlab/schemas/ for distinct API validation/serialization contracts.DateTime values, use utc_now_naive() from transformerlab.utils.datetime_utils.--format, --profile, and --no-interactive come immediately after lab.lab.init() before logging/progress/save helpers and pass Lab.finish(score=...) a dictionary, not a scalar.npm run format on changed frontend files or npm run format:check for dry-run; use browser visual verification for UI layout changes.cd api && pytest ...; run cd api && ruff check and format changed Python files with Ruff.cli/src/: run cd cli && python -m pytest tests/ -v or focused command tests.lab-sdk/: reinstall the local SDK into the runtime env used by the API or tests, then restart the API if backend behavior imports the SDK.package.json: 0.40.1.api/pyproject.toml: transformerlab-api 0.27.0.transformerlab-cli 0.0.68; entry point is lab.transformerlab 0.1.46; import root is lab.Ask the user before installing or repairing broad API/GPU environments, changing cloud credentials, starting long-running services, running Playwright/docker stacks, launching real remote providers, deleting data, or applying DB migrations against user data. Use the bundled references to identify the smallest safe check first.