brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
dashboard-and-apiRoute ODS FastAPI dashboard API, React/Vite dashboard UI, API auth and session flows, route ownership, local dashboard development, and focused dashboard tests.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task touches the ODS dashboard FastAPI backend, React/Vite dashboard frontend, dashboard API authentication, owner-session and magic-link flows, API route ownership, or dashboard-focused tests.
python3 sub-skills/dashboard-and-api/scripts/list_dashboard_api_routes.py \
--api-dir <ODS checkout>/ods/extensions/services/dashboard-api
The script imports the supplied dashboard-api source tree and prints FastAPI routes. Importing dashboard-api initializes module-level config from environment variables, so set the same safe env values your task needs before running it.
/api/* to dashboard-api on port 3002 and injecting Authorization: Bearer <dashboard-api-key>.../services-and-extensions/SKILL.md.../hardware-and-models/SKILL.md.../ops-cli-and-host-tools/SKILL.md.../testing-and-release/SKILL.md.verify_api_key or remove Bearer auth from protected routes to make a local UI test pass. Production relies on nginx injecting the admin Bearer token; direct API calls must provide the header explicitly.ods-dashboard-api container. The image bakes Python files into /app; run native uvicorn for hot reload or rebuild/copy into the container intentionally.Safe first-pass checks for dashboard/API work:
# Static route ownership check supplied by this skill.
python3 sub-skills/dashboard-and-api/scripts/list_dashboard_api_routes.py \
--api-dir <ODS checkout>/ods/extensions/services/dashboard-api
# Native source-check candidates when an ODS checkout and dependencies are available.
cd <ODS checkout>/ods/extensions/services/dashboard-api
pytest tests/test_routers.py -q
pytest tests/test_auth_router.py -q
pytest tests/test_main.py -q
pytest tests/test_settings_env.py -q
cd <ODS checkout>/ods/extensions/services/dashboard
npm run test -- --run src/lib/serviceUrls.test.js
npm run test -- --run src/App.test.jsx
npm run test -- --run src/pages/Settings.test.jsx
npm run build
Choose narrower tests for focused changes. Run host-mutating dashboard endpoints or full Docker workflows only after confirming user intent and host impact.