Skip to content

Commit 4443a68

Browse files
Brooooooklynclaude
authored andcommitted
fix: correct broken doc paths in skill routing table and clean up stray text
The SKILL.md task routing table referenced non-existent paths (e.g. docs/vite/guide/cli.md) instead of the actual paths (docs/guide/...). Also removes a stray filename fragment in docs/guide/lint.md and excludes the VitePress homepage index.md from skill docs copy since it contains no textual content for AI agents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fdd44d0 commit 4443a68

3 files changed

Lines changed: 25 additions & 19 deletions

File tree

docs/guide/lint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
`vp lint` is built on [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), the Oxc linter. Oxlint is designed as a fast replacement for ESLint for most frontend projects and ships with built-in support for core ESLint rules and many popular community rules.
88

9-
Use `vp lint` to lint your project, and `vp check` to format, lint and type-check all at once.docs/guide/fmt.md
9+
Use `vp lint` to lint your project, and `vp check` to format, lint and type-check all at once.
1010

1111
## Usage
1212

packages/cli/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ async function copySkillDocs() {
448448

449449
// Find all markdown files recursively and copy them with their relative paths.
450450
const mdFiles = globSync('**/*.md', { cwd: docsSourceDir }).filter(
451-
(f) => !f.includes('node_modules'),
451+
(f) => !f.includes('node_modules') && f !== 'index.md',
452452
);
453453
// eslint-disable-next-line unicorn/no-array-sort -- sorted traversal keeps output deterministic
454454
mdFiles.sort();

packages/cli/skills/vite-plus/SKILL.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,31 @@ Then ask what to do next.
2828

2929
## Task Routing
3030

31-
| User intent | Docs file(s) |
32-
| --------------------------------- | -------------------------------------------------------------------------------- |
33-
| CLI command syntax, flags | `docs/vite/guide/cli.md` |
34-
| Initial setup, getting started | `docs/index.md`, `docs/vite/guide/index.md`, `docs/lib/guide/getting-started.md` |
35-
| Dev server, development workflow | `docs/vite/guide/index.md`, `docs/vite/guide/cli.md` |
36-
| Build configuration, optimization | `docs/config/index.md`, `docs/config/shared-options.md` |
37-
| Testing with Vitest | `docs/vite/guide/tasks.md`, `docs/vite/guide/task/getting-started.md` |
38-
| Linting with Oxlint | `docs/vite/guide/cli.md` |
39-
| Formatting with Oxfmt | `docs/vite/guide/cli.md` |
40-
| Monorepo setup and management | `docs/vite/guide/monorepo.md` |
41-
| Migration from existing tools | `docs/vite/guide/migration.md` |
42-
| Caching and performance | `docs/vite/guide/caching.md` |
43-
| Library mode | `docs/lib/guide/getting-started.md` |
44-
| Troubleshooting | `docs/vite/guide/troubleshooting.md` |
45-
| Configuration and shared options | `docs/config/shared-options.md` |
46-
| API reference | `docs/apis/index.md` |
31+
| User intent | Docs file(s) |
32+
| --------------------------------- | ----------------------------------------------------- |
33+
| Initial setup, getting started | `docs/guide/index.md` |
34+
| Dev server, development workflow | `docs/guide/dev.md`, `docs/guide/index.md` |
35+
| Build configuration, optimization | `docs/guide/build.md`, `docs/config/build.md` |
36+
| Testing with Vitest | `docs/guide/test.md`, `docs/config/test.md` |
37+
| Linting with Oxlint | `docs/guide/lint.md`, `docs/config/lint.md` |
38+
| Formatting with Oxfmt | `docs/guide/fmt.md`, `docs/config/fmt.md` |
39+
| Check (format, lint, types) | `docs/guide/check.md` |
40+
| Monorepo tasks | `docs/guide/run.md`, `docs/config/run.md` |
41+
| Migration from existing tools | `docs/guide/migrate.md` |
42+
| Caching and performance | `docs/guide/cache.md` |
43+
| Library mode (pack) | `docs/guide/pack.md`, `docs/config/pack.md` |
44+
| Troubleshooting | `docs/guide/troubleshooting.md` |
45+
| Configuration overview | `docs/config/index.md` |
46+
| Staged files / pre-commit | `docs/guide/commit-hooks.md`, `docs/config/staged.md` |
47+
| Install dependencies | `docs/guide/install.md` |
48+
| Node.js version management | `docs/guide/env.md` |
49+
| Create a new project | `docs/guide/create.md` |
50+
| CI setup | `docs/guide/ci.md` |
51+
| IDE integration | `docs/guide/ide-integration.md` |
52+
| Upgrade Vite+ | `docs/guide/upgrade.md` |
53+
| Execute one-off binaries | `docs/guide/vpx.md` |
4754

4855
## Working Rules
4956

50-
- For CLI-heavy tasks, open `docs/vite/guide/cli.md` first.
5157
- For multi-topic tasks, combine only the needed doc files.
5258
- If docs and memory differ, follow docs.

0 commit comments

Comments
 (0)