Skip to content

Commit f1c1dca

Browse files
feat(skill): route every reference page from the void skill
Add the 15 unrouted docs/reference pages to the void skill's Task Routing table and a unit test that fails when a reference page is not routed.
1 parent b0ff2fa commit f1c1dca

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

‎packages/void/skills/void/SKILL.md‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Use `void deploy --skip-migrations` when database migrations run separately; it
4545
| Pages mode, loader/action, forms, layouts | `docs/guide/pages-routing/*.md`, `docs/guide/type-safety.md` |
4646
| Database and migrations | `docs/guide/database.md`, `docs/guide/type-safety.md` |
4747
| D1 replicas, bookmarks, read-after-write | `docs/guide/database/d1.md`, `docs/reference/api/database.md` |
48-
| Typed fetch and end-to-end typing | `docs/guide/typed-fetch.md`, `docs/guide/type-safety.md` |
48+
| Typed fetch and end-to-end typing | `docs/guide/typed-fetch.md`, `docs/guide/type-safety.md`, `docs/reference/api/client.md` |
4949
| Authentication | `docs/guide/auth.md`, `docs/reference/api/auth.md`, `docs/guide/env-vars.md` |
5050
| Cloudflare runtime bindings and config | `docs/integrations/cloudflare.md`, `docs/reference/config.md`, `docs/guide/env-vars.md` |
5151
| AI inference (Workers AI, providers) | `docs/guide/ai.md` |
@@ -70,12 +70,19 @@ Use `void deploy --skip-migrations` when database migrations run separately; it
7070
| Cache purging | `docs/reference/cli/project.md` |
7171
| Project logs, runtime errors | `docs/reference/cli/project.md` |
7272
| Secrets management (put/sync/delete) | `docs/reference/cli/secrets.md`, `docs/guide/env-vars.md` |
73-
| Typed env vars (`defineEnv`, `env.ts`) | `docs/guide/env-vars.md` |
73+
| Typed env vars (`defineEnv`, `env.ts`) | `docs/guide/env-vars.md`, `docs/reference/api/env.md` |
7474
| Custom domain setup | `docs/reference/cli/domains.md` |
7575
| Database status, reset, seed, export | `docs/reference/cli/database.md`, `docs/guide/database.md` |
7676
| Auth login/logout/whoami | `docs/reference/cli/auth.md` |
7777
| Overview / introduction | `docs/guide/index.md` |
78-
| API surface details | `docs/reference/api.md` |
78+
| API surface details | `docs/reference/api.md`, `docs/reference/api/handlers.md`, `docs/reference/api/types.md` |
79+
| Pages adapters and Durable State APIs | `docs/reference/api/pages.md`, `docs/reference/api/durable.md` |
80+
| Resource clients and rewrite helpers | `docs/reference/api/resources.md`, `docs/reference/api/rewrites.md` |
81+
| Vite plugin setup and options | `docs/reference/api/plugin.md`, `docs/reference/config.md` |
82+
| Email recipients and platform email CLI | `docs/reference/cli/email.md`, `docs/reference/cli/platform-email.md` |
83+
| GitHub push-to-deploy connection | `docs/reference/cli/github.md` |
84+
| Scaffold a Drizzle table and its routes | `docs/reference/cli/generate.md` |
85+
| Platform operations and Zero Trust | `docs/reference/cli/platform-operations.md`, `docs/reference/cli/platform-zero-trust.md` |
7986
| Meta framework integration | `docs/integrations/frameworks/*.md` |
8087
| Coding agent setup | `docs/integrations/agents.md` |
8188
| Node.js / Bun / Deno targets | `docs/integrations/nodejs-bun-deno.md` |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { readdirSync, readFileSync } from 'node:fs';
2+
import { join } from 'node:path';
3+
import { expect, it } from 'vite-plus/test';
4+
5+
const packageDir = join(import.meta.dirname, '../..');
6+
const referenceDir = join(packageDir, '../../docs/reference');
7+
const skill = readFileSync(join(packageDir, 'skills/void/SKILL.md'), 'utf8');
8+
9+
it('routes every reference page from the void skill', () => {
10+
const pages = readdirSync(referenceDir, { recursive: true, encoding: 'utf8' })
11+
.filter((file) => file.endsWith('.md'))
12+
.map((file) => `docs/reference/${file.replaceAll('\\', '/')}`);
13+
14+
expect(pages.filter((page) => !skill.includes(page))).toEqual([]);
15+
});

0 commit comments

Comments
 (0)