kaiord: Skill for Claude Code

.claude/skills/guidelines/design-principles/SKILL.md

design-principles is a skill for Claude Code from pablo-albaladejo/kaiord. It costs 39 tokens per session (463 once invoked), scanned A, original, MIT.

A set of rules for writing and organizing TypeScript code, including naming, file size, types, schemas, and data transformations.

In plain words
What is it for?
Use it when writing or reviewing TypeScript, naming symbols, choosing between a type and an interface, or creating schemas, mappers, and converters.
Why use it?
It gives developers consistent choices and helps automated checks catch unclear names, oversized code, and missing tests for complex transformations.

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/design-principles/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 design-principles

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pablo-albaladejo/kaiord/design-principles"><img src="https://agentmods.dev/badge/skills/pablo-albaladejo/kaiord/design-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 463 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.00039 $0.00463
Opus 5 $0.00019 $0.00231
Sonnet 5 $0.00008 $0.00093
Haiku 4.5 $0.00004 $0.00046

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

Security

Grade A, and why

design-principles 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 10d 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/design-principles/SKILL.md · 48 lines

What it actually says

Design Principles — Kaiord

TypeScript

  • Strict mode; no implicit any
  • Use type not interface
  • Separate type imports: import type { X } from '...'
  • Factory functions preferred over classes

File and function size

  • Files ≤ 100 lines (tests exempt)
  • Functions < 40 LOC (React components < 60 LOC)

Naming

  • All code, comments, commits, and docs must be in English
  • File names: kebab-case.ts
  • Zod schemas: camelCase name, e.g. workoutStepSchema
  • KRD field names: camelCase — subSport, durationType, heartRate
  • KRD enum values: snake_case — "indoor_cycling", "lap_swimming"
  • Access enums via .enum: subSportSchema.enum.indoor_cycling
  • Adapters MAY use camelCase internally but MUST emit snake_case enum values in KRD output

Mappers vs converters

File pattern When to use Tests
*.mapper.ts Simple transformation, no logic MUST NOT have tests
*.converter.ts Complex logic, branching MUST have tests

Enforcement: scripts/check-mapper-no-tests.mjs (R-MapperNoTests) and scripts/check-converter-has-tests.mjs (R-ConverterHasTests).

Comments

Write no comments by default. Add one only when the WHY is non-obvious: a hidden constraint, a subtle invariant, a specific bug workaround. Never describe WHAT the code does — well-named identifiers do that.

Quality

  • Zero ESLint warnings, zero TS errors, zero test warnings, zero build warnings
  • When existing code violates a rule: fix the code — never relax the rule (no error→warn or warn→off)
  • Boy Scout Rule: leave the codebase cleaner than you found it
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. 10d ago First seen · 48 lines · 39 tokens per session scan A ba78e3ec3da0

Subscribe to this mod's changes

design-principles is a skill published in the GitHub repository pablo-albaladejo/kaiord (9 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 463 once invoked, about $0.0002 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.