.agents/skills/find-bugs/references/docs.md
packages/docsUse this guide for bugs owned by the daisyUI documentation website.
Read packages/docs/AGENTS.md first.
| Concern | Primary source to inspect |
|---|---|
| Routes and page data | packages/docs/src/routes/**/+page.*, +layout.*, +server.* |
| Shared UI | packages/docs/src/components/**/*.svelte |
| Client state/actions | packages/docs/src/lib/*.svelte.js, src/lib/*.js |
| Content and route data | src/lib/server/content/**/*.js, src/lib/data/ |
| Markdown rendering | src/lib/mdsvex/ |
| Search/build integrity | src/lib/searchCsv.js, src/lib/scripts/verifyBuild.js |
| Internationalization | src/lib/i18n.svelte.js, src/translation/<language>.<chunk>.json |
| Site-wide CSS | src/global.css, src/homepage.css |
| Build/runtime config | vite.config.js, svelte.config.js, package.json |
packages/docs/.svelte-kit/ and packages/docs/build/ are generated output. Inspect rendered
results when necessary, but never identify them as the source fix location.
src/lib/i18n.svelte.js.common plus the route's home, docs, components, or other chunk.packages/docs/AGENTS.md.Use the smallest relevant existing check first:
bun test packages/docs/src/<path>/<relevant>.test.js.bun test packages/docs/src for neighboring docs logic.bun --cwd packages/docs run lang:validate for translation consistency when applicable.bun --cwd packages/docs run verify for the package-wide tests and language validation
when justified.verify:build as final planned verification for routing,
prerendering, search, sitemap, or static-output bugs.The development script opens a browser and the build writes generated directories. Prefer direct control of an already-running local server. Do not launch a repository-writing build during discovery; use a disposable OS-temporary copy when fresh output is essential, or mark the build check as pending for the approved implementation phase.
Record exact URL, navigation mode, viewport, theme, language, input sequence, console/network evidence, automated commands, and their observed output.
A ready plan must account for:
packages/daisyui.The recommended solution must use existing dependencies, daisyUI/Tailwind conventions, and the smallest route/component/helper boundary. Do not plan an unrelated redesign, content rewrite, or shared abstraction solely to fix a local defect.
Identify the exact existing test file to extend or the closest test seam to add later. For render-only defects, plan a deterministic logic/markup assertion where possible plus a browser verification; do not rely only on visual inspection.