Loading...
Loading...
Navigate the Valibot repository structure. Use when looking for files, understanding the codebase layout, finding schema/action/method implementations, locating tests, API docs, or guide pages. Covers monorepo layout, library architecture, file naming conventions, and quick lookups.
npx skill4agent add open-circle/valibot repo-structure-navigatevalibot/
├── library/ # Core valibot package (zero dependencies)
├── packages/
│ ├── i18n/ # Translated error messages (25+ languages)
│ └── to-json-schema/ # JSON Schema converter
├── codemod/
│ ├── migrate-to-v0.31.0/ # Version migration
│ └── zod-to-valibot/ # Zod converter
├── website/ # valibot.dev (Qwik + Vite)
├── brand/ # Brand assets
├── skills/ # Agent skills (this folder)
└── prompts/ # Legacy AI agent guides/library/src/| Directory | Purpose | Examples |
|---|---|---|
| Data type validators | |
| Validation & transformation | |
| High-level API | |
| TypeScript definitions | |
| Internal helpers (prefixed | |
| Global state | Config, message storage |
stringnumberbooleanbigintdatesymbolblobfileobjectstrictObjectlooseObjectobjectWithRestarraytuplestrictTuplelooseTupletupleWithRestunionvariantintersectrecordmapsetlazycustomoptionalnullablenullishnonNullablenonNullishnonOptionalemailurluuidregexminLengthmaxValuechecktrimtoLowerCasetoUpperCasemapItemstransformbrandflavormetadatadescriptiontitleschemas/string/
├── string.ts # Implementation
├── string.test.ts # Runtime tests
├── string.test-d.ts # Type tests
└── index.ts # Re-exportexport interface StringSchema<TMessage> extends BaseSchema<...> {
readonly kind: 'schema';
readonly type: 'string';
// ...
}export interface EmailAction<TInput, TMessage> extends BaseValidation<...> {
readonly kind: 'validation';
readonly type: 'email';
// ...
}export function parse<TSchema>(
schema: TSchema,
input: unknown
): InferOutput<TSchema>;BaseSchemaBaseValidationBaseTransformationInferOutput<T>InferInput<T>InferIssue<T>ConfigErrorMessage<T>BaseIssue<T>'~standard'/website/src/routes/routes/api/
├── (schemas)/string/ # Schema docs
│ ├── index.mdx # MDX content
│ └── properties.ts # Type definitions
├── (actions)/email/ # Action docs
├── (methods)/parse/ # Method docs
├── (types)/StringSchema/ # Type docs
└── menu.md # Navigationroutes/guides/
├── (get-started)/ # Intro, installation
├── (main-concepts)/ # Schemas, pipelines, parsing
├── (schemas)/ # Objects, arrays, unions
├── (advanced)/ # Async, i18n, JSON Schema
├── (migration)/ # Version upgrades
└── menu.md # Navigationlibrary/playground.tslibrary/src/schemas/yourSchema/yourSchema.tsyourSchema.test.tsyourSchema.test-d.tsindex.tsindex.tspnpm -C library testlibrary/src/types/| Looking for... | Location |
|---|---|
| Schema implementation | |
| Action implementation | |
| Method implementation | |
| Type definitions | |
| Internal utilities | |
| Error messages (i18n) | |
| API docs page | |
| Guide page | |
| Tests | Same directory as source, |
| Type tests | Same directory as source, |
# Library
pnpm -C library build # Build
pnpm -C library test # Run tests
pnpm -C library lint # Lint
pnpm -C library format # Format
# Website
pnpm -C website dev # Dev server
pnpm -C website build # Production build
# Root
pnpm install # Install all
pnpm format # Format all// @__NO_SIDE_EFFECTS__.tsdist/coverage/