kronk: Skill for Claude Code

.agents/skills/kronk-service-architecture/SKILL.md

kronk-service-architecture is a skill for Claude Code, Codex from ardanlabs/kronk. It costs 190 tokens per session (1,922 once invoked), scanned A, original, Apache-2.0.

A set of architecture rules for the Kronk Go service. It explains which package owns each part of a request and how packages may depend on one another.

In plain words
What is it for?
Use it when designing, editing, or reviewing Kronk service code and its Go SDK and model-engine packages.
Why use it?
It reduces confusion about where code belongs and helps prevent invalid dependencies between service layers. It also records rules for JSON types, errors, and model interfaces.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is ardanlabs/kronk's own configuration. It tells Claude Code and Codex how to work on kronk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kronk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ardanlabs/kronk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ardanlabs/kronk/main/.agents/skills/kronk-service-architecture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ardanlabs/kronk

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 kronk-service-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/ardanlabs/kronk/kronk-service-architecture/github.svg)](https://agentmods.dev/skills/ardanlabs/kronk/kronk-service-architecture)
Your own site
<a href="https://agentmods.dev/skills/ardanlabs/kronk/kronk-service-architecture"><img src="https://agentmods.dev/badge/skills/ardanlabs/kronk/kronk-service-architecture/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 kronk-service-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/ardanlabs/kronk/kronk-service-architecture"><img src="https://agentmods.dev/badge/skills/ardanlabs/kronk/kronk-service-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,922 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.00190 $0.01922
Opus 5.5 $0.00076 $0.00769
Sonnet 5.5 $0.00038 $0.00384
Haiku 4.5 $0.00019 $0.00192

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

Security

Grade A, and why

kronk-service-architecture 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 2d 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.

.agents/skills/kronk-service-architecture/SKILL.md · 57 lines

How it starts

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

Kronk Service Architecture

The diagram is the request flow, not import direction (see the import rule below). Every arrow is an ownership boundary (Chapter 20 §20.5.1); the owner of a concern is the only place it is implemented.

cmd/kronk (CLI)  ─┐                            examples/ (separate module, public SDK only)
                  ▼                                     │
cmd/server/foundation/{web,logger}   transport, request lifecycle, logging primitives
cmd/server/app/sdk/{mid,errs,mux,…}  middleware, error translation (errs.FromSDK), auth, mux
cmd/server/app/domain/<x>app         routes, access, model lookup, error mapping; typed endpoints
        │                              also own request/response structs (inference: SDK *HTTP writes)
        ▼
sdk/pool  ──►  sdk/{kronk,bucky,malina}/pool  ──►  sdk/pool/engine (+ resman reservations)
        ▼
sdk/kronk · sdk/bucky · sdk/malina   one-model public handles: admission, active use, unload
        ▼
sdk/kronk/model (batch engine, IMC, MTP) · sdk/bucky/model · sdk/malina/model   native state
        ▼
yzma / llama.cpp · whisper.cpp · stable-diffusion.cpp
sdk/tools/*   catalogs, downloads, libs, devices: shared by CLI and toolapp

Which reference to read (MUST)

<skill> = this file's dir. Read the matching reference before writing or auditing the code it covers. This file holds only the invariants.

Task Read
HTTP edge (SDK *HTTP pass-through vs typed endpoints), enums (*_types.go), options, SDK errors and their HTTP mapping <skill>/references/types.md
Handles, pools, engines, streams, IMC, prompt plans, parsers, Responses normalization, speculative/MTP, tracing, Bucky <skill>/references/lifecycle.md
Conditional logic in any Go code: 1-3 branches, nested if/else, type assertions on any <skill>/references/branching.md

Read the full file on GitHub · 57 lines

Files

What ships with it

3 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. 2d ago First seen · 57 lines · 190 tokens per session scan A c727fbcd8691

Subscribe to this mod's changes

kronk-service-architecture is a skill published in the GitHub repository ardanlabs/kronk (864 stars, last pushed yesterday), licensed Apache-2.0. It adds 190 tokens to every session and 1,922 once invoked, about $0.0008 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-11-04.

Related

kronk-service-architecture compared with skills from other repositories

kronk-service-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kronk-service-architectureardanlabs/kronkSkill864yesterdayApache-2.0A190Claude Code, Codex
golang-testingaffaan-m/ECCSkill298k4d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill298k4d agoMITA45Claude Code, Kiro
golang-testingsamber/cc-skills-golangSkill3.8k5d agoMITA115Claude Code
golang-uber-fxsamber/cc-skills-golangSkill3.8k5d agoMITA122Claude Code
golang-samber-oopssamber/cc-skills-golangSkill3.8k5d agoMITA74Claude Code
ax-go-agent-optimizeax-llm/axSkill3.0k3d agoApache-2.0A51Claude Code, Codex