Skip to content
Skills Library
Programming · Building & coding

qwik-router-development

/qwik-router-development

Use when modifying or reviewing Qwik Router code under packages/qwik-router, including runtime routing, buildtime route generation, middleware, adapters, SSG, markdown/MDX handling, or router tests.

Repository
ossrules ↗
Licence
MIT
Last repository change
21.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when modifying or reviewing Qwik Router code under packages/qwik-router, including runtime routing, buildtime route generation, middleware, adapters, SSG, markdown/MDX handling, or router tests.

Original author description

Use when modifying or reviewing Qwik Router code under packages/qwik-router, including runtime routing, buildtime route generation, middleware, adapters, SSG, markdown/MDX handling, or router tests.

How it works

  1. Fast Path
  2. Source Map
  3. Verification
  4. Quality Bar
  5. Stop Conditions
Original SKILL.md headings · 62 lines, 343 words
SKILL.md preview
---
name: qwik-router-development
description: Use when modifying or reviewing Qwik Router code under packages/qwik-router, including runtime routing, buildtime route generation, middleware, adapters, SSG, markdown/MDX handling, or router tests.
---

# Qwik Router Development

Use this skill for `packages/qwik-router/**` work. Keep the repo-wide rules from `.ruler/AGENTS.md`
in force.

## Fast Path

1. Classify the touched router surface before editing: runtime, buildtime, middleware, adapter, SSG,
   markdown/MDX, or Vite integration.
2. Read the smallest source file plus the closest `*.unit.ts` or `*.spec.ts` file before changing
   behavior.
3. For middleware, loader, action, or navigation changes, trace handler ordering and shared state
   from request creation through response/client consumption before editing.
4. For unit/spec coverage, run `pnpm vitest run <path>`.
5. For browser/router behavior, rebuild first with `pnpm build.core.dev`, then use the focused
   Qwik Router e2e command.
6. If public router API markdown changes are expected, run `pnpm api.update` after tests pass.

## Source Map

- Runtime: `packages/qwik-router/src/runtime/src/`
- Buildtime route generation: `packages/qwik-router/src/buildtime/`
- Vite integration: `packages/qwik-router/src/buildtime/vite/`
- Middleware: `packages/qwik-router/src/middleware/`
- Adapters: `packages/qwik-router/src/adapters/`
- SSG: `packages/qwik-router/src/ssg/`
- Router e2e tests: `e2e/qwik-e2e/tests/qwikrouter/`

## Verification

Use the closest command that covers the changed surface:

```bash
pnpm vitest run packages/qwik-router/src/buildtime/routing/parse-pathname.unit.ts
pnpm vitest run packages/qwik-router/src/runtime/src/client-navigate.unit.ts
pnpm build.core.dev
pnpm playwright test e2e/qwik-e2e/tests/qwikrouter/nav.e2e.ts --browser=chromium --config e2e/qwik-e2e/playwright.config.ts
```

Do not use `--project chromium` with `e2e/qwik-e2e/playwright.config.ts`; this config expects the
`--browser=chromium` flag.

## Quality Bar

- Keep middleware, loader, and action ordering explicit. Do not add broad fallbacks that hide which
  module owns a request.
- Add regression tests for the exact route shape or request mode that failed, such as index route,
  layout loader, page loader, redirect, action, or SPA navigation.
- When changing serialized route state or loader data, update both server output and client
  consumption in the same change.
- Preserve deprecated Qwik City compatibility only when current source still supports it, and keep
  compatibility warnings/tests intentional.
- If router work exposes stale guidance here or in `.ruler/AGENTS.md`, update the guidance before
  finishing or record why guidance edits were out of scope.

## Stop Conditions

- Stop and inspect the generated API workflow before hand-editing any `*.api.md` file.
- Stop and switch to `qwik-e2e-verification` when most of the work is Playwright setup/debugging.
- Stop and run `pnpm api.update` if exported router API changed.

Versions

The database has no other skills named qwik-router-development.

Database snapshot: 13.11.2026 · package version 4475576e3745 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100qwik-docs-development
    Use when writing, modifying, or reviewing Qwik docs content or docs-site code under packages/docs, including docs routes, MDX content, generated LLM outputs, docs build behavior, or docs-specific e2e tests.
  • 100qwik-e2e-verification
    Use when creating, modifying, debugging, or running Qwik Playwright e2e tests under e2e/, including router, adapters, docs, CLI, and React integration suites.
  • 100qwik
    Qwik is a resumable web framework that delivers instant-loading applications by eliminating hydration. Use when building a Qwik City app: components, signals, routeLoader$, routeAction$ forms, layouts, middleware, deployment adapters, or deciding between Qwik 1.x and the 2.0 release candidate.
  • 90frontend-qwik-architecture
    Use this skill when the user says 'Qwik', 'Qwik architecture', 'Qwik resumable', 'Qwik City', 'Qwik component', '$()', 'resumable', 'lazy loading Qwik', 'Qwik vs React'. This skill enforces: resumability (no hydration, serialized state), dollar-sign API for lazy boundaries, Qwik…
  • 90frontend-qwik-patterns
    Use this skill when the user says 'Qwik pattern', 'Qwik resumable', 'Qwik City route', 'useSignal', 'useStore', 'Qwik lazy loading', 'Qwik optimizer', '$()', 'component$()', 'routeLoader$', 'routeAction$'. This skill enforces: resumability over hydration, dollar-sign API for all…
  • 100agent-next-js-expert
    Specialist subagent: Next.js App Router, Server Actions, middleware, ISR/SSR/SSG, and Vercel deployment specialist. Use when building Next.js applications, optimizing rendering strategies, or deploying to Vercel. Trigger phrases: Next.js, App Router, Server Components, Server…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.