Loading...
Loading...
Shared conventions for Next.js 16 + FastAPI full-stack projects. Architecture, code quality, testing, styling, and commands. Referenced by nextjs-fastapi-implementor and nextjs-fastapi-reviewer.
npx skill4agent add wtsi-hgi/agentskills nextjs-fastapi-conventionsfrontend/backend/app/actions.tsapp/api/*/route.tslib/contracts.tslib/backend-client.tsbackendJson()BackendRequestErrorbackend/api/schemas.pyfrontend/lib/contracts.tsfrontend/tests/contracts.test.tsbackendJson()'use client'useActionStateuseFormStateGreetingStatelib/greeting-state.ts@asynccontextmanager@app.on_eventpydantic-settingsapi/v1/response_modelhttpx.AsyncClientrequestsAnnotatedHTTPExceptionstrict: trueanyunknownz.infer<>'use server'components/ui/@/text-foregroundbg-mutedcn()lib/utils.ts@themesm:md:lg:app/components/components/ui/lib/@/pytestpytest-asynciohttpx.AsyncClientASGITransportapp@pytest.mark.anyioenvironment: 'node'frontend/tests/*.test.ts.parse().safeParse()describeitexpect()cd backend && python -m pytest tests/ -v # all tests
cd backend && python -m pytest tests/ -v -k <name> # specific test
cd backend && ruff check --fix . && ruff format . # lint+fix
cd backend && ruff check . && ruff format --check . # lint check onlycd frontend && pnpm test # all tests
cd frontend && pnpm test:watch # watch mode
cd frontend && pnpm lint # lint
cd frontend && pnpm format # format