Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guide/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

`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.

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

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ async function copySkillDocs() {

// Find all markdown files recursively and copy them with their relative paths.
const mdFiles = globSync('**/*.md', { cwd: docsSourceDir }).filter(
(f) => !f.includes('node_modules'),
(f) => !f.includes('node_modules') && f !== 'index.md',
);
// eslint-disable-next-line unicorn/no-array-sort -- sorted traversal keeps output deterministic
mdFiles.sort();
Expand Down
40 changes: 23 additions & 17 deletions packages/cli/skills/vite-plus/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,31 @@ Then ask what to do next.

## Task Routing

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

## Working Rules

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