cratis-chronicle-client-typescript

cratis-chronicle-client-typescript is a skill for Claude Code, Codex from Cratis/AI. It costs 40 tokens per session (3,925 once invoked), scanned A, original, MIT.

A guide to using the @cratis/chronicle client from a Node.js or TypeScript application. It covers connecting over gRPC, defining event classes, appending events, and configuring the decorators the client uses.

In plain words
What is it for?
Use it to connect a Node.js or TypeScript service directly to Chronicle and implement event handlers, reducers, and projections.
Why use it?
It distinguishes the server client from the browser-facing Arc proxy layer and highlights version-specific API differences. TypeScript is JavaScript with optional type checking for safer code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect a Node.js or TypeScript service directly to Chronicle and implement event handlers, reducers, and projections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-chronicle-client-typescript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cratis/AI --skill cratis-chronicle-client-typescript
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cratis-chronicle-client-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-chronicle-client-typescript/github.svg)](https://agentmods.dev/skills/cratis/ai/cratis-chronicle-client-typescript)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-chronicle-client-typescript"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-chronicle-client-typescript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cratis-chronicle-client-typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-chronicle-client-typescript"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-chronicle-client-typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.03925
Opus 5.5 $0.00016 $0.01570
Sonnet 5.5 $0.00008 $0.00785
Haiku 4.5 $0.00004 $0.00392

Measured 3d ago against content hash 7993bfea1578, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cratis-chronicle-client-typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cratis/ai/skills/cratis-chronicle-client-typescript/SKILL.md · 326 lines

How it starts

The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The Chronicle client for TypeScript

@cratis/chronicle is a standalone Node.js client SDK that speaks gRPC to a Chronicle server. It is not a browser library and it is not the Arc TypeScript proxy layer — an Arc frontend calls generated command and query proxies over HTTP and never sees this package.

Common pitfalls

Pitfall Why it bites
Naming a reactor method after the handler's purpose Use the camelCase event class name or explicit @handles(EventType)
instanceof on the event inside a handler It is a JSON.parsed plain object, not your class
Event fields with no @field types under tsx No type metadata is emitted; unresolved members make registration fail
Two @eventType() classes sharing a class name The id defaults to the class name and they collide
Deploying compiled dist/*.js with default discovery Compiled-JS entries do not scan; import artifact modules explicitly
Omitting a side-effect import of an artifact module Its decorator never runs, so it is never registered
Forgetting import 'reflect-metadata' at the entry point Decorators do not work at runtime
Forgetting to install @cratis/fundamentals It is a peer dependency and is not installed for you
Importing ChronicleConnectionString There is no ./connection export; pass a string
Carrying a pre-6.0 stream forward Pass all three route dimensions explicitly; omitted routes now resolve to Default/All/Default
A connection string with no credentials Silently falls back to the development client credentials
Shipping the default TLS behavior skipTlsValidation defaults to true
Constructor-injecting without an artifactActivator By default the client constructs the artifact itself
Side-effect reactor without @onceOnly() Reactors run again on kernel replay by default
Reading result.sequenceNumber as a number It is a bigint behind .value
A @globalFor mapping targeting a property one variant lacks GlobalHandlerPropertyNotOnVariant when the group is built, not a silently skipped mapping
Expecting a @globalFor-only class to appear as a projection It is never registered on its own; it is merged into its variants

Read the full file on GitHub · 326 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -74 tokens per session 7993bfea1578
  2. 4d ago Changed · +18 lines 6ee12c668c10
  3. 11d ago Changed · -44 tokens per session 7c1bfe80b418
  4. 15d ago Changed · -94 lines 209e0f5b6698
  5. 17d ago Changed · +9 lines 7b2d7e42202d
  6. 20d ago Changed · -76 lines de7b115cd2aa
  7. 1mo ago Changed · +68 lines · +30 tokens per session 11cb007b306a
  8. 1mo ago Changed · +4 lines a42b7229cca6
  9. 1mo ago First seen · 397 lines · 128 tokens per session scan A 9fff19538b2b

Subscribe to this mod's changes

cratis-chronicle-client-typescript is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 3,925 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens