Install
Install with PiG
pig install npm:@srobroek/pi-lang-typescriptInstall with Pi
pi install npm:@srobroek/pi-lang-typescriptPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"skills": [
"./skills"
]
}README
Written by the package's publisher, shown as published in version 0.11.1 (README.md). PiG does not review it.
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 -bortsc --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.mdhas tool choices, bad tests with fixes, and defaults by use case.lang-typescript-packaging: project references andtsc -b,exportsmaps, barrel files, catalogs,--definedead-code removal.lang-typescript-types: strict tsconfig flags, union andsatisfiespatterns, zod at trust boundaries, openapi-typescript.lang-typescript-profiling: Bun and Node--cpu-prof,--heap-prof, heap snapshots, mitata, tinybench. The method is thequalityplugin'squality-profilingskill.