kaiord: Skill for Claude Code

.claude/skills/guidelines/testing-standards/SKILL.md

testing-standards is a skill for Claude Code from pablo-albaladejo/kaiord. It costs 46 tokens per session (1,054 once invoked), scanned A, original, MIT.

A testing guide for different parts of the Kaiord TypeScript project. It explains which tests to use for core rules, application logic, format adapters, command-line tools, and full data conversions.

In plain words
What is it for?
Use it when writing or reviewing tests, choosing unit or integration tests, testing data conversions, or deciding whether a mapper or converter needs tests.
Why use it?
It prevents tests from being placed at the wrong level or relying on unrealistic substitutes for real components. It also sets coverage targets and formatting rules.

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/testing-standards/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 testing-standards

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pablo-albaladejo/kaiord/testing-standards"><img src="https://agentmods.dev/badge/skills/pablo-albaladejo/kaiord/testing-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 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.00046 $0.01054
Opus 5 $0.00023 $0.00527
Sonnet 5 $0.00009 $0.00211
Haiku 4.5 $0.00005 $0.00105

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

Security

Grade A, and why

testing-standards 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/testing-standards/SKILL.md · 83 lines

How it starts

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

Testing Standards — Kaiord

AAA pattern

Every test uses Arrange / Act / Assert with a blank line between each section:

it("converts power zone to explicit watts", () => {
  // Arrange
  const step = buildWorkoutStep({ target: { type: "power", zone: 3 } });

  // Act
  const result = toGcnStep(step);

  // Assert
  expect(result.targetValueOne).toBe(195);
  expect(result.targetValueTwo).toBe(230);
});

Per-layer test strategy

Layer Test type Dependencies Notes
Domain (schemas, types, pure functions) Unit None No mocks
Application (use cases) Unit Port stubs/mocks No real adapters
Adapters Integration FIT SDK, parser, real fixtures Use @kaiord/core/test-utils
Round-trip (FIT ↔ KRD ↔ TCX) Integration Full pipeline Within tolerances in krd-format guideline
CLI Integration Spawns child process Timeout ≥ 15 000 ms

Coverage thresholds

Scope Threshold
@kaiord/core 80%
Frontend (workout-spa-editor) 70%

Mappers vs converters

  • *.mapper.ts — MUST NOT have tests (simple transform, no logic)
  • *.converter.ts — MUST have tests
  • Exception: if a *.mapper.ts grows non-trivial logic (validation, branching, side effects, anything beyond pure field-to-field transformation), refactor it to *.converter.ts and add tests.

Fixture imports

Always import fixtures from @kaiord/core/test-utils. Never re-implement fixture loading.

Read the full file on GitHub · 83 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 · 83 lines · 46 tokens per session scan A 49b053d6bb3a

Subscribe to this mod's changes

testing-standards is a skill published in the GitHub repository pablo-albaladejo/kaiord (9 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 1,054 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.