Agent Skills
› xberg-io/xberg
› xberg-typescript-toolchain
xberg-typescript-toolchain
GitHub定义 Xberg TypeScript 项目的工具链规范,涵盖 pnpm/npm 锁文件管理、Vitest 测试配置、napi-rs/wasm-pack 构建集成及代码格式化规则。
Trigger Scenarios
修改 TypeScript/JavaScript 项目配置
处理依赖管理与锁文件更新
运行或配置测试与构建流程
Install
npx skills add xberg-io/xberg --skill xberg-typescript-toolchain -g -y
SKILL.md
Frontmatter
{
"name": "xberg-typescript-toolchain",
"type": "Playbook",
"paths": [
"crates\/xberg-node\/**",
"crates\/xberg-wasm\/**",
"integrations\/node\/**",
"e2e\/node\/**",
"e2e\/wasm\/**",
"package.json",
"tsconfig.json"
],
"title": "Xberg Typescript Toolchain",
"x-ai-rulez": {
"id": "xberg-typescript-toolchain",
"kind": "skill",
"metadata": {
"name": "xberg-typescript-toolchain"
}
},
"description": "Change TS\/JS tooling: pnpm\/npm locks, Vitest, napi-rs, wasm-pack and integrations."
}
Xberg TypeScript toolchain
These repository-specific facts override generic TypeScript conventions where they differ.
- Lint and format with
poly lint .andpoly fmt .. Poly embeds oxlint and oxfmt; do not install or invoke oxlint, oxfmt, Prettier, ESLint, or Biome directly, and do not add per-package lint scripts. - Root
tsconfig.jsonenables strict checking options and is a project-reference root fore2e/nodeande2e/wasm. Confirm that the package being changed is included before treating a root typecheck as evidence. - Testing uses Vitest with
@vitest/coverage-v8. No coverage threshold is enforced unless one is added to current configuration. - No runtime schema-validator dependency is guaranteed. Use existing boundary guards or propose a dependency explicitly rather than assuming Zod is available.
- The pnpm workspace uses the root lockfile. Packages under
integrations/node/are outside that workspace and use their own npm lockfiles. Determine ownership before installing or updating dependencies. integrations/node/{langchain,llamaindex}-xberguse tsup. The Node binding is built by napi-rs and the WASM binding by wasm-pack; do not add an application bundler to either binding.- Prefer
workspace:*for new dependencies between packages that are actually in the pnpm workspace. - JavaScript dependency auditing is manual unless a current workflow says otherwise; do not claim an audit ran merely because Rust or poly checks passed.
Version History
- 844bb91 Current 2026-11-03 09:37
- 3be78fd 2026-10-19 16:31
- d8e4815 2026-08-28 18:31


