latitude-llm: Skill for Claude Code

.agents/skills/code-style/SKILL.md

code-style is a skill for Claude Code, Codex from latitude-dev/latitude-llm. It costs 24 tokens per session (1,271 once invoked), scanned A, original, MIT.

Rules for formatting and naming code in a strict TypeScript project, including Biome, a tool that formats code and checks style.

In plain words
What is it for?
It guides Biome usage, import organization, TypeScript type definitions, React file names, relative extensions, and handling of generated files.
Why use it?
It reduces inconsistent formatting, unclear imports, naming mistakes, and type-related problems across the codebase.

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 latitude-dev/latitude-llm's own configuration. It tells Claude Code and Codex how to work on latitude-llm 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 latitude-llm configures →

About the project

Latitude is an open-source platform for monitoring AI agents by collecting execution traces, grouping failures, dispatching coding agents to make fixes, and replaying failures to verify them. Teams use it to observe agent behavior, investigate errors, and monitor whether fixes prevent regressions. The catalogue entries include skills, instructions, and an MCP server for working with Latitude.

latitude-dev/latitude-llm · 4,734 stars · on GitHub · latitude.so

Reuse

Borrowing it

Nothing to install: this file belongs to latitude-dev/latitude-llm. 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/latitude-dev/latitude-llm/development/.agents/skills/code-style/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/latitude-dev/latitude-llm

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 code-style

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/latitude-dev/latitude-llm/code-style"><img src="https://agentmods.dev/badge/skills/latitude-dev/latitude-llm/code-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,271 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.00024 $0.01271
Opus 5.5 $0.00010 $0.00508
Sonnet 5.5 $0.00005 $0.00254
Haiku 4.5 $0.00002 $0.00127

Measured 1mo ago against content hash 079550196e61, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-style 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 1mo 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/code-style/SKILL.md · 79 lines

How it starts

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

Code style, TypeScript, and naming

When to use: Biome formatting, import style, strict TypeScript, naming (including React file names), or generated files. For where domain code lives, see architecture-boundaries.

Code style (Biome)

Biome config (biome.json) is the source of truth:

  • Indentation: 2 spaces
  • Max line width: 120
  • Strings: double quotes
  • Semicolons: as needed
  • Ignore generated/output paths: dist/**, coverage/**, .turbo/**, node_modules/**, **/*.gen.ts, **/models.dev.json
  • Prefer package-local formatting: pnpm --filter @app/api format
  • Cognitive complexity (complexity/noExcessiveCognitiveComplexity) is enabled at max 15. Keep new and edited functions at or under that score — split nested conditionals, loops, and branches into named helpers rather than silencing the rule. Existing hotspots are warn-only until they are refactored; do not add complexity to them.

Imports

  • Prefer static imports; avoid dynamic import patterns unless justified
  • Use import type { ... } for type-only imports
  • Keep imports explicit and grep-friendly
  • Preserve clear grouping/order (external, internal alias, then relative)
  • Avoid wildcard exports/imports when explicit named exports are practical
  • Avoid barrel files (index.ts re-exporting from the same directory); import from the specific module
  • Use .ts/.tsx extensions in relative imports (not .js). The codebase uses TypeScript source extensions for module resolution

TypeScript

Base config: tsconfig.base.json. Typechecking runs under tsgo (TypeScript 7 beta, via @typescript/native-preview) — use tsgo -p tsconfig.json --noEmit in typecheck scripts, never tsc.

  • strict: true is enabled; keep code strict-clean
  • Module system: NodeNext + ESM ("type": "module" in packages/apps)
  • For new domain data contracts, define the canonical shared shape as a Zod schema first when runtime validation is required, then infer TypeScript types from that schema or from Drizzle schemas where appropriate.
  • Treat schemas in src/entities/<entity>.ts as the canonical domain contract. Schemas and types elsewhere in the same domain or at app/platform boundaries should derive from or reuse those entity shapes whenever practical instead of restating identical fields.
  • Canonical entity schemas should treat system-managed fields such as id, createdAt, and updatedAt as core entity fields. Do not split an entity into a business payload plus an appended "persistence" wrapper unless there is a truly distinct boundary/input DTO that needs that separation.
  • Enum-like contracts should use literal-string unions or as const objects, not TypeScript enums.
  • Use shared domain schemas to validate data crossing from app/platform boundaries into domain use-cases.
  • If a boundary schema must differ materially from the entity shape, reuse domain constants, field schemas, and literal unions before introducing duplicated inline limits or sentinel values.
  • Configurable thresholds, weights, debounce windows, sentinel values, and similar tunables should live in named constants inside the owning domain package rather than as scattered inline literals.
  • Types and schemas that exist only as the inputs of one use-case should stay in that use-case file unless several use-cases truly share the same contract.
  • Prefer explicit domain types/interfaces over loose objects
  • Methods/functions with more than one argument should default to a single named-arguments object rather than positional arguments
  • Use readonly fields for immutable domain data shapes
  • Avoid any; use unknown + narrowing
  • Avoid unnecessary type assertions (as { ... }); prefer relying on inferred types from libraries
  • Validate boundary inputs early (API input, queue payloads, external IO)

Read the full file on GitHub · 79 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. 1mo ago Changed · +1 lines 079550196e61
  2. 1mo ago First seen · 78 lines · 24 tokens per session scan A 3047cb2a5861

Subscribe to this mod's changes

code-style is a skill published in the GitHub repository latitude-dev/latitude-llm (4,734 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,271 once invoked, about $0.0001 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-08-30.