Agent skill

Jooq Best Practices

by jvm-skills in jvm-skills/jvm-skills

Comprehensive jOOQ DSL best practices for Kotlin/Java. An agent skill from jvm-skills/jvm-skills.

Apache-2.0Auto-check passedMobile

Install Jooq Best Practices

skills CLI
$ npx skills add jvm-skills/jvm-skills --skill jooq-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jvm-skills/jvm-skills jooq-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jvm-skills/jvm-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.junie/skills/jooq-best-practices .claude/skills/jooq-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
jooq-best-practices
GitHub stars
139
Token cost
~2.1k tokens
SKILL.md length
831 words
Files
36
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

Comprehensive jOOQ DSL best practices for Kotlin/Java. An agent skill from jvm-skills/jvm-skills.

  • Works in 2 steps: Reference the knowledge files below for… → If you hit a compile error or conflict…
  • Writing jOOQ queries
  • SKILL.md covers How to use, Knowledge base and Core rules (always apply)
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Jooq Best Practices is an agent skill from jvm-skills/jvm-skills. Comprehensive jOOQ DSL best practices for Kotlin/Java. Use when writing jOOQ queries, mapping results, handling transactions, or designing repository layers.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 36 other files (for example `UNCERTAINTIES.md`, `knowledge/aggregate-functions.md` and `knowledge/anti-patterns.md`).

It sits in Mobile, covering Android development. It works with Java, Kotlin and SQL. The licence is Apache-2.0.

When your agent uses it

  • Writing jOOQ queries
  • Mapping results
  • Handling transactions
  • Designing repository layers

Example prompts

  • “/jooq-best-practices”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Reference the knowledge files below for patterns, best practices, and real-world examples
  2. If you hit a compile error or conflict with a knowledge entry, use the jOOQ MCP server to check current syntax

What it can do on your machine

Read from SKILL.md and the folder at commit c6d477f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Jooq Best Practices loads about 2.1k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 831 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jvm-skills/jvm-skills at commit c6d477f, republished under its Apache-2.0 licence (© jvm-skills). 831 words, ~2,127 tokens.

Download SKILL.mdSave it as .claude/skills/jooq-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 35 other files; get the full folder from GitHub.
name
jooq-best-practices
description
Comprehensive jOOQ DSL best practices for Kotlin/Java. Use when writing jOOQ queries, mapping results, handling transactions, or designing repository layers.

jOOQ Best Practices

Expert knowledge base for jOOQ 3.20 DSL usage, SQL patterns, and Kotlin integration. Built from official docs + 783 blog articles (progressively updated).

How to use

  1. Reference the knowledge files below for patterns, best practices, and real-world examples
  2. If you hit a compile error or conflict with a knowledge entry, use the jOOQ MCP server to check current syntax

Knowledge base

<!-- This section is auto-updated by the Ralph processing loop -->
  • anti-patterns.md — 20 "don't do this" rules: schema, SQL, jOOQ API, H2 compatibility modes; .eq() vs .equals(); noCondition() for dynamic SQL; always call .execute(); don't map relational→objects→JSON when SQL can produce JSON directly
  • multiset.md — Nested collections with MULTISET, JSON emulation
  • fetching-mapping.md — RecordMapper, fetchMap, fetchGroups, collect() with JDK Collectors, ad-hoc converters, dot-notation alias for nested class mapping, fetchSize() for JDBC fetch size
  • array-operations.md — Array lambda functions (filter, map, match) with PostgreSQL emulation
  • merge-upsert.md — SQL MERGE as RIGHT JOIN mental model, full sync with FULL JOIN in USING clause, AND conditions in WHEN clauses, Oracle/SQL Server dialect variants, ORA-38104 workarounds
  • implicit-joins.md — Implicit/explicit path joins, join elimination, path correlation, to-many joins, ON-clause paths, synthetic FKs
  • code-generator.md — Code generator configuration: visibility modifiers, custom strategies, TVP wrappers, version compatibility, forced types (incl. MySQL TINYINT(1)→Boolean), embedded types, schema mapping, Testcontainers code generation, LiquibaseDatabase, Meta.migrateTo() schema diffing
  • hierarchical-queries.md — Records.intoHierarchy() collector, recursive CTEs for tree structures
  • derived-tables.md — Derived table declaration, type-safe column refs, simplification, LATERAL as local variables, asterisk().except()
  • aggregate-functions.md — FILTER vs CASE in aggregates, COUNT(*) vs COUNT(1), functional dependencies in GROUP BY, table-level grouping, REDUCE simulation via recursive CTE, PRODUCT() emulation via EXP/LN (handles zeros/negatives, works as window function), weighted averages to fix join-multiplication distortion, PERCENTILE_DISC for skew detection, PERCENTILE_DISC emulation via PERCENT_RANK+FIRST_VALUE, custom user-defined aggregates (PostgreSQL CREATE AGGREGATE, Oracle ODCI interface)
  • logging.md — LoggingConnection for SQL logging, DiagnosticsConnection for N+1 detection, ExecuteListener/CallbackExecuteListener for lifecycle hooks, DefaultConnection as JDBC proxy
  • native-sql-strategy.md — When to use jOOQ DSL vs views/functions for complex static SQL
  • stored-procedures.md — Calling procedures with default/named parameters; vendor-agnostic anonymous blocks, while_/for_ loops, and cross-dialect procedural logic
  • type-system.md — jOOQ type hierarchy: DSLContext vs DSL, Result vs Cursor, Converter vs Binding, AlwaysInlineBinding for skewed enums, Condition as Field<Boolean>; Oracle BINARY_DOUBLE vs NUMBER performance
  • dml-returning.md — RETURNING data from INSERT/UPDATE/DELETE across dialects, data change delta tables, set-based vs row-by-row DML performance, Oracle aggregate RETURNING
  • computed-columns.md — Virtual client-side computed columns as reusable expressions, context-aware projections; DB-side GENERATED ALWAYS AS columns for constant FK values
  • transactions.md — Explicit programmatic transactions, NESTED savepoints, R2DBC reactive transactions
  • sequences.md — Fetching single/batch sequence values across dialects
  • qom-traverser.md — Query Object Model inspection, expression tree traversal, SQL transformation with $replace()
  • spring-boot-config.md — DefaultConfigurationCustomizer for Spring Boot jOOQ config; MySQL allowMultiQueries flag; switching to commercial editions; static classpath jooq-settings.xml override
  • parser.md — Parser ignore comments, parsing connection for dialect translation, IN list padding, Oracle implicit-join-to-ANSI-JOIN transformation, online SQL translation tool
  • result-formatting.md — ASCII chart output, formatChart() for console visualization
  • sql-json.md — jsonObject/jsonArrayAgg nesting pattern (3.14, superseded by MULTISET 3.15+); dialect pitfalls: MySQL type degradation, Oracle CLOB, GROUP_CONCAT truncation, NULL semantics
  • r2dbc-reactive.md — R2DBC setup, reactive query execution with Flux/Mono, automatic connection lifecycle management
  • pagination.md — Single-query pagination metadata (total rows, page number, last-page flag) via COUNT(*) OVER() in nested derived tables; deterministic ordering requirement
  • set-operations.md — Table diff with EXCEPT/UNION vs FULL JOIN USING; NULL-safe comparison with IS NOT DISTINCT FROM; row value expression NULL semantics; INTERSECT precedence over UNION/EXCEPT; multi-column row() IN predicates
  • plain-sql-templating.md — val() vs inline() (bind vs literal), plain SQL field/table/condition templates with SQL injection safety, name() for identifiers, keyword() for consistent rendering, text blocks for multi-line plain SQL, custom DSL wrapper helpers to encapsulate plain SQL templates
  • dynamic-sql.md — noCondition/trueCondition/falseCondition for optional predicates, conditional SELECT fields, conditional JOINs, conditional UNION branches
  • naming-conventions.md — Table aliasing algorithm, semantic type prefixes, singular/plural consistency
  • window-functions.md — DISTINCT ON emulation with FIRST_VALUE; LAST_VALUE IGNORE NULLS for gap-filling; cumulative percentage with nested SUM aggregates
  • temporal-tables.md — Delta-to-snapshot reconstruction with ROW_NUMBER; SQL:2011 temporal tables (SQL Server, Oracle, MariaDB)
  • predicates.md — Quantified LIKE ANY / LIKE ALL predicates replacing verbose OR chains
  • join-patterns.md — ON clause vs WHERE clause semantics in outer joins; predicate placement rules
  • updatable-record.md — UpdatableRecord CRUD: changed() delta tracking, DB DEFAULT support, avoid POJO round-trips
Show full SKILL.md (167 more words)Show less

Core rules (always apply)

  • Target version: jOOQ 3.20 on PostgreSQL
  • Use jOOQ DSL in repository classes, never raw SQL in controllers/services
  • Map results to Kotlin data classes
  • Use record.FIELD not record.get(field) for type safety
  • Use jOOQ-generated enums, don't replicate DB enums in Kotlin
  • Prefer fetchMap(KEY, VALUE) with coerceTo() for aggregates
  • Wrap multi-step DB operations in @Transactional
  • Use DSL.name("cte").as(select...) for CTEs
  • Use EXISTS() not COUNT(*) > 0 for existence checks
  • Prefer COUNT(*) over COUNT(1) — identical semantics but ~10% faster on PostgreSQL; use count() (no argument) in jOOQ DSL
  • Use NOT EXISTS instead of NOT IN with nullable columns
  • Prefer UNION ALL over UNION unless dedup is needed
  • Prefer FILTER (WHERE ...) over CASE in aggregates — more readable and faster on PostgreSQL
  • Always execute jOOQ queries through jOOQ — don't extract SQL for JDBC/JPA (loses MULTISET emulation, type-safe mapping, R2DBC)
  • Test against the real target database (via Testcontainers), not H2 with compatibility modes
  • Always call .execute() on DML/DDL — jOOQ's fluent API builds silently without it; use IntelliJ's @CheckReturnValue inspection to catch this

© jvm-skills, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 35 other files in .junie/skills/jooq-best-practices of jvm-skills/jvm-skills.

  • SKILL.md
  • UNCERTAINTIES.md
  • knowledge/aggregate-functions.md
  • knowledge/anti-patterns.md
  • knowledge/array-operations.md
  • knowledge/code-generator.md
  • knowledge/computed-columns.md
  • knowledge/derived-tables.md
  • knowledge/dml-returning.md
  • knowledge/dynamic-sql.md
  • knowledge/fetching-mapping.md
  • knowledge/hierarchical-queries.md
  • knowledge/implicit-joins.md
  • knowledge/join-patterns.md
  • knowledge/logging.md
  • knowledge/merge-upsert.md
  • knowledge/multiset.md
  • knowledge/naming-conventions.md
  • knowledge/native-sql-strategy.md
  • knowledge/pagination.md
  • … and 16 more

Open the folder on GitHubat commit c6d477f

Compare with similar skills

Jooq Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Jooq Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Jooq Best Practices this skilljvm-skills/jvm-skills139—~2.1kAutomated safety check: PassApache-2.0
Jimmer OrmCoooolfan/XiaomiAlbumSyncer421—~702Automated safety check: PassGPL-3.0
Build Teaql Appteaql/teaql-agent-kit2.8k—~4.6kAutomated safety check: PassMIT
Find Untested Sourcesmicrosoft/testfx1k2 repos~3.3kAutomated safety check: PassMIT
Android Maps Ktxgooglemaps/android-maps-ktx360—~897Automated safety check: PassApache-2.0
Code StyleJetBrains/intellij-community21k—~795Automated safety check: PassCustom licence

Similar skills

  • Jimmer Orm

    Coooolfan/XiaomiAlbumSyncer

    Jimmer ORM 开发助手(XiaomiAlbumSyncer 服务端),帮助编写实体映射代码、DTO 和 DSL 查询语句。适用于:(1) 定义或修改 Jimmer 实体(使用 @Entity 注解的 interface);(2) 编写 Jimmer DSL 查询代码;(3) 配置实体关联关系(@ManyToOne, @OneToMany, @ManyToMany);(4)…

    421 GitHub stars~702 tokensUpdated 5 days ago
    DatabasesAuto-check passed
  • Build Teaql App

    teaql/teaql-agent-kit

    Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries.

    2.8k GitHub stars~4.6k tokensUpdated 14 days ago
    MobileAuto-check passed
  • Find Untested Sources

    microsoft/testfx

    Official

    MANDATORY for static source-to-test pairing: find or list source files/modules without corresponding tests, or suggest test locations from repository structure.

    1k GitHub starsUsed in 2 repos~3.3k tokens
    MobileAuto-check passed
  • Android Maps Ktx

    googlemaps/android-maps-ktx

    Provides idiomatic Kotlin extension (KTX) patterns, reactive Flow event streams, and multi-subscriber shareIn rules for Google Maps SDK for Android and its Utility Library.

    360 GitHub stars~897 tokensUpdated 4 days ago
    MobileAuto-check passed
  • Code Style

    JetBrains/intellij-community

    Official

    Apply IntelliJ Kotlin and Java code style when writing or reviewing.

    21k GitHub stars~795 tokensUpdated today
    MobileAuto-check passed
  • Jugg Android Dev Loop

    niki914/zafiro

    A skill your agent uses when editing source files (Java/Kotlin/XML/layout/AndroidManifest/Gradle) in a Android project, or when user asks to build/deploy/verify an Android app.

    241 GitHub stars~2k tokensUpdated today
    MobileAuto-check passed

More from jvm-skills/jvm-skills

All 16 skills in this repo
  • Mutation Testing

    jvm-skills/jvm-skills

    Bootstrap pitest via the info.solidsoft.pitest Gradle plugin with Kotlin-sane defaults, run mutation tests scoped to changed classes, interpret surviving mutants from mutations.xml, triage…

    139 GitHub stars~6.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Ralph Coverage

    jvm-skills/jvm-skills

    Run Ralph in coverage mode — iteratively write tests for untested classes until coverage targets are met.

    139 GitHub stars~683 tokensUpdated 1 mo ago
    Auto-check passed
  • Skill Scout

    jvm-skills/jvm-skills

    Run the skill-scout loop — scan the next batch of unscanned JVM-conference rosters for speaker-created AI skills and apply results to the CSV store via the overnight Workflow.

    139 GitHub stars~727 tokensUpdated 1 mo ago
    Auto-check passed
  • Spec

    jvm-skills/jvm-skills

    Generate a feature spec with user stories directly from conversation context and codebase exploration — no interview needed.

    139 GitHub stars~832 tokensUpdated 1 mo ago
    Auto-check passed
  • UI Review

    jvm-skills/jvm-skills

    Verify UI/UX by running Playwright tests and reviewing screenshots.

    139 GitHub stars~545 tokensUpdated 1 mo ago
    Auto-check passed
  • Kotest

    jvm-skills/jvm-skills

    Write a new Kotlin test, or modernize an existing one, using Kotest matchers and idiomatic Kotlin test style — backticked names, apply/assertSoftly blocks, and existing object mothers and helpers.

    139 GitHub stars~2.6k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Jooq Best Practices

What does Jooq Best Practices do?

Comprehensive jOOQ DSL best practices for Kotlin/Java. An agent skill from jvm-skills/jvm-skills. Jooq Best Practices is an agent skill from jvm-skills/jvm-skills. Comprehensive jOOQ DSL best practices for Kotlin/Java.

When should I use Jooq Best Practices?

Jooq Best Practices fits situations like: writing jOOQ queries; mapping results; handling transactions; designing repository layers.

How do I install Jooq Best Practices in Claude Code?

Run `npx skills add jvm-skills/jvm-skills --skill jooq-best-practices -a claude-code`. Or copy the skill folder (.junie/skills/jooq-best-practices in jvm-skills/jvm-skills) into .claude/skills/jooq-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Jooq Best Practices in Codex?

Run `npx skills add jvm-skills/jvm-skills --skill jooq-best-practices -a codex`. Or copy the skill folder (.junie/skills/jooq-best-practices in jvm-skills/jvm-skills) into .agents/skills/jooq-best-practices in your project. Codex loads it when a task matches its description.

Can I use Jooq Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jvm-skills/jvm-skills --skill jooq-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/jooq-best-practices, .gemini/skills/jooq-best-practices, .github/skills/jooq-best-practices and .opencode/skills/jooq-best-practices in your project.

What does Jooq Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Jooq Best Practices is instructions for the agent only.

Does Jooq Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Jooq Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Jooq Best Practices use?

Jooq Best Practices is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Jooq Best Practices use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Jooq Best Practices?

Skills that share tags, products or a category with Jooq Best Practices: Jimmer Orm (Coooolfan/XiaomiAlbumSyncer, 421 stars), Build Teaql App (teaql/teaql-agent-kit, 2.8k stars), Find Untested Sources (microsoft/testfx, 1k stars) and Android Maps Ktx (googlemaps/android-maps-ktx, 360 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Jooq Best Practices?

jvm-skills (a GitHub organization) maintains it in jvm-skills/jvm-skills, which has 139 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on August 31, 2026.

Source: jvm-skills/jvm-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.