with one click
typescript
Guides ccusage TypeScript and JavaScript work. Use before reading or editing .ts, .tsx, .js, or .jsx files, including package launchers, Vitest tests, Bun scripts, schemas, mocks, and typed fixtures.
Menu
Guides ccusage TypeScript and JavaScript work. Use before reading or editing .ts, .tsx, .js, or .jsx files, including package launchers, Vitest tests, Bun scripts, schemas, mocks, and typed fixtures.
| name | typescript |
| description | Guides ccusage TypeScript and JavaScript work. Use before reading or editing .ts, .tsx, .js, or .jsx files, including package launchers, Vitest tests, Bun scripts, schemas, mocks, and typed fixtures. |
| paths | ["**/*.ts","**/*.tsx","**/*.js","**/*.jsx"] |
| globs | *.ts,*.tsx,*.js,*.jsx |
Use this skill for the remaining TypeScript and JavaScript package surface:
apps/ccusage/src/cli.ts native binary launcher.apps/ccusage/scripts/** package, schema, benchmark, and native staging scripts.Runtime CLI behavior belongs in Rust under rust/crates/ccusage. Do not add new
TypeScript adapter logic unless the user explicitly scopes work to the package
layer.
Read references/style.md before editing TypeScript or JavaScript. In this
repo:
satisfies and as const satisfies for typed literals, mocks, config objects, and table-driven cases.as assertions and especially as any..ts extensions for local imports.logger.ts instead of console.log in package code.Use testing and read testing/references/vitest.md for ccusage-specific
Vitest patterns. Prefer Rust tests for production CLI runtime behavior.
Use bun-api-reference before changing Bun runtime APIs such as Bun.$,
Bun.file(), Bun.write(), Bun.spawn(), Bun.argv, Bun.stdout,
Bun.stderr, or Bun.stringWidth().
Use profile for TypeScript launcher, benchmark, packaging script, or native
CLI performance work.
There is no TypeScript similarity skill in this repo. Use ast-grep or rg for
TypeScript duplication checks unless a dedicated similarity-ts workflow is
reintroduced.
Run focused checks during iteration, then the normal root workflow before finishing:
just test-vitest
just fmt
just typecheck
just test
Runs the full PR lifecycle. Use when creating a branch, committing, pushing, opening a PR, requesting AI review, and driving CI and review to completion.
Guides ccusage monorepo development. Use when editing packages, docs, shared configuration, bundled CLI packaging, dependencies, exports, or validation commands.
Guides repo-local skill creation and updates. Use when adding or editing .agents/skills, SKILL.md frontmatter, references, scripts, or skill routing.
Guides ccusage Rust and Vitest tests. Use when adding or fixing cargo tests, CLI snapshots, Claude model pricing, LiteLLM compatibility, Vitest tests, or fixture-backed tests.
Guides t-wada Red-Green-Refactor TDD. Use when implementing features, fixing bugs, or refactoring logic with strict test-first development.
Guides ccusage agent source formats. Use when checking agent log locations, raw record structure, token mappings, model names, precomputed costs, or source-specific CLI behavior.