kaiord: Skill for Claude Code

.claude/skills/guidelines/architecture-hexagonal/SKILL.md

architecture-hexagonal is a skill for Claude Code from pablo-albaladejo/kaiord. It costs 68 tokens per session (1,620 once invoked), scanned A, original, MIT.

A code-placement guide for a TypeScript project organized into layers: core rules, interfaces, application logic, and format-specific input and output code.

In plain words
What is it for?
Use it when adding files, designing packages, reviewing imports, adding input/output handling, or working in the listed project folders.
Why use it?
It helps prevent code from depending on the wrong layer or package. Automated checks catch imports that break the intended structure.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is pablo-albaladejo/kaiord's own configuration. It tells Claude Code how to work on kaiord 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 kaiord configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pablo-albaladejo/kaiord. 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/pablo-albaladejo/kaiord/main/.claude/skills/guidelines/architecture-hexagonal/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pablo-albaladejo/kaiord

Made for: Claude Code.

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 architecture-hexagonal

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pablo-albaladejo/kaiord/architecture-hexagonal"><img src="https://agentmods.dev/badge/skills/pablo-albaladejo/kaiord/architecture-hexagonal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00068 $0.01620
Opus 5 $0.00034 $0.00810
Sonnet 5 $0.00014 $0.00324
Haiku 4.5 $0.00007 $0.00162

Measured 9d ago against content hash 817ac7431f83, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

architecture-hexagonal 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 9d 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.

.claude/skills/guidelines/architecture-hexagonal/SKILL.md · 137 lines

How it starts

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

Hexagonal Architecture — Kaiord

Layer graph

domain ← ports ← application ← adapters

No rightward imports. Enforced by scripts/check-architecture.mjs pre-commit hook. Canonical reference: openspec/specs/hexagonal-arch/spec.md.

Layer Lives in Depends on Rules
domain/ packages/core/src/domain/ nothing pure TypeScript types + Zod schemas only; no external libs
ports/ packages/core/src/ports/ domain only pure interfaces/type aliases; no runtime code
application/ packages/core/src/application/ domain + ports use cases; no external libs; no adapter imports
adapters packages/<fit|tcx|zwo|garmin>/src/adapters/ @kaiord/core only MAY use external libs; MUST NOT import other format adapters

Decision rule for new code:

  • Types/Zod schemas → domain/
  • Interfaces → ports/
  • Orchestration → application/
  • I/O or format parsing → adapter package

Package dependency table

Full normative table: openspec/specs/hexagonal-arch/spec.md, Requirement: Package Dependencies.

Summary:

  • @kaiord/core — no workspace deps (root of the graph)
  • @kaiord/fit, tcx, zwo, garmin@kaiord/core only; never each other
  • @kaiord/garmin-connect@kaiord/core + @kaiord/garmin
  • @kaiord/ai@kaiord/core only (+ ai as peer)
  • @kaiord/mcp@kaiord/core + all format adapters + @kaiord/garmin-connect
  • @kaiord/cli@kaiord/core + all adapters + @kaiord/garmin-connect
  • @kaiord/workout-spa-editor@kaiord/core, @kaiord/ai, @kaiord/fit, @kaiord/garmin, @kaiord/tcx, @kaiord/zwo
  • @kaiord/garmin-bridge, @kaiord/train2go-bridge — no workspace deps (Chrome extensions)

Read the full file on GitHub · 137 lines

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. 9d ago First seen · 137 lines · 68 tokens per session scan A 817ac7431f83

Subscribe to this mod's changes

architecture-hexagonal is a skill published in the GitHub repository pablo-albaladejo/kaiord (9 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 1,620 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

analytical-table

Use ALWAYS for AnalyticalTable internals — react-table v7 plugin architecture, vendored react-table code at packages/main/src/components/AnalyticalTable/react-table/, tableHooks, AnalyticalTableHooks, useDynamicColumnWidths, useColumnResizing, useRowSelect, useF2CellEdit, useManualRowSelect…

UI5/webcomponents-react · 209 tokens

ui5wc-upgrade

Guide a complete UI5 Web Components version upgrade in the ui5-webcomponents-react monorepo. Updates root and peer dependencies, regenerates wrapper components, syncs theming parameters, updates version-info, detects new components and breaking changes, and verifies the build. Use when a new @ui5/webcomponents version…

UI5/webcomponents-react · 79 tokens

typescript-expert

TypeScript expert for type system, generics, utility types, and strict mode patterns.

RightNow-AI/openfang · 21 tokens

openagentskill-registry

Discover, compare, audit, and safely install reusable AI Agent Skills with OpenAgentSkill. Use whenever an agent needs a capability it does not already have, must compare Skill alternatives, or needs evidence before installing third-party instructions.

Leon-Drq/openagentskill · 51 tokens

cli-commands

MUST use when using the CLI, including debugging job failures and inspecting run history via wmill job.

windmill-labs/windmill · 26 tokens

write-script-bun

MUST use when writing TypeScript scripts. Bun is the default and preferred TypeScript runtime — pick it for TypeScript unless the script specifically needs Deno.

windmill-labs/windmill · 37 tokens