kaiord: Skill for Claude Code

.claude/skills/guidelines/frontend-patterns/SKILL.md

frontend-patterns is a skill for Claude Code from pablo-albaladejo/kaiord. It costs 35 tokens per session (391 once invoked), scanned A, original, MIT.

A set of frontend rules for a React workout editor, covering screen components, shared state, saved data, and Garmin workout targets.

In plain words
What is it for?
Use it when building or reviewing the workout editor, React components, custom hooks, Zustand state, Dexie database queries, or Garmin Connect workout targets.
Why use it?
It helps keep temporary editing state, saved information, and local interface state in the right places. It also avoids incorrect heart-rate, pace, and power targets caused by using Garmin's default zones instead of the user's actual values.

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/frontend-patterns/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 frontend-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/pablo-albaladejo/kaiord/frontend-patterns.svg)](https://agentmods.dev/skills/pablo-albaladejo/kaiord/frontend-patterns)
Your own site
<a href="https://agentmods.dev/skills/pablo-albaladejo/kaiord/frontend-patterns"><img src="https://agentmods.dev/badge/skills/pablo-albaladejo/kaiord/frontend-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 391 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.00035 $0.00391
Opus 5 $0.00017 $0.00196
Sonnet 5 $0.00007 $0.00078
Haiku 4.5 $0.00003 $0.00039

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

Security

Grade A, and why

frontend-patterns 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 8d 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/frontend-patterns/SKILL.md · 37 lines

What it actually says

Frontend Patterns — Kaiord

SPA state management routing

State type Tool Rule
Editor runtime (undo/redo, selection, clipboard) Zustand (workout-store) Never auto-persisted
Persisted data (workouts, templates, profiles, AI providers, sync state) Dexie + useLiveQuery One query per page
Ephemeral UI (modals, spinners) and shared runtime (bridge status) React useState / useContext

Rule: "Editor runtime → Zustand. Persisted data → Dexie. Local UI → React state."

Generic components

Generic components MUST use the port/adapter pattern — never import platform-specific stores directly. A component that could be reused across contexts must receive data and callbacks via props, not by importing Zustand or Dexie internals.

GCN targets — never use zoneNumber

zoneNumber maps to Garmin's default zones, not the user's custom zones. This causes NaN display in the Garmin Connect UI for pace and wrong zone values for HR and power.

Always use explicit targetValueOne / targetValueTwo with the zone's actual values (bpm, m/s, watts).

// WRONG
{ targetType: 'pace', zone: { zoneNumber: 2 } }

// CORRECT
{ targetType: 'pace', targetValueOne: 2.54, targetValueTwo: 2.86 }

This applies to all target types: pace, heart rate, and power.

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. 8d ago First seen · 37 lines · 35 tokens per session scan A df58c708794c

Subscribe to this mod's changes

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

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

saleor-paper-storefront

Project-specific patterns for the Saleor Paper storefront built with Next.js 16, TypeScript, and Tailwind CSS. Use when working with product pages, checkout flow, caching, variant selection, filtering, SEO, or UI components. For universal Saleor API patterns, see the saleor-storefront dependency.

saleor/storefront · 68 tokens

a2ui-renderer

Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via . Auto-activates via /info — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit/react-core/v2; low-level primitives…

CopilotKit/CopilotKit · 175 tokens

copilotkit-integrations

Use when wiring an external agent framework (LangGraph, CrewAI, PydanticAI, Mastra, ADK, LlamaIndex, Agno, Strands, Microsoft Agent Framework, or others) into a CopilotKit application via the AG-UI protocol.

CopilotKit/CopilotKit · 61 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens