원클릭으로
ccusage-typescript
// Guides ccusage TypeScript package and tooling work. Use when editing apps/ccusage .ts/.js files, Vitest tests, Bun scripts, package launchers, schema tooling, or benchmark scripts.
// Guides ccusage TypeScript package and tooling work. Use when editing apps/ccusage .ts/.js files, Vitest tests, Bun scripts, package launchers, schema tooling, or benchmark scripts.
Guides ccusage Rust tests. Use when adding or fixing cargo tests, CLI snapshots, Claude model pricing, LiteLLM compatibility, or Rust fixture-backed parser and loader tests.
Guides ccusage Rust implementation work. Use when editing rust/crates, native packaging, parser/module layout, pricing embedding, or Rust/TypeScript parity.
Profiles Bun TypeScript and JavaScript package scripts. Use for launcher, benchmark, or packaging hot paths; use ccusage-rust-profile for native CLI performance.
Creates atomic Conventional Commits. Use when committing code changes, splitting hunks into revertable units, or writing detailed commit messages.
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 t-wada Red-Green-Refactor TDD. Use when implementing features, fixing bugs, or refactoring logic with strict test-first development.
| name | ccusage-typescript |
| description | Guides ccusage TypeScript package and tooling work. Use when editing apps/ccusage .ts/.js files, Vitest tests, Bun scripts, package launchers, schema tooling, or benchmark scripts. |
| paths | ["apps/ccusage/**/*.ts","apps/ccusage/**/*.js","docs/**/*.ts","scripts/**/*.ts"] |
| globs | apps/ccusage/**/*.ts,apps/ccusage/**/*.js,docs/**/*.ts,scripts/**/*.ts |
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.
Use typescript-style for detailed TypeScript conventions. 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.Vitest remains relevant for the TypeScript package launcher, schema artifacts, benchmark scripts, and docs/package tooling. Prefer Rust tests for production CLI runtime behavior.
Read references/vitest.md for ccusage-specific Vitest patterns. Read
../tdd/references/vitest-running-and-modifiers.md for broader Vitest command
and modifier examples, and ../tdd/references/vitest-readability.md for
behavior-focused assertion examples.
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 bun-cpu-profile for TypeScript launcher, benchmark, or packaging script
performance. Use ccusage-rust-profile for native CLI performance.
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:
pnpm run test:vitest
pnpm run format
pnpm typecheck
pnpm run test