@srobroek/pi-lang-typescript

TypeScript and JavaScript skills: install, lint, tsc and test checks, testing, monorepo packaging, type safety and zod, and Bun and Node profiling.

Packages

Package details

skill

Install @srobroek/pi-lang-typescript from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@srobroek/pi-lang-typescript
Package
@srobroek/pi-lang-typescript
Version
0.14.0
Published
Dec 2, 2026
Downloads
1,184/mo · 801/wk
Author
srobroek
License
Apache-2.0
Types
skill
Size
161.6 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "skills": [
    "./skills"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

lang-typescript

TypeScript and JavaScript skills: the install, lint, type-check and test commands to run through the shell tool and in CI, test-runner idioms, monorepo and package layout, the type-safety rules, and the Bun and Node profiler and benchmark tooling. Formatting is OpenCode's built-in formatter ("formatter": true); see docs/formatters.md.

Replaces the TypeScript half of the former languages plugin, which ported the omp-plugins typescript plugin. Its typescript_quality tool is not ported, and the typescript-type-safety rule (which omp attached to *.ts, *.tsx and *.mts files) is part of lang-typescript-types.

Install

Install the Pi package from npm:

pi install npm:@srobroek/pi-lang-typescript
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/lang-typescript/opencode'

Claude Code install the same skills from this repository's marketplace:

claude plugin install lang-typescript@harness-plugins

Skills

Only lang-typescript is listed to the model in OpenCode: it is a router whose body maps each situation to the skills below, which set opencode/autoinvoke: false and load by id. One listing entry instead of one per skill keeps the per-request skills listing short. Claude Code ignores that metadata, so there every skill is listed and triggers directly. The profiling skill is also reached through the quality plugin's quality-profiling skill.

The plugin registers these skills from skills/, unless a skill with the same id already exists:

  • lang-typescript: the router.
  • lang-typescript-libraries: compare Node and Bun library defaults before writing code; web, data, messaging, AWS, telemetry, AI, CLI, testing and security references.
  • lang-typescript-quality: frozen-lockfile install, the configured formatter/linter (Biome default for unconfigured projects; ESLint for a named gap), tsc -b or tsc --noEmit, and the configured test script, in that order; workspace filters and CI.
  • lang-typescript-testing: use the project's configured test runner (Bun test for Bun projects; Vitest is an alternative), module mocks, snapshots, msw, fake timers, fast-check; references/practice.md has tool choices, bad tests with fixes, and defaults by use case.
  • lang-typescript-packaging: project references and tsc -b, exports maps, barrel files, catalogs, --define dead-code removal.
  • lang-typescript-types: strict tsconfig flags, union and satisfies patterns, zod at trust boundaries, openapi-typescript.
  • lang-typescript-profiling: Bun and Node --cpu-prof, --heap-prof, heap snapshots, mitata, tinybench. The method is the quality plugin's quality-profiling skill.