Imported from Chris0Jeky/Taskdeck (
frontend/AGENTS.md). Install upstream withnpx skills add Chris0Jeky/Taskdeck --skill frontend. Copyright stays with the author.
Taskdeck Frontend (Vue3/TS)
Rules
- Centralize HTTP in src/api. No endpoint URLs in views/components.
- GitHub Pages / static demo: empty
VITE_API_BASE_URLorVITE_DEMO_MODE=trueselects mock data viautils/apiBaseUrl.tsandapi/demoAdapter.ts. Local Vite with.envstill talks tolocalhost:5000. Seedocs/product/DEMO_PLAYBOOK.md. - Always implement: loading + empty + error + disabled states.
- Handle auth consistently: 401 => session flow, 403 => permission message.
- Keep diffs small; avoid refactors unless needed for the change.
MCP usage (frontend)
- For Vue/Vite/TS questions: use Context7 docs lookups before guessing.
- For UI regression: use the selected available browser controller (Chrome DevTools by project default) to reproduce and capture screenshots. Use repository Playwright tests for durable regression coverage; prefer stable selectors and avoid sleeps.
- For repo-wide searching: prefer native
rg; if shell search is unavailable, Codex uses GitHub MCPsearch_codeand Claude usesgh search code, as documented indocs/MCP_TOOLING_GUIDE.md. - CI parity: from the repository root in PowerShell, run
Set-Location frontend/taskdeck-web; if (-not $?) { exit 1 }; npm run typecheck; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }; npm run build; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }; npx vitest --run --maxWorkers=2for frontend changes.
Required checks (from frontend/taskdeck-web)
npm run typecheck npm run build npx vitest --run --maxWorkers=2