Skip to main content

frontend-pages-router

Use this skill when changing the Next.js frontend in this repository, especially pages/, components/, services/, auth flows, article detail pages, favorites, translation, or the sitewide AI chat UI.

Zur Installation springen

Quellinformationen

Repository
hoangsonww/AI-Gov-Content-Curator
Letzte Quellaktivität
28. Februar 2026 um 03:49
Erkannte Sprache von SKILL.md
Englisch
Sterne
30
Forks
18

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
3 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
frontend-pages-router
description
Use this skill when changing the Next.js frontend in this repository, especially pages/, components/, services/, auth flows, article detail pages, favorites, translation, or the sitewide AI chat UI.
# Frontend Pages Router This skill is for `frontend/`. ## Working Model - The app uses the Pages Router. - UI state is spread across page components, shared components, CSS files, and browser storage. - Several features depend on client-only APIs and local persistence. ## Working Rules - Check SSR versus client-only assumptions before moving logic. - Preserve shallow routing, search debounce, and query synchronization on `/home`. - Preserve localStorage keys unless the migration is intentional. - Keep auth token handling consistent when touching requests. - If you touch the sitewide chat UI, preserve SSE parsing, citations, warnings, and scrolling behavior. ## Validation - Run `cd frontend && npm run lint` for code changes when feasible. - Run Playwright for route or interaction changes when the task materially affects UX. ## References - For route and component map, read `references/frontend-map.md`. - For chat UI specifics, read `references/chat-ui.md`.
Auf GitHub ansehen