Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run typecheck
# claude plugin test needs no sign-in or network; the version is pinned in package.json.
- run: npm test
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ Needs Claude Code 2.1.287 or later (mods are on by default).
- The cache countdown assumes the 1-hour prompt-cache TTL. On the 5-minute TTL it will still count down from 60.
- Limits come from the usage Claude Code reports after each turn, refreshed once a minute.

## Develop

```
npm ci
npm run typecheck
npm test
```

`npm run typecheck` runs `tsc` against the mods API types. When you load the mod with `claude --plugin-dir plugins/usage-deck`, Claude Code writes types for your version into `plugins/usage-deck/.claude-plugin/types/`, and the typecheck uses those. In a fresh clone or CI, `scripts/mod-types.mjs` fetches Anthropic's published copy at a pinned commit instead. `npm test` runs `claude plugin test` with the Claude Code version pinned in `package.json`.

## Credits

- **Clawd** is Claude Code's mascot, created by **[Anthropic](https://www.anthropic.com)**. The sprite and the poses here are hand-drawn for the terminal from Anthropic's own Clawd: the pixel mark and animations on [claude.dev](https://claude.dev) and the working-at-a-laptop animation in the Claude Code app. All credit for the character goes to them.
Expand Down
Loading
Loading